R498 · Agent principles and patterns › Evaluation data for agents

Solved is not merge-ready: 900 attempts, 172 merges

Read the original

benchmarks, coding-agents, code-review, evaluation, judges, claim-checking

MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing — Priyatham Kattakinda, Wenxiao Wang, Soheil Feizi (RELAI.ai), November 2026. Paper shipped inside the relai-ai/agent-eval-loop repository; benchmark subset on Hugging Face.

The claim

Coding agents are judged almost entirely on whether their change makes the tests pass. A maintainer asks more: does the change stay inside the request, does it sit where the behaviour lives and reuse the existing helpers, does it come with tests that match the repository's conventions, and can the agent's own account of what it did be believed. MergeReady-Bench measures those.

Fifty tasks, built from pull requests opened on or after 2026-08-25 in twenty open-source repositories. Each attempt is graded on three outcomes:

Four results

1. The merge-ready rate is far below the solve rate. Of 900 attempts (six agents × fifty tasks × three runs), 400 are solved and only 172 are merge-ready. Every agent keeps fewer than half of its solved attempts.

The gap is not tooling hygiene. Only 32 of the 400 solved attempts fail a code check at all — formatting 15, lint 10, build 4, type check 3, scope 2. What stops the other 178 is a minor review request: a missing changelog entry, a fix placed in the wrong layer, a behaviour change the issue did not ask for. On 20 of the 50 tasks no agent was merge-ready in any run, although only 9 tasks went entirely unsolved.

2. Merge-readiness does not track cost. Mean cost per attempt varies thirteen-fold across the six agents, from $0.04 to $0.51, while merge-ready rates stay between 11% and 26%. One harness reaches the same 21% with a model that costs half as much as its flagship; one mid-priced model has the lowest merge-ready rate of the six despite being the third most expensive.

3. The repository matters more than the agent. Among the eight repositories with at least three tasks, merge-ready rates run from 3% to 40% — a wider spread than the 11–26% across agents. The solve rate does not predict it: one repository's tasks are solved in 42% of attempts and are almost never merge-ready.

4. Merge-ready outcomes barely repeat. The best agent is merge-ready at least once on 20 tasks, and in all three runs on only 6. Solved outcomes are moderately repeatable; merge-ready outcomes are not.

Trustworthiness, measured separately

Trustworthy rates run from 71% to 87%. Of 900 attempts, 178 are not trustworthy: 144 score 0.5 on report accuracy (an overstated or vague claim), 11 score 0 (a claim the agent's own observations contradict), and 33 fail process safety. Among the process failures, 28 skipped verification — most often by editing code or tests after the last test run and not running them again — 3 broke the repository's rule to write the failing test before the fix, and 2 were destructive: the same model, on the same task, in two different runs, ran git checkout on a source directory and discarded uncommitted changes in fourteen files it had not made.

No task plants an adversarial instruction, so these counts measure carelessness and overstatement, not resistance to attack.

How the tasks are controlled

Each task has to pass a four-way control before it is used. The merged fix must pass the hidden tests, and so must an alternative fix of a different design; the unmodified repository must fail them, and so must known-incorrect fixes. The merged fix shows the tests are passable, the alternative shows they do not reward one particular implementation, and the two failing controls show they catch real mistakes.

Every trial runs in a fresh cloud sandbox with the task's own CPU, memory and time limits, pinned by image digest.

The improvement loop, without changing the model

The same frozen tasks can drive setup changes. On seven tasks from one repository, an agent revised its own configuration — adding a bug-fixing workflow file and a read-only reviewer subagent — and raised the merge-ready rate from 23% to 49% and the trustworthy rate from 77% to 96%, with the model held fixed. The resulting branch also lists the changes that were tried and discarded because they did not beat run-to-run noise.

That is consistent with result 3: what moves merge-readiness is repository-specific convention, and convention lives in instruction files and reviewers rather than in weights.

The tool

agent-eval-loop is the Apache-2.0 plugin that produces these evaluations from a repository's own history. Its discipline is the interesting part, not the convenience:

What to be careful about

Why it matters for a team

If you pick an agent on its solve rate, you are measuring something that overstates how often its change could be merged without another round of review, and that repeats across runs far better than the thing you care about. Two practical consequences:

  1. Measure on your own repositories. The spread across repositories is wider than the spread across agents, so a leaderboard position transfers worse than a local number built from your own merged history.

  2. Spend on convention, not only on the model. Of the 228 solved-but-not-merge-ready attempts, 178 pass every mechanical check and draw only a minor review request. That is instruction-file and reviewer work, and the case study shows it moves the number with the model held fixed.

Connections

See R498 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.