Why does code that passes every automated test still get rejected when a human actually tries to merge it?
Why do automated quality metrics sometimes overstate actual code mergeability?
This explores why scores that can be computed automatically (tests passing, benchmark points, flagged-issue counts) can look better than what a human maintainer would actually accept and merge into a real codebase.
This explores why numbers a machine can compute about code — tests passing, benchmark scores — can look better than what a human maintainer would actually accept. The sharpest data point in the collection: when METR manually reviewed 15 AI agent pull requests, none were mergeable as-is, even though automated scoring gave a 38% test-pass rate Do test pass rates accurately measure agent code quality?. Tests check one thing, whether the code does what the test asks. Merging depends on much more: style, documentation, fit with the rest of the codebase. A metric built for automatic scoring only sees the first.
The same gap shows up from the other direction in AI code review. In a study of 31,073 CodeRabbit reviews, developers rejected 56.3% of the suggestions, mostly as false positives, and the rejections traced back to the tool misunderstanding the system's design and the surrounding code context Do developers actually accept AI code review suggestions?. That is the missing ingredient in both cases. Whether a change belongs in a project is a judgment about context that lives in maintainers' heads, and neither a test suite nor an automated reviewer has much access to it.
There is also a quieter problem: the automated numbers are noisier than they look. On SWE-bench Verified, simply rerunning the same setup flips task outcomes about as often as swapping in a different one, so a seemingly meaningful gap can be chance Do harness comparisons on SWE-bench Verified measure real differences?. This matters more as systems start optimizing against those scores directly. The Darwin Gödel Machine improves itself by keeping whatever variants score higher on coding benchmarks, reaching a 2.5× gain on SWE-bench Can AI systems improve themselves through trial and error?. Those gains are real on the benchmark, but the benchmark is the test-pass measure that METR found to be a loose stand-in for mergeability.
The constructive answer in the corpus is to anchor the metric to what humans actually did. Cursor's Bugbot team stopped counting bugs flagged and started measuring whether a flagged bug had actually been fixed by the time the code merged. By the vendor's own report, that let them run 40 experiments and lift the resolution rate from 52% to over 70% Can AI metrics drive real improvements in bug detection systems?. Automated metrics overstate mergeability when they measure what is easy to check rather than what a maintainer decides, and they get more honest the closer they sit to that decision.
One limit: the corpus has a single small direct measurement of the test-pass versus mergeability gap (15 pull requests), so the size of the overstatement is far less settled than its direction.
Sources 5 notes
METR's manual review found zero of 15 AI agent pull requests mergeable despite a 38% automated test-pass rate. The gap suggests benchmarks optimized for automatic scoring miss critical factors like code style, documentation, and mergeability that matter for actual deployment.
A study of 31,073 CodeRabbit reviews across 239 repositories found 56.3% rejected (mostly as false positives), 36.4% accepted, with rejections driven by misunderstanding of system design and code context.
On SWE-bench Verified, rerunning the same harness flips task outcomes as often as swapping harnesses. A 13-point accuracy gap is caught only half the time on typical task set sizes, requiring a rerun baseline to verify any claimed harness advantage.
DGM replaces formal proofs with empirical benchmarking and maintains an evolutionary archive of agent variants, achieving 2.5× improvement on SWE-bench and 2.2× on Polyglot by discovering capabilities like better code editing and context management.
Cursor introduced an LLM-based metric measuring whether flagged bugs were actually fixed at merge time, enabling systematic experimentation. The vendor reports resolution rate rose from 52% to over 70% across 40 experiments, with resolved bugs per PR more than doubling from 0.2 to 0.5.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- What Does a Harness Buy? Tokens, Mostly
- Building a better Bugbot
- Research Update: Towards Reconciling Slowdown with Time Horizons (algorithmic vs holistic evaluation)
- Human-AI Synergy in Agentic Code Review
- Expenditure Horizon: Measuring Optimization Ability, with an Application to NanoGPT
- Holistic Agent Leaderboard: The Missing Infrastructure for AI Agent Evaluation
- The Darwin Gödel Machine: AI that improves itself by rewriting its own code
- Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agents