Bite 40 / 4440 views
AI & Machine LearningIntermediate

Why an AI Reviewer Misses Bugs Your Tests Pass

A passing test suite proves the code matches your tests, not your intent. Reviewer effort decides what gets checked.

Reviewed by System Admin · Dec 2, 2026 · Editorial standards

Read time~2 min
FormatVisual
Check1 question
AccessFree

Visual breakdown

Interactive

Why an AI Reviewer Misses Bugs Your Tests Pass — Visual Breakdown

Option A

Low effort review

A
  • ✓Cheap and fast per patch
  • ✓Opus: false success on 67% of wrong patches
  • ✓Sonnet: 65%
  • ✓Haiku: 78%
  • ✓Closer to rubber-stamping
Option B

High effort review

B
  • ✓Costs more reasoning per patch
  • ✓Opus: false success on 45% of wrong patches
  • ✓Sonnet: 49%
  • ✓Haiku: 51%
  • ✓Still not zero wrong patches

The simple version

No jargon

Your test suite is a checklist of what you thought to check. The code runs, the assertions pass, the build goes green. A patch can clear that checklist and still do the wrong thing, because the checklist only covers what you wrote down. A patch like that is plausible-but-wrong: it looks right, passes your tests, and breaks intent you never tested. A 2026 arXiv paper, "How Much Effort Does an AI Code Reviewer Need?" (arXiv:2611.33639), studied this directly. Researchers took 90 Django patches written by AI coding agents, all from SWE-bench Verified, a public benchmark of real bug-fix tasks. They ran the patches against stronger tests, called SWE-ABS. By those stronger tests, 55 of the 90 patches were wrong and 35 were correct. So most of the patches that looked fine were not fine. Then they had three Claude models review the patches: Opus 5.5, Sonnet 5.5 and Haiku 5.5. Opus 5.5 was preregistered, meaning the hypothesis and analysis were fixed before data collection. Sonnet 5.5 and Haiku 5.5 were exploratory, meaning they were run afterward and their results are hypothesis-generating. Each model ran at low, medium and high reasoning effort. Effort is a setting that controls how much reasoning the model does before answering. The key measure is false success: the reviewer judges a wrong patch to be correct. At low effort, Opus judged 67 percent of the wrong patches to be correct; at high effort, 45 percent. Sonnet went from 65 to 49 percent, Haiku from 78 to 51 percent. The authors report the high-vs-low difference as supported for Opus and Haiku. Sonnet and Haiku were exploratory models, so treat their numbers as suggestive. That is the tradeoff. Low effort is cheap and fast, and it rubber-stamps more bad code. High effort costs more and catches more. The paper frames effort as a setting you choose, not a fixed property of the model. One caution: Opus at high effort still judged 45 percent of the wrong patches to be correct. A reviewer reduces risk. It does not remove it.

Why it matters in production

If you add an AI reviewer to your pull requests, its effort setting is a budget decision, not a quality switch. Low effort returns answers fast and cheap, and it lets more wrong patches through. High effort catches more, and it still misses some. In the study, Opus at high effort still judged 45 percent of the wrong patches to be correct. So treat AI review as one more filter, not a replacement for tests that encode intent. As a practical rule (not a study finding), set effort per PR risk: low for trivial changes, high for schema migrations, payment paths, or auth logic.

Implementation & syntax

Read-only example
🐍Python
# A patch that passes your tests but breaks intent.
def apply_discount(total, percent):
    # Intent: reject bad input. The code never implements that guard.
    return total - (total * percent / 100)

assert apply_discount(100, 10) == 90  # passes

# Stronger check the original tests never made:
import pytest

def test_rejects_negative_percent():
    with pytest.raises(ValueError):
        apply_discount(100, -50)  # fails: no guard, returns 150

# The intended guard, which the patch omitted:
def apply_discount_fixed(total, percent):
    if percent < 0:
        raise ValueError("percent must be non-negative")
    return total - (total * percent / 100)

Check your understanding

Quick Concept Check

Test your understanding in 15 seconds

A patch passes your whole test suite. What makes it 'plausible-but-wrong'?

Bite progression40 / 44

Related concepts

Keep going

Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.