← Back to news
AI Code Review: More Reasoning Does Not Grant Merge Authority

Photo: Sebastiaan ter Burg / Wikimedia Commons — CC BY-SA 2.0

02/12/2026

AI Code Review: More Reasoning Does Not Grant Merge Authority

More reasoning is not a release policy

When an AI reviewer misses a defect, increasing its reasoning effort looks like the simplest fix. Give the model more time, spend more tokens, and expect a more dependable verdict. A preprint submitted on 25 November 2026 offers a useful reality check: extra effort can improve review, but it does not turn a model into an authoritative gatekeeper. Software teams still need people to define acceptable behavior, interpret evidence, and authorize consequential changes.

The study, by Zax Shen, Hanling Zhang and Zixu Wang, examines agent-written Django patches that look convincing enough to pass an initial benchmark. Its practical value is not a universal model ranking. It is the distinction between buying additional analysis and obtaining sufficient assurance. Those are different purchases. A team can sensibly pay for deeper AI review while refusing to treat a positive verdict as permission to merge.

What the experiment actually measured

The researchers used 90 patches from SWE-bench Verified and had three Claude 5.5 models review each patch at low, medium and high effort. This produced 810 reviews. The reviewers could inspect the repository and run commands or tests, but could not access the scoring tests or the official fix. Each setting faced the same candidate changes, making comparisons within a model more informative than comparisons between unrelated demonstrations.

Under the study's corrected labels, 55 patches were considered wrong and 35 correct. Higher effort reduced the acceptance of wrong patches: for Opus, the reported rate fell from 67% at low effort to 45% at high effort; for Haiku, from 78% to 51%. The authors report a supported difference for those two models, but not for Sonnet. Importantly, every model and effort combination still accepted at least 45% of patches labeled wrong.

These figures describe this experiment, not the percentage of defects your production reviewer will miss. The sample is restricted to Django, the patches were selected for a specific evaluation problem, and the review prompt treated functional correctness as the basis for rejection. Security, performance and style remarks were not independently sufficient to fail a patch. Applying the results directly to another repository or another review policy would therefore be unjustified.

The most important caveat concerns the answer key

The study also questions its own definition of correctness. A patch can fail a stronger test because it violates a genuine requirement, or because the test demands an implementation detail that the original issue did not require. The researchers rechecked all labels and changed eleven. Even after that correction, they identified 32 of the 55 wrong patches as potentially affected by requirements that were stricter than the issue justified.

When those 32 patches were excluded, neither accuracy hypothesis held for any model. That sensitivity matters as much as the headline failure rate. The paper is a preprint, and its conclusions depend on a particular benchmark and labeling process. The responsible lesson is not that all AI reviewers are useless. It is that neither a reviewer verdict nor a benchmark label can replace an explicit, human-owned interpretation of what the software must do.

For a team, this creates two separate review questions. First, does the implementation satisfy the intended contract? Second, do the tests and automated judges actually measure that contract? If nobody owns the second question, a team may optimize a review system against an answer key that rewards the wrong behavior. More reasoning cannot repair an unclear product requirement by itself.

Choose effort as an engineering budget

There is still a sensible role for effort settings. They allocate computational work, much as a team allocates longer test runs or specialist analysis to changes with greater consequences. The mistake is to turn an effort label into a safety label. High effort means the system was asked to work harder; it does not establish that the relevant failure modes were covered or that a responsible person accepted the residual risk.

The paper reports that Opus at medium effort met its specified non-inferiority criterion against high effort, within a margin of 15 percentage points, while costing 20% less. That is not proof of equivalence, and the saving did not meet the preregistered 30% target. Medium effort for the other two models was cheaper too, but was not shown non-inferior. A purchasing decision should preserve those qualifications rather than compress them into “medium is just as safe.”

A practical policy starts with a local evaluation. Select historical changes whose failures and intended behavior are understood by maintainers. Run candidate settings without showing the reviewers the later fixes. Track useful confirmed findings, missed material defects, false alarms, latency and total engineering time. Keep unresolved cases unresolved until a person investigates them. A neat score obtained by forcing every ambiguity into a binary label is not necessarily a better measurement.

Separate advisory review from authorization

In a controlled workflow, the AI reviewer produces an evidence package rather than a release decision. A useful finding identifies the affected behavior, the relevant file or execution path, a concrete failing scenario, and the test or observation that supports the claim. It should also distinguish an executed reproduction from a hypothesis. A fluent paragraph describing a possible problem is a lead to investigate, not proof that the problem exists.

Authorization belongs elsewhere. Repository rules should establish who can approve a change, which checks are mandatory, and what happens when evidence is incomplete. An AI service account should not be able to weaken those rules simply because it has finished its analysis. For sensitive changes, the person approving the merge should be able to explain why the behavior is acceptable without relying solely on the reviewer's confidence or the author's summary.

  • The agent proposes: implementation, suspected defects and candidate tests.
  • The pipeline verifies: reproducible checks, artifacts and policy requirements.
  • The maintainer decides: requirement interpretation, exceptions and acceptance of consequential risk.

A concrete example: a plausible Django fix

Consider a hypothetical change to how a Django application filters records for a customer account. The agent adds a condition that fixes the reported example, and the existing tests pass. A reviewer returns a positive verdict after inspecting the changed method. The real question is broader: does every relevant path still enforce account isolation, including empty inputs, inherited query behavior and alternative calling patterns? Passing the example does not settle those questions.

A maintainer can ask the agent to map callers, propose adversarial cases and run an isolated reproduction. The maintainer then checks whether those cases represent the application's actual contract. If a proposed test rejects a legitimate customization merely because it differs from one expected implementation, that is a test-design problem, not automatically a code defect. The review should preserve both possibilities until evidence distinguishes them.

This example is an editorial illustration, not an incident reported by the paper. Its purpose is to show where human judgment enters: defining the invariant, deciding which variations must remain supported, and assessing the consequences of a mistake. The agent can greatly accelerate the investigation. It cannot inherit product ownership merely by generating the investigation's most detailed explanation.

Protect the review environment as well

Giving a reviewer tools can improve its ability to test claims, but those tools introduce their own risks. Reviewing an untrusted branch may execute code controlled by that branch. A team should therefore use an isolated environment, scoped credentials, restricted network access and disposable working state. Production credentials and release permissions are not necessary for reproducing most code-review findings and should not become a default convenience.

Preserve the exact revision reviewed, the configuration used, the commands executed and the resulting artifacts. If the branch changes after review, relevant checks must run again against the new revision. Otherwise, a valid approval may be attached to code that was never examined. These are engineering recommendations, not controls whose effectiveness was established by this study; they address the gap between a research verdict and an operational workflow.

Measure the cost of supervision, not just tokens

A cheaper review that creates many ambiguous warnings can be expensive for maintainers. Conversely, a slower reviewer may be worthwhile if it consistently produces reproducible findings that remove investigation work. Measure the human time spent confirming, rejecting and repairing findings, alongside model spend. Do not equate the volume of comments with value, or the absence of comments with evidence that the change is safe.

The same principle applies to escalation. Decide in advance which uncertainty requires a specialist, when repeated unsuccessful repair attempts should stop, and who owns the final disposition. Otherwise, agents can create an apparently productive loop of reviewing, rewriting and reviewing again while nobody resolves the underlying requirement. A bounded workflow protects both delivery capacity and the attention needed for genuinely consequential decisions.

Start with a small, auditable rollout

Teams do not need a sophisticated platform to apply this distinction. Begin with advisory AI review on a limited class of changes. Keep the existing approval policy, record whether findings were confirmed, and compare effort settings on the same local examples. Include changes that are correct but unusual, not only known bugs, so the evaluation measures whether the reviewer obstructs legitimate work as well as whether it finds defects.

Then expand only where the evidence supports it. A documentation-only change, an authorization change and a database migration should not share an identical assurance recipe. The effort budget can vary, but the boundary of authority should remain explicit. If the team cannot identify the responsible approver, explain the required behavior, or recover the evidence behind a decision, increasing the model's effort setting is solving the wrong problem.

Make the rollout reversible as well. If the reviewer starts blocking valid changes or its findings become difficult to reproduce, return to advisory mode while investigating. Retain the previous configuration and a small set of representative cases so maintainers can compare behavior after an update. This avoids turning a model change into an unnoticed policy change. The person responsible for the repository should approve any expansion of automated authority separately from the technical deployment.

Keep the final judgment human

The November preprint provides a timely reason to resist a tempting shortcut: treating deeper automated reasoning as a substitute for governance. Its results suggest benefits from extra effort in some settings, while its limitations show how much depends on the task, the requirement and the answer key. Neither an expensive reviewer nor an impressive benchmark score removes those dependencies.

The useful destination is not less AI. It is more accountable delegation: agents investigate and implement, executable checks provide evidence, and people retain control over meaning, exceptions and release decisions. Before asking whether your reviewer should think harder, ask who defines correctness and who can say no. That is the control that an effort setting cannot buy.

Source and illustration

Shen, Zhang and Wang: review effort study, submitted 25 November 2026. Research results above are attributed to this preprint; workflow recommendations are editorial analysis.

Illustrative archive photograph: Wikimedia Hackathon 2013, not the study team. Sebastiaan ter Burg / Wikimedia Commons, CC BY-SA 2.0. The website may resize or re-encode the header image.