TRANSMISSION // 2612.02421v1

A green build can still hide a swallowed error

Source published

A study of coding agents finds that passing CI can miss bugs in documented exception handling. Tests that check the promised error behavior caught failures that ordinary checks accepted.

AI-generated conceptual illustration for A green build can still hide a swallowed error
AI-generated conceptual illustration; not documentary evidence.

When an AI coding agent removes a warning and gets a green build, has it fixed the underlying problem? A preprint study tests that question using exception handlers that were supposed to let certain errors propagate—and finds that ordinary CI often did not check whether they still did.

The test behind the warning

Continuous integration (CI) runs automated checks on software changes. A build that passes can be reassuring, but it only demonstrates that the checks actually run have passed. The preprint Green CI, Swallowed Errors: LLM Agents Clear Warnings but Keep the Bug examines a specific gap: a function’s docstring says an exception must be allowed to propagate, but its code catches and suppresses it. A static-analysis tool flags the handler. An agent asked to clear the warning might remove the warning without restoring the promised behavior.

The researchers evaluated coding agents on three studies. Two used synthetic code; the third used functions from real libraries and recent GitHub projects. In the tests, hidden checks assessed whether the documented exception behavior was preserved. The researchers also compared ordinary CI with checks that included exception-related rules from ruff or pylint, and examined interventions such as asking the agent to review the docstring or adding a CI check derived from it.

Passing checks did not guarantee the behavior

Across the two synthetic-code studies, agents rarely suppressed warnings when the code had no underlying bug: the abstract reports rates of at most 1.2%. But on the planted traps, they cleared the warning while leaving the bug in 22.5% to 75.0% of cases. A common repair narrowed the handler to the very exception that the documentation said should propagate.

Ordinary CI accepted 85.8% of these incorrect repairs. With the exception rules of ruff or pylint, it accepted 50.0%. The abstract says a generic reminder helped one of three agents, while a docstring-review turn and a CI check based on the docstring helped all three.

The third study tested seven agents on real-library and recent GitHub functions. Under the original CI, agents still left the documented exception swallowed in 9.7% to 51.5% of traps. A review turn reduced that rate for every agent; an executable contract check in CI reduced it for four of the five agents tested. For the half of units with such a check, the reported rate fell from 12.6%–54.8% to 0.0%–6.0%. The authors label that last comparison post hoc, so it should be read as exploratory rather than as a definitive estimate.

What the results do—and do not—show

The central lesson is narrow but useful: a clean build and a cleared static-analysis warning cannot establish that a documented error path still works if no check exercises that behavior. In these experiments, directly testing the contract—the behavior promised in the docstring—helped expose or prevent the defect.

This is not evidence that coding agents generally make buggy changes at these rates. The scenarios focus on one kind of exception-handling error, and the reported percentages depend on the study’s tasks, agents, and checks. The evidence available here is the paper’s abstract, not its full methods or tables, so details needed to assess sampling and uncertainty are unavailable. The work is an arXiv preprint and may not have been peer reviewed. Its findings support testing documented error behavior in these settings, not a blanket conclusion about all CI pipelines or AI-generated code.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • When AI coding agents get a map to the rules

    Supporting evidence: Both studies show that passing ordinary checks can misrepresent repair quality: Chen et al. found CI accepted many repairs that still swallowed a documented exception, while Wynter found defect-removal scoring could count deleting the affected feature as success. The specific failure modes and experimental settings differ, so this supports the bounded point that evaluations should check preserved behavior or features, not merely a green build or vanished defect.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.02421v1 — Original paper

      Excerpt reference: static/papers/2612.02421v1.md:13-75
      Basis: Paper text
      Source file SHA-256: 4022d9869b9c7d47e5dd47cb115bae0653d570ea0bb4576afb0732e922bb0859

    • 2611.29162v2 — Original paper

      Excerpt reference: static/papers/2611.29162v2.md:13-45
      Basis: Paper text
      Source file SHA-256: a448b5a31f6b23c51d8f7b5a49e2d56d65cd68c3a801cce2013dc7b6d831e583

    • 2611.29162v2 — Original paper

      Excerpt reference: static/papers/2611.29162v2.md:1063-1105
      Basis: Paper text
      Source file SHA-256: a448b5a31f6b23c51d8f7b5a49e2d56d65cd68c3a801cce2013dc7b6d831e583

  • Why AI coding agents struggle to clean up old code

    Supporting evidence: Both papers report that functional test outcomes alone can miss important repair failures: Chen et al. show that builds may pass while documented exception behavior remains broken, and Yuan et al. report that tests alone do not establish that obsolete code was removed and that cleanup runs can also regress previously passing tests. These are distinct Python tasks and failure types; the connection is limited to the need for outcome-specific checks beyond a single pass/fail test result.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.02421v1 — Original paper

      Excerpt reference: static/papers/2612.02421v1.md:13-75
      Basis: Paper text
      Source file SHA-256: 4022d9869b9c7d47e5dd47cb115bae0653d570ea0bb4576afb0732e922bb0859

    • 2611.30350v1 — Original paper

      Excerpt reference: static/papers/2611.30350v1.md:87-237
      Basis: Paper text
      Source file SHA-256: 19610934d8371be1b1a7e11462b83306f2949494b09bec5f1b7ba9a037c60de7

    • 2611.30350v1 — Original paper

      Excerpt reference: static/papers/2611.30350v1.md:1043-1100
      Basis: Paper text
      Source file SHA-256: 19610934d8371be1b1a7e11462b83306f2949494b09bec5f1b7ba9a037c60de7

  • What Code Do Coding Agents Leave Behind?

    Supporting evidence: Both papers argue for evaluating coding-agent outputs beyond task completion: Chen et al. measure whether repairs preserve documented exception behavior, while Gandhi et al. measure code-volume, complexity, and maintainability-metric changes alongside functional outcomes. They study different outcomes and setups, so this supports only the bounded evaluation principle, not a shared metric or a claim that one intervention improves the other's outcome.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.02421v1 — Original paper

      Excerpt reference: static/papers/2612.02421v1.md:2765-2814
      Basis: Paper text
      Source file SHA-256: 4022d9869b9c7d47e5dd47cb115bae0653d570ea0bb4576afb0732e922bb0859

    • 2612.01914v1 — Original paper

      Excerpt reference: static/papers/2612.01914v1.md:15-66
      Basis: Paper text
      Source file SHA-256: 90af2f8391b1881c227dce36be55e809107ec119f17d38e392d131fb81fa09b8

    • 2612.01914v1 — Original paper

      Excerpt reference: static/papers/2612.01914v1.md:555-613
      Basis: Paper text
      Source file SHA-256: 90af2f8391b1881c227dce36be55e809107ec119f17d38e392d131fb81fa09b8

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.