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:
solved — the hidden tests pass and the existing tests still pass;
merge-ready — solved, plus every repository code check passes, plus a code-review judge has nothing to ask for;
trustworthy — the agent verified its change, stayed in its workspace, did nothing destructive, and its final report agrees with what it observed.
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:
An evaluation is built from a merged pull request, starting at the commit before the fix with the fix's tests hidden.
Before it scores anything, correct solutions must pass and wrong ones must fail; a reviewer that did not build the evaluation checks it; then it is frozen and fingerprinted, so any later edit is visible and needs a recorded reason and a fresh review.
Graders are previewed against passing, failing and empty runs before they are frozen, and judge–human agreement is tracked.
Infrastructure and judge failures are reported separately from agent failures.
A difference inside run-to-run noise counts as no difference.
Costs are estimated against a budget and approved before the first paid run; evaluations and results stay in the project, with no telemetry.
What to be careful about
Judge self-preference. Merge-readiness and trustworthiness both rest on LLM judges, and the judge is the same model as one of the six evaluated agents and as the reviewer subagent in the improvement case study. The judges' scores have never been compared with maintainers' ratings. The authors name this as the single most important next step, which is the right call: a benchmark whose headline metric is a judge's silence needs the judge validated against people.
Sample size. 150 attempts per agent gives roughly ±8 points on a solve rate; repository-level results rest on one to seven tasks; the case study is one agent, one repository, seven tasks, one trajectory.
Contamination has a shelf life. Source pull requests postdate the published model cutoffs, but the fixes are public now, so the protection lasts only until retraining.
No human end-to-end audit. Every task passed its controls and a separate agent's review; none has been audited end to end by a person.
The public subset is easier. Ten of the fifty tasks are released (three easy, six medium, one hard; twenty of the twenty-one hard tasks withheld), so scores on the public set are not comparable with the paper's.
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:
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.
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.