Locally Correct, Globally Wrong: The Defects Humans Had to Catch in an Agent-Built System

AI coding agents can produce code that passes tests but still contains defects found during human testing. We examine these defects in a deployed software system by tracing agent written code to subsequent human directed corrections through a blame linkage procedure. We identify 95 defects across 57 agent commits and compare them with Tambon et al.'s taxonomy of function level error. Interestingly, many defects fell outside the taxonomy, particularly those involving inconsistent sources of truth and incomplete change propagation. Only a minority of defects were caught by automated tests. These findings highlight gaps in existing approaches to assessing agent written code. This paper provides an initial dataset for benchmarking defect detection using human directed corrections as reference.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-02
DOI
https://doi.org/10.48550/arxiv.2612.04234
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Locally Correct, Globally Wrong: The Defects Humans Had to Catch in an Agent-Built System

Ding Lin Lee, Fang Li, Ivonne Wijaya, Jiaxin Dai
arXiv
Software Engineering Research
preprint

Locally Correct, Globally Wrong: The Defects Humans Had to Catch in an Agent-Built System

Ding Lin Lee, Fang Li, Ivonne Wijaya, Jiaxin Dai
preprint en

Abstract

AI coding agents can produce code that passes tests but still contains defects found during human testing. We examine these defects in a deployed software system by tracing agent written code to subsequent human directed corrections through a blame linkage procedure. We identify 95 defects across 57 agent commits and compare them with Tambon et al.'s taxonomy of function level error. Interestingly, many defects fell outside the taxonomy, particularly those involving inconsistent sources of truth and incomplete change propagation. Only a minority of defects were caught by automated tests. These findings highlight gaps in existing approaches to assessing agent written code. This paper provides an initial dataset for benchmarking defect detection using human directed corrections as reference.

arXiv
Nanyang Technological University (SG)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon