AI Engineer Code Summit 2026
Fighting Slop — Ankit Jain, Aviator
Loading slides…
Read the talk
Fighting Slop
Aviator’s nine engineers went from merging about 100 pull requests a week to 400. Ankit Jain walks through three attempts to keep up with review and the six practices that emerged, from making agents disagree to giving humans ownership of the checks.
From a talk by Ankit Jain
At a glance
Ideas worth remembering
Preserve the decisions made during implementation. A starting spec can go stale, and the final diff often hides why the team accepted a risk or deferred a fix.
Separate acceptance criteria for the current change from invariants that apply across changes. Match each claim to evidence a reviewer can inspect.
Aviator distilled 200 candidates into 64 standing rules and converted 19 into deterministic checks. Running a proposed script alongside model review lets the team compare findings before relying on it.
When verification fails, record whether the agent changed the code or changed the requirement. A later passing result alone can conceal a consequential decision.
Start with repeated review comments, assign owners to the resulting checks and keep reviewing code while the checks earn the team’s confidence. Human discussion remains essential to understanding the system.
Nine engineers, four times the pull requests
A year earlier, Aviator’s nine engineers were merging about 100 pull requests a week. Now they were merging 400. Somewhere along the way, the team had gone from humans writing code with AI assistance to AI writing most of the code with human assistance. The same nine people still had to review it.
Ankit Jain made the case for killing the code review in Latent Space in March. Aviator was already experimenting with alternatives by then. The team eventually built a product around what it learned, a commercial interest Jain flags up front.
First, add an AI reviewer. Bots quickly accounted for most of the comments. Many were optional improvements, punctuated by the occasional real bug that made the whole exercise feel worthwhile. The more interesting change was in the comments humans still wrote. Most were about decisions.
Next, review the spec. In January, engineers tried writing specifications, letting AI generate most of the implementation and concentrating their review on the specifications. Implementation exposed assumptions that no longer held. The team rarely went back to correct the documents, and once people stopped reading the code, nobody caught the growing discrepancy. Aviator went back to reviewing diffs.
Finally, move review ahead of the pull request. The team wrote its own agent skill, supplied context specific to the codebase and added hooks so authors could run a review before submitting their work. The findings were better than the bot’s. By the time a human arrived, there were fewer issues to resolve. But the human still had to read the diff, and the agent’s findings largely disappeared with the coding session.
That third attempt came closest. The team had found a useful place to do the work. It was throwing away much of what the next reviewer needed to know.
What are the humans doing in a code review?
In a 2013 Microsoft study Jain cites, 44% of respondents gave finding bugs as a reason to review code. Only 14% of the comments researchers analyzed identified bugs. Those percentages count different things, but the discrepancy raises a useful question. What else are people getting out of all that reading?
For a team maintaining a shared system, review is one of the ways engineers build a mental model of each other’s work. A diff makes that surprisingly difficult. It shows what changed and leaves one reader to reconstruct the reasoning from memory. There’s also the sheer volume. Jain compares a 2006 study reporting a substantial drop in review quality beyond 400 lines with a median of over 600 lines for the AI-era pull requests he describes.
Consider one pull request Jain reviewed. What kinds of work did its 14 discussion threads represent? Eight threads came from bots. Looking at the substance of the feedback, he counted just one real bug, three rules the team had already repeated in earlier reviews, and two decisions.
The repeated rules and the decisions call for different treatment. If everyone agrees on a coding standard, asking someone to remember it on every PR is expensive. If engineers disagree about an architectural choice, the conversation itself is valuable. Automating the whole review risks losing the part where teammates learn how their system works.
There’s some irony in Aviator’s solution. The team set out to kill one activity and ended up with six. Argue, capture, codify, prove, debate and own. Each preserves a different part of what a good review accomplishes. Teams can implement all six without buying Aviator’s product.
1. Let the agents argue before a PR exists
The pre-submission review skill became an independent reviewer that could challenge the author’s coding agent. The two agents can use different models, although the important configuration choice is their goals. The reviewer looks for defects. The coding agent has a reason to defend its implementation and push back on proposed changes.
What should survive that exchange? Write down every disagreement and its outcome. Two perfectly reasonable outcomes can leave the current code untouched, yet mean very different things to the next engineer.
- Accepted risk. The agents found a concern, but addressing it would add complexity the team can live without. Leave the implementation alone and preserve the reasoning.
- Follow-up. The concern warrants a fix in a separate pull request. Keep a record so someone can find it again.
An agent inclined to fix everything can make the code more complicated in the process. Recording the disagreement gives a human reviewer a chance to challenge either outcome, even when there is no corresponding line in the diff to comment on.
2. Capture intent while the requirements are changing
A specification can still do useful work if somebody keeps it current. Aviator’s experiment failed on precisely that maintenance obligation. The implementation taught the team things that never made it back into the document. Freezing the requirements up front recreated much of the problem with waterfall development.
A lighter approach borrows two ideas from behavior-driven development. Both fit a one-line correction as readily as a thousand-line feature.
- Intent explains why the change exists. Start with the Jira ticket, the initial instruction to the agent or the specification the engineer supplied.
- Acceptance criteria describe how the result should behave. Extract them as the engineer clarifies requirements, corrects the agent or settles a question about what the software should do.
The starting request and the subsequent conversation contain different information. Saving only the first prompt reproduces the weakness of the frozen spec. Saving the behavioral decisions as they emerge gives the reviewer an up-to-date set of claims that can actually be checked.
3. Turn a year of repeated comments into standing checks
Aviator mined a year of review comments, extracted the useful ones, classified which could become rules and merged similar suggestions. One pass produced 64 rules from 200 candidates. The team calls these rules invariants. An acceptance criterion belongs to a particular change. An invariant describes a standard that should continue to hold across changes.
Writing an invariant in English gives the team a common way to describe everything from a simple lint check to a more complicated requirement. Each entry needs enough information for someone else to enforce and maintain it.
- Rule. What must hold?
- Scope. When and where does it apply?
- Verified by. What check would establish that it holds?
- Provenance. Which earlier feedback explains why the rule exists?
- Owner. Who will correct it when the codebase or the team’s judgment changes?
The English description can stay useful even as the implementation of the check changes. An agent can attempt to turn the rule into a deterministic script. Aviator first runs the script in shadow mode, applying both the model and the script to the same rule so their findings can be compared. Once the team is satisfied with the script, it promotes that check.
What does that conversion buy you? Take the rule that every request call must have a timeout. Aviator expressed it in ast-grep, which matches the structure of source code. The check can look for request calls that omit a timeout without asking a model to reconsider the policy on every PR.
That check answers a narrow question. Whether a particular timeout is appropriate, or how the application behaves when it expires, takes more evidence. Aviator converted 19 of its 64 invariants into deterministic checks. AI helped the team build checks it could subsequently run predictably without fresh model judgment.
4. Give each behavioral claim evidence a reviewer can inspect
The missing piece in Aviator’s spec experiment was a way to compare the promised behavior with the implementation. The new system takes the acceptance criteria, creates a verification plan, starts a server and directs an agent to exercise the application. This is recognizable QA work. The agent executes the plan and brings back observations for a reviewer to inspect.
For a single criterion, what would let you reconstruct what happened? In Jain’s example, the agent collects screenshots alongside the requests it made and the responses it received.
Together, those records let the reviewer connect what appeared in the interface to what the application sent and received. Other claims need different evidence. Network activity, test runs and traces can expose behavior the screen hides. A structural check such as the timeout rule can answer a question about the code directly. The reviewer still has to decide whether the observation covers the criterion.
A useful companion example is Aviator’s public review of an Umami chart selector. The feature lets users share a chart by keeping the selected metric in the URL. With an unfamiliar value such as ?metric=foo, the application passed the value to the API, received a 400 and displayed an error. The run exposed a question for the team to settle. Should an old or hand-edited link fall back to the default chart?
5. Review the decisions, including the ones hidden inside fixes
There are three particularly good places to recover decisions. The first is the author’s conversation with the coding agent, where even a small correction can settle an ambiguity. The second is the argument between the coding and review agents. The third is easy to miss. When verification fails, the agent can change the implementation or revise the requirement. Both choices deserve a record.
By the time a person opens the PR, which calls still need attention? Aviator collects decisions in a file associated with the change. Some issues have an agreed resolution, some prompted a fix, and others carry a flag asking for human judgment.
Jain gives reviewers three jobs. Skim what is settled. Settle what the agents could not resolve. Reopen any call you would make differently, including one a human already made. That last permission matters. A decision marked settled can still be the most interesting thing to discuss with the author.
Consider the two ways out of a failed verification. A later passing result can obscure whether the software changed or the team changed its mind about what was acceptable. Recording both paths gives the reviewer a way to find that decision even after the failure disappears.
The record remains useful after merge. A team can pull together a week’s decisions for one feature, revisit a worrying pattern or give a new agent the reasoning behind an earlier choice. Promised follow-ups become easier to track. A decision that keeps coming up may be ready to become another invariant.
Where did the decision behind a passing change come from?
Read the diagram as text
- Author feedback. An engineer clarifies behavior or corrects the coding agent.
- Agent disagreement. The coding and review agents dispute a proposed change.
- Verification fails. The implementation and the expected behavior disagree.
- Change the code. Revise what the software does.
- Change the requirement. Revise what the check expects.
- PR decision record. Keep the choice and its outcome, including anything that still needs human judgment.
- Author and reviewer. Skim settled calls, resolve open questions and reopen decisions they dispute.
- Author feedback → PR decision record: Capture clarifications.
- Agent disagreement → PR decision record: Record the resolution.
- Verification fails → Change the code: Correct the behavior.
- Verification fails → Change the requirement: Revise the expectation.
- Change the code → PR decision record: Document the fix.
- Change the requirement → PR decision record: Document the revised requirement.
- PR decision record → Author and reviewer: Present decisions for discussion.
6. Give the guardrails an owner
Code ownership used to come with a fairly straightforward explanation. You wrote the code, so you were responsible for what happened to it. If someone outside your team submitted a change, a reviewer who owned that part of the system could take responsibility for accepting it. With agents writing most of the implementation, even the author may be unfamiliar with substantial parts of the result.
The model cannot take responsibility when something goes wrong. Jain wants teams to take explicit ownership of the rules and the machinery that verifies changes. That means knowing what each check covers, keeping its scope current and being able to revisit the original reasoning when the rule starts giving the wrong answer.
Engineers also need to understand what they are building and how its parts work together. Jain calls the accumulated loss of that understanding context debt. Discussing decisions with the people who made them helps the team keep its mental model current as the volume of changes rises.
A year later, median time to merge fell to 3.4 hours
What happened as the same nine engineers went from roughly 100 to 400 merged PRs a week? Aviator reports that median time to merge fell from 2.1 days to 3.4 hours. PR discussion threads decreased, and the team also counted fewer reverts.
The two declines mean different things. Fewer threads partly reflect where the conversation moved. Engineers still debated choices, but much of that discussion now happened around the decision record. Jain takes the drop in reverts as an encouraging quality signal. This is one team’s before-and-after experience, so it cannot isolate the effect of the review changes or tell us how many defects escaped.
In an individual PR comparison, Jain contrasts five days open with roughly two and a half hours. The more lasting change is what remains available afterward. Screenshots and references to captured requests let engineers show an auditor which behaviors they checked and what happened when they exercised them.
Review still takes engineering time. Much of it now goes into refining invariants, debating decisions and improving verification. Every week the team looks back at the testing and QA it still performed manually and asks which parts it can automate next.
The first 90 days start with a month of double work
The awkward part of adopting this approach is that the old review process is initially one of the best ways to find out whether the new checks work. Jain describes a gradual handover.
- Month one. Keep reviewing code. Review the rules too, and check that they catch what the team expects. Budget for doing both jobs.
- Month two. As the checks start catching recurring problems, expect to make fewer manual corrections. Use disagreements to find rules that still need work.
- By the end of month three. Assess whether reading the intent and inspecting the evidence now tells reviewers more than routinely working through the whole diff.
The suggested first exercise is smaller than Aviator’s year-long experiment. Mine the last 1,000 review comments. Ask an agent to extract recurring concerns, pick the top 20 and write them as checks. Put those checks in continuous integration so they run on every change. The team then has something concrete to compare against its existing reviews.
Eventually a reviewer should be able to answer five questions from the material accompanying a change. Why does it exist? How should it behave? Which standing engineering rules apply? What tradeoffs did the author and agents make? What evidence shows the result actually works? Aviator Verify is the team’s implementation of that workflow.
The hardest question comes after all five. If this change causes trouble next week, does anyone on the team understand the system well enough to explain why? As Jain puts it, “You can’t outsource your understanding.”
Resources
From the talk
Jain’s March essay in Latent Space sets out his earlier five-layer proposal. Compare its emphasis on specifications with Aviator’s experience keeping requirements current during implementation.
Aviator’s implementation includes public reviews showing acceptance criteria, standing rules, decisions and the evidence behind individual findings.
Further reading
Follow an unrecognized metric parameter from a shared URL to an API error and a visible dashboard failure. The example separates the observed behavior from the open decision about how to handle it.
An example of a verification gap. No scenario opened a drawing with a previously saved background color, so the review left that preservation requirement uncovered.
- Aviator Verify documentation on invariantsDocumentation
Practical guidance on turning recurring repository conventions into testable rules, limiting their scope, assigning owners and recording exceptions.
Full transcript
Loading transcript…