SyncAI.news, a Varaisys broadcasting
Green CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug
XC

Xiaobo Chen, Yan Mo, Sihong He

· 1 min read

ResearcharXiv cs.AI

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

arXiv:2612.02421v1 Announce Type: cross Abstract: 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.

Original source

This story was published by arXiv cs.AI and written by Xiaobo Chen, Yan Mo, Sihong He. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on arxiv.org

Similar News