REVIEW 2 major objections 1 minor 11 references
Causal Agent Replay attributes LLM agent failures to specific steps by intervening on a causal model and replaying trajectories to measure outcome shifts.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · grok-4.3
2026-06-27 19:52 UTC pith:RBZWNQKS
load-bearing objection CAR introduces a causal intervention method for attributing LLM agent failures but rests on an unproven rule for stochastic re-execution and only shows synthetic recovery. the 2 major comments →
Causal Agent Replay: Counterfactual Attribution for LLM-Agent Failures
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Causal Agent Replay 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. It defines 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. On synthetic structural causal models with planted ground truth, the contrastive estimator recovers the pivotal step and the Shapley estimator recover
What carries the argument
Causal Agent Replay, which models the agent trajectory as a structural causal model and uses do-operations on individual steps followed by forward re-execution under the stochastic policy to estimate causal effects on the outcome.
Load-bearing premise
Re-executing the trajectory forward under the same stochastic policy after a do-operation on a single step produces an unbiased estimate of the causal effect, with the point-of-commitment rule resolving the specific confound of stochastic run-forward.
What would settle it
Running the contrastive estimator on a synthetic structural causal model with a planted pivotal step and observing that it fails to assign the highest causal effect to that step, or that the Shapley values sum to a value far from the analytic 0.91.
If this is right
- The contrastive estimator recovers the pivotal step responsible for an observed failure.
- The Shapley estimator recovers credit for two-step interactions with values summing close to the analytic total.
- All reported effects include confidence intervals derived from the Monte-Carlo sampling.
- The method applies to both hosted models and free local models without requiring changes to the underlying policy.
Where Pith is reading between the lines
- Deploying CAR on logged agent traces from production systems could automate root-cause analysis for repeated failures.
- The intervention algebra might be extended to identify minimal sets of steps whose joint intervention would prevent a failure.
- Pairing CAR with online monitoring could enable agents to self-correct mid-trajectory when a high-effect step is detected.
- The same replay technique could test whether changing a single early step would have avoided the failure entirely.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces Causal Agent Replay (CAR) to attribute LLM-agent failures to specific steps via interventional causal analysis. It models trajectories as structural causal models, applies do-operations to steps, re-executes forward under the stochastic policy using a contrastive estimator whose point-of-commitment rule addresses a stochastic confound, and employs a budget-bounded Monte-Carlo Shapley estimator for multi-step interactions. Validation on synthetic SCMs with planted ground truth shows the contrastive estimator recovers the pivotal step and Shapley recovers a two-step interaction (0.44, 0.45, ~0; efficiency sum 0.909 vs analytic 0.91), with all effects reported via confidence intervals. The method is open-sourced.
Significance. If the estimator is unbiased, CAR would advance agent explainability by replacing correlational heuristics and LLM judges (noted at ~14% accuracy on Who&When) with interventional attribution that distinguishes decision steps from execution steps. Strengths include the synthetic validation with quantitative recovery close to analytic values, explicit confidence intervals, and open-source release. The approach is novel in applying SCM interventions to agent replay but its significance hinges on generalizing beyond the synthetic cases shown.
major comments (2)
- [description of contrastive estimator and point-of-commitment rule] The description of the single-step contrastive estimator and point-of-commitment rule: the assertion that this rule resolves the bias arising from re-executing a stochastic policy after a do-operation on one step lacks any derivation or proof of unbiasedness for arbitrary policy distributions or state-transition structures. The reported recovery (0.44/0.45/~0, efficiency 0.909 vs 0.91) in synthetic SCMs therefore rests on an unproven assumption that is load-bearing for the central claim of recovering planted effects.
- [validation section] The validation section: experiments are confined to synthetic structural causal models with planted ground truth and provide no real-agent experiments, no ablation of the point-of-commitment rule, and no details on error-bar methodology, so the quantitative recovery does not yet establish that the estimator works under the stochastic policies and state spaces of actual LLM agents.
minor comments (1)
- [abstract and methods] The abstract states that 'every effect is reported with confidence intervals' but the manuscript does not specify the exact procedure (e.g., number of Monte-Carlo samples or variance estimation) used to obtain them.
Simulated Author's Rebuttal
We thank the referee for the constructive feedback, particularly the recognition of the synthetic validation's quantitative recovery and the open-source contribution. We respond to each major comment below and outline revisions to address the concerns raised.
read point-by-point responses
-
Referee: The description of the single-step contrastive estimator and point-of-commitment rule: the assertion that this rule resolves the bias arising from re-executing a stochastic policy after a do-operation on one step lacks any derivation or proof of unbiasedness for arbitrary policy distributions or state-transition structures. The reported recovery (0.44/0.45/~0, efficiency 0.909 vs 0.91) in synthetic SCMs therefore rests on an unproven assumption that is load-bearing for the central claim of recovering planted effects.
Authors: We acknowledge that the manuscript asserts the point-of-commitment rule resolves the stochastic confound without providing a formal derivation of unbiasedness across arbitrary policies and transitions. The synthetic results demonstrate empirical recovery close to analytic values under the tested SCMs. In revision we will add a dedicated subsection deriving the estimator's unbiasedness under the paper's SCM assumptions, including the policy and transition conditions, and explicitly stating the scope of the result. revision: yes
-
Referee: The validation section: experiments are confined to synthetic structural causal models with planted ground truth and provide no real-agent experiments, no ablation of the point-of-commitment rule, and no details on error-bar methodology, so the quantitative recovery does not yet establish that the estimator works under the stochastic policies and state spaces of actual LLM agents.
Authors: The validation deliberately uses synthetic SCMs with planted ground truth to enable precise quantitative assessment of recovery, which is a prerequisite before real-agent evaluation where ground truth is unavailable. We will revise the validation section to add: explicit details on the error-bar methodology, an ablation isolating the point-of-commitment rule, and expanded discussion of how the synthetic results inform applicability to LLM agents. Real-agent experiments are noted as important future work but lie outside the scope of establishing the interventional estimator itself. revision: partial
Circularity Check
No significant circularity; estimator validated on independent synthetic ground truth
full rationale
The paper defines a contrastive estimator and Shapley variant for causal attribution in agent trajectories, then validates recovery of planted pivotal steps and interactions on synthetic SCMs whose ground truth is generated independently of the estimator equations. No load-bearing step reduces by the paper's own definitions or equations to a fitted parameter or self-citation chain; the reported numerical recovery (0.44/0.45/~0, efficiency 0.909 vs 0.91) is an empirical check against external planted values rather than a tautology. The point-of-commitment rule is presented as an assumption resolving a specific confound, not derived from the target quantities themselves. This meets the criteria for a self-contained derivation against external benchmarks.
Axiom & Free-Parameter Ledger
axioms (2)
- domain assumption Agent execution trajectories can be modeled as a structural causal model in which each step is a node whose value can be intervened upon independently.
- domain assumption Re-execution of the remaining trajectory under the same stochastic policy after intervention produces an unbiased sample from the counterfactual outcome distribution.
read the original abstract
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.
Figures
Reference graph
Works this paper leans on
-
[1]
S. Zhang et al. Which Agent Causes Task Failures and When? On Automated Failure Attri- bution of LLM Multi-Agent Systems.ICML, 2025. arXiv:2505.00212
work page Pith review arXiv 2025
-
[2]
AgenTracer: Annotating Failed Multi-Agent Trajectories via Counterfactual Replay. 2025. arXiv:2509.03312
work page Pith review arXiv 2025
-
[3]
Ma et al
Y. Ma et al. Automatic Failure Attribution and Critical Step Prediction via Causal Inference
-
[4]
T. Mesnard et al. Counterfactual Credit Assignment in Model-Free Reinforcement Learning. ICML, 2021. arXiv:2011.09464
-
[5]
Foerster et al
J. Foerster et al. Counterfactual Multi-Agent Policy Gradients.AAAI, 2018
2018
-
[6]
Castro, D
J. Castro, D. Gómez, and J. Tejada. Polynomial calculation of the Shapley value based on sampling.Computers & Operations Research, 36(5):1726–1730, 2009
2009
-
[7]
T. Everitt, R. Carey, E. Langlois, P. A. Ortega, and S. Legg. Agent Incentives: A Causal Perspective.AAAI, 2021. arXiv:2102.01685
- [8]
-
[9]
Pearl.Causality: Models, Reasoning, and Inference
J. Pearl.Causality: Models, Reasoning, and Inference. Cambridge University Press, 2nd edi- tion, 2009
2009
-
[10]
O’Callahan, C
R. O’Callahan, C. Jones, N. Froyd, K. Huey, A. Noll, and N. Partush. Engineering Record and Replay for Deployability.USENIX ATC, 2017
2017
-
[11]
Defeating Nondeterminism in LLM Inference
Thinking Machines Lab. Defeating Nondeterminism in LLM Inference. 2025.https:// thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/. 5
2025
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.