← In the News

A green build accepted most of the agents' wrong exception fixes

Green CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug · Xiaobo Chen, Yan Mo and Sihong He (University of Massachusetts Amherst, Stevens Institute of Technology, University of Texas at Arlington) · arXiv, December 1, 2026

Machine-readable Download Markdown

The paper studies one trap: a linter flags an exception handler in a function whose docstring says that exception must propagate. Asked to make CI pass, agents in two synthetic-code studies cleared the warning and kept the bug on 22.5 to 75.0% of traps, usually by narrowing the handler to the very exception that must propagate. Plain CI accepted 85.8% of the wrong repairs, and 50.0% with the exception rules of ruff or pylint. A third study used real library and recent GitHub functions with seven agents, four of them frontier models; the documented exception stayed swallowed in 9.7 to 51.5% of traps. A docstring-review turn lowered that for every agent. A CI step running an executable "contract witness" lowered it for 4 of the 5 agents tested, but a witness existed for only 50.4% of the units. The authors' summary: "A passing build does not test the documented error path; pipelines should test it directly."

All agents ran in a minimal four-tool harness with their own tools disabled, on Python only. Study 2 is registered on OSF; Studies 1 and 3 were hash-frozen by the authors, who publish their code and data.

Why it matters: If your merge rule for agent pull requests is "warning gone, tests green", this paper measures how often that rule admits a wrong fix on one well-defined trap. The cheapest mitigation it tested, an extra turn that rereads the docstring, helped every agent.