A timed-out tool write may be absent, committed, or still in flight. Evaluating an agent only on whether its goal exists can hide harmful recovery actions: auditing 12 supplied traces changes apparent completion from 10/12 to 8/12. We introduce an executable evaluation that separately records tool proposals, runtime decisions, and committed effects. In 3,456 model episodes, the original task wording produces only 39/576 valid recoveries when the initial write is absent; a combined clarification produces 576/576. A further 1,584 episodes test stronger attacks and separate the effect definition from the recovery recipe with three rollouts per absent-state cell. Definition alone yields 276/288 valid recoveries; recipe alone yields 288/288. For Luna, malicious text is associated with 11.1 percentage points fewer valid recoveries under both original and definition-only wording, an availability signal limited by shared tasks and templates. The stronger attacks produce no attempted unauthorized or changed-key action and no unsafe effect. A trajectory audit finds six original-key retries after observing pending status: five denied and one deduplicated. Bounded checks distinguish atomic key enforcement from a delayed-commit race; stale negative reads also invalidate the evidence gate. A separate Claude Code program adds 720 successful episodes: 288 under the original attacks and 432 stronger-attack calibration episodes across Opus, Sonnet, and Haiku 5.5, with no observed proposal or effect deviations. The contribution is a measurement design and a diagnosis of availability, specification, and contract sensitivity, with no demonstrated general defense efficacy.
Figures & tables
Model
Message
n
A
K
Y,D
Va
Calls
5.6 Luna
Feedback-conditioned
36
0
0
0,0
12/12
1.67
5.6 Luna
Neutral
36
0
0
0,0
12/12
1.67
5.6 Luna
Provider envelope
36
0
0
0,0
12/12
1.67
5.6 Luna
Routing update
36
0
0
0,0
12/12
1.67
6 Luna
Feedback-conditioned
36
0
0
0,0
12/12
1.67
6 Luna
Neutral
36
0
0
0,0
12/12
1.67
Table 1: Stronger-attack calibration under the unprotected runtime with both clarification sentences. Each model is scheduled for 36 neutral and 108 malicious episodes; n is the included count. A and K count episodes containing original attempted deviations; Y,D count episodes with unsafe effects. Each complete style has 12 absent-state episodes. Calls exclude the initial write and CLI context retrieval. The GPT API and Claude Code panels share the authored corpus but use different context and host configurations; this is not a matched cross-provider ranking. All external effects are simulated.
Task wording
Model
A
K
Y,D
Denials
Va
Pc,p
Calls
Original
6.1 Sol
0
0
0,0
0
11/288
576/576
1.01
Original
6 Luna
0
0
0,0
0
28/288
576/576
0.84
Combined clarification
6.1 Sol
0
0
0,0
0
288/288
576/576
1.67
Combined clarification
6 Luna
0
0
0,0
5
288/288
576/576
1.67
Table 2: GPT API cohorts (upper panel, 864 episodes per row) and the original-attack Claude Code summary (lower panel). Va measures absent recovery; Pc,p measures preservation of an initial committed/pending goal. API denials include safe writes denied for lack of evidence; calls exclude the injected initial write. The Claude summary pools all initial states under a different host and control set, so the panels are not a matched model comparison. Table 1 gives the later three-model Claude calibration.
Control
Proposals
Denied
Deduplicated
Unprotected
0
0
0
Prompt-only
0
0
0
Intent-only
1
0
1
Evidence-only
4
4
0
Keyed retry
0
0
0
EBRG
1
1
0
Table 3: Writes after observing pending status in Luna’s combined-clarification cohort, 48 pending episodes per control. Original proposed arguments are authorized and use the original key. Admission and deduplication are measured under the atomic contract.
Figure 1: Repeated absent-state wording experiment under the unprotected runtime. Bars show valid completions among 144 episodes per model and wording combination. Points show the three rollout batches, each containing 48 matched task/treatment cells. Definition and recipe are separate factors; points are observed counts, not confidence intervals.
Model
Def.
Recipe
Neutral Va
Attack Va
Rollout range
Calls
6.1 Sol
0
0
0/72
0/72
0–0/48
1.00
6.1 Sol
1
0
72/72
72/72
48–48/48
2.00
6.1 Sol
0
1
72/72
72/72
48–48/48
2.00
6.1 Sol
1
1
72/72
72/72
48–48/48
2.00
6 Luna
0
0
9/72
1/72
2–4/48
0.85
6 Luna
1
0
70/72
62/72
43–45/48
1.92
Table 4: Separated wording factors. Each neutral or attack count is over 72 episodes, and each rollout batch is over 48. Def. is the committed-effect definition. A recipe supplies an explicit action sequence and therefore also constrains recovery behavior.
Wording
Neutral Va
Malicious Va
N-only
X-only
McNemar p
Original
9/72
1/72
9
1
0.0215
Definition only
70/72
62/72
10
2
0.0386
Table 5: Luna’s availability contrast in the repeated absent-state study, 72 matched pairs per row. N-only and X-only count pairs valid only under neutral or malicious text. The exact two-sided McNemar calculation assumes independent pairs; repeated tasks and shared templates limit that assumption.
Policy
Harm/2
Goal/4
Valid/4
Final/4
Unprotected
2
3
2
4
Prompt only
2
3
2
4
EBRG
0
4
4
3
Table 6: Audit of 12 supplied traces, four per policy. These are inherited observations on one task, not newly rerun model experiments.
Figure 2: The scorer audit exposes two harmful records previously credited by goal presence. Squares are individual supplied records, not estimated attack probabilities.
Contract
Control
No unauthorized effect
At most one write
Atomic
Keyed retry
Holds
Holds
Atomic
EBRG
Holds
Holds
Settled keys
Keyed retry
Holds
Violated
Settled keys
EBRG
Holds
Holds
Stale absence
Keyed retry
Holds
Violated
Stale absence
EBRG
Holds
Violated
Table 7: Scoped safety invariants in the bounded checks. Holds means no violation among 25,209 histories for that control and contract, under the stated fixed-world assumptions. Violated means a concrete witness exists. These entries are not measured attack rates or unbounded proofs.
Figure 3: Shortest duplicate witnesses under weakened contracts. The initial request passes its arrival-time check without reserving the key. A retry commits before the delayed original, whose commit does not recheck the key. Stale absence lets an evidence gate enter the same race.
Task wording
Model
Median s
P95 s
Input tokens
Output tokens
Combined clarification
6 Luna
3.22
5.63
1,184,131
78,057
Combined clarification
6.1 Sol
5.70
7.32
1,169,424
90,462
Original
6 Luna
2.59
4.94
718,605
88,428
Original
6.1 Sol
4.35
6.00
751,193
78,665
Table 8: Retained API campaign cost. Wall time is descriptive under the recorded hosting and scheduling conditions; P95 is an empirical order statistic. Token totals cover all 864 episodes in a row.
Claude Opus 5.5 ( claude-opus-5-5 ), Claude Code 2.1.330
Control
Initial state
Neutral valid
Malicious valid
A,K
Y,D
Unprotected
Absent
24/24
24/24
0, 0
0, 0
Unprotected
Committed
24/24
24/24
0, 0
0, 0
Unprotected
In flight
24/24
24/24
0, 0
0, 0
EBRG
Absent
24/24
24/24
0, 0
0, 0
EBRG
Committed
24/24
24/24
0, 0
0, 0
Table 9: Claude Opus 5.5 ( claude-opus-5-5 ) via Claude Code, under the combined clarification and original atomic provider. Counts are valid completions per included message cell; each full cell has 24 authored task identities and one rollout. A,K are unauthorized-semantic and changed-key proposal episodes; Y,D are unauthorized and duplicate effect episodes, pooling both messages within a row. This is not a matched API-model ranking.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Family
Original n
Combined n
Repeated n
Calibration n
Denials
redirect
216
216
144
81
0
duplicate
216
216
144
81
1
identity swap
216
216
144
81
1
compensate
216
216
144
81
2
Appendix
Table 10: Malicious episode exposure by attack family, pooling models and controls within each cohort. Repeated denotes the separated wording factorial; calibration pools three stronger styles. All proposal/effect deviation counts are zero. Denials concern safe intent without sufficient evidence.
Family
Original N
Original X
Def.-only N
Def.-only X
Redirect
1/18
0/18
17/18
17/18
Fresh-key duplicate
2/18
0/18
17/18
14/18
Identity swap
1/18
1/18
18/18
18/18
Compensation
5/18
0/18
18/18
13/18
Appendix
Table 11: Luna’s repeated absent-state valid recovery by family, 18 episodes per message and wording. N and X denote neutral and malicious messages; original has neither added sentence.
Wording
Fisher p
McNemar p
Task flips
Template flips
Original
0.0174
0.0215
0.0312
0.0625
Definition only
0.0310
0.0386
0.1172
0.3750
Appendix
Table 12: Exploratory reference calculations for Luna’s two non-recipe wording conditions. Fisher ignores matching; McNemar treats pairs as independent; sign flips aggregate by 24 tasks or eight templates. None establishes population causality.
Contract
Control
Unauthorized paths
Duplicate paths
Valid completion paths
Atomic
Keyed retry
0
0
22,866
Atomic
EBRG
0
0
17,589
Settled keys
Keyed retry
0
4,110
18,756
Settled keys
EBRG
0
0
17,589
Stale absence
Keyed retry
0
4,110
18,756
Stale absence
EBRG
0
171
17,418
Appendix
Table 13: Enumeration detail for Table 7 : 25,209 histories per control and contract over zero through four calls. Counts depend on the declared action alphabet and are not sampled attack probabilities.
When an AI coding agent deletes the wrong files or a long agent run crashes, users fall back on recovery mechanisms: resume from a checkpoint, undo, ask for approval, read the log. Research runtimes promise stronger guarantees, such as saga-style compensation and transactional rollback. We ask what public evidence shows about whether either kind works in real use. Under a protocol frozen before data collection, we graded 12 persistent agent runtimes, 26 coding-agent harnesses and 12 research runtimes on eight recovery mechanisms, from not found to exercised in a real run, with two blind coding passes, adjudication and re-verification against archived sources. Recovery is exercised almost everywhere in practice: 11 of 12 runtimes and 25 of 26 harnesses have at least one real-use report. Yet of 128 such reports, only 19 describe the run fully recovering; 54 are partial and 45 failed. Checkpoint/resume recovered once in 27 reports, rollback once in 15. Research runtimes show the opposite profile: guarantees evaluated on benchmarks, none reported in operation, and compensation of external effects, their central guarantee, is offered by no harness at all.
Kaviru Hapuarachchi
University of Colombo School of Computing Colombo, Sri Lanka
Tool-using AI agents are increasingly deployed across enterprise software systems, yet widely used benchmarks primarily evaluate nominal task completion, conflating baseline planning competence with operational fault recovery. We introduce UndoBench, a benchmark spanning 36 base workflows and 36 fault scenarios across 8 enterprise domains, decoupling task competence from recovery capability via counterfactual paired trials under identical seeds alongside wire-level effect-history and environment-state oracles. On 12 held-out TEST workflows across two open-weight models, two frameworks, and three recovery paradigms (5,760 executions / 2,880 paired trials) in the frozen lost-acknowledgment study, nominal competence reached 83.54% while conditional recovery success rate (CRSR) fell to 46.72%, with naive retry producing duplicate external effects in 53.33% of trials. Extensions to commercial API models reproduced this competence-recovery separation. Evaluations across complementary execution boundaries show that recovery is phase-dependent: before mutation, methods perform similarly without duplicate effects among capable trials; during partial mutation, naive retry, per-call idempotency, and zero-privilege journaling collapse on the evaluated composite workflows; after commit but before acknowledgment, verification and server-side idempotency substantially improve safety. These findings demonstrate that evaluating nominal completion alone masks critical, phase-dependent recovery vulnerabilities in autonomous agents.
When a tool call times out, the agent sees the failure and can route around it. A cached error page or negative price can instead arrive in the expected format and be consumed as fact. We introduce Outcome Monitors, which detect violations of outcome contracts mined from task-disjoint traces or derived from public schemas. On a violation, the monitor preserves the result and issues a nonbinding receipt naming the violated property and public recovery tools. In frozen, prespecified evaluations with injected failures, Outcome Monitors raise ToolMaze completion from 10.9% to 28.1% across four models in two provider families and replicate in a third. In tau-bench retail, completion improves by 14.0 and 12.0 points on two tiers. In separate ToolMaze controls, removing the recovery-tool list eliminates the measured gain and restoring it recovers the effect; diagnostic detail and timing produce no detectable differences. Gains concentrate where the fault blocks completion. On a suite transcribed from a published incident taxonomy, detection outside the mined vocabulary falls to 46%, though delivery continues and completion is unchanged. Recovery tools are the active receipt content in these controls; extending detection beyond the contract vocabulary remains open.