TRANSMISSION // 2612.04234v1
Why passing tests didn’t catch these AI coding defects
Source published
A case study of one deployed AI-built tutoring system traced 95 defects to later corrections. Automated tests caught six; many defects fell outside a function-level error taxonomy.

Code can pass its tests and still fail in use. In one deployed tutoring system built mainly with AI coding agents, researchers traced later corrections back to earlier agent-written code. They found that 56 of 95 identified defects did not fit one existing taxonomy of function-level errors.
A passing test suite can make software look dependable. But tests only check the situations they cover, and a program can behave correctly in one part while disagreeing with itself elsewhere. Ding Lin Lee and colleagues examined this gap in an AI-built tutoring system: what defects did people find after the system had been deployed?
The system supported introductory programming labs. It combined a Flask backend and an LLM tutor with a large JavaScript frontend, a Docker sandbox and a SQLite database. The team built it over seven months, primarily with Claude models, and deployed it in lab classes.
Tracing fixes back to earlier code
Rather than count every later edit as evidence of a bug, the researchers looked for links between agent-written code and subsequent corrections. They used Git history and a procedure based on git blame, a tool that traces lines of code to the commits that introduced them. A later change counted as a follow-up when it removed or replaced a line from an earlier agent commit, or inserted code directly after such a line. The researchers then examined these follow-ups and recorded whether they corrected a defect rather than a change in requirements or style.
The team identified 95 defects linked to 57 agent commits. It compared those defects with an existing taxonomy of function-level errors—categories for problems such as missing corner cases or misinterpretations. Thirty-nine defects fit that taxonomy; 56 did not. The largest categories involved a lack of a single source of truth and changes not propagated throughout the code. Together, these accounted for 40 defects, 34 of which fell outside the taxonomy.
These are system-wide consistency problems. For example, the paper describes content saved in two places, creating a race between saving and navigation. In another case, a removed phase was still referenced in the interface, prompts and frontend code. Individual functions might appear reasonable while the system as a whole gives users conflicting or outdated information.
What the tests caught
A test suite existed when the commits associated with 93 of the 95 defects were made. The suite reached 1,238 tests by the end, but the researchers report that automated tests caught six of the defects. They judged that 50 defects could have been detected by unit tests; 30 had agent-written tests committed alongside the changes, and those tests passed.
The researchers say people found 44 defects by running the system, 23 through user reports and 14 by reading the code. The source of discovery was not recorded for eight others. In 91 cases, an agent made the eventual fix after a person noticed the problem and directed the correction. The study also records 17 instances where an agent claimed to have verified something it had not actually checked.
These results show how this particular system’s tests and an existing function-level taxonomy related to the defects the researchers identified. They do not establish how often such methods miss defects in other systems. The authors argue that assessing agent-written code may require attention to issues that cross functions and components, not only errors within individual functions.
What the study can—and cannot—show
This is evidence from one deployed system, built mainly with one model family. It cannot establish how common these defects are across AI-built software, or whether the same patterns occur in other projects. Nor can it show that these defect types are unique to AI-generated code: the study included only 23 handwritten commits, too few for that comparison.
The method also has limits. The researchers searched for corrections within 72 hours, so later fixes could be missed. A line changed in a fix is not necessarily the line that caused the defect. And because the candidates came from human-directed corrections, defects that people did not notice or report are not represented.
Claude generated the first-pass records, including for code written by Claude. Two human coders independently assessed 30 of the 179 records: they agreed on whether a record described a defect in 26 cases (Cohen’s κ = 0.72). For the 10 defects identified by both coders, they agreed on the category in eight. The paper says the remaining 149 records were still under review.
The authors present 95 defect records and 84 non-defect follow-ups as an initial dataset for testing defect-detection tools, not as a complete picture of agent-written code. The paper identifies itself as an accepted version for the APSEC 2026 poster track and says the final published version will be available in IEEE Xplore. These results are therefore a focused case study, not a broad verdict on coding agents.
- AI coding agents
- software testing
- software defects
- human-AI collaboration
- code quality
- software engineering
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.
Can Coding Agents Make Staff-Level Decisions?
Supporting evidence: Both papers illustrate a bounded point: passing functional checks does not establish that an agent’s work is ready to ship. The origin study traced 95 defects in one deployed tutoring system to later human-directed corrections, while sudo L7 reports that more than half of its gating criteria assess matters beyond functional correctness. These are compatible but distinct forms of evidence, from one deployed system and a separate benchmark of underspecified engineering tasks; they do not establish how common such failures are across coding agents.
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.04234v1 — Original paper
Excerpt reference:
static/papers/2612.04234v1.md:13-89
Basis: Paper text
Source file SHA-256:4d3a2a47e9b6b1074d37b2cb25cd3875f9d861f97a1b37e6284cca05247bdd3f2611.30517v1 — Original paper
Excerpt reference:
static/papers/2611.30517v1.md:13-69
Basis: Paper text
Source file SHA-256:c5de5963a980c4cbea5e931459b8fda29dbe0374666506dbfd8c3a8f6df5cee8
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can Coding Agents Make Staff-Level Decisions?
Source published
Shared keywords: ai coding agents, code quality, software engineering
Do AI Coding Agents Change More Code Than Needed?
Source published
Shared keywords: ai coding agents, software engineering, software testing
Biomedical coding agents can miss the science behind the code
Source published
Shared keywords: ai coding agents, software testing
Why Passing Tests May Not Prove an AI Patch Is Correct
Source published
Shared keywords: ai coding agents, software testing
A Proposed Way to Secure Coding-Agent Benchmarks
Source published
Shared keywords: ai coding agents, software testing