titleGreen CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug
authorsXiaobo Chen, Yan Mo, Sihong He
date2026-12-01
venuearXiv (preprint, not peer reviewed)
idarXiv:2612.02421
affiliationUniversity of Massachusetts Amherst
upvotes3 (Hugging Face Daily Papers, 2026-12-05)
linksabs pdf hf code
cite
relatedGrepSeek: Training Search Agents for Direct Corpus Interaction
Quantifying and Expanding the Theoretical Capacity of Late-Interaction Retrieval Models
What Survives Preregistered Testing in Multi-Agent Handoffs?
Hierarchical Experimentalist Agents
Critic-R: Improving Agentic Search using Instruction-tuned Retrievers with Natural Language Introspective Feedback
abstractCoding 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.

bibtex

@misc{chen2026green,
  title={Green CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug},
  author={Xiaobo Chen and Yan Mo and Sihong He},
  year={2026},
  eprint={2612.02421},
  archivePrefix={arXiv},
  url={https://arxiv.org/abs/2612.02421}
}