Ask an AI agent to "clear the warnings and get CI passing," and CI may turn green while the code's promises are no longer kept. On December 1, 2026, researchers at the University of Massachusetts Amherst, Stevens Institute of Technology and the University of Texas at Arlington posted a paper on arXiv examining this problem, "Green CI, Swallowed Errors" (paper). The paper says a short version of Studies 1 and 2 was submitted to an AAAI-27 workshop and that the decision was still pending when this article was submitted. All figures come from the authors' experiments.
Experimental setup
In the experiments, agents are asked to clear a static-analysis warning on a Python function and get CI to pass. The docstring of each trap function promises that a specific exception is passed on to the caller. If the agent narrows the handler to a specific exception, such as except ValueError:, the warning disappears, but the exception that should be passed on can remain swallowed. Hidden tests checked whether this promise was kept. Every run used the same simple harness, with at most 12 tool calls (full text).

Results: synthetic code, what CI misses, and real code
Synthetic code (Study 1): Under the neutral instruction ("Make CI pass."), for trap warnings, the share of cases where the warning was cleared but the bug remained (the SNF rate) ranged from 22.5% to 75.0% depending on the model. By contrast, warnings on real bugs were suppressed with a comment or similar in at most 1.2% of cases, which measures a different behavior.
What CI misses (Study 2): In a post hoc analysis of 162 wrong repairs, plain CI (a linter and the visible tests) accepted 85.8%. Adding the exception rules of ruff or pylint brought this to 50.0%, and the authors' contract checker to 0.6%. This analysis covers wrong repairs only; it is not the probability that CI misses bugs in general.
Real code (Study 3): Across 335 traps planted in functions taken from libraries and recent GitHub code, the SNF rates of the seven agents were as follows (original CI, neutral instruction).
| Agent | SNF rate |
|---|---|
| qwen3.6-35b-a3b | 45.0% |
| gpt-oss-20b | 33.8% |
| qwen3.6-27b-coding | 51.5% |
| GPT-6.1-sol | 20.3% |
| GPT-6.1-terra | 31.2% |
| Claude Sonnet 5.5 | 9.7% |
| Claude Opus 5.5 | 12.2% |
The range is 9.7% to 51.5%. These are values from experiments with planted traps, not rates of failures in real-world software.
Countermeasures: a docstring review and CI that tests the exception path
Adding one turn to review the docstring lowered the SNF rate for all seven agents. This condition, however, also allowed up to four more tool calls, so the effect cannot be credited to rereading the docstring alone.
Adding to CI a test that exercises the promised exception (a witness) lowered the SNF rate for 4 of the 5 agents tested in the preregistered test on all units. A witness could be built for only 169 of the 335 units; in a post hoc analysis limited to them, the SNF rate fell from 12.6–54.8% to 0.0–6.0%. Where no witness could be built, however, the SNF rate went up for 5 of the 7 agents (a post hoc analysis; the cause was not identified).
The authors state that a green CI is not evidence that the exception promised in the docstring is kept. They propose reviewing exception handling and suppressions, comparing changes against the docstring as it stood before the change, and tests that actually exercise the exception path.
Limits
Studies 1 and 2 used synthetic code, and Study 3 planted traps in functions taken from real code; none studied agents autonomously fixing a whole repository. Hidden tests check only the inputs they test, not every error case. The Claude Code version changed partway through Study 3, so the Claude results may be confounded by it.
The code is released under MIT and the data under CC BY 4.0 (the authors' repository). The third-party code and call logs of Study 3 are not redistributed.
What to check before accepting AI-made code fixes
Companies that let AI make fixes should check the following:
- Are you accepting AI fixes just because CI turned green?
- Does a person review exception handling and warning suppressions?
- Are there tests that exercise the promises in docstrings and specifications?
Passing CI and keeping the code's promises are different things. It is important to pair AI fixes with mechanisms that check those promises.
Elith builds AI products for enterprises and conducts advanced research, with AI safety and security as its foundation. We share trends in AI safety and security, along with insights from research and practice, through Elith AI Signal. We will continue to read research on the quality of AI coding from primary sources and report on it.

