Time-Sliced Conflicts: Multi-Fault Diagnosis from Versioned Telemetry

When two things break at once in a distributed system, the fault that happened second often hides the first. A database gets throttled upstream, traffic to a leaking downstream container falls, and by the time an engineer looks, the container's memory graph appears calm. Current root-cause tools for microservices inspect a single window of metrics and return the one component that best explains it. Two leading methods say so explicitly: Robust Root Cause Diagnosis using In-Distribution Interventions "assumes a single root cause per simple path," and Root Cause Analysis of Outliers with Missing Structural Knowledge says multi-fault extension is future work. The standard public benchmark, The PetShop Dataset, contains only single-fault injections, so this weakness has never been measured.

This note proposes the following. A masked fault is usually visible at some earlier moment, before the fault that hides it has spread. So diagnosis should reason over the history of the system rather than a snapshot of it. We use consistency-based diagnosis, which models how a healthy system behaves and finds the smallest sets of components whose failure would explain the contradictions. We run it separately on each time slice of a versioned telemetry store. We then require one diagnosis that explains every slice, under the rule that a fault, once present, stays present. The versioning layer serves two purposes. It lets us ask what was known at a given moment, so late-arriving or corrected metrics do not leak hindsight into the evaluation. It also lets us update diagnoses incrementally when old data is revised.

Core Claim

Consistency-based diagnosis finds contradictions between a model of healthy behavior and observations. Diagnosis Based on Description of Structure and Function introduced the idea. Reasoning about Multiple Faults (the General Diagnostic Engine, GDE) made it practical. Each contradiction yields a conflict set: a group of components that cannot all be healthy. A diagnosis is then a minimal set of components that touches every conflict, known as a minimal hitting set. This machinery handles multiple faults natively, but it has always been applied to one body of observations.

Our claim concerns what happens under masking. The conflicts gathered across valid-time slices form a strictly larger and more informative collection than the conflicts at the final snapshot. Adding a persistence constraint turns them into a multi-fault diagnosis that recovers faults a snapshot method cannot see.

Formally, let $\mathrm{SD}$ be the healthy-behavior model. Let $\mathrm{OBS}_{t,\tau}$ be the observations valid at time $t$ as stored in the database by transaction time $\tau$. Let $D_t$ be the set of components hypothesized faulty at valid time $t$. A trajectory $\{D_t\}$ is an admissible diagnosis as of $\tau$ if it satisfies

$$\mathrm{SD}\cup \mathrm{OBS}_{t,\tau}\cup\{\mathrm{Healthy}(c) : c\notin D_t\}\nvdash\bot \quad \text{for all } t\le\tau, \qquad D_t\subseteq D_{t'} \text{ for } t<t'.$$

We report the minimal final sets $D_\tau$. Valid and transaction time are the two clocks of bitemporal data modeling described in Letter from the Impact Award Winner: valid time is when something was true in the world, and transaction time is when the database learned it.

The persistence constraint is what transfers evidence forward in time. A conflict that fired at $t_1$ and was later masked still has to be hit by $D_\tau$. The constraint is also an assumption that intermittent faults violate, and we test that failure mode directly.

Positioning Against Prior Work

The closest existing bridge is From Causes for Database Queries to Repairs and Model-Based Diagnosis and Back. Bertossi and Salimi prove that query causality and database repairs reduce to consistency-based diagnosis and hitting sets. That work supplies the logical correspondence we rely on. It operates on one static database instance, with no deltas, versions, or time. We move in the opposite direction: we use the versioned history as the object of diagnosis rather than tuples in one state.

Transactions Make Debugging Easy (TROD) records transaction provenance and can rewind state to any point. Its authors report debugging queries over billions of events in under five seconds. TROD motivates our design, because it shows that versioned rewind is cheap enough to use routinely. It also leaves diagnosis to hand-written SQL and evaluates single bugs.

Earlier temporal extensions of model-based diagnosis attach qualitative interval logic to physical signals: Model-based Diagnosis with Qualitative Temporal Uncertainty, Modeling Uncertain Temporal Evolutions in Model-based Diagnosis, and sequential spectrum methods such as Spectrum-Based Sequential Diagnosis. These constrain our design, because the file reports that their hitting-set generators become intractable beyond one or two faults over long horizons. We therefore avoid modeling full temporal dynamics. We keep each slice's model static and put all temporal reasoning into the single persistence constraint, which is cheap to encode.

The causal methods, IDI and SMOOTH TRAVERSAL/SCORE ORDERING, supply both the competition and a method component. IDI's local "is this node anomalous given its parents under a model fitted on normal data" test is essentially a consistency check. We reuse it as our conflict generator.

Research Program

Healthy-behavior model. The model comes from the PetShop dependency graph (graph.csv, 41 AWS components). Each service and each metric sensor is a separate component, so that sensor faults can also be diagnosed. For every node we fit, on fault-free periods, a regression from its parents' metrics to its own, together with an in-distribution tolerance band, following IDI's normal-range fitting.

Conflict generation. When an observed value leaves its band, the components whose health assumptions were used to derive the prediction form a conflict: the node, its sensor, and the parents' sensors. This is exactly GDE's notion of a conflict.

Diagnosis search. Conflicts are computed per 5-minute slice and tagged with the slice's valid time. Candidate diagnoses are obtained as minimal hitting sets under persistence. The search is posed as a constraint problem with time-indexed Boolean fault variables and monotonicity clauses, as in Diagnosing. We use the incremental hitting-set techniques of Parallelized Hitting Set Computation for Model-Based Diagnosis and Exploring the Duality in Conflict-Directed Model-Based Diagnosis.

Versioning mechanism. Each conflict carries a label: the set of observation versions it was derived from, extending the truth-maintenance labels of GDE with transaction-time identifiers. When a metric is backfilled or corrected, only conflicts whose labels include the revised observation are retracted and recomputed. This is the setting An open repository of real-time COVID-19 indicators describes for epidemiological data, where what was known at $t'$ differs from what was true at $t$.

Output. Diagnoses are reported with the Faulty/Suspected/Normal status of DETERMINING A COMPONENT'S FAULT STATUS AND THE STATUS' READINESS. Operators see which components every explanation blames and which are only possibly at fault.

Multi-fault benchmark. We build one, since none exists. The PetShop repository is open-source. We re-deploy it and inject paired faults from its four classes (overload, memory leak, CPU hog, misconfiguration) at controlled onset gaps of 0 to 60 minutes. Some pairs are placed where the upstream fault throttles traffic to the downstream one, which produces masking by construction. We keep single-fault reruns as controls.

We complement this with the synthetic random-DAG setup used by IDI and Orchard et al. There we inject two or three root causes with propagation delays and a tunable masking strength: the degree to which the later fault suppresses the earlier fault's downstream signal. We also include non-polytree graphs, where Orchard et al.'s guarantees lapse.

To test versioning, we replay the metric streams with realistic late arrival and corrections, and store them bitemporally.

Baselines

The naive reference point is a snapshot single-fault ranker. It is IDI applied to the final window, returning its top-1 node. This measures how much the single-fault shortcut costs under masking.

The strongest existing competitor is IDI with its Shapley-based multi-node attribution, which is the closest thing in the file to multi-cause output from a top-performing method. On single-fault PetShop, Robust Root Cause Diagnosis using In-Distribution Interventions reports Recall@1 between 0.90 and 1.00 across all categories. We also run SCORE ORDERING and SMOOTH TRAVERSAL from Root Cause Analysis of Outliers with Missing Structural Knowledge, which report 100% top-1 recall in several PetShop scenarios. We include CIRCA and Traversal as distributed with PetShop. We found no reported result on Lacuna for any method on multi-fault PetShop or multi-root synthetic DAGs. Those numbers will come from our own runs.

For fairness, every method uses the same normal-period data for fitting, the same dependency graph, the same windows, and the same hyperparameter search budget, selected on a held-out set of injections. Multi-cause baselines are given the true number of faults $k$ as an oracle and scored on their top-$k$ output. This favors them.

Two ablations isolate our key ingredients. The first is our engine on the final snapshot only, with no slicing; it tests whether time is what helps. The second is slicing without the persistence constraint, which takes the union of per-slice diagnoses; it tests whether the constraint, rather than simply seeing more windows, does the work.

Beating the baselines means this. On masked pairs, we must show higher exact-set recovery and higher recall of the masked fault than IDI-Shapley with oracle $k$, with nonoverlapping bootstrap intervals across injections. On single-fault controls, we must stay within a few points of IDI's reported range.

Why not just…?

Why not just run a single-fault method repeatedly, explaining away the top cause and re-ranking? Greedy peeling is the most natural fix. When both faults are visible in the final window, it may match us. It fails by construction when the second fault is masked. Removing the first cause from the final window does not restore a signal that the window no longer contains. Zheng et al.'s observation that one bug's statistics dilute another's, recorded in the file for statistical debugging, suggests the problem persists even without masking. We run peeling as a baseline and report results separately for masked and unmasked pairs. If peeling matches us on masked pairs, our claim is wrong.

Why not just run single-fault root-cause analysis in a sliding window and union the answers? This is the serious threat. It uses time just as we do, and it could catch the early fault before masking sets in. Three things differ. It still picks one cause per window, so simultaneous onsets break it. Windows after the cascade contribute confidently wrong answers that the union cannot reject. It also has no notion of a component being cleared, so it cannot say which components no explanation needs. The unpersisted-slicing ablation is close to this baseline, and we additionally run the literal IDI-per-window version. The onset-gap sweep settles the question. If the sliding-window baseline equals us at every gap, the logical machinery adds nothing, and the contribution reduces to "look at earlier windows."

Why not just train a multi-label classifier on multi-fault data? The file notes that labeled data for every fault combination is practically unobtainable. The deep models on CH-BatteryGen in Battery Fault are trained on single fault classes. We include a supervised multi-label model trained on half of our paired injections and tested on unseen pairs of fault classes. The prediction is that it degrades on held-out combinations while our engine, trained only on normal data, does not.

Why not just recompute from scratch instead of versioned conflict labels? For correctness, recomputation is equivalent. The labels matter only for latency and for honest as-of evaluation. We measure recompute time against incremental update under revision streams. If full recomputation is fast enough at 41 components, we will report the labels as an engineering convenience rather than a finding.

Proposed Experiments and Decisive Checks

The central experiment sweeps onset gap and masking strength on paired PetShop injections and synthetic DAGs. Metrics are exact diagnosis-set match, per-fault recall with masked-fault recall reported separately, false-blame rate on components labeled Faulty, and time from the first conflict to a correct Faulty status. The prediction is specific. Snapshot methods and snapshot-only ablation lose the masked fault as masking strength grows. Time-sliced conflicts hold, provided the onset gap exceeds one 5-minute slice. At zero gap, the advantage should vanish, and seeing it vanish there confirms the proposed mechanism.

The second check is honest as-of evaluation. We compare diagnoses computed at transaction time $\tau$ against diagnoses computed with all data eventually known. We quantify how much reported accuracy on any method depends on hindsight, and measure how quickly the versioned engine converges after corrections arrive.

The third check is a stress test on intermittent faults that self-clear, which violate persistence. Here we expect spurious persistent blame and quantify it. We also test a relaxed variant that allows one repair event per component.

Finally, we scale the synthetic graphs up to several hundred nodes and three simultaneous faults. This locates where the hitting-set search, even with persistence pruning, stops being interactive. That is the limitation the earlier temporal diagnosis work ran into, and we want to know how far this design pushes it.