Locally Correct, Globally Wrong: The Defects Humans Had to Catch in an Agent-Built System: what it means for business leaders
A study of a deployed, agent-built system traces 95 defects across 57 agent commits to the human corrections that fixed them, and finds that automated tests caught only a minority.
1. What the method is
This is an empirical study, not a new tool. The authors took a deployed software system whose code was written by AI coding agents and asked which defects people had to find by testing it themselves. They linked agent-written code to the later corrections that humans directed, using a blame linkage procedure, and identified 95 defects spread over 57 agent commits. They then compared those defects against the taxonomy of function-level errors published by Tambon and colleagues. Many did not fit. The ones that fell outside clustered around two patterns: inconsistent sources of truth, where the same fact is held in more than one place and the copies disagree, and incomplete change propagation, where a change is made in one place but not carried to everything that depends on it. The paper also releases the defects as an initial dataset for benchmarking defect detection. We have read only the abstract.
2. Why the method was developed
Agent-written code is usually judged by whether it passes tests, and the benchmarks and error taxonomies the field relies on mostly look at one function at a time. That framing fits how code generation was first studied, but it does not match how agents are now used, which is to make commits inside a living system with many interdependent parts. The authors start from an observation most teams using these tools will recognise: code can pass its tests and still be wrong in ways a person finds only by using the product. Existing taxonomies describe what goes wrong inside a function, so they have little to say about faults that exist only in the relationship between parts of a system. The study was built to document that gap with evidence from real corrections rather than synthetic tasks, and to give later work a reference set grounded in what humans actually had to fix.
3. Who should care
Engineering leaders who have adopted coding agents, or are setting policy for them, are the first audience, because the finding bears directly on how much review and manual testing an agent commit needs before it ships. Quality assurance and test leads should care because it suggests that a green test suite is weak evidence for agent-written changes, and that the escaping defects have a recognisable shape that test plans can target. Product and delivery managers should factor it into estimates, since human testing remains part of the cost of agent-built features. Anyone evaluating vendors of coding agents or automated code review should treat benchmark scores based on function-level correctness with caution, because this study indicates those scores miss a class of defect that matters in production. Risk and platform teams responsible for data integrity have a stake too, given that inconsistent sources of truth are a data problem as much as a code problem.
4. How the method works
The abstract describes the method only in outline. The starting point is the version history of a deployed system in which agents authored commits. When a human later directed a correction, the blame linkage procedure traces the corrected lines back to the agent commit that introduced them, in the manner of version-control blame, which attributes each line to the change that last touched it. Each link between an agent commit and a subsequent human-directed fix is evidence of a defect that the agent introduced and a person caught. The resulting defects were then classified against Tambon and colleagues' function-level taxonomy, with those that did not fit grouped into new categories, and each was checked for whether automated tests had caught it. The abstract does not say how the linkage handles refactoring or changed requirements, who did the classification, or how agreement between classifiers was measured, so we cannot judge how reliable the labels are.
5. How it was evaluated
The evidence is a single deployed software system, from which the authors drew 95 defects across 57 agent commits. The reference for what counts as a defect is the human-directed correction, not a test oracle or a synthetic bug, which is the study's main strength: these are faults that real people found and thought worth fixing. The comparison point is an existing taxonomy rather than a competing method, so there are no baselines in the usual sense. The abstract does not name the system, its size, its programming language, the agent or model that wrote the code, the period covered, the total number of agent commits examined, or how many commits had no linked defect. Without those figures we cannot compute a defect rate per commit or compare it with human-written code, and the abstract makes no such comparison. This is a case study of one codebase, and the authors themselves call the dataset initial.
6. How it performed
The abstract gives two findings and few numbers. Many of the 95 defects fell outside the function-level taxonomy, particularly inconsistent sources of truth and incomplete change propagation, and only a minority were caught by automated tests; neither proportion is stated. The method also counts only defects that humans found and fixed, so anything still undetected is absent, and one system cannot tell us how far the pattern generalises across agents, languages or team practices. The authors present the work as exposing gaps in how agent-written code is assessed, not as a solution, and no detector is proposed or tested. Even so, the result matches what careful teams already suspect and it names the failure pattern precisely enough to act on: review agent commits for every place a changed fact or behaviour must also change, and keep human testing in the release path. Our call is to watch the research, while tightening our own review of agent-written changes along these lines now. (Source: arXiv 2612.04234, 2026)
← Back to dossier index