Tracing the fixes back

AI coding agents can produce code that passes its tests and is still wrong. A paper by Ding Lin Lee, Jiaxin Dai, Ivonne Wijaya and Fang Li tries to characterise what kind of wrong, using a deployed software system rather than a benchmark.

The method is a blame linkage procedure: take code written by agents, follow it to the human-directed corrections that came afterwards, and classify what was fixed. That gave 95 defects across 57 agent commits.

The defects do not fit the existing taxonomy

The authors compared their set against Tambon et al.’s taxonomy of function-level errors, and report that many defects fell outside it.

A cracked concrete surface seen close up
The defects that escaped were failures of scope rather than of local logic. Illustrative image. cottonbro studio · pexels · Pexels License

The two categories they single out are inconsistent sources of truth and incomplete change propagation. Both are failures of scope rather than of logic: each edited function can be correct on its own terms while the system as a whole holds two conflicting answers to the same question, or carries a change in three places out of four. That is the paper’s title.

Tests caught a minority

Only a minority of the 95 defects were caught by automated tests. This is the finding with the most direct consequence for practice, because passing tests is the signal most agent workflows treat as done.

It also explains the taxonomy gap. A test suite is organised around units, and a defect whose signature is a disagreement between two parts of a system does not surface at the unit a test is checking.

A stack of timber planks at a building site
Only a minority of the 95 defects were caught by automated tests. Illustrative image. Mark Stebnicki · pexels · Pexels License

What the authors release

The paper provides an initial dataset for benchmarking defect detection, using human-directed corrections as the reference. That is a different construction from the usual approach of injecting synthetic bugs, and it has the advantage that every item in it is a defect somebody actually had to fix in a running system.

The usual caveats apply: it is one deployed system, 57 commits, a preprint, and not peer reviewed. The classification depends on the blame linkage being right about which human edit corrects which agent commit.

What to watch

If the pattern holds elsewhere, the implication is uncomfortable for the way agent code is reviewed. The failures that survive are the ones no individual diff makes visible, which argues for review at the level of the change set rather than the commit — and for evaluations of agent-written code that measure consistency across a system, not correctness within a function.