Dear Deadline

English

English: the full tool.

Español: una página en español con lo más importante

An independent guide to benefit letters and bills: Social Security, Medicare, SNAP, Medicaid and housing. Not a government website.

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

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.

Read the paper (PDF) Data and code on Zenodo

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

All research · Go to the tool