Passing tests can still hide wrong code

Coding agents are very good at writing changes that turn a test suite green. A green suite doesn't prove the change does what the issue asked for, so many teams now have a second model look over agent patches before anyone merges them. A preprint posted to arXiv on 25 November 2026 tests one common version of that setup. When the reviewer is a Claude 5.5 model, how much does its effort setting matter?

The authors are Zax Shen and Hanling Zhang, who work at a small AI-evaluation company, and independent researcher Zixu Wang. They found that raising effort made every model they tried a better reviewer. They also found that none of the nine configurations they tested was safe enough to act as a project's only check. The best one still let 25 of 55 faulty patches through.

What the effort setting controls

Anthropic's effort parameter sets how freely Claude spends output tokens. It applies to everything the model produces: the written answer, tool calls and their arguments, and any thinking. At low effort Claude tends to make fewer, terser tool calls and gets straight to the answer. At high effort it makes more calls, explains its plan and summarises its work in more detail. The documentation calls effort a behavioural signal with no hard token cap, so a model on low still thinks about a difficult problem, just less deeply.

The 5.5 models all offer five levels: low, medium, high, xhigh and max. Opus 5.5 and Haiku 5.5 default to medium, and Sonnet 5.5 defaults to high. In the Messages API you set it with output_config.effort. The researchers tested low, medium and high using Claude Code's effort flag. Anthropic's own advice is to run an effort sweep on your own evaluations and avoid reusing settings from older models. In effect, this paper is a public sweep of that kind for one task.

How the experiment was built

The patches came from SWE-bench Verified, a set of 500 real GitHub issues where a fix counts as solved if the repository's tests pass. In February 2026, Boxi Yu and eleven coauthors released SWE-ABS, which strengthens those tests. It added stronger tests to 50.2% of the instances and threw out 19.71% of patches that had previously passed. The top agent's score fell from 78.80% to 62.20%.

The study used that gap to build its labels. A patch that passes the Verified tests but fails the SWE-ABS tests counts as plausible but wrong. A patch that passes both counts as correct. The team drew 90 Django patches from public agent submissions using a seeded draw, and no single agent could supply more than 10% of any group. The labels started at 60 wrong and 30 correct. After the runs, an audit against seven written rules moved them to 55 wrong and 35 correct, covering 68 distinct issues.

Each reviewer ran in Claude Code 2.1.311 in non-interactive mode, and only the model and effort level changed between runs. It got the issue text with benchmark hints removed and the Django repository at its base commit, with the candidate patch applied as one anonymous commit. It could read files, run shell commands and write its own tests. It couldn't see the scoring tests, the official fix, the SWE-ABS tests, the labels or the original agent's messages, and its only network access was the Claude API. The prompt told it to fail a patch only for an unmet requirement or a functional defect that matters. Any incomplete or malformed verdict counted as a rejection.

Every patch was reviewed once at each of the nine settings, which comes to 810 reviews. The Opus plan was preregistered on the Open Science Framework, and those reviews ran on 2 and 3 November. The Sonnet and Haiku runs were exploratory. They took place on 5 November on a newer harness, and their plan was never filed with a registry.

The results

The headline measure is false success: the share of wrong patches a reviewer approved.

| Model | Low | Medium | High | |---|---|---|---| | Opus 5.5 | 67% | 47% | 45% | | Sonnet 5.5 | 65% | 60% | 49% | | Haiku 5.5 | 78% | 64% | 51% |

Opus rejected only 2 of the 35 correct patches at every level. Moving Opus from low to high cut false success by 21.8 points (p < .001), which confirmed the first preregistered hypothesis. Medium came within two points of high, so it easily cleared the 15-point margin set for the second hypothesis. Haiku's gain from low to high was also significant. Sonnet's gain missed the corrected threshold, with an exact p of .018 against a cutoff of .0125. Haiku on medium wrongly blocked seven good patches, one more than its preset limit.

Opus never returned a broken verdict. Sonnet returned 10 and Haiku returned 5. When 20 Opus high-effort reviews were rerun, none of them changed verdict.

What it costs

At list prices, an Opus review averaged $0.0441 on low, $0.0946 on medium and $0.1202 on high. Median wall time rose from 0.37 to 0.82 minutes. Medium came out about 20% cheaper than high, short of the 30% saving the authors had set in advance as worth having. Sonnet on medium was 39% cheaper than high and Haiku on medium was 51% cheaper, but both lost accuracy. Haiku on high cost $0.0078 per review, roughly 8% of the price of Opus on medium. The paper doesn't show the two are equally accurate. The whole study cost about US$50.69 in API fees.

The caveats are large

The authors also checked whether each issue actually required the behaviour that the failing SWE-ABS test checked. Out of the 55 wrong patches, it did for 6 and didn't for 32. For 14 it was unclear, and 3 had no failing test. Most wrongful approvals fell into the "didn't require it" group. With those 32 patches removed, none of the hypotheses held in the form the main analysis needed. Many apparent misses, then, may be reviewers accepting code that did what the issue asked.

Memory is a second concern. Given only the issue text, Opus reproduced 67.0% of the official fix's changed lines that weren't mentioned in the issue, and 73.5% on a second run. Reviews flagged as drawing on recall approved 71% of wrong patches, against 46% for the rest. That's only a correlation, but it suggests results on public benchmarks may not carry over to private code.

The authors list other limits too. Part of the SWE-ABS test suite was generated by a model working from the official fix. The labels were corrected after the results came in, and no independent rater checked them. Later coding steps were done by Claude 5.5 models with no human review. Everything was tested on Django alone. Claude Code also doesn't report the effort level it actually applied, so the authors had to infer it from how the models behaved.

What builders can take from it

  • If you use Opus 5.5 as a review gate in a similar setup, medium looks like a sensible default. It's the API default, it gave almost the same verdicts as high, and it cost less.
  • For Sonnet 5.5 and Haiku 5.5, the data favour high. Haiku on high is cheap, but you'll need a fallback for unparseable verdicts.
  • Since every setting approved at least 45% of the faulty patches, keep your tests and human review in place and treat the model as one extra filter.
  • Run your own sweep. Take a few dozen past agent pull requests whose outcomes you know, review them at each effort level, count wrongful approvals and wrongful blocks separately, and weight each by what a missed bug costs you.

The harness, labels and analysis scripts are on GitHub. The code is MIT-licensed and the data is CC BY 4.0. To reproduce the Opus results you need Node.js 24, npm ci and the paper's artifact README, and because the bootstrap is seeded, reruns should match. The full transcripts contain patch text that can't be redistributed, so the authors will share them on request.

Sources

Build with people working on the same things

Join the Auckland Society for AI: NZ$599 a year with a ForgeBox and the members' projects area. Our Auckland meetups are open to everyone.

Become a member