arXiv:2610.05622cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.05622

UndoBench: Separating Task Competence from Recovery Capability in Tool-Using AI Agents

Dolly Sah, Tanmay Sah, Harshul Jain, Tanya Sah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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.

1 Introduction

Autonomous software agents driven by large language models (LLMs) have advanced from static text generation to interactive tool execution across heterogeneous computing environments. Today, LLM agents inspect source code repositories, execute database migrations, query customer relationship management (CRM) platforms, provision cloud infrastructure, and initiate cross-border wire transfers.

Despite rapid advances in agent planning and tool-calling capabilities, a profound discrepancy separates laboratory benchmark evaluations from production reliability. In real-world distributed systems, software environments do not behave as static sandboxes. Distributed networks experience transient latency and dropped packets; upstream microservices return rate limits and unexpected internal server errors; and database writes trigger unique-key conflicts. Crucially, operations frequently suffer from lost acknowledgments—a fundamental distributed systems hazard where an external mutation succeeds on a remote server, but the network connection drops before the client receives the confirmation.

When human software engineers encounter these failures, they rely on established fault-tolerance patterns such as idempotency, write-ahead logging, and compensating transactions (Sagas) (Garcia-Molina and Salem, 1987; Helland, 2012; Mohan et al., 1992). In contrast, modern AI agent architectures typically treat tool execution as an uninspected request-response primitive. When a tool raises an exception, the agent runtime either crashes or passes the error string back into the prompt context, relying on naive retry loops or in-context self-reflection mechanisms such as Reflexion (Shinn et al., 2023) to resolve the issue.

Existing agent benchmarks—such as SWE-bench (Jimenez et al., 2024), ToolBench (Qin et al., 2024), API-Bank (Li et al., 2023), AgentBench (Liu et al., 2024), and WebArena (Zhou et al., 2024)—fail to surface or quantify these vulnerabilities. These benchmarks evaluate agents almost exclusively under nominal, unperturbed conditions. These task-oriented benchmarks generally do not distinguish nominal planning failures from recovery failures induced by operational ex-ecution faults. Current evaluation paradigms provide no mechanism to answer a critical operational question: If an agent possesses the competence to solve a workflow nominally, can it safely and correctly recover when an external system fault occurs mid-execution?

Consider a financial agent executing a subscription renewal: process_renewal(sub_id="sub_99", amount=1200). If the remote payment gateway commits the charge but the response packet drops, the agent catches a connection timeout. Lacking knowledge of whether the mutation committed, a standard retry loop immediately re-issues the tool call, charging the account a second time and causing a duplicate billing violation. Traditional benchmarks cannot detect this failure because they never inject acknowledgment loss and never inspect external wire-level side effects.

Furthermore, reporting a single end-to-end task success metric conflates two distinct phenomena: (1) Task Competence: whether the model can coordinate tools to accomplish a goal under nominal conditions; and (2) Recovery Capability: whether the agent can diagnose, reconcile, and safely repair execution state when a fault strikes.

Research Question. How does recovery behavior change as a fault moves across the external-mutation lifecycle? In distributed architectures, execution proceeds through distinct phases: before remote state modification begins (PRE_MUTATION), mid-execution during active non-atomic state updates (DURING_MUTATION), and after remote commit while awaiting confirmation (POST_MUTATION_PRE_ACK). While UndoBench's taxonomy formalizes additional execution boundaries, our secondary evaluations prospectively cover these three foundational phases to determine whether agent recovery constitutes a single scalar capability or a phase-dependent systems property.

To address these foundational challenges, we introduce UndoBench, a benchmark designed to formally separate multi-turn task competence from recovery capability across the external-mutation lifecycle. This paper provides four core contributions:

  1. Multi-Boundary Benchmark Formulation: A suite of 36 base workflows and 36 fault scenarios across 8 enterprise domains, evaluating agent recovery across distinct execution boundaries relative to external state mutation.

UndoBench Architecture & Decoupled Evaluation Flow

Figure

Decoupled Evaluation: Counterfactual Control (C) isolates Planning Competence; Paired Fault Execution (F) isolates Recovery.

Figure 1: UndoBench Decoupled Evaluation Architecture. Every workflow is evaluated as a paired counterfactual execution under identical seeds, separating nominal planning competence ( CiC_{i}) from fault recovery capability ( FiF_{i}).

  1. Decoupled Paired Evaluation & CRSR: A counterfactual evaluation paradigm pairing every faulted run with an identical-seed control execution, defining Conditional Recovery Success Rate (CRSR) to evaluate recovery conditional on paired nominal task success.

  2. Dual State and Effect-History Oracles: Programmatic oracles verifying physical environment invariant satisfaction alongside wire-level effect monitors that quantify duplicate (DER), missing (MER), and exactly-once (EOR) execution safety.

  3. Phase-Dependent Empirical Characterization: A frozen confirmatory lost-ACK study (5,760 executions / 2,880 paired trials) coupled with prospectively specified post-freeze secondary extensions across contemporary models, complementary execution boundaries, and benchmark-wide idempotency interventions.