Can a system's failures be told apart from its logs?
Paper: Telling Failures Apart: Fault Injection, Failure Diagnosis and AI Code Changes
Preprint. It has not yet been peer reviewed.
The short version
When a system fails, engineers work out what went wrong from the evidence it reports, such as logs, error messages and responses. I injected failures into an open-source billing system at six code paths through eleven entry points, and checked which kinds of failure leave evidence that can be told apart. In the release studied, 56 of 235 pairs of failure kinds could not be told apart (leaving out one entry point whose log was too unstable to measure). Careless edits that made this worse mostly went unnoticed by the existing tests, while 141 changes made by AI models made none worse.
What I found
- In the release studied, 56 of the 235 pairs of failure kinds measured left evidence that could not be told apart (leaving out one entry point whose log was too unstable to measure).
- Of 27 careless edits planted in the code, 8 made failures harder to tell apart. Existing tests caught 1 of those 8, and none of the 5 that left the business outcome unchanged.
- Two AI models made 144 maintenance changes, half of them with an instruction to keep failures distinguishable. 141 compiled, and none of the 141 made any pair harder to tell apart (95 percent interval: 0 to 3 percent).
Why it matters
When different failures look the same in the logs, the person fixing them has to guess, and a billing error can take longer to find. In this system, the larger risk lay in the existing code and in tests that do not check whether different failures still leave different evidence, more than in AI-made changes.
How the study was done
At each of six code paths, reached through eleven entry points, between 5 and 12 kinds of failure were injected, and each case was run twice. Each pair of failure kinds was then compared for evidence that tells them apart. The findings apply to this one system and release.
How to cite
Thapa, S. J. (2026). Telling Failures Apart: Fault Injection, Failure Diagnosis and AI Code Changes [Preprint]. Zenodo. https://doi.org/10.5281/zenodo.24429391