File size: 4,701 Bytes
67833d3 06fd765 67833d3 6efa361 67833d3 14571a9 6efa361 14571a9 6efa361 14571a9 6efa361 14571a9 6efa361 14571a9 67833d3 14571a9 67833d3 14571a9 67833d3 e7841ef 67833d3 14571a9 e7841ef e595f35 b940d0b e595f35 14571a9 e7841ef 67833d3 14571a9 67833d3 6efa361 14571a9 6efa361 14571a9 6efa361 14571a9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | ---
pretty_name: UndoBench
license: cc-by-4.0
tags:
- agentic-ai
- llm-agents
- ai-agents
- agent-evaluation
- recovery
- reliability
- fault-tolerance
- tool-use
- ai-safety
- benchmark
configs:
- config_name: default
default: true
data_files:
- split: dev
path: data/dev.parquet
- split: validation
path: data/validation.parquet
- split: test
path: data/test.parquet
---
# UndoBench
UndoBench is a benchmark for evaluating whether tool-using AI agents can recover safely from execution failures without duplicating, losing, or corrupting externally visible effects. The benchmark separates **task competence** from **recovery capability** using paired CONTROL and FAULT executions. It includes 36 enterprise workflows across 8 domains, with explicit fault scenarios and state/effect oracles for evaluation.
## Benchmark at a Glance
| | |
|---|---:|
| Workflows | 36 |
| Domains | 8 |
| DEV | 14 |
| Validation | 10 |
| Test | 12 |
| Benchmark version | v1.0.1 |
## Quickstart
```python
from datasets import load_dataset
ds = load_dataset("TanmaySah/undobench")
print(ds)
print(ds["test"][0])
```
## What Does One Row Represent?
Each row represents one canonical UndoBench workflow specification.
The 36 rows are benchmark task definitions, not individual model executions or aggregate experimental results.
Each workflow includes the task objective, available tools, fault metadata, environment/evaluation metadata, and provenance.
Full benchmark execution code and reproducibility artifacts are available in the GitHub repository.
## Schema
| Column | Type | Description |
|:---|:---|:---|
| `task_id` | `string` | Unique workflow identifier |
| `split` | `string` | `dev` / `validation` / `test` |
| `domain` | `string` | Enterprise domain |
| `workflow_name` | `string` | Canonical workflow title |
| `workflow_description` | `string` | Baseline workflow description |
| `objective` | `string` | Agent task instruction |
| `fault_scenario` | `string` (JSON) | Fault-injection specification |
| `fault_boundary` | `string` | Failure lifecycle boundary |
| `reversibility` | `string` | Action reversibility class |
| `idempotency_support` | `bool` | Native idempotency support |
| `tools` | `list[string]` | Available tools |
| `initial_state` | `string` (JSON) | Evaluator environment setup |
| `expected_outcome` | `string` (JSON) | Expected final-state assertions |
| `required_effects` | `string` (JSON) | Required semantic effects |
| `oracle_spec` | `string` (JSON) | Evaluation oracle |
| `benchmark_version` | `string` | Benchmark version (`v1.0.1`) |
| `source_path` | `string` | Canonical implementation path |
Evaluation note: initial_state, expected_outcome, required_effects, oracle_spec, and fault-injection metadata are published for reproducibility and are not provided to evaluated agents as privileged runtime inputs.
## Evaluation
The executable UndoBench evaluation harness is available in the [GitHub repository](https://github.com/tradertanmay/undobench).
Install and verify the benchmark:
```bash
git clone https://github.com/tradertanmay/undobench.git
cd undobench
pip install -e ".[all]"
undobench doctor
undobench smoke
```
Evaluate a custom agent on the validation split:
```bash
undobench run \
--agent my_agent.py:MyAgent \
--split validation \
--recovery none \
--seeds 42 \
--output runs
```
Or evaluate an OpenAI-compatible model endpoint:
```bash
undobench run \
--model openai/<model-name> \
--split validation \
--recovery naive \
--seeds 42 \
--output runs
```
After a run, recompute metrics and generate a standardized report:
```bash
undobench evaluate runs/<run_id>
undobench report runs/<run_id>
```
UndoBench reports task competence and recovery metrics including Control Pass Rate, RSR, CRSR, EOR, DER, and MER.
The frozen `test` split requires explicit opt-in before execution. See the [GitHub repository](https://github.com/tradertanmay/undobench) for full evaluation and integration instructions.
## Paper & Code
* [Paper (arXiv)](https://arxiv.org/abs/2610.05622)
* [Hugging Face Paper](https://huggingface.co/papers/2610.05622)
* [GitHub Repository](https://github.com/tradertanmay/undobench)
## Citation
```bibtex
@article{undobench2026,
title={UndoBench: Separating Task Competence from Recovery Capability in Tool-Using AI Agents},
author={Dolly Sah and Tanmay Sah and Harshul Jain and Tanya Sah},
journal={arXiv preprint arXiv:2610.05622},
year={2026},
url={https://arxiv.org/abs/2610.05622}
}
```
## License
Dataset and benchmark specifications: **CC BY 4.0**
Software and execution framework: **Apache 2.0**
|