mlsanityData to 14 Oct 2026

Causal Agent Replay: Counterfactual Attribution for LLM-Agent Failures

arXiv 2606.08275 ↗First posted 6 Jun 2026cs.LG cs.AIcited by 20

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

When an LLM agent fails -- issues a refund it should not have, calls the wrong tool, leaks data -- existing tooling answers what happened (observability) or whether it passed (evaluation), but not which step caused the failure. The obvious heuristics are wrong: the step that executes the harmful action is usually not the step that decided on it, and LLM-judge attribution is correlational and unreliable (state-of-the-art step-level accuracy on the Who&When benchmark is about 14%). We present Causal Agent Replay (CAR), which answers the question by intervention: it models an agent run as a structural causal model, applies a do-operation to a step, and re-executes the trajectory forward under the same stochastic policy, measuring the shift in the outcome distribution. We define an intervention algebra over agent steps, a single-step contrastive estimator whose point-of-commitment rule resolves a confound specific to stochastic run-forward, and a budget-bounded Monte-Carlo Shapley estimator that splits credit across interacting steps. Every effect is reported with confidence intervals. We validate against synthetic structural causal models with planted ground truth: the contrastive estimator recovers the pivotal step, and Shapley recovers a two-step interaction (0.44, 0.45, ~0; efficiency sum 0.909 versus the analytic 0.91). CAR is open source and runs on hosted or free local models.

Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 6 of its 13 references that are in the map. First posted on arXiv 6 Jun 2026.

Builds on

6 of 13 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr

Other references · 5

  1. 2017Counterfactual Multi-Agent Policy Gradientscited by 751
  2. 2020Counterfactual Credit Assignment in Model-Free Reinforcement Learningcited by 64
  3. 2021Agent Incentives: A Causal Perspectivecited by 51
  4. 2022Discovering Agentscited by 28
  5. 2017Engineering Record And Replay For Deployability: Extended Technical Reportcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 20.

20 papers.

Sort:

By area:

  1. 2026Autonomous Research Agents: A Survey of AI Scientists and the Verification Gapcited by 9
  2. 2026Credit Without Ground Truth: Auditing Step-Level Credit Assignment in LLM Agents Against Executed Replaycited by 7
  3. 2026Long-Horizon Agent Trajectory Attribution: A Unified Benchmark and Fine-Grained Annotation Frameworkcited by 4
  4. 2026Influence Is Not Authority: When Causal Guardrail Signals Make Legitimate Tool Use Look Like an Attack in Tool-Using LLM Agentscited by 1
  5. 2026What if LLMs Ate Their Words: Causal History Effects in Multi-Turn Interactioncited by 1
  6. 2026AUDITA: certified auditing and causal attribution of adverse outcomes in autonomous multi-agent systemscited by 0
  7. 2026HANSARD: A Reference Architecture for Forensic Readiness, Runtime Witnessing, and Graded Attribution in Autonomous Multi-Agent AI Systemscited by 0
  8. 2026Localizing Emergent Failures in Agentic AI: Recovering Minimal Repair Families via Counterfactual Replaycited by 0
  9. 2026Causal Attribution for Agentic Decisions: Estimators, Coupling, and a Traceability Specificationcited by 0
  10. 2026Chronicle: Cut-Point Replay for Regression Testing of LLM Agentscited by 0
  11. 2026CausalLoss-Fin: Attributing Financial-Agent Loss to Decisions and Infrastructure Faultscited by 0
  12. 2026DAAF: From Failure Localization to Editable System Assets in LLM Agentscited by 0
8 more
  1. 2026ReplayLens: Auditing Agents' Use of Outcomescited by 0
  2. 2026Same Winners, Different Success Rates: Evaluating How LLM Agents Recover from Failurescited by 0
  3. 2026Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnessescited by 0
  4. 2026EvoSteer: Online Self-Evolving Graph Orchestration via Reference-Anchored Credit Assignmentcited by 0
  5. 2026Where MLLMs Fail and Why: Causal Task Decomposition for Capability Failure Diagnosiscited by 0
  6. 2026When Harnesses Lose the Signal: Causal Evaluation of Recovery in LLM Agentscited by 0
  7. 2026Do Tool Calls Execute as Intended? Measuring and Repairing Intent-Execution Correspondence in LLM Agentscited by 0
  8. 2026RippleCP: Measuring Counterfactual Checkpoint Advantage in Coding Agentscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026From Flat Logs to Causal Graphs: Hierarchical Failure Attribution for LLM-based Multi-Agent Systems
  2. 2026CausalFlow: Causal Attribution and Counterfactual Repair for LLM Agent Failures
  3. 2026Calibration Is Not Control: Why LLM-Agent Oversight Needs Intervention
  4. 2025Abduct, Act, Predict: Scaffolding Causal Inference for Automated Failure Attribution in Multi-Agent Systems
  5. 2026Adaptive Influence Graphs for Failure Attribution in Multi-Agent Systems
  6. 2026DCFA: Dual-view Causal-inspired Attribution for Failure Reasoning in LLM-based Multi-agent Systems
  7. 2026Seeing the Whole Elephant: A Benchmark for Failure Attribution in LLM-based Multi-Agent Systems
  8. 2026Error-Propagation Modeling for Failure Attribution in LLM-Based Multi-Agent Systems