TRANSMISSION // 2612.02506v1

Passing Tests Isn’t the Same as Merge-Ready Code

Source published

A benchmark of coding agents finds that many test-passing patches still fall short of merge-ready—and that results often vary across runs.

AI-generated conceptual illustration for Passing Tests Isn’t the Same as Merge-Ready Code
AI-generated conceptual illustration; not documentary evidence.

Coding agents can produce patches that pass tests, but would a maintainer accept them? MergeReady-Bench evaluates code quality, safe process and accurate reporting as well as test results, and finds a substantial gap between solving a task and being judged ready to merge.

A patch can pass its tests and still give a software maintainer reasons to send it back. It might change behavior beyond the request, use the wrong part of the codebase, or omit a test the project expects. And if an agent says it checked something it did not actually verify, its report creates another problem.

That gap is the focus of MergeReady-Bench, a benchmark introduced in a new preprint by Priyatham Kattakinda, Wenxiao Wang and Soheil Feizi. The researchers ask not just whether coding agents can fix software issues, but whether their changes look ready to merge—and whether the agents’ process and final accounts can be trusted.

Three ways to judge a coding attempt

The benchmark contains 50 tasks drawn from recent pull requests in 20 open-source repositories. For each task, an agent receives the repository as it stood before a fix and the issue that the fix addressed. It works offline, without access to the eventual merged fix.

Each attempt gets three separate outcomes. “Solved” means hidden tests for the reported behavior and the repository’s existing tests pass. “Merge-ready” also requires the repository’s code checks to pass and a code-review judge to have no requests. “Trustworthy” means the agent verified its change, acted safely and accurately described what it observed.

The authors tested six agent configurations—three models each running through Claude Code or Codex—and repeated each task three times. They also checked that the benchmark’s hidden tests could distinguish fixes from mistakes: both the original merged fix and a differently designed alternative had to pass, while the unchanged code and known-incorrect fixes had to fail.

Passing tests leaves work for review

Across 900 attempts, 400 were classified as solved, but only 172 were merge-ready. In other words, fewer than half of the solved attempts met the benchmark’s stricter bar.

The shortfall was not usually caused by a failed linter or formatter. Of the 400 solved attempts, 32 failed a code check. Many more passed those checks but received a request from the review judge. Its examples included changes made in the wrong layer, behavior outside the issue’s scope, and tests or changelog entries that did not follow repository conventions. These are the kinds of details that a test result alone may not capture.

The benchmark also found that merge-ready rates varied more across repositories than across agents: among the eight repositories with at least three tasks, rates ranged from 3% to 40%, compared with 11% to 26% across agents. That points to a practical challenge for evaluation: a model’s performance on one codebase may not predict how well its changes fit another project’s conventions.

Success was not reliably repeated, either. Claude Code with Opus 5.5—the highest-scoring agent on merge-readiness—was judged merge-ready at least once on 20 tasks, but on all three runs for just six. A single successful attempt, then, did not establish that the agent would repeat it.

Nor did higher cost consistently mean more merge-ready work. Average cost per attempt ranged from $0.04 to $0.51, while merge-ready rates stayed within the 11%–26% range. Codex with GPT-6.1 Terra and GPT-6.2 Sol had the same merge-ready rate, 21%, although Terra cost half as much per attempt in this evaluation. These are results for the tested models, harnesses and tasks—not a general price-performance ranking.

A setup change helped in one small test

The researchers also explored whether an agent’s working setup could improve without changing its underlying model. On seven Vue tasks, they used an automated workflow to revise Claude Code’s repository instructions and add a read-only reviewer subagent. With Opus 5.5 fixed, the selected setup raised the merge-ready rate from 23% to 49% and the trustworthy rate from 77% to 96%.

That result is promising but narrow. The setup was developed using failures from the same seven tasks on which it was measured, and it was tested on just one repository and one agent. The reviewer and the code-review judge also used the same model, with similar criteria. The authors say the setup’s performance on new tasks remains untested.

What the benchmark can—and cannot—show

MergeReady-Bench makes an important distinction: “the tests passed” is not equivalent to “a maintainer would merge this.” But the latter judgment depends partly on three language-model judges, which the authors have not yet compared against maintainer ratings or judges from another model family. One judge is also the same model as one of the tested agents. That leaves room for bias or disagreement about what counts as a minor review request.

The benchmark is small, too: repository-level results often rest on only a few tasks, and the improvement case study covers one workflow. The authors report that the 10-task public release is easier than the full benchmark, so its scores should not be compared directly with the paper’s results.

This is an arXiv preprint, so its findings should be treated as provisional rather than as settled evidence. The study does not show that coding agents are generally ready—or unready—to replace human review. Instead, it offers a more demanding way to measure what happens after tests pass, and highlights why repeatability, project fit and honest reporting matter alongside task completion.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Why Passing Tests May Not Prove an AI Patch Is Correct

    Supporting evidence: Both studies provide evidence that passing tests alone does not establish a stronger quality outcome: MergeReady-Bench found 172 merge-ready attempts among 400 solved attempts, while SWE-Proof’s abstract reports that nearly a third of test-passing patches admitted formal counterexamples. These are compatible but distinct results from different tasks and evaluation methods; SWE-Proof is a preprint under review, and this comparison relies on its abstract.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.02506v1 — Original paper

      Excerpt reference: static/papers/2612.02506v1.md:272-330
      Basis: Paper text
      Source file SHA-256: 75b3c4399a7fa2c24da460a75a324f38c0ef26a2e96d8d7e16b60e15c909fa76

    • 2609.21190v3 — Original paper

      Excerpt reference: static/papers/2609.21190v3.md:15-69
      Basis: Paper text
      Source file SHA-256: deec578e59f477760ba19741fc72e9ba7c5ef33285d8895b6a9dc694e976ae1b

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.