Conformal Blame Sets for Cascading Microservice Failures

When one service in a large cloud application fails, dozens of services that call it, directly or indirectly, start missing their latency and error targets too. Operators then face a flood of alerts in which the real culprit looks no different from its victims. This note proposes a diagnostic that blames a service only when its own violation cannot be explained by the health of the services it depends on. It also comes with a statistical promise: with probability at least $1-\alpha$, no innocent service is blamed. Building this promise needs no labeled past incidents, only fault-free operating data, and labeled incidents are exactly what is scarce in production.

The recipe has three parts. First, each service's health is scored by a single real number, its robustness: a signed margin saying by how much the service met or missed a temporal requirement such as "p95 latency stays under 200 ms for every 30-second window." This is the quantitative semantics of Signal Temporal Logic (STL). Second, a model learns from healthy data what robustness a service normally has, given the robustness of the services it calls. Third, conformal prediction, a calibration wrapper that turns any model's errors into statistically valid bounds without distributional assumptions, converts the gap between predicted and observed robustness into a valid p-value for each service. Services with small p-values form a "blame set" with family-wise control of false blame.

Core Claim

Cascading failure turns the weakest-link structure of robustness semantics into a diagnostic problem. A conjunction's robustness is the minimum over its parts, so a service-level requirement reports only the worst bottleneck and hides where the violation came from. The research file lists this lack of cause attribution as an open limitation of quantitative semantics. Our claim is that conditioning each service's robustness on its callees' robustness, and calibrating that conditional model conformally on healthy data, separates "violating because a dependency is violating" from "violating on its own."

This rests on the intervention view of failures used by Root Cause Analysis of Failures from Partial Causal Structures, which models a fault as a change to the root cause's mechanism while all other services keep their conditional behavior. Under that view, a non-root service's post-failure score is exchangeable with its healthy calibration scores. Its conformal p-value is therefore valid even in the middle of an outage.

Concretely, let $r_i(t)$ be the robustness of service $i$'s requirement $\varphi_i$ at window $t$, and let $r_{\mathrm{Pa}(i)}(t)$ be the robustness vector of the services $i$ calls, taken from the trace-derived call graph. A quantile regressor $\hat q_i$ is trained on healthy data to predict the low ($\beta$) quantile of $r_i$ given $r_{\mathrm{Pa}(i)}$ and load. The score $s_i(t) = \hat q_i(r_{\mathrm{Pa}(i)}(t)) - r_i(t)$ is positive when service $i$ does worse than its dependencies explain. With $n$ held-out healthy calibration scores $s_i^{(1)},\dots,s_i^{(n)}$, the conformal p-value is

$$p_i(t) = \frac{1 + \#\{k : s_i^{(k)} \ge s_i(t)\}}{n+1},$$

and the blame set is $B(t) = \{i : p_i(t) \le \alpha/m\}$ over $m$ services, or the Holm step-down version. For every non-root service, $P(p_i \le u) \le u$. A union bound then gives $P(B(t) \text{ contains a non-root service}) \le \alpha$. Whether the true root cause appears in $B(t)$ is a power question, measured empirically, not guaranteed.

Relation to Prior Work

Three papers already join robustness semantics with conformal prediction, and they supply our method. Conformal Prediction for STL Runtime Verification builds conformal bounds on predicted robustness for single systems such as an F-16 and a CARLA vehicle. Conformal quantitative predictive monitoring uses conformalized quantile regression to predict future robustness from a lumped state vector, and composes monitors through min/max. Robust Conformal Prediction for STL Runtime Verification under Distribution Shift inflates conformal quantiles to absorb a total-variation-bounded shift, and its predicate-level variant reports which predicate was violated.

None of the three conditions one component's robustness on another's. The last paper can name a violating predicate but cannot say whether that violation is intrinsic or inherited, which is precisely the distinction we target. We reuse its divergence inflation to handle slow drift between calibration and deployment. We reuse conformalized quantile regression (Conformalized Quantile Regression) because a service's robustness spread depends strongly on load.

On the root-cause side, two methods search causal structure and return point rankings without distribution-free guarantees. RCG uses partial causal graphs and conditional mutual information. BRCD places Bayesian posteriors over interventional equivalence classes. Both treat metrics as static deviations. We borrow their intervention model but test invariance with calibrated temporal margins rather than raw marginal tests.

The closest guarantee-bearing work is W-CROC in Conformal Changepoint Localization and Root Cause Analysis with Corrupted Observations. It outputs conformal sets of culprit streams, but it assumes the streams are independent, looks for whichever changed first, and runs offline. Its "corruptions" are treated as noise to downweight. In a cascade, those deviations are causally driven by the topology, and our conditioning models them explicitly.

STL-CD motivates the robustness representation. It reports that Granger-style methods scored 0% where causal links depended on duration and magnitude thresholds, against 100% for logic-based features. STL-CD is pairwise and has no statistical validity guarantees; we keep the temporal-logic features and drop pairwise edge inference in favor of a known call graph.

Research Program

The work has four parts.

The first is a requirement layer. Each service gets a small STL requirement over its own telemetry, with latency deadlines, error-rate ceilings, and persistence windows. Its robustness is computed per window from the metrics and traces in RCAEval.

The second is the conditional model. A per-service quantile network takes its callees' robustness values (aggregated by min and mean, since fan-in varies) plus request rate, and is trained only on fault-free windows.

The third is calibration that respects time dependence. Calibration windows are drawn with gaps longer than the autocorrelation length, so that scores are approximately exchangeable. The research file notes that exchangeability breaks down along trajectories; we measure that breakdown directly. We then add the total-variation inflation of the robust STL monitor, with $\epsilon$ estimated from held-out healthy days.

The fourth is two extensions that address known weaknesses. To handle latent shared causes, which RCG explicitly excludes, we add host and node-level pseudo-services as extra parents. To handle repeated monitoring over an incident, we report a single blame set at the first window where any service's robustness turns negative, so the guarantee is per-incident rather than per-window.

Baselines

The naive reference is the alert storm itself: blame every service whose own requirement robustness is negative. A calibrated version of the same idea is the second reference: an unconditioned conformal p-value per service, computed on its own robustness against its healthy distribution, with the same Bonferroni or Holm rule. This is essentially the predicate-level monitor of Robust Conformal Prediction for STL Runtime Verification under Distribution Shift applied per service. Comparing it with our method isolates the key ingredient, graph conditioning. We expect it to control false alarms but not false blame, since victims really are abnormal. We beat it if, at matched nominal $\alpha$, our blame sets are much smaller while recalling the root equally often.

The strongest existing rankers are BRCD and RCG, together with TraceRCA from the RCAEval library. The file reports an overall Avg@5 of 0.77 for TraceRCA on RCAEval, and an Avg@5 of 0.63 for BARO on network delay faults. RCG reports 87% top-1 accuracy at 100 nodes against 78% for RCD on its synthetic graphs. For BRCD's Online Boutique, Sockshop, and Petshop results, the file gives no reported number on Lacuna.

All rankers get the same telemetry, the same healthy segments, and the same call graph where they can use one. Each gets the same hyperparameter search budget on a held-out deployment. Since they produce rankings, we compare in two ways. We rank by our p-values and report Avg@5 against them. We also threshold their scores to match our average set size and compare false-blame rates. Beating them means two things: matching TraceRCA's 0.77 Avg@5 overall and exceeding it on delay faults, while being the only method whose empirical false-blame rate stays at or below $\alpha$.

We also run W-CROC on the per-service streams with the same calibration data. Its reported multi-stream reduction in penalized set size, from 4.83 to 1.84 on CIFAR-100, is not a microservice result, so we produce its numbers ourselves. Two further ablations matter. The first replaces robustness with raw metrics in otherwise identical conditional conformal tests. The second removes the divergence inflation.

Why not just…?

Why not just conformalize BRCD's ranking with past incidents? Rank-based conformal sets of the W-CROC kind need a calibration pool of labeled incidents from the same distribution. RCAEval has 735 cases spread across systems and 11 fault types, and production has far fewer. That is the low-sample regime where BRCD itself works with five anomalous samples. Such sets would also guarantee coverage of the root, not exclusion of innocents. We will nonetheless run leave-one-incident-out conformalized BRCD as a baseline. If it gives smaller sets at equal recall, the advantage of needing healthy data only does not pay for itself.

Why not just regress raw latency on callee latency? This is the real threat. Graph-conditional conformal testing on raw metrics may capture most of the gain, and the raw-metric ablation decides it. We predict robustness helps in two cases. The first is persistence- and threshold-dependent faults, mirroring STL-CD's 0% versus 100% gap. The second is services with several metrics, where robustness gives one comparable margin. If the ablation ties our method on RCAEval, we will say the contribution is the conditional conformal test, with STL as an optional feature map.

Why not just use W-CROC, which already gives conformal culprit sets? It looks for the stream that changed first and treats other streams as independent. At typical scrape intervals, a callee fault and its callers' degradation often land in the same window, so "first change" cannot tell them apart. The W-CROC baseline run on RCAEval delay faults tests exactly this.

Why not just hand the telemetry to an LLM agent? On TraceRoot, non-reasoning models resolved only 1 of 5 incidents, and no agent offers a bound on false blame. Agents are better seen as consumers of our blame sets than as competitors.

Proposed Experiments

The main study uses RCAEval RE1 and RE2 on Online Boutique, Sock Shop, and Train Ticket, which has 64 services. It reports four quantities: empirical false-blame rate (the fraction of incidents where $B$ contains a non-root service) at $\alpha \in \{0.05, 0.1\}$, root recall, mean blame-set size, and Avg@5. Results are broken down by fault type, with delay faults singled out. Petshop from the BRCD evaluation tests the setting with missing values and near-constant metrics.

A synthetic suite tests the conditions under which the guarantee should hold or fail. It uses known DAGs of up to 1,000 nodes with duration-thresholded propagation. We inject latent shared-host faults and slow drift to check whether false blame exceeds $\alpha$ when invariance is violated, and whether host pseudo-nodes and divergence inflation restore control.

Three outcomes would be decisive. False-blame control must hold empirically on real deployments despite time dependence, or the core claim fails. Blame sets must be substantially smaller than the unconditioned conformal baseline at equal root recall, or graph conditioning adds nothing. And the gap between robustness and raw metrics on persistence-dependent faults tells us whether quantitative semantics earns its place.