UndoBench released: separating task capability from fault recovery capability for tool-based agentsUndoBench: Separating Task Competence from Recovery Capability in Tool-Using AI Agents
Quick read
Evaluation and benchmarksBased on the paper PDF (generated by Gemini); refer to the original
UndoBench decouples agent task capability from recovery; under lost acknowledgment, the two Llama models have a nominal success rate of 83.54% and a conditional recovery rate of 46.72%.
- Existing tool-based agent benchmarks mainly evaluate task completion in unperturbed nominal environments, confounding baseline planning capability with operational fault recovery. In real distributed systems, network packet loss can cause external commits with lost acknowledgments, and blind retries can trigger external state corruption such as duplicate charges.
- UndoBench covers 36 workflows across 8 domains, decoupling nominal and recovery abilities through paired counterfactual runs under the same seed. The benchmark defines the conditional recovery success rate CRSR, covering three boundaries: pre-mutation, during-mutation, and lost acknowledgment, and is adjudicated by dual oracles: physical state and wire logs.
- On 12 TEST workflows under lost acknowledgment, Llama achieves a nominal success rate of 83.54%, CRSR drops to 46.72%, and naive retries cause 53.33% duplicates. Commercial models also reproduce this separation; during-mutation faults reduce CRSR to 0.00% for naive retries, single-call idempotency, and zero-privilege logging.
- The authors point out that the test set contains only 12 task clusters; commercial APIs lack bit-for-bit determinism guarantees; only a single fault is injected per run, with no cascading faults; the environment is based on a simulated sandbox; open-source experiments are limited to two Llama models; and B6 is post-hoc evaluation.
- Evaluated models
- Llama-3.1-8B-InstructLlama-3.2-3B-InstructGemini 3.8 FlashGLM-5.2 MaaS
- Benchmarks
- UndoBench
- Metrics
- Control (Comp)RSRCRSREORDERURRMER
The researchers propose UndoBench, a benchmark covering 8 enterprise domains, 36 base workflows, and 36 fault scenarios, which separates task capability from recovery capability through same-seed paired counterfactual trials. In a frozen lost-acknowledgment study on 12 held-out TEST workflows, two open-weight models, two frameworks, and three recovery paradigms (5,760 executions / 2,880 paired trials), the nominal task success rate is 83.54%, while the conditional recovery success rate (CRSR) drops to 46.72%, and naive retry produces duplicate external side effects in 53.33% of trials. Extended to commercial API models such as Gemini 3.8 Flash and GLM-5.2 MaaS, the capability-recovery separation persists, with CRSR under naive retry at approximately 21.08% and 21.89%, respectively.
Paper analysis
What problem does this paper attempt to solve?
Existing benchmarks confound nominal planning and fault recovery abilities; the paper proposes UndoBench to evaluate agent recovery under mutation faults using paired counterfactual runs.
Existing tool-based agent benchmarks evaluate end-to-end task completion only under nominal, disturbance-free conditions, confounding baseline planning ability with operational fault recovery ability, and fail to detect duplicate external side effects caused by distributed system faults such as lost acknowledgments.
- Scenario and practical importance: In enterprise-grade distributed software systems, agents perform high-risk operations such as database migrations, cloud resource provisioning, or cross-border remittances. Real operating environments frequently experience transient delays, internal service errors, and distributed hazards where external mutations have already been committed on the server side but the acknowledgment is lost due to network interruption (lost-ACK).
- Limitations of existing benchmarks: The authors state that existing agent benchmarks (e.g., SWE-bench, ToolBench, API-Bank, AgentBench, WebArena) mostly evaluate only under nominal, disturbance-free conditions, checking only final string answers or task success scalars. They neither inject lost-acknowledgment faults nor check wire-level external side effects, so duplicate external damage caused by retry behavior goes undetected.
- Core observation and hypothesis: Reporting a single end-to-end task success rate confounds nominal task competence with recovery capability; moreover, recovery behavior is not a single scalar but is phase-dependent, varying with the stage of the external state mutation lifecycle at which the fault occurs (pre-mutation, during-mutation, post-mutation pre-acknowledgment).
- Paper's solution: The authors propose UndoBench, covering 36 baseline workflows and 36 fault scenarios across 8 enterprise domains. It decouples task competence from recovery capability through paired counterfactual runs under the same random seed, defines the conditional recovery success rate (CRSR), and combines a physical environment state oracle with a wire-level effect log to monitor the execution safety of external operations.
What related research exists?
Related work covers nominal agent benchmarks, failure injection benchmarks, and transactional verification mechanisms; UndoBench distinguishes recovery capabilities through paired counterfactuals and dual oracles.
The authors discuss three categories of related research and clarify the differences with this paper in evaluation dimensions:
Tool-based agent benchmarks under nominal conditions
- SWE-bench (Jimenez et al., 2024), ToolBench (Qin et al., 2024), API-Bank (Li et al., 2023), AgentBench (Liu et al., 2024), WebArena (Zhou et al., 2024), and OccuBench (Hu et al., 2026): Evaluate agents' planning and tool execution in code modification, API calls, or web interactions. The paper notes these benchmarks primarily evaluate under nominal, non-perturbed conditions, do not inject lost confirmation failures, do not track line-level side effects, and cannot distinguish planning failures from failure recovery failures.
Agent failure injection and reliability benchmarks
- ReliabilityBench (Gupta, 2026) and AgentChaos (Tan et al., 2026): Test agent system reliability under stress and chaos engineering conditions via programmatic failure injection.
- ToolMisuseBench (Sigdel and Baral, 2026) and ContainmentBench (Lan et al., 2026): Offline evaluation of recovery behavior after tool misuse, and evaluation of agents' containment capability after exposure based on execution traces, respectively.
- LIMBO (Li, 2026) and AFT-Bench (Wang, 2026): LIMBO focuses on the impact of models, governance frameworks, and tool contracts on repeated side effects of agents and discusses responsibility attribution; AFT-Bench estimates the mechanistic effects of interface semantics on agent operability through controlled interface interventions.
Transactional guarantees and verification defense mechanisms
- Verified Tool Calls (Mansoor et al., 2026): Combines post-hoc condition verification, pre-retry verification, and idempotent middleware to address non-atomic tool failures.
- The Verifier Tax (Sah et al., 2026b): Studies runtime safety interventions; the authors state it points out that safety interventions can prevent unsafe operations but cannot guarantee successful recovery after intervention.
- Atomix (Mohammadi et al., 2026), SagaLLM (Chang and Geng, 2025), and MemTX (Li et al., 2026): Study epoch-buffer-based transactional tool use, Saga transaction coordination planning, and memory transaction commit mechanisms, respectively.
Baseline methods and benchmark positioning
- Comparison baselines and datasets: The evaluation includes Naive Retry (B0), request-level idempotency keys (B2), zero-privilege mutation logs (EvoUndo-RB1, B5), Verify-Before-Retry (B6), and global server-side idempotency (B2-K); the evaluation dataset is UndoBench (36 workflows, split into 14 DEV, 10 VALIDATION, and 12 held-out TEST tasks).
- This paper's positioning: The authors state that UndoBench emphasizes conditional recovery evaluation (CRSR), multi-turn workflow recovery, paired counterfactual controls, dual-state and line-log oracles under zero privilege, and empirically demonstrates stage-dependent recovery dynamics across the mutation lifecycle.
How does the paper address this problem?
The paper decouples nominal and recovery capability through seed-bound paired counterfactual executions, and jointly adjudicates with a dual oracle consisting of an environment state oracle and a line-level side-effect log.
UndoBench formally decouples nominal task competence from fault recovery ability by constructing a paired counterfactual execution paradigm and dual oracles. The overall design is divided into the following parts:
Problem Setting and Decoupling Metrics
Let the task distribution be T and the agent be A. Nominal task competence is defined as the benchmark control pass rate Comp = P(Success | Nominal). The unconditional recovery success rate measured by injecting faults without counterfactual control is RSR = P(Success | Fault). Since unconditional RSR confounds planning failures with recovery failures when nominal competence is low, UndoBench defines the conditional recovery success rate conditioned on nominal success: CRSR = P(Success | Fault, Comp) = 1/D∑i=1N Ci Fi where N is the total number of paired trials, Ci ∈ {0, 1} indicates whether the nominal control run under the same seed succeeded, Fi ∈ {0, 1} indicates whether the fault run succeeded, and D = ∑i=1N Ci is the number of competent trials.
Fault Model and Mutation Lifecycle Boundaries
Each agent tool call generates an agent-visible return value and an external side-effect state transition. UndoBench formalizes five execution boundaries spanning the external state mutation lifecycle:
- PRE_MUTATION: transport faults before remote initiation (e.g., connection timeout, DNS error);
- DURING_MUTATION: faults during non-atomic state update execution (e.g., unique key conflict, concurrent abort);
- POST_MUTATION_PRE_ACK: remote mutation committed, but transport layer interrupted before acknowledgment returns to client (lost acknowledgment);
- POST_ACK_PRE_CHECKPOINT: client receives acknowledgment but crashes before persisting checkpoint;
- DURING_COMPENSATION: faults during execution of compensatory rollback operations.
The frozen main experiment focuses on the POST_MUTATION_PRE_ACK boundary; subsequent secondary extensions add PRE_MUTATION and DURING_MUTATION. Tool effects are classified by physical reversibility into REVERSIBLE, COMPENSATABLE, and IRREVERSIBLE.
Physical Invocation, Committed Mutation, and Semantic Effect Layering
UndoBench distinguishes three levels:
- Physical invocation: wire-level dispatch of API requests at the network boundary;
- Committed mutation: operations that persistently change state on remote services (e.g., writing to database, committing Git tree);
- Semantic effect: high-level business invariants required by the task specification.
If only terminal strings are checked, a model that blindly retries committed mutations may pass assertions while causing duplicate changes in real environments.
Dual Oracles and Effect Monitoring
The evaluation system audits execution safety through two oracles:
- Final-State Oracle: after task completion, queries database schemas, Git commit graphs, object storage, and CRM systems to verify target invariants and state equivalence;
- Wire-Level Effect-History Oracle: intercepts and audits agent transaction logs, counting the number of commits for each target entity k:
dupi = ∑k max(0, commits(k) − 1) Then computes duplicate effect rate (DER), missing effect rate (MER), and exactly-once semantic effect rate (EORcond). In the frozen test environment, the final-state oracle strictly requires no duplicates and no omissions, so EORcond numerically coincides with CRSR.
Recovery Paradigms and Execution Architecture
The benchmark implements three main recovery paradigms:
- B0 Naive Retry: upon error, retry with exponential backoff up to 3 times;
- B2 Idempotency Keys: derive SHA-256 digest from task context, tool name, and parameters as idempotency key; server-side caching deduplicates when supported;
- B5 EvoUndo-RB1: zero-privilege implementation under UndoBench constraints, using only client-side mutation logs, no remote probes or pre-registered inverse functions, defaulting to bounded retry when reconciliation is impossible.
Evaluation is also conducted under two runtime architectures: direct tool invocation (F1) and LangGraph (F2). Open-source models are sampled with temperature T = 0.2, top-p = 1.0, and maximum generated tokens = 512.
What experiments did the paper conduct?
Across 12 test tasks under lost acknowledgment, Llama nominal success rate is 83.54%, while conditional recovery rate is 46.72%, and naive retry produces 53.33% duplication.
Experimental setup
- Tested models: Local open-source instruction models are Llama-3.1-8B-Instruct (8.0B, Q4_K_M) and Llama-3.2-3B-Instruct (3.2B, Q4_K_M); commercial API models are Gemini 3.8 Flash (gemini-3.8-flash) and GLM-5.2 MaaS (zai-org/glm-5.2-maas).
- Dataset and workflows: UndoBench contains 36 baseline workflows across 8 enterprise domains (Cloud, CRM, Database, Git, Messaging, Payments, Storage, Ticketing), split into 14 DEV, 10 VALIDATION, and 12 held-out TEST tasks.
- Architectures and baselines: Orchestration architectures include direct tool calling (F1) and LangGraph (F2); recovery baselines include naive retry (B0), idempotency keys (B2), EvoUndo-RB1 (B5), and, in later extensions, pre-retry verification (B6) and full-benchmark server-side idempotency (B2-K).
- Primary metrics: Nominal control pass rate Control, unconditional recovery rate RSR, conditional recovery rate CRSR, exactly-once rate EORcond, duplicate effect rate DER, unsafe retry rate URR, and missing effect rate MER.
- Evaluation protocol and sample size: Open-source model main experiments use sampling temperature T = 0.2, top-p = 1.0, and a maximum of 512 tokens per turn; run across 20 evaluation seeds (12 tasks × 2 models × 2 frameworks × 3 methods × 20 seeds = 5,760 executions / 2,880 paired trials); adjudication is entirely based on the dual oracle of programmatic terminal states and line logs, with no LLM scoring.
Main results
Main experimental results for open-source models (Llama-3.1-8B and Llama-3.2-3B) on 12 held-out TEST workflows with POST_MUTATION_PRE_ACK fault injection:
Swipe horizontally to read the table
Recovery method Control (D/960) CRSR (R/D) EORcond (/D) DER (/960) URR (/960) B0: Naive Retry 802 / 960 42.77% 42.77% 53.33% 53.33% B2: Idempotency 802 / 960 53.49% 53.49% 45.42% 45.42% B5: EvoUndo-RB1 802 / 960 43.89% 43.89% 51.67% 51.67% Per Table 1. Note: CRSR and EORcond are computed on the number of nominally successful trials (D = 802); DER and URR are computed on all 960 paired trials.
- Separation of task capability and recovery capability (Finding 1): The authors state that the overall nominal task success rate reaches 83.54% (2,406 / 2,880), but the unconditional recovery rate RSR after fault injection is 39.03% (1,124 / 2,880), and the conditional recovery rate CRSR is 46.72% (1,124 / 2,406), indicating that relying only on nominal task success rate overestimates reliability under perturbation.
- Recovery baseline comparison: The authors note that B2 shows a descriptive CRSR improvement of +10.72 percentage points over B0 (53.49% vs. 42.77%), but because only 3 of the 12 test endpoints support idempotency key deduplication, it does not reach statistical significance under the task-cluster bootstrap test (Holm-Bonferroni adjusted padj = 1.00); the zero-privilege B5 changes little relative to B0 (+1.12 percentage points, padj = 1.00).
- External duplicate effects and safety: Under naive retry (B0), the duplicate effect rate DER reaches 53.33% (512 / 960); under the lost-acknowledgment mechanism, every unsafe retry against an unprotected endpoint produces a duplicate submission, so URR and DER are numerically identical.
Extended evaluation on commercial API models
- Test setup: Gemini 3.8 Flash and GLM-5.2 MaaS are evaluated on the same 12 TEST workflows and 20 seeds (N = 2,880 paired trials / 5,760 executions, per Table 3 and Table 13).
- Experimental results: The nominal control rates of Gemini 3.8 Flash and GLM-5.2 are 80.69% and 77.71%, respectively; under lost acknowledgment, B0 CRSR drops to 21.08% (82 / 389) and 21.89% (81 / 370), respectively, showing capability-recovery gaps of 59.96 and 55.19 percentage points; under B0, DER is 65.62% and 51.25%, respectively. B2 CRSR rises to 33.33% and 33.07%, respectively (pooled improvement +11.73 percentage points, adjusted padj = 0.0528).
- Author interpretation: The authors argue that improved general reasoning capability does not eliminate the risk of external side effects from retry loops lacking coordination.
Multi-boundary recovery dynamics evaluation
- Test setup: Commercial models are evaluated on 4 composite workflows supporting multi-boundary semantics (RB-DB-004, RB-STOR-004, RB-CLOUD-004, RB-GIT-004) across pre-mutation, during-mutation, and lost-acknowledgment stages (N = 1,280 paired trials / 2,560 executions, per Table 4 and Table 14).
- Experimental results: At pre-mutation (PRE_MUTATION), CRSR for B0, B2, B5, and B6 ranges from 76.68% to 77.42%, with no duplicate effects in nominally capable trials; at during-mutation (DURING_MUTATION), CRSR for B0, B2, and B5 is all 0.00% (DER reaches 81.56%–82.50%), and only B6 recovers cloud tasks via public probes, achieving 25.89% CRSR; under lost acknowledgment, B6 reaches 75.00% CRSR.
- Author interpretation: The authors note that recovery performance is stage-dependent: pre-mutation resubmission is safe, during-mutation requires intermediate state reconciliation, and under lost acknowledgment it requires submission uncertainty verification or server-side deduplication.
Full-benchmark server-side idempotency mechanism isolation (B2-K)
- Test setup: Server-side idempotency support is deployed for all 12 TEST tasks on commercial models (B2-K, N = 960 paired trials / 1,920 executions, per Appendix L).
- Experimental results: With full support, B2-K CRSR rises from 33.20% for standard B2 to 97.24% (741 / 762), with DER at 0.00%; on the common capability sample, CRSR reaches 98.64% (728 / 738).
- Failure analysis: Of the remaining 21 failures, 17 occur at round 0 before tool invocation (caused by commercial API parameter errors or response validation failures), and 4 occur in multi-turn continuations after successful deduplication (the model generated unparseable parameters causing audit log validation failures).
Other ablations and analyses
- Orchestration framework equivalence: F1 and F2 both have a nominal control rate of 83.54% (difference 0.00 percentage points), with CRSR of 46.97% vs. 46.47% (difference +0.50 percentage points); the TOST test confirms statistical equivalence within a ±10 percentage point interval (pTOST < 0.001, Section 4.4).
- Open-source model comparison: On the 10 test tasks commonly supported, M1 CRSR is 44.50% and M2 is 54.17% (difference -9.67 percentage points, 95% CI [-27.08 pp, +7.73 pp], Section 4.4).
- Physical reversibility stratification: Reversible tasks (1) have 100.0% recovery for both B0 and B2; compensable tasks (9) have B0 CRSR of 33.27% and B2 of 48.42%; irreversible tasks (2) have 48.05% for both B0 and B2 (Table 9).
- Operational overhead telemetry: Fault runs have an average latency increase of 29.3% over control runs (3,782 ms vs. 2,924 ms), and tool calls increase by 55.8% (2.40 vs. 1.54) (Table 10).
- Oracle adversarial testing: 72 synthetic adversarial test cases are executed on 12 TEST contracts, with a pass rate of 72 / 72 (Appendix N).
What are some points that can be further explored?
The authors point out limitations such as the test set containing only 12 task clusters, commercial models having no bit-for-bit reproducibility guarantee, a single fault injection mode, and a simulated sandbox environment.
Limitations and future directions noted by the authors
- Model scope and provider determinism: The main study focuses on two open-source models; in the commercial API extension, although task configurations and seeds remain deterministic, commercially hosted APIs do not contractually guarantee bit-for-bit generation reproducibility across runs (Limitations 1).
- Statistical power of task clusters: The TEST split contains 12 independent task clusters (K = 12); 20 repeated seeds reduce within-task variance but do not increase the number of independent clusters (Limitations 2).
- Fault boundary coverage: The frozen study focuses on POST_MUTATION_PRE_ACK; secondary experiments cover PRE_MUTATION and 4 mid-mutation workflows; boundaries not studied in the UndoBench taxonomy include POST_ACK_PRE_CHECKPOINT and DURING_COMPENSATION, which cannot be realistically realized under synchronous frameworks, as well as cascading faults and larger workflow suites (Limitations 3).
- Single fault injection mode: The benchmark injects exactly one fault per trajectory; cascading, concurrent, or Byzantine faults are left to future work (Limitations 4).
- Sandbox environment fidelity: The environment is based on simulated enterprise APIs (SQLite, local Git, Mock Stripe/AWS), whereas production systems have higher concurrency and variable latency distributions (Limitations 5).
- Backoff schedule sensitivity: B0 uses a fixed retry budget of 3 attempts with exponential backoff; sensitivity scans across different backoff schedules are left to future work (Limitations 10).
Experimental coverage
- Tested models include Llama-3.1-8B-Instruct, Llama-3.2-3B-Instruct, Gemini 3.8 Flash, and GLM-5.2 MaaS, 4 models in total.
- The task suite covers 36 baseline workflows across 8 enterprise domains; the main experiment and secondary extensions cover 12 held-out TEST workflows, and the mid-mutation experiment covers 4 composite workflows.
- Fault injection covers three execution boundaries: pre-mutation (PRE_MUTATION), during mutation (DURING_MUTATION), and lost acknowledgment (POST_MUTATION_PRE_ACK), with a single fault injected per run.
- Recovery paradigm evaluation includes naive retry (B0), endpoint- and benchmark-level idempotency keys (B2, B2-K), zero-privilege mutation logs (B5), and post-hoc verification retry (B6).
- Orchestration frameworks include direct tool calling (F1) and LangGraph (F2), two runtime architectures.
Summarize the main content of the paper
UndoBench decouples agent task capability from fault recovery through paired counterfactuals and a dual oracle, revealing that recovery capability is highly dependent on the stage at which the external mutation occurs.
- Positioning and core problem: UndoBench is an evaluation benchmark for operational fault recovery of tool-based AI agents, aiming to address the issue that existing evaluations are mainly conducted in nominal, disturbance-free environments, thereby confounding baseline planning ability with operational recovery ability.
- Evaluation design: The benchmark covers 36 workflows across 8 enterprise domains. Through paired counterfactual runs under the same random seed, it defines the conditional recovery success rate (CRSR) conditioned on nominal success, and combines a physical environment state oracle with a wire-level effect log oracle to strictly monitor duplicate, missing, and exactly-once external side effects.
- Capability and recovery decoupling results: On 12 TEST workflows under lost-acknowledgment faults, the open-source Llama model achieves a nominal success rate of 83.54%, but CRSR drops to 46.72%, and naive retries cause 53.33% duplicate external effects; commercial API models also exhibit a gap of over 55 percentage points between nominal success and conditional recovery.
- Phase-dependent findings: Fault recovery is not a single scalar capability. In the pre-mutation phase, retries perform similarly with no duplicates; in the during-mutation phase, naive retries, single-call idempotency, and zero-privilege logging all reduce CRSR to 0.00% across 4 composite tasks; in the lost-acknowledgment phase, pre-retry verification and server-side idempotency significantly reduce duplicate mutation risk.
- Mechanism isolation results: Deploying full-benchmark server-side idempotency (B2-K) raises commercial model CRSR to 97.24% and eliminates duplicate side effects, but non-recovery failures such as round-0 API anomalies and post-deduplication multi-round planning errors remain.
- Authors' conclusion: The authors note that looking only at nominal completion rates masks critical phase-dependent recovery vulnerabilities; agent fault-tolerant recovery depends not only on model reasoning but also on coordinated support from system-level infrastructure and endpoint protocols.