Have you ever had an online payment screen freeze and wondered whether it was safe to press “Pay” again? If the first attempt actually went through, pressing it again charges you twice. A person would check their history before retrying. But when an AI agent calls tools for customer support or business processing, the same thing can happen automatically.
Guardrails that check at every call whether the action is “allowed by the rules” are widely used to keep AI agents safe. However, a retry itself is not a rule violation. A research team at institutions including Case Western Reserve University in the US addresses this problem of harm occurring even though every rule is followed. Instead of judging one step at a time, their method, “Policy-Constrained Causal Repair,” reviews the whole recovery plan after a failure and statistically guarantees an upper bound on risk[1]. We could not confirm the paper's peer-review status, and all figures below are reported by the authors.
When a “permitted action” causes harm
The paper opens by explaining the problem with an example in which a payment gateway times out[1]. If the agent stops retrying, the order stays unpaid. If it simply retries, it risks a double charge. Retrying with an “idempotency key” to prevent duplicates is another option, but the gateway does not necessarily honor the key reliably.
The authors point out three weaknesses of single-call checks[1]. First, there is a hidden state, namely whether the first request went through, so the content of a call alone cannot tell you whether it is safe. Second, simple interventions tend to force a choice between “abandon” and “perform a risky repair.” Third, even if the first step is approved, the agent can deviate from the plan in later steps.
| Recovery method | Probability of double charge | Relation to the 0.05 cap |
|---|---|---|
| Retry immediately with an idempotency key (nearest repair) | 0.12 | Exceeds |
| Query the ledger first; if there is no charge, retry with the key | 0.024 | Below |
A hypothetical example the paper uses for illustration. The calculation assumes “probability that the first attempt actually went through: 0.3,” “probability that the key is honored: 0.6,” and “probability that the query result is correct: 0.8.” These are not experimental conditions.
Source: Created by ScienSeeds based on Figure 1 of the original paper (Singh et al., 2026, CC BY 4.0)
Review the “recovery plan,” not one step at a time
The unit the proposed method reviews is a “repair contract.” It pairs the intervention to be performed now with a short decision tree that branches on subsequent tool outputs and timeouts[1]. The review proceeds in four broad stages.
- List candidates: Candidate plans are ordered by how little they change the original action (edit cost). Candidates are generated from a hand-defined grammar.
- Discard plans that might violate policy: A plan is removed if any single branch of its decision tree could violate the rules. Plans that fail to preserve the user's goals or scope are also removed.
- Bound the risk of all candidates simultaneously: From logs in which interventions were assigned at random, the method computes an upper and a lower bound on each plan's probability of harm. If the upper bound is at or below the tolerance r, the plan is “certified.” If the lower bound exceeds r, it is “exceeded.” Otherwise it is “undecided.” The closest plan among the certified ones is selected.
- Enforce the plan to the end: The selected plan is committed, and calls outside the plan are blocked unless they are newly certified. The risk budget is allocated in advance to subsequent branches.
Stage 3 includes a safeguard against a statistical pitfall of comparing candidates. If you compare dozens of candidates and pick the one with the lowest estimated risk, you are likely to pick one whose risk happened to be underestimated by chance. The authors construct intervals that hold simultaneously for all candidates, so the guarantee holds without any correction after selection. The intervals are based on binomial confidence intervals (Clopper–Pearson intervals), and the level is tightened so that they hold simultaneously for the transition probabilities of every reachable state–action pair (for certifying a single decision in τ²-bench, the level is tightened according to the number of options). Situations absent from the data are assigned the worst-case width of “anything can happen”[1].
This guarantee rests on several assumptions. It requires logs in which interventions were randomly assigned, and it assumes that the environment of the logs and the actual operating environment are the same and that every call passes through the review[1].
What the study found
The guarantee held even after selecting a candidate
In an “exact environment” where the true risk can be computed, the authors checked whether the selected plan really stays within the cap. They prepared 200 datasets for each sample size. The method that uses estimates as they are (plug-in estimation) wrongly certified a dangerous plan in 58 to 99% of datasets[1]. The proposed method's false certification rate was 0% at every sample size.
In exchange, it becomes cautious when data are scarce. The share of decisions that could be approved was 20% at a sample size of 100, 79% at 300, and 100% at 1,000 or more[1]. In other words, prioritizing the guarantee means more data is needed.
Permitting only the first step still allows later deviation
Using an adversarial agent that deliberately tries to depart from the plan, with the tolerated harm probability set to 0.07, the authors compared the harm in the worst context among 12 operating contexts.
| Method | Harm probability in worst context | Contexts exceeding the 0.07 cap |
|---|---|---|
| Per-call approval (permit each call) | 0.256 | 6 of 12 |
| Reset the budget at each step | 0.096 | 6 of 12 |
| Committed contract (enforce the plan to the end) | 0.022 | 0 of 12 |
| Inherited budget (pre-allocate the budget to branches) | 0.037 | 0 of 12 |
A comparison in the service-recovery sandbox. The “3.7 to 7 times risk violation” in the abstract is the ratio of per-call approval's worst-context harm against an adversarial agent to the tolerance. At a tolerance of 0.07 it is 0.256, about 3.7 times; at a tolerance of 0.1 it is 0.698, about 7 times (Table 11 and Figure 3c of the original paper).
Source: Created by ScienSeeds based on the figures in Figure 3c and Section 3.2 of the original paper (Singh et al., 2026, CC BY 4.0)
The authors also varied the risk threshold (four values) and the agent type (a noise type that proposes actions at random, and an adversarial type), giving eight settings. Per-call approval failed to keep the promised cap in 7 of the 8 settings, and budget reset failed in 5 of 8. The committed contract and the inherited budget kept the cap in all settings[1].
Validation with ambiguous timeouts
The figures at the center of the abstract come from an experiment in the telecom domain of the public benchmark τ²-bench[1]. For some write operations, such as adding data allowance or submitting a payment request, the authors rigged the first call to return a timeout in which “the server did not acknowledge.” In this case the operation may in fact have gone through, so retrying as is results in a double write. The customer role was played by a simulator running Qwen3.8-27B, not by real users or a real service.
There were four candidates: retry as is (nearest repair), ask the user first, query the record first, and query and then execute. With the tolerance set to 0.15, a certified plan was selected for each agent. The selected plan differed by agent: 0.8B and 2B chose “query and then execute,” while 4B and 9B chose “query first.” 27B chose “retry as is.” This was because only 1 of 58 training cases showed harm, so the retry was judged to be within the cap[1].
Note the scope of what this certification guarantees. It guarantees that the average harm of the decisions reached in training is at or below 0.15. It is not a cap for each individual history or task. The assumption that the test behaves like training is an assumption, and is outside what is certified. With a tolerance of 0.05, none of the options is certified, and 1.5 to 2 times as much data is needed. In addition, earlier runs on the 40 evaluation tasks had been used to fix the record-reading tool and to design the options. The results here are therefore not from entirely unused data; they validate new trials on those tasks[1].
| Metric | Retry as is (nearest repair) | Certified plan | Difference (95% interval) |
|---|---|---|---|
| Number of double writes | 56 | 0 | ― |
| Safe completion rate | 72.8% | 80.7% | +7.8 points (3.8 to 12.0) |
Results of 600 episodes comparing five agents under the same conditions on 40 tasks set aside for evaluation. “Safe completion” is the share of episodes in which the task was correctly accomplished and no harmful event occurred; refusals and failures are included in the denominator.
Source: Created by ScienSeeds based on the figures in Section 3.5 and Appendix F.9 of the original paper (Singh et al., 2026, CC BY 4.0)
The paper also reports results that should not be skipped. Hand-written “query first” and “query and then execute” rules also produced zero harm, and the differences in safe completion rate from the certified plan were not statistically meaningful (+0.8 points, −1.5 points)[1]. For this timeout scenario alone, properly implementing the standard practice of “query, then retry” would have achieved comparable results. Also, during development there was a bug in which the telecom record-reading tool was called with a wrong parameter name, so the query always returned an error. The authors re-collected the logs after fixing it[1].
A clear difference from hand-made rules appeared in the Consequence Suite, where the true values can be computed (three tasks: payment retry, refund, and service recovery; 1,500 instances). On these newly prepared 1,500 instances, the authors compared the methods with a tolerance of 0.05 and a sample size of 3,000. The proposed method's safe completion rate was 16.3 points higher than that of the strongest hand-made rule that makes the same promise of “never breaking the cap on any instance” (a table chosen after the fact by looking at the true values). Meanwhile, the hand-made rules that match or exceed it in completion rate break the cap on 7 to 30% of instances[1].
On the original Consequence Suite (results pooling three tolerances), the authors also compared ways of selecting a plan. A shield that uses the same certificate as the proposed method and selects the safest certified plan reduced harm to 0.002. However, its safe completion rate was 12.3 points lower than that of the nearest repair. A shield that selects the certified plan with the highest completion rate was within 0.001 of a variant of the proposed method that ranks certified plans by estimated completion rate (safe completion rate 0.797). This is not a difference from the default proposed method (the version that selects the nearest certified plan, 0.770)[1]. Note that these shields use the same grammar and certificate as the proposed method and change only the selection rule. They were not tried as independent existing methods.
What to consider before using it
What the experiments confirmed is that, in an environment where randomized logs are available and candidate plans can be written out in advance as a grammar, the risk of the selected plan stays within the promised cap. Before bringing it into real operations, you need to check the following conditions separately.
- How to collect randomized logs: The foundation of the guarantee is records in which interventions were assigned at random. The authors themselves state that randomization in production should be limited to safe sandboxes, replay of records, and options confirmed safe in advance[1].
- When the environment or observations drift: If the environment where logs were collected drifts from the operating environment, or if risk-relevant state is not observed, the intervals become overconfident. When a risk-relevant state (alert severity) was dropped from the history, the false certification rate reached 100% at a sample size of 3,000 (0% at 1,000). Even under drift that doubles the cascading failure hazard, the false certification rate reached 98%. A safety margin of 0.01 resolved this, but a 3-times drift required a margin of 0.05, and the approval rate fell by 40%[1].
- Magnitude of harm: Harm is binary, “occurred or did not occur,” and does not distinguish a double charge of 1 yen from one of 1 million yen[1].
- Models and evaluation environment: The closed-loop evaluation used only Qwen-family models, with the thinking feature disabled. The telecom experiment ran on a simulator[1].
- Speed: The paper reports 0.6 milliseconds for a decision in the sandbox and a median of 0.7 seconds per task for the planner in AgentDojo[1]. Costs in real operation are unconfirmed.
For researchers outside AI, the problem that “if you compare many candidates and pick the one that looks best, its performance looks optimistic” should be familiar. The idea of building intervals that hold simultaneously for all candidates, so that the guarantee survives after selection, can be applied wherever one option is chosen from many, such as condition search or drug screening. However, the paper also shows in numbers the price of this approach: when data are scarce, nothing gets approved.
Implementation guide
- Task: Select, under policy constraints and a risk cap, a recovery plan after a tool-using AI agent fails
- Baselines: Nearest compliant repair, per-call approval, budget reset, plug-in estimation, probabilistic shield, hand-written rules, LLM judge (Section 3 of the original paper)
- Metrics: False certification rate, worst-context harm probability, safe completion rate (task success with no harm), number of double writes
- Data: Exact environments (two-stage causal model, service-recovery sandbox, Consequence Suite with 1,500 instances) and public benchmarks (τ²-bench, DTap, AgentDojo, AgentDyn). Collecting randomized intervention logs is required (Appendices D and E of the original paper)
- Compute: vLLM 0.19.1, bf16, NVIDIA A100-SXM4-80GB and H200 (1 to 2 per job), Python 3.12, DoWhy 0.14, EconML 0.16. Total GPU hours are not recorded (Appendix D.5 of the original paper)
- Agents: Qwen3.5-0.8B / 2B / 4B / 9B, Qwen3.8-27B (thinking feature disabled)
- Code and license: The text mentions a release, but the URL is unconfirmed. The paper is CC BY 4.0
Conditions and limitations
- Scope verified: False certification rate and worst-context harm in exact environments; harm and safe completion rate on the Consequence Suite and with LLM agents; a simulation injecting ambiguous timeouts into τ²-bench telecom (40 evaluation tasks, 600 episodes).
- Assumptions of the guarantee: The set of reachable histories is finite, the set of subsequent situations is known, stationary logs or a faithful simulator are available, and every call passes through the review at run time.
- In the telecom experiment, there was no significant difference in safe completion rate from the hand-written query rules. There was a record-reading bug during development, and the logs were re-collected after the fix.
- Candidate plans are generated from a hand-defined grammar. Automatic synthesis is left for future work.
- The “3.7 to 7 times” in the abstract is the ratio of per-call approval's worst-context harm against an adversarial agent to the tolerance (about 3.7 times at a tolerance of 0.07 and about 7 times at 0.1; Table 11 and Figure 3c of the original paper).
- Latency and cost in real operation, generalization to business domains other than telecom, and peer-review status are unconfirmed.