---
type: "post"
id: "undobench-separating-task-competence-from-recovery-capability-in-5dff47"
slug: "undobench-separating-task-competence-from-recovery-capability-in-5dff47"
title: "UndoBench: Separating Task Competence from Recovery Capability in Tool-Using AI Agents"
description: "UndoBench is an open benchmark for testing whether tool-using agents recover safely from execution failures."
retrieval_nugget: "UndoBench is an open benchmark for testing whether tool-using agents recover safely from execution failures."
published_at: "2026-11-29"
updated_at: "2026-11-29"
record_date: "2026-11-29"
date_kind: "published_at"
topics: ["evals","tool-use"]
entities: ["UndoBench","LangGraph","Dolly Sah","Tanmay Sah","Harshul Jain","Tanya Sah"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://github.com/tradertanmay/undobench"
source_urls: ["https://github.com/tradertanmay/undobench"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-11-29T03:07:15.929Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":null,"editorial_value":"medium","human_review":"selective"}
citations: [{"claim":"","quotes":["Evaluated Recovery Baselines UndoBench provides unified, pluggable baseline wrappers for evaluating diverse recovery paradigms: Naive Retry ( $B_0$ ) : Blind re-execution upon error (induces duplicate mutations in 53.33% of faulted runs)."],"cite_url":"https://github.com/tradertanmay/undobench#:~:text=Evaluated%20Recovery%20Baselines%20UndoBench%20provides%20unified%2C%20pluggable%20baseline%20wrappers%20for%20evaluating%20diverse%20recovery%20paradigms%3A%20Naive%20Retry%20%28%20%24B_0%24%20%29%20%3A%20Blind%20re%2Dexecution%20upon%20error%20%28induces%20duplicate%20mutations%20in%2053.33%25%20of%20faulted%20runs%29.","source_url":"https://github.com/tradertanmay/undobench","publisher":"github.com"},{"claim":"","quotes":["UndoBench introduces counterfactual paired evaluation : every workflow is executed twice under identical seeds—once under nominal conditions ( CONTROL ) and once under controlled transport fault injection ( FAULT ).","Conditional Recovery Success Rate (CRSR = $R/D$ ) : Recovery success among trials that succeed under nominal CONTROL ( $\\text{CRSR} = \\frac{\\sum C_i F_i}{\\sum C_i}$ )."],"cite_url":"https://github.com/tradertanmay/undobench#:~:text=UndoBench%20introduces%20counterfactual%20paired%20evaluation%20%3A%20every%20workflow%20is%20executed%20twice%20under%20identical%20seeds%E2%80%94once%20under%20nominal%20conditions%20%28%20CONTROL%20%29%20and%20once%20under%20controlled%20transport%20fault%20injection%20%28%20FAULT%20%29.&text=Conditional%20Recovery%20Success%20Rate%20%28CRSR%20%3D%20%24R%2FD%24%20%29%20%3A%20Recovery%20success%20among%20trials%20that%20succeed%20under%20nominal%20CONTROL%20%28%20%24%5Ctext%7BCRSR%7D%20%3D%20%5Cfrac%7B%5Csum%20C_i%20F_i%7D%7B%5Csum%20C_i%7D%24%20%29.","source_url":"https://github.com/tradertanmay/undobench","publisher":"github.com"},{"claim":"","quotes":["Exactly-Once Semantic Effect Rate (EOR) : Task completion where the intended semantic effect occurs exactly once, satisfying all goal invariants with zero duplicate or missing semantic effects."],"cite_url":"https://github.com/tradertanmay/undobench#:~:text=Exactly%2DOnce%20Semantic%20Effect%20Rate%20%28EOR%29%20%3A%20Task%20completion%20where%20the%20intended%20semantic%20effect%20occurs%20exactly%20once%2C%20satisfying%20all%20goal%20invariants%20with%20zero%20duplicate%20or%20missing%20semantic%20effects.","source_url":"https://github.com/tradertanmay/undobench","publisher":"github.com"},{"claim":"","quotes":["Verify-Before-Retry ( $B_6$ ) : Zero-privilege post-commit containment via non-mutating active probes or cautious abstention."],"cite_url":"https://github.com/tradertanmay/undobench#:~:text=Verify%2DBefore%2DRetry%20%28%20%24B_6%24%20%29%20%3A%20Zero%2Dprivilege%20post%2Dcommit%20containment%20via%20non%2Dmutating%20active%20probes%20or%20cautious%20abstention.","source_url":"https://github.com/tradertanmay/undobench","publisher":"github.com"},{"claim":"","quotes":["Evaluated Recovery Baselines UndoBench provides unified, pluggable baseline wrappers for evaluating diverse recovery paradigms: Naive Retry ( $B_0$ ) : Blind re-execution upon error (induces duplicate mutations in 53.33% of faulted runs)."],"cite_url":"https://github.com/tradertanmay/undobench#:~:text=Evaluated%20Recovery%20Baselines%20UndoBench%20provides%20unified%2C%20pluggable%20baseline%20wrappers%20for%20evaluating%20diverse%20recovery%20paradigms%3A%20Naive%20Retry%20%28%20%24B_0%24%20%29%20%3A%20Blind%20re%2Dexecution%20upon%20error%20%28induces%20duplicate%20mutations%20in%2053.33%25%20of%20faulted%20runs%29.","source_url":"https://github.com/tradertanmay/undobench","publisher":"github.com"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:undobench-separating-task-competence-from-recovery-capability-in-5dff47"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/undobench-separating-task-competence-from-recovery-capability-in-5dff47/","markdown":"https://newruntime.com/posts/undobench-separating-task-competence-from-recovery-capability-in-5dff47.md","json":"https://newruntime.com/posts/undobench-separating-task-competence-from-recovery-capability-in-5dff47.json"}
markdown_url: "https://newruntime.com/posts/undobench-separating-task-competence-from-recovery-capability-in-5dff47.md"
---

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

## Retrieval answer

UndoBench is an open benchmark for testing whether tool-using agents recover safely from execution failures.

## Summary

UndoBench is an open benchmark for testing whether tool-using agents recover safely from execution failures. Its repository reports that blind re-execution after an error produced duplicate mutations in 53.33% of faulted runs. ([github.com](https://github.com/tradertanmay/undobench#:~:text=Evaluated%20Recovery%20Baselines%20UndoBench%20provides%20unified%2C%20pluggable%20baseline%20wrappers%20for%20evaluating%20diverse%20recovery%20paradigms%3A%20Naive%20Retry%20%28%20%24B_0%24%20%29%20%3A%20Blind%20re%2Dexecution%20upon%20error%20%28induces%20duplicate%20mutations%20in%2053.33%25%20of%20faulted%20runs%29.))

## What happened

Each workflow runs twice with identical seeds: once under nominal conditions and once with a controlled transport fault. Conditional Recovery Success Rate (CRSR) counts recovery success among trials that also succeed under nominal control (R/D). ([github.com](https://github.com/tradertanmay/undobench#:~:text=UndoBench%20introduces%20counterfactual%20paired%20evaluation%20%3A%20every%20workflow%20is%20executed%20twice%20under%20identical%20seeds%E2%80%94once%20under%20nominal%20conditions%20%28%20CONTROL%20%29%20and%20once%20under%20controlled%20transport%20fault%20injection%20%28%20FAULT%20%29.&text=Conditional%20Recovery%20Success%20Rate%20%28CRSR%20%3D%20%24R%2FD%24%20%29%20%3A%20Recovery%20success%20among%20trials%20that%20succeed%20under%20nominal%20CONTROL%20%28%20%24%5Ctext%7BCRSR%7D%20%3D%20%5Cfrac%7B%5Csum%20C_i%20F_i%7D%7B%5Csum%20C_i%7D%24%20%29.))

The suite covers 36 multi-turn workflows across eight enterprise domains, including cloud infrastructure, CRM, databases, Git, incident messaging, payments, object storage and ticketing. It checks committed mutations both at the wire level and in final sandbox state, looking for duplicates and orphaned transactions. Exactly-Once Semantic Effect Rate (EOR) measures whether the task completes with its intended effect occurring once, without missing or duplicate effects. ([github.com](https://github.com/tradertanmay/undobench#:~:text=Exactly%2DOnce%20Semantic%20Effect%20Rate%20%28EOR%29%20%3A%20Task%20completion%20where%20the%20intended%20semantic%20effect%20occurs%20exactly%20once%2C%20satisfying%20all%20goal%20invariants%20with%20zero%20duplicate%20or%20missing%20semantic%20effects.))

Baseline recovery strategies include naive retry, checkpoint and rollback, idempotency keys, sagas, LangGraph retry, EvoUndo-style reconciliation and verify-before-retry; the latter uses non-mutating probes or cautious abstention. ([github.com](https://github.com/tradertanmay/undobench#:~:text=Verify%2DBefore%2DRetry%20%28%20%24B_6%24%20%29%20%3A%20Zero%2Dprivilege%20post%2Dcommit%20containment%20via%20non%2Dmutating%20active%20probes%20or%20cautious%20abstention.))

The repository reports duplicate mutations in 53.33% of faulted runs using blind re-execution after errors. This is a reported result for that strategy, not a general rate for agents or other settings. ([github.com](https://github.com/tradertanmay/undobench#:~:text=Evaluated%20Recovery%20Baselines%20UndoBench%20provides%20unified%2C%20pluggable%20baseline%20wrappers%20for%20evaluating%20diverse%20recovery%20paradigms%3A%20Naive%20Retry%20%28%20%24B_0%24%20%29%20%3A%20Blind%20re%2Dexecution%20upon%20error%20%28induces%20duplicate%20mutations%20in%2053.33%25%20of%20faulted%20runs%29.))

## What the archive adds

Earlier coverage examined tool-agent evaluation beyond final success, using prefix executability to ask whether each step in a trajectory could actually run. UndoBench shifts the focus to what happens when execution fails and whether recovery leaves safe side effects. ([earlier New Runtime note](https://newruntime.com/posts/paper-proposes-prefix-executability-to-score-tool-using-117218/))

## Trend signal

By pairing nominal and faulted runs, then inspecting committed effects, UndoBench treats recovery as a controllability problem with observable consequences. That makes the evaluation relevant to limits involving permissions, verification and failure handling, without proving that controllability is the main constraint on autonomous runs.

## Why it matters

Builders can install the repository in editable mode, run its under-two-second smoke test, and use the example LangGraph adapter to connect a state-graph agent. The smoke test exercises sandbox setup, fault injection, recovery layers, wire-effect logging and state oracles without API keys. Afterward, `undobench doctor` checks the local environment and dependencies; trajectory records can be evaluated offline without model calls, and the repository provides commands to reproduce paper metrics from its canonical raw dataset.

## Limits and uncertainty

The repository does not specify the sample size or experimental breakdown behind the reported naive-retry duplicate rate.

## Reader takeaway

UndoBench separates ordinary task success from recovery under failure and checks whether intended effects occurred exactly once. Its repository reports duplicate mutations in 53.33% of faulted runs using blind re-execution, but gives no sample size or experimental breakdown for that figure. The benchmark offers builders a way to test retry and recovery strategies against paired workflows and effect-level evidence.

## Open question

How does the duplicate rate vary across workflows and transport-fault types?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Evals](https://newruntime.com/topics/evals.md): Explore the evals topic hub.
- topic hub: [Tool Use](https://newruntime.com/topics/tool-use.md): Explore the tool-use topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
