SIRCA: Root Cause Attribution in LLM Agent Trajectories via Static Interventions

Kun Jiang, Han Lin, Xingyu Liao, Guang Yang, Mengjie Zhang, Sijie Wu, Kai Zhang, Xingyu Yan, Bowen Liu, Jiantao Ye, Qitao Song, Xubin Li, Xin ChenarXiv 2026

TL;DR

When an LLM agent fails a complex, multi-step task, figuring out where it actually went off the rails is notoriously difficult—early mistakes snowball silently until the final output is ruined. SIRCA solves this like a forensic detective: it uses user complaints (or failure logs) as anchors, maps out how bad information propagated through an attribution graph, and runs virtual "what-if" repairs without ever needing to re-run the expensive agent execution.

What Problem Does This Paper Address?

Imagine an LLM agent optimizing a telecom network. In Step 5, it lazily guesses a configuration parameter instead of looking it up. In Steps 6 through 19, it performs flawless math using that bad number. In Step 20, it hands you a terrible recommendation, and you reply, "That calculation is wrong!"

Where is the bug? Your complaint points to Step 20—where the error manifested—not Step 5, where it originated. Because LLM agents generate actions autoregressively based on prior context, errors compound and propagate across steps. Existing debugging methods often struggle to disentangle the true origin step from downstream "messenger" steps that merely inherited the mistake. Others try to find the culprit by tweaking steps and re-running the agent from scratch, which is slow, expensive, and often impossible in live tool-using environments.

Methods

The authors introduce SIRCA (Static Intervention for Root Cause Attribution), a hybrid pipeline blending LLM reasoning with strict, deterministic programmatic rules so the LLM judge can't hallucinate evidence. It operates in four stages:

Figure 1: Overview of Static Intervention for Root Cause Attribution.
  1. Trajectory Structuring: Deterministic code parses messy chat logs, reasoning traces, and tool calls into an indexed, auditable sequence of steps.
  2. Negative Feedback Anchoring: An LLM scans user replies to extract explicit complaints (corrections, rejections) and verifies that quoted evidence actually exists in the log. If a dataset lacks user feedback, SIRCA synthesizes an anchor from the final task failure message.
  3. Feedback Graph Construction: Rather than feeding massive logs into an LLM all at once, SIRCA retrieves candidate steps sharing keywords, numbers, or file/tool artifacts with the complaint. An LLM then classifies each step's causal role—crucially distinguishing Error Origin from Error Propagation, Error Manifestation, or Missing Actions—and wires them into a weighted directed graph modeling how information and errors flowed downstream.
  4. Static Intervention Validation: This is the core novelty. Instead of replaying the agent, SIRCA performs static graph surgery. An LLM proposes minimal hypothetical repairs for top-ranked culprit nodes. SIRCA then mathematically removes those nodes from the attribution graph to calculate a counterfactual repair score—measuring how many error paths are severed, whether the fix is sufficient, and whether the edit is minimal—yielding the final set of root causes.

Datasets

SIRCA is evaluated across two distinct settings (no model training is involved):

  • Who&When (Public Benchmark): Contains 126 shorter Algorithm-Generated (AG) trajectories and 58 longer, complex Hand-Crafted (HC) trajectories. Each has a single annotated "decisive error" step, without explicit user feedback.
  • Wireless Agent Dataset (Newly Introduced): Released by the authors, this benchmark features 50 real-world telecom operations and wireless network optimization trajectories. Unlike Who&When, it includes explicit negative user feedback and multiple ground-truth root causes per trajectory.

Key Insights and Ideas

  • Separating the crime from the messenger: When evaluation rules are relaxed to allow being "off by one step" ($\text{Acc}_{\text{step}}^{(\pm 1)}$), baseline methods see massive accuracy jumps (+22.35 percentage points on AG), whereas SIRCA jumps much less (+12.43 points). Why? Baselines find the neighborhood of the error, frequently confusing the origin step with adjacent propagation steps. Explicitly modeling propagation sharpens the boundary.
  • Counterfactuals without execution: You don't need live environment rollbacks to test causality. Deleting nodes on a well-grounded dependency graph effectively approximates whether fixing an early step would block downstream user complaints.
  • Smarter LLMs don't automatically make better detectives: Testing five different LLM backbones (including DeepSeek-V4-Flash, Gemini-3.8-Flash, Grok-4.6, GPT-5.6-sol, and Kimi-K3) revealed no clear correlation between general model capability and root-cause accuracy. Structural scaffolding matters more than raw model horsepower.

Key Results

  • Single Root Cause (Who&When): On the AG subset, SIRCA hits 44.4% exact step accuracy (a 36.59% relative improvement over the strongest baseline, CHIEF, at 32.5%). On the much harder, longer HC trajectories, SIRCA reaches 24.1% exact accuracy (13.51% relative gain over Step-by-Step at 21.3%).
  • Multi-Root Cause (Wireless Agent Dataset): SIRCA achieves a trajectory-averaged $F_1$ of 23.3% (+9.58% relative to All-at-Once), a 47.3% hit rate for finding at least one root cause, and 36.4% recall (+32.52% relative gain).
Figure 3: Comparison of root cause localization performance across different methods on the multi root cause wireless agent dataset.
  • The Precision Trade-off: Notably, SIRCA's precision on the wireless dataset (19.6%) trails baselines (~23.2%). Its permissive candidate retrieval casts a wide net—catching far more true bugs, at the cost of occasionally flagging related non-root-cause steps.

Limitations and Future Work

  • LLM Judgment Bottlenecks: Despite strict programmatic evidence checks, SIRCA still relies on LLMs to score step roles, infer subtle dependencies, and judge repair sufficiency. Hallucinated or flawed assessments can skew the graph. Future work could use multi-model cross-validation.
  • Long-Horizon Degradation: Accuracy drops noticeably from short trajectories (44.4% on AG) to long ones (24.1% on HC). Tracking distant error origins across sprawling contexts remains tough; the authors suggest hierarchical trajectory modeling as a promising next step.

Summary updated

BibTeX
@misc{jiang2026sirca,
  author = {Kun Jiang and Han Lin and Xingyu Liao and Guang Yang and Mengjie Zhang and Sijie Wu and Kai Zhang and Xingyu Yan and Bowen Liu and Jiantao Ye and Qitao Song and Xubin Li and Xin Chen},
  title = {{SIRCA: Root Cause Attribution in LLM Agent Trajectories via Static Interventions}},
  year = {2026},
  eprint = {2611.38588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38588},
}
Figure