Newshot

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

Original text(via HN AI)

Computer Science > Software Engineering

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

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.
Comments: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: this https URL
Subjects:Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI)
ACM classes:D.2.5; D.2.4; I.2.2
Cite as:arXiv:2612.02421 [cs.SE]
(or arXiv:2612.02421v1 [cs.SE] for this version)
https://doi.org/10.48550/arXiv.2612.02421 arXiv-issued DOI via DataCite (pending registration)

Submission history

Access Paper:

  • HTML (experimental)

Ancillary files (details):

Additional Features

  • Audio Summary

Current browse context:

References & Citations

  • Google Scholar
  • Semantic Scholar

BibTeX formatted citation

Bookmark

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗