Trendveris
Live Coverage
AI & ML

Intent-Driven Code Review: AI Checks Requirements While Humans Make the Call

Intent-driven code review combines acceptance criteria, team rules, and test evidence to help agents verify changes while people retain approval responsibility.

Nov 01, 2026 | 3 min read
Sign in to save

Illustrated computer monitor with lines of text, reaching hands, an atom, and an eye, evoking AI code review

AI can check whether a change follows the rules. People still need to decide whether it should exist. That distinction gets lost when teams ask a model to judge a diff, then rely on a human to skim its verdict and approve the pull request.

A model can inspect every line without tiring and apply the same checks consistently. But a diff can’t tell it what the team intended, what earlier decisions shaped the work, or whether the right move is to build the feature at all. Written instructions help, but they don’t guarantee that an agent will follow a team’s standards.

“Judgment needs intent, and accountability needs a person.”

That’s the case for intent-driven code review: agents verify a change against agreed requirements and team rules, while a person owns the final judgment. Aviator says it has built this approach into Aviator Verify. Its process has seven parts.

The anatomy of an intent-driven review

Each change is evaluated against two things: acceptance criteria describing the behavior the change is meant to deliver, and invariants that encode the engineering team’s standing rules. The system calls these two verification layers.

Either layer on its own leaves a gap. Criteria without invariants make reviewers depend on memory to catch familiar mistakes. Invariants without criteria can enforce local rules while missing the purpose of the change. The seven steps combine both, gather evidence, and put the decision back in human hands:

  1. Invariants: team rules drawn from code review and established before work begins.
  2. Intent and acceptance criteria: the reason for the change and its expected behavior, captured during the coding session.
  3. Core decisions: the choices made during implementation, including who made them.
  4. Test plan: scenarios built at submission time from the criteria and relevant invariants.
  5. Evidence: results gathered in a running environment to support each verdict.
  6. Human review: a person considers the intent, decisions, and evidence, then approves or sends the work back.
  7. Updated invariants: waivers and recurring review comments inform later revisions to the rules.

1. Invariants

Every review measures a change against standards. In many organizations, those standards live in experienced engineers’ heads and surface repeatedly in PR comments: use a Money type for currency, avoid direct writes to the users table, or emit a counter on every error path. If agents keep repeating the same errors, the rule may never have been recorded in a form a verifier can check.

An invariant turns one of those expectations into a standing check for every relevant change. Taken together, the rules form what Aviator calls an AI slop registry: a record of patterns the team repeatedly corrects.

Files such as CLAUDE.md can guide code generation, but they don’t establish that the generated code obeyed the instructions. Invariants are checked after generation, through a deterministic script or a separate agent that returns a verdict for each rule.

Aviator Verify can draft invariants from GitHub review comments, CONTRIBUTING.md, and agent instruction files. Teams can also request one by tagging @aviator invariant in a PR comment or Slack thread. The company says users can create and keep their team’s invariants with an Aviator Verify free account, even if they later stop using Verify.

Three choices determine whether these rules help or generate noise:

  • Ownership: Send each draft to the team responsible for it, explain why it was proposed, and require that team’s approval before it becomes an active check.
  • Wording: State the required outcome without prescribing the implementation, so renaming a file or moving code doesn’t make the rule obsolete.
  • Scope: Run the rule only where it can matter. A frontend check shouldn’t be applied to database migrations.

2. Intent and acceptance criteria

Teams often try to establish intent with a detailed specification or ticket. Those take time to write, may precede what the work reveals, and can fall out of step with implementation.

The coding session may contain a more current account. As an engineer answers an agent’s questions and makes choices, the conversation defines what the change is for and how it should behave. Verify’s approach is to capture both from that session: an agent skill and hook run verify submit before the agent opens a pull request, then the agent drafts the intent and criteria for the engineer to review and correct.

Intent explains the reason for the change; acceptance criteria describe the expected behavior. That distinction gives the reviewer a target beyond the code itself.

3. Core decisions

A change can take several plausible paths: where state belongs, what to do when a dependency fails, or whether to extend a helper or write a new one. Those choices often disappear from the diff, even when an AI agent made them.

“An AI-written PR is full of calls like these, and almost none of them show up in the diff.”

Verify records decisions alongside intent and marks whether a person or an agent made each one. The reviewer can then question a choice with its context in view. The argument for reviewing decisions instead of reading every line is laid out in How to review AI code without reading the code.

4. A test plan

At submission, Verify combines the acceptance criteria with the invariants that apply to the diff, turning them into scenarios for an agent to run. The scenarios come from the stated requirements, not from an attempt to infer intended behavior from the code.

That division lets the engineer focus on what the change must accomplish while the registry checks the team’s standing standards.

5. Evidence

A model that writes code and then reviews it may carry the same blind spots into both jobs. A verifier needs to work separately from generation and show what it observed, not just offer an opinion.

“When the same model writes and reviews the code, they share the same blind spots.”

Verify starts a preview environment and sends verifier agents through the planned scenarios. They collect screenshots, database state, server logs, and console logs; each verdict on a criterion or invariant links to supporting evidence. For interface changes, the verifier clicks through the UI to check the result.

A preview environment isn’t required from the start. Code scans can check structure from the diff alone, and many invariants can become deterministic scripts. A live preview becomes useful when the criteria depend on behavior that the diff can’t demonstrate.

6. A review

The reviewer’s task shifts toward evaluating evidence. They read the intent, inspect the main areas of change, consider the recorded decisions and verdicts, and can open the live preview to see the behavior directly.

The pull request remains the familiar home for the diff. Verify adds a review link and reports results through a status check, much like CI. The human question is simpler: does the evidence match what the team agreed to build?

A reviewer can approve, challenge a decision, request another scenario, or waive a failed invariant with an explanation. That final call carries accountability, which is why it stays with a person.

7. Invariants refreshed

Merge often ends the review, and the lessons vanish with it. The next pull request can trigger the same mistake and the same comment.

Here, a failed invariant can be waived with a reason: it may not apply, the rule may be wrong, or the fix may be happening elsewhere. The team responsible for that invariant sees each waiver. Verify’s insights show which rules run most often, how frequently they fail, and why reviewers waive them.

A rule that draws repeated waivers may need narrowing or rewriting. A recurring review comment can become a draft invariant. Over time, the registry can capture lessons that would otherwise be repeated by hand.

Where to start

Start with invariants, which can be drawn from the PR history teams already have. The proposed rollout takes time: the first month involves both ordinary code review and building the registry; in the second, invariants begin catching enough issues to shorten reviews; by the third, reviewers can focus on intent, decisions, and evidence, consulting the diff when something doesn’t add up.

That timeline is a projection, not a demonstrated result in this fragment. Still, the underlying point is practical: reviews already contain rules that could be recorded and checked. Aviator Verify turns those rules into invariants, checks changes against them, and leaves judgment with the team.

Create your team’s invariants with the Aviator Verify free account; Aviator says you can keep them if you stop using Verify.

The post A step-by-step guide for how to kill the line-by-line code review appeared first on The New Stack.

Source: Ankit Jain · thenewstack.io
Sign in to join the discussion.