研究追踪 95 个 AI 编程智能体缺陷:局部正确但全局出错
Locally Correct, Globally Wrong: The Defects Humans Had to Catch in an Agent-Built System
研究者把 57 个智能体提交里被人类修掉的 95 个缺陷逐条归因,发现大半缺陷现有错误分类法根本覆盖不了,自动测试也抓不住。做代码评审流程或智能体评估的工程师能直接拿这份数据集来测自家检测方案。
arXiv 论文(编号 2612.04234)通过 blame linkage 方法,将智能体提交的代码与后续人类修正关联,在 57 个智能体提交中识别出 95 个缺陷。这些代码虽通过了自动测试,但在人工测试阶段暴露问题。研究者将缺陷与 Tambon 等人提出的函数级错误分类法对照。
结果显示,大量缺陷落在该分类法之外,典型模式包括“真相来源不一致”和“变更传播不完整”——即局部代码正确,但与系统其他部分脱节。只有少数缺陷能被自动化测试捕获。
论文还公开了以人类修正为参照的缺陷检测初始数据集,可用于基准测试。这提示现有评估智能体代码质量的方法存在盲区,纯靠测试通过率不够。
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.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include AI coding, agents, code quality.
Source attribution: curated from arXiv cs.AI (@Ding Lin Lee, Jiaxin Dai, Ivonne Wijaya, Fang Li).