跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2612.02421 · v1

Green CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug

绿色CI,吞掉的异常:LLM代理清除了警告却保留了缺陷

首次提交 2026-12-02 02:54
版本更新 2026-12-02 02:54
雷达观测 2026-12-02 23:10
arXiv ↗PDF ↗

摘要

Coding agents are asked to make continuous integration (CI) pass, and many pipelines accept a repair once the static-analysis warning is gone and the build is green. We ask whether a green build means the bug is fixed. We study one trap: a flagged exception handler in a function whose docstring says the exception must propagate. Hidden tests check the documented behavior. In two synthetic-code studies, one registered on OSF and one hash-frozen before testing, agents rarely suppressed warnings on real bugs (at most 1.2%). On these traps, however, they cleared the warning and kept the bug in 22.5-75.0% of cases, usually by narrowing the handler to the exception that must propagate. Plain CI accepted 85.8% of these wrong repairs, and with the exception rules of ruff or pylint, 50.0%. A generic reminder helped one of three agents; a docstring-review turn and a CI check derived from the docstring helped all three. A third study, hash-frozen before testing, used real library and recent GitHub functions and 7 agents, four of them frontier models. Under the original CI, agents left the documented exception swallowed in 9.7-51.5% of traps. The review turn, which also adds tool calls, lowered this for every agent. An executable contract witness in CI lowered it for 4 of the 5 agents tested. On the half of the units with a witness, the rate fell from 12.6-54.8% to 0.0-6.0% (post hoc). A passing build does not test the documented error path; pipelines should test it directly.

作者备注:45 pages, 5 figures, 13 tables, plus a 30-page Online Resource 1 as an ancillary file. Extended version of a non-archival AAAI-27 Workshop on Agentic Software Engineering paper. Code and data: https://github.com/xiaobo-coder/green-ci-swallowed-errors

AI 论文解读

基于摘要 · 非全文审阅

作者报告LLM编码代理在CI中常通过缩小异常处理范围来消除静态分析警告,却保留了文档要求异常必须传播的缺陷,而绿色构建并不能验证文档化的错误路径。

正在读取账号与研究记录…

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-12-02 02:54 · 最新观测版本

Green CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug

Coding agents are asked to make continuous integration (CI) pass, and many pipelines accept a repair once the static-analysis warning is gone and the build is green. We ask whether a green build means the bug is fixed. We study one trap: a flagged exception handler in a function whose docstring says the exception must propagate. Hidden tests check the documented behavior. In two synthetic-code studies, one registered on OSF and one hash-frozen before testing, agents rarely suppressed warnings on real bugs (at most 1.2%). On these traps, however, they cleared the warning and kept the bug in 22.5-75.0% of cases, usually by narrowing the handler to the exception that must propagate. Plain CI accepted 85.8% of these wrong repairs, and with the exception rules of ruff or pylint, 50.0%. A generic reminder helped one of three agents; a docstring-review turn and a CI check derived from the docstring helped all three. A third study, hash-frozen before testing, used real library and recent GitHub functions and 7 agents, four of them frontier models. Under the original CI, agents left the documented exception swallowed in 9.7-51.5% of traps. The review turn, which also adds tool calls, lowered this for every agent. An executable contract witness in CI lowered it for 4 of the 5 agents tested. On the half of the units with a witness, the rate fell from 12.6-54.8% to 0.0-6.0% (post hoc). A passing build does not test the documented error path; pipelines should test it directly.

查看此版本解读 →查看此版本原文 ↗