Fourfold Pull Request Growth Pushed Aviator to Review Intent, Not Diffs
Ankit Jain says a fourfold increase in pull requests at Aviator forced its nine-engineer team to rethink code review. Rather than ask reviewers to read every diff line by line, he argues, teams should review a change’s intent, the decisions behind it and evidence that it works. His six-step framework turns repeated comments into checks and behavior into verifiable evidence, while reserving human review for decisions and the guardrails teams must maintain.

Four times the pull requests forced a different kind of review
Aviator’s nine engineers went from merging about 102 pull requests a week in November 2025 to 409 a year later. The team stayed the same size, but the work changed: code that had been human-written with AI assistance was now predominantly AI-generated, with humans assisting. The team still had a human review every pull request.
For ? ankit-jain, the increase made reading every diff line by line difficult to sustain—and left a more basic question: what should review accomplish if it is not just checking code? His answer is to direct review toward a change’s intent, the decisions made along the way, and evidence that it behaves as expected.
Jain said Aviator sells a tool built around this approach, and urged the audience to be skeptical of his account. He also said the practices he described could be adopted without Aviator or another product.
Three attempts shaped the team’s approach. An AI reviewer produced some useful findings, including bugs, but many comments were noise or “nice to have.” Human comments, Jain observed, often concerned decisions rather than correctness. Writing specs before generating code seemed to give reviewers a better target than the diff, but the specs went stale as implementation changed. The team found that assumptions embedded in a spec could stop matching the implementation, and that no one noticed the drift once reviewers stopped reading the code.
A contextual self-review skill found better issues than the generic bot. It ran before a pull request was submitted and included context about Aviator’s codebase. But it still reviewed the diff after the fact, and its findings could disappear when the session ended. It reduced some bugs and concerns, Jain said, but did not change the basic review task.
The limit, Jain said, was “a better reviewer, reading the same diff.” The team needed to separate what review was doing: checking rules, establishing whether behavior worked, and discussing decisions.
Review builds shared understanding as well as finding defects
? ankit-jain cited a 2013 study by Bacchelli and Bird, identified on his slide as analyzing 570 responses. He said 44 percent of respondents named finding defects as their leading reason for code review, while 14 percent of analyzed comments concerned defects. He called the difference a gap between the stated purpose of review and what reviewers actually discuss.
His central claim is that review helps teams build mental models and share knowledge. Human reviews can find real issues, he said, and remain valuable. But reviewers are not as reliable at finding them as teams may assume. Jain pointed to a SmartBear/Cisco study from 2006, identified on his slide as covering 2,500 reviews, and said review quality falls significantly beyond 400 lines. The slide also showed attention falling off after about 60 minutes. Against that, he said Aviator’s median AI-generated pull request was more than 600 lines.
A diff, Jain argued, has structural limits as the main object of review: one reviewer reads it once, from memory. It shows what changed, not why. In one Aviator pull request, he categorized 14 review threads: eight came from bots, one identified a real bug, three repeated rules the team had stated before, and two concerned actual decisions. The comments ranged from a missing pagination limit to a naming preference and a question about what users should see when no comments are extracted.
Those categories call for different responses. Bugs need fixing; noise and one-off suggestions may not merit action. Repeated standards can become rules. Decisions—opinions about behavior, trade-offs or what the product should do—still need discussion. Automating the entire review, Jain warned, would miss that last category.
Review separates into rules, evidence and human decisions
? ankit-jain’s framework has six steps: Argue, Capture, Codify, Prove, Debate and Own. Jain described it as a way to break down the different kinds of value review provides and build them back up, rather than treating the diff as the single object to inspect.
Argue before a pull request exists. A coding agent and an independent review agent cross-examine one another before the work reaches a human reviewer. They can use different models, Jain said, but what matters is giving them different goals: the coding agent defends its approach; the review agent searches for defects. Their disagreements should be recorded, not left behind in a chat session.
In one example, the agents and a human considered whether a failed check should block an entire batch or allow the system to bisect it. The record distinguished a valid concern, an accepted risk, a follow-up and a human call. Jain noted that agents tend to try to fix everything. Sometimes accepting a risk is preferable to adding complexity; other issues can be deferred rather than silently forgotten.
Capture intent and acceptance criteria. Specs can help, Jain said, but only if teams maintain them as implementations change. His team failed to correct specs when they became inaccurate. Without that feedback loop, implementation drifts away from what was written down. He argued that leaving a broken spec uncorrected amounts to falling back on a waterfall process: the document stays fixed while the implementation changes.
His alternative is to capture intent—why the change is being made—and acceptance criteria—how it should behave. These ideas, he noted, resemble established behavioral-driven development concepts. They can describe a one-line bug fix or a thousand-line feature.
The information often already exists in a working session. Intent may begin as a ticket, a spec file or an instruction to an agent. Acceptance criteria emerge when the agent asks a question, a developer specifies behavior or someone corrects the implementation. In one example, a request to add rate limiting to an exports endpoint led to choices about using an existing utility and using a money type rather than a float. Jain’s proposal is to preserve that reasoning instead of discarding it when the session ends.
Codify repeated comments into rules. Aviator mined a year of review comments, removed uninformative material such as empty comments and bare “LGTM”s, classified the rest as rules, proposals, one-off fixes or questions, and merged repeated comments into guidelines. The presentation reported 11,400 comments mined, 212 candidate rules and 64 approved invariants. Jain described this as one scan, and suggested that repeating the exercise could surface more rules over time.
Examples included never deleting or retyping a GraphQL schema field, regenerating rather than hand-editing generated files, reusing the existing backend definition of a business rule, and writing an audit-log entry for a configuration change only when something changed.
An invariant should specify the rule, where it applies, how it is verified, where it came from and who owns it. Provenance lets a team trace a rule back to the review threads that produced it; ownership gives someone responsibility for maintaining it. For example, the audit-log rule was scoped to GraphQL mutations and API handlers that write repository or account configuration. Its verification described saving twice and checking the audit log, and its provenance pointed to 23 review threads across 17 pull requests. Without an owner, Jain warned, a rule will become stale.
Some rules can be checked by a model; others can be converted into deterministic checks. Aviator used an agent to translate rules into scripts, ran those scripts in shadow mode alongside model checks, and promoted them when the two agreed. Shadow-running lets the team compare the script’s results with the model before relying on the script alone. One example used an AST-based rule to check that outbound HTTP requests include a timeout. Of the 64 approved invariants, 19 had been converted into deterministic rules. Jain’s slide reported a 0.3-second runtime per check and compared it with roughly 70 seconds; he said the converted checks ran predictably and returned the same verdict every time.
Every comment your team repeats is a guardrail you haven't written.
Prove that behavior works. Acceptance criteria should lead to a plan for checking each expected behavior. Aviator’s process starts a preview environment from the pull request, has an agent carry out the relevant actions, and captures evidence. Depending on the criterion, that might mean screenshots, API requests and responses, server logs, database state, an AST match, a test run or a trace.
For an audit-log rule, the system saved a configuration change and checked that one entry appeared, then saved again without changing anything and verified that no second entry appeared. It captured screenshots, requests and responses, as well as a clean console. Jain described this as similar to QA, with an agent following a plan and a reviewer assessing the evidence. The aim is not just to receive a pass or fail, but to inspect evidence suited to the behavior being checked.
Debate decisions with humans. This is where Jain said human participation matters most. Decisions arise while someone works with an agent, when coding and review agents disagree, and when a test or acceptance criterion fails and forces a change in the requirements or implementation. A verification failure may lead to a code change, a changed requirement, or a decision about what behavior is acceptable; those choices should be visible.
A pull request about retrying failed webhook deliveries illustrates the range. The team recorded that it should retry 5xx responses and timeouts, but not 4xx responses; use exponential backoff capped at ten minutes; honor Retry-After on a 429; deduplicate retried deliveries; and eventually mark a failing endpoint after 24 hours. Some choices were settled, one was fixed after verification, and others needed human judgment or follow-up.
Reviewers can skim settled decisions, resolve the ones agents could not settle, reopen a call they would make differently, and discuss the reasoning with the author. The point, Jain said, is not only to argue with an agent but to collaborate with the person who authored the code. Decisions can then be reviewed across a week of work, supplied to agents as context, tracked as follow-up tasks or promoted into an invariant when the same issue recurs.
Teams own the guardrails and the understanding behind them
Own the rules and the responsibility for them. Models cannot own the code or the mistakes they make, Jain said. In his account, responsibility has shifted: the author may not know every detail of generated code, and reviewers still act as gates. But the team can take responsibility for the rules that verify the code and for maintaining those rules.
That does not mean humans can stop understanding the system. Jain said teams must maintain that understanding while owning and improving the guardrails. If they lose track of what they are building and how it works, they accumulate what he called “context debt.” His proposed change is not simply to stop reviewing; it is to shift human effort away from line-by-line inspection and toward maintaining the rules, frameworks and knowledge that make review meaningful.
Aviator reported four times as many merged pull requests per week after a year, a median time to merge of 3.4 hours rather than 2.1 days, 1.3 human threads per pull request rather than 5.2, and 40 percent fewer reverts per 100 pull requests. Jain presented these as the team’s before-and-after results. He attributed the drop in threads to a change in where discussion happens: fewer line-by-line corrections, more attention to decisions. He said reverts had also fallen, which he took as evidence of improved quality despite fewer conventional reviews.
He also showed a comparison of two pull requests of similar size: one had been open for five days, the other for about two and a half hours. In the newer process, reviewers had screenshots, requests and citations as evidence, and could inspect intent and decisions rather than relying only on the diff. Jain said this gave the team more auditability: it could show what had been verified and the evidence for it.
The team’s time shifted toward refining invariants, debating decisions and improving verification: tightening the scope of rules, retiring noisy ones, creating better scenarios and speeding up preview environments. Jain said the team revisits manual testing and QA each week to consider what can be automated. He stressed that these capabilities take time to build.
The first 90 days were difficult. In month one, the team did double work: reviewing code while also writing invariants and checking that the rules worked. In month two, as the rules caught enough issues, reviews began to shrink. By the end of month three, Jain said, the team found intent and evidence more useful to review than the code itself.
For a team starting without new tools, his recommendation was to mine the last 1,000 review comments, identify the 20 that recur most often and write them as checks that run in continuous integration. He suggested asking an agent to help identify the rules, then running them on every change. The review materials he proposed reading instead of the diff are intent, acceptance criteria, invariants, decisions and evidence: why the change exists, how it should behave, which guardrails it must preserve, what trade-offs were made and what demonstrates that it works.