What the Authors Did
Turned "allow or deny" into "pick a plan." The guard's action menu is execute, edit an argument, insert a verification check, substitute an authorized operation, escalate to a human, or refuse. Each candidate contract pairs one of those with a continuation rule. A trusted monitor checks two things: the formal policy holds on every branch the environment allows, and the plan still serves the user's stated goal and scope. Eligible plans are ranked by edit distance from what the agent proposed (changed operators, edited arguments, inserted steps, follow-up obligations), so the guard changes as little as it can.
Got causal risk out of logs on purpose. Ordinary guard logs are biased, because a deployed guard intervenes for reasons tied to the state it sees. So in an isolated sandbox, the logging guard randomizes its intervention after seeing the exact proposal and records the exact probabilities. From those logs they identify each contract's risk with the longitudinal g-formula, a standard causal inference tool.
Made the bounds survive the choice. If you compute a confidence interval for each candidate and then pick the one that looks safest, you'll tend to pick the one whose risk you underestimated. Their fix is to bound every reachable transition at once (Clopper-Pearson intervals by default, with a union bound), then run a worst-case backward recursion through each plan. Each plan gets one of three verdicts: certified, exceeds the limit, or unresolved because there isn't enough data.
Enforced the plan at runtime. A certificate covers the whole plan, not just its first step. They offer two modes. Committed contracts lock in the continuation, and anything outside it needs fresh certification. Inherited risk budgets let the agent replan, but split the remaining risk budget across branches instead of resetting it to the full limit every step. A runtime core uses signed execution permits tied to the exact call, resource version and expiry window, and blocks duplicate, unmediated and swapped-plan calls.
Tested it two ways. Exact environments where the true probabilities are known (a two-stage causal model, a service-recovery sandbox with 12 contexts, and a 1,500-instance Consequence Suite covering payment retry, order refund and service recovery), and four public benchmarks: τ²-bench, DTap, AgentDojo and AgentDyn. The agents are five Qwen models: Qwen3.5 0.8B, 2B, 4B and 9B, and Qwen3.8 27B.
Findings With Numbers
The certificates hold after selection (Figure 3a). Across 200 service-sandbox datasets per sample size, a plug-in estimator falsely certified an unsafe plan in 58% to 99% of datasets, and a simultaneous bootstrap band failed in up to 30%. Their certificates had a 0% false-certification rate at every sample size. The price is data: the certified rule could decide 20% of cases at 100 draws per input, 79% at 300 and 100% from 1,000 on.
Approving one call at a time isn't enough (Table 11). Against an adversarial agent that always proposes the riskiest allowed action, with a 0.07 risk limit over 12 contexts:
| Guard mode | Worst-context harm | Contexts over the limit |
|---|
| Call-level approval | 0.256 | 6 of 12 |
| Budget reset every step | 0.096 | 6 of 12 |
| Committed contract | 0.022 | 0 of 12 |
| Inherited risk budget | 0.037 | 0 of 12 |
Across four limits and both noisy and adversarial agents, call-level approval broke its promise in 7 of 8 settings and budget resets in 5 of 8. Committed contracts and inherited budgets held in all 8. Against the adversary, call-level approval's worst-context harm ran 3.7x to 7x over the promised limit. In fault-injection tests (11 failure modes, 120 trials each), the runtime core blocked 100% of mutated, duplicate, stale, unmediated and plan-swapped calls.
"Compliant" isn't the same as "safe" (Section 3, Q3). In the Consequence Suite, the nearest policy-compliant repair went over the safety limit in 84% of decisions. Causal repair cut harm from 0.227 to 0.014 and raised safe completion by 0.037. Asking Qwen3.8-27B to pick among compliant plans without data went over the limit in 12% to 24% of decisions. With the Qwen agents acting, the nearest repair left harm of 0.14 to 0.21 in service recovery and 0.07 to 0.23 in refunds. Certified committed contracts kept every agent within the limit, with harm at or below 0.022.
Safety has a cost when deadlines are tight. In payment retry, unreliable idempotency keys force checks that don't fit a one-tick deadline. Holding the risk limit there cost 0.115 in safe completion, and even the exact oracle lost 0.062. The authors report this openly, and I appreciate that.
Benchmarks miss consequence risk (Section 3, Q4). Replaying released τ²-bench trajectories from four frontier models, 3% to 15% of episodes got full reward despite executing writes the domain policy forbids. A 27B LLM judge let through 18% to 73% of forbidden calls on τ²-bench. On DTap, enforcing the formal policy checker cut direct attack success from 0.13 to 0.89 down to 0.07 or less, but plain blocking matched that. On the unmodified public benchmarks the risk-aware part showed no reliable gain over the nearest compliant repair. The authors' read is that today's suites barely reward anything past static policy enforcement.
Add real uncertainty and the plans matter (Section 3, Q5). They injected ambiguous timeouts into τ²-bench: the first run of any non-idempotent write times out with unknown status after silently succeeding half the time. Each agent's guard certified its own plan from randomized rollouts on 74 training tasks: check-then-act for 0.8B and 2B, verify first for 4B and 9B, and the plain retry for 27B. On 600 paired held-out episodes:
- Duplicate-write harms: 56 under blind retry, 0 under certified plans
- Safe completion: 0.728 to 0.807
- Harms at the certified test decisions: 0 of 233
- Both gains significant under Holm correction
One honest detail: fixed, hand-written verify-first and check-then-act rules also reached zero harm with similar completion on this decision. The authors frame their contribution as certifying each agent's plan from data, and not adding checks the 27B agent didn't need.
The code is on GitHub.
Limitations
What the authors say themselves:
- Strong assumptions. The guarantees need finite reachable histories with known successors, logs that match deployment (or a faithful simulator), and complete mediation, meaning every tool call goes through the guard
- Drift breaks it. Leaving alert severity out of the history, or doubling a cascade hazard, produced false certificates in 100% and 98% of datasets. A 0.01 safety margin fixed both, but 3x drift needed a 0.05 margin and cost 40% of admissions
- Randomizing is risky on live users. They suggest staging sandboxes, shadow replays or pre-vetted safe options instead
- The checker is only as good as its rules. 3.0% to 4.4% of τ²-bench writes it passed lacked full semantic consent
- Narrow setup. Binary harm counts a small and a large financial loss the same, committed contracts take autonomy away from the agent, and the agents are all Qwen models with thinking turned off
From my own reading:
- The guarantee is conditional. The episode bound is (1 − β)δ + β, which is 0.0975 at the default β = δ = 0.05, not 0.05. If you quote "5% risk," quote the conditions with it
- The big benchmark results are uncertified. On τ²-bench, DTap, AgentDojo and AgentDyn the guard runs in a scalable Fitted-Q mode without a certificate. The certified results come from the exact environments and one timeout decision
- Good hand rules got there too. On the headline timeout test, a simple "check the record, then act" rule matched the certified plans. The value is in proving it, not in finding a trick nobody knew
- Preprint. No peer-review venue yet
My Takeaways
These are mine, not the authors' recommendations.
- Review recovery as a plan, not a call. Retries, refunds and restarts after an error are where "allowed" and "safe" split. If your guard only sees the next tool call, it can't tell a safe retry from a double charge
- Make writes idempotent, and then still check. Idempotency keys are the classic fix, and the paper cites it. Their example assumes keys are honored only 60% of the time. Have the agent read the record before it repeats a write it isn't sure about
- Don't let an approved first step become a blank check. Lock the follow-up steps in, or track a shrinking risk budget across the episode. Resetting the allowance every step let harm pile up in 5 of 8 settings
- Put your guard on every path. The guarantees assume complete mediation. A tool the agent can call around the guard voids the math
- Add ambiguous timeouts to your evals. Public suites mostly reward static policy checks. Inject "unknown status" failures on writes and see what your agent does
- Map it to the OWASP agentic list. An authorized tool used in a harmful way lines up with ASI02 Tool Misuse and Exploitation in the OWASP Top 10 for Agentic Applications for 2026. That mapping is mine, not the authors'
The Bottom Line
This paper names a gap I think a lot of teams have: guardrails that check whether a call is allowed, not what it sets in motion. Certifying a whole recovery plan from randomized logs, then enforcing it, is a sound way to close that gap. The guarantees come with real assumptions and a data bill, and on today's public benchmarks good hand rules keep up. I'd start with the cheap lessons (read before you retry, never reset the risk budget) and keep this approach in mind for high-stakes writes.
Sources
Read the full paper on arXiv. If your agents retry payments, refunds or restarts on their own, I'd like to know how you handle a timeout with unknown status. Reach me on X.