TanmaySah commited on
Commit
14571a9
·
verified ·
1 Parent(s): f317d93

docs: simplify dataset card to standard benchmark landing page

Browse files
Files changed (1) hide show
  1. README.md +64 -218
README.md CHANGED
@@ -28,258 +28,104 @@ configs:
28
 
29
  **Separating Task Competence from Recovery Capability in Tool-Using AI Agents**
30
 
31
- **Dolly Sah** · **Tanmay Sah** · **Harshul Jain** · **Tanya Sah**
32
-
33
- *(Hosted under personal namespace `TanmaySah/undobench`; scholarly authorship belongs to all four authors).*
34
-
35
- ---
36
 
37
  ## Overview
38
 
39
- Can an AI agent recover when a tool operation may have succeeded, but the agent never received the acknowledgment?
40
-
41
- If it retries blindly, it may duplicate a payment, repeat an update, or leave an external system in an inconsistent state.
42
 
43
- UndoBench measures whether tool-using AI agents can recover safely from execution failures without duplicating, losing, or corrupting externally visible effects.
44
-
45
- ### Task Competence ≠ Recovery Capability
46
-
47
- Widely used AI agent benchmarks primarily evaluate nominal task completion, conflating baseline planning competence with operational fault recovery. When an agent fails during a task with transport faults, standard evaluation cannot distinguish whether the agent lacked the planning ability to solve the task or lacked the operational resilience to recover from failure.
48
-
49
- UndoBench decouples task competence from recovery capability via **counterfactual paired evaluation**: every workflow is evaluated under identical seeds—once under nominal conditions (**CONTROL**) and once under transport fault injection (**FAULT**). This establishes **Conditional Recovery Success Rate (CRSR)** as a competence-conditioned measure of recovery success.
50
-
51
- ---
52
 
53
  ## Benchmark at a Glance
54
 
55
- * **36** Canonical Enterprise Workflows
56
- * **8** Enterprise Operational Domains
57
- * **3** Standard Splits:
58
- * **14** `dev` workflows
59
- * **10** `validation` workflows
60
- * **12** `test` workflows
61
- * **Benchmark Freeze Version**: `v1.0.1`
62
-
63
- ---
64
-
65
- ## Conceptual Failure Lifecycle
66
-
67
- ```text
68
- Agent
69
- │
70
- │ tool request
71
- ▼
72
- External System
73
- │
74
- ├── mutation commits
75
- │
76
- X acknowledgment lost
77
- │
78
- ▼
79
- Agent sees uncertainty
80
- │
81
- ├── blind retry → possible duplicate effect
82
- │
83
- └── safe recovery → verify / deduplicate / abstain
84
- ```
85
-
86
- ---
87
-
88
- ## Illustrative Example: Lost Payment Acknowledgment
89
-
90
- Consider an agent managing an accounts-payable workflow:
91
- 1. An agent requests a payment.
92
- 2. The payment provider commits the payment.
93
- 3. The acknowledgment is lost before the agent receives it.
94
- 4. The agent sees an apparent failure and must decide what to do.
95
-
96
- * **Unsafe recovery**: Retry blindly → the payment may be executed twice.
97
- * **Safe recovery**: Determine whether the original effect already occurred, use an idempotent operation where available, or abstain rather than create an unsafe duplicate.
98
-
99
- *(This is an illustrative UndoBench-style scenario. UndoBench spans 8 enterprise domains, including cloud, database, git, CRM, messaging, ticketing, and storage operations).*
100
 
101
- ---
102
-
103
- ## Quickstart & Loading
104
 
105
  ```python
106
  from datasets import load_dataset
107
 
108
- # Load all 3 splits of UndoBench
109
  ds = load_dataset("TanmaySah/undobench")
110
- print(ds)
111
 
112
- # Inspect sample test workflow
113
  print(ds["test"][0])
114
  ```
115
 
116
- Expected split counts:
117
- ```text
118
- dev 14
119
- validation 10
120
- test 12
121
- ```
122
-
123
- ---
124
-
125
  ## What Does One Row Represent?
126
 
127
- Each Hugging Face row represents **one canonical UndoBench workflow specification**.
128
-
129
- The 36 rows are benchmark task definitions, **not** 36 individual model executions and **not** aggregate experimental results.
130
-
131
- * **Workflow specification**: Canonical task and environment definition (domain, objective, callable tools, initial state setup).
132
- * **Fault metadata**: Where and how transport-level execution failures are injected across boundaries.
133
- * **Experimental execution**: A specific (model × recovery method × framework × seed × condition) execution trajectory.
134
-
135
- The Hugging Face dataset publishes the workflow specifications and fault/oracle metadata. Full experimental trajectories, execution logs, and multi-model benchmark results remain reproducibility artifacts in the GitHub repository.
136
 
137
- ---
138
-
139
- ## Dataset Splits
140
 
141
- | Split | Workflows | Purpose |
142
- | :--- | :---: | :--- |
143
- | **`dev`** | 14 | Open development, prompt tuning, and strategy formulation |
144
- | **`validation`** | 10 | Hyperparameter calibration and recovery policy validation |
145
- | **`test`** | 12 | Frozen held-out evaluation |
146
- | **Total** | **36** | **Comprehensive enterprise recovery evaluation** |
147
 
148
- ### Status of the TEST Split
149
- The `test` split was strictly held out from method development and hyperparameter tuning during the reported frozen evaluation experiments. Now that the benchmark has been publicly released, the `test` specifications are released in this dataset for transparency and community reproducibility. This public availability does not retroactively alter the held-out experimental protocol under which baseline and model evaluations were performed.
150
 
151
- ---
152
 
153
- ## Dataset Schema
 
 
 
 
154
 
155
- Each row contains the following 17 fields:
156
 
157
  | Column | Type | Description |
158
- | :--- | :--- | :--- |
159
- | `task_id` | `string` | Unique benchmark task identifier (e.g., `RB-DB-001`, `RB-CLOUD-004`) |
160
- | `split` | `string` | Split membership (`dev`, `validation`, or `test`) |
161
- | `domain` | `string` | Enterprise software domain (e.g., `database`, `cloud`, `payments`) |
162
- | `workflow_name` | `string` | Formal workflow name with failure scenario context |
163
- | `workflow_description` | `string` | Human-readable baseline workflow description |
164
- | `objective` | `string` | Exact natural-language task prompt provided to the agent |
165
- | `fault_scenario` | `string` (JSON) | Structured fault scenario specification (boundary, perturbation, target tool) |
166
- | `fault_boundary` | `string` | Execution boundary (`PRE_MUTATION`, `POST_MUTATION_PRE_ACK`, etc.) |
167
- | `reversibility` | `string` | Action reversibility classification (`REVERSIBLE`, `COMPENSATABLE`, `IRREVERSIBLE`) |
168
- | `idempotency_support` | `bool` | Whether the underlying environment natively supports server-side idempotency keys |
169
- | `tools` | `list[string]` | Set of callable environment tools available to the agent |
170
- | `initial_state` | `string` (JSON) | Environment state prior to task execution |
171
- | `expected_outcome` | `string` (JSON) | Acceptable final environment states required for nominal completion |
172
- | `required_effects` | `string` (JSON) | Wire-level state mutations that must occur exactly once |
173
- | `oracle_spec` | `string` (JSON) | Complete oracle specification (final states, forbidden effects, invariants) |
174
- | `benchmark_version` | `string` | Benchmark freeze version (`v1.0.1`) |
175
- | `source_path` | `string` | Relative path to task implementation in the canonical GitHub repository |
176
-
177
- ---
178
-
179
- ## Agent-Visible vs. Evaluator-Only Fields
180
-
181
- The dataset distinguishes between information available to evaluated agents and information reserved for benchmark evaluation and scoring:
182
-
183
- * **Agent-Visible Inputs (Runtime)**:
184
- * `task_id`: Benchmark task identifier
185
- * `domain`: Enterprise domain classification
186
- * `objective`: Natural-language task instruction defining the agent's goal
187
- * `tools`: Names and callable function signatures of available environment tools
188
- * *Runtime Tool Responses*: Ordinary return values and error signals generated by executed tools during the trial
189
- * **Benchmark & Evaluator Metadata**:
190
- * `split`: Dataset partition assignment (`dev`, `validation`, `test`)
191
- * `workflow_name`, `workflow_description`: Human-readable task documentation
192
- * `fault_scenario`: Evaluator fault injection specification (injected boundary, perturbation type, target tool index). This is benchmark metadata used by the evaluation harness to orchestrate faults, not provided to the agent.
193
- * `fault_boundary`: Execution boundary classification
194
- * `reversibility`: Reversibility classification of workflow actions
195
- * `idempotency_support`: Native environment idempotency support flag
196
- * `benchmark_version`, `source_path`: Provenance and reference implementation location
197
- * **Evaluator-Only Information**:
198
- * `initial_state`: Underlying sandbox initial state setup
199
- * `expected_outcome`: Target environment state assertions
200
- * `required_effects`: Wire-level mutations that must occur exactly once
201
- * `oracle_spec`: Invariants, assertions, and forbidden mutation predicates
202
-
203
- > **Important**: Evaluated agents receive only the public task objective, allowed tool interfaces, and ordinary runtime tool responses. They do **not** receive evaluator oracles, expected-outcome assertions, hidden state diffs, or privileged scoring information. Oracle and expected-outcome fields are published here solely for benchmark transparency and evaluation reproducibility.
204
-
205
- ---
206
-
207
- ## Failure Boundaries & Evaluation Scope
208
-
209
- UndoBench defines a formal execution lifecycle for agent tool mutations:
210
-
211
- 1. `PRE_MUTATION`: Fault occurs before the external system mutates state (e.g., transient network timeout).
212
- 2. `DURING_MUTATION`: Fault occurs during composite execution (partial multi-step mutation).
213
- 3. `POST_MUTATION_PRE_ACK`: Mutation commits on the external system, but the acknowledgment is dropped before reaching the agent (lost ACK).
214
- 4. `POST_ACK_PRE_CHECKPOINT`: Acknowledgment arrives, but agent worker crashes before local state is persisted.
215
- 5. `DURING_COMPENSATION`: Failure occurs during a compensating backward transaction.
216
-
217
- ### Primary Frozen Evaluation vs. Secondary Extensions
218
- * **Reported Frozen Primary Evaluation**: The primary frozen benchmark study across models, frameworks, and recovery baselines specifically evaluates the `POST_MUTATION_PRE_ACK` boundary—the critical lost-acknowledgment regime where external state is mutated but unacknowledged.
219
- * **Post-Freeze Secondary Extensions**: Additional targeted experiments evaluate complementary boundaries (`PRE_MUTATION` and `DURING_MUTATION`) to map phase-dependent recovery behavior.
220
- * **Lifecycle Taxonomy Boundaries**: `POST_ACK_PRE_CHECKPOINT` and `DURING_COMPENSATION` are lifecycle taxonomy boundaries that were not evaluated with the same real experimental sweeps.
221
-
222
- ---
223
-
224
- ## Recovery Mechanisms & Phase-Dependence
225
-
226
- Safe recovery is inherently phase-dependent: no single recovery mechanism resolves all failures:
227
- * **Idempotency**: Server-side idempotency keys protect against duplicate execution under lost ACKs, but require server-side support.
228
- * **Reconciliation & Journaling**: Local mutation journals help track intended versus dispatched calls without server privileges.
229
- * **Non-Mutating Verification**: Read-only observation before retrying can detect whether a previous mutation committed.
230
- * **Compensation**: Sagas and compensating actions rollback effects, but only where operations are semantically compensatable.
231
- * **Cautious Abstention**: When ambiguity cannot be resolved safely, abstaining prevents catastrophic duplicate external mutations.
232
-
233
- Which mechanism works depends on the failure phase and what information and interfaces are available.
234
-
235
- ---
236
-
237
- ## Evaluation Methodology & Metrics
238
-
239
- UndoBench evaluates pairs of runs under identical random seeds:
240
- * Nominal trial: $C_i \in \{0, 1\}$ (Task Competence Oracle)
241
- * Faulted trial: $F_i \in \{0, 1\}$ (Recovery Success Oracle)
242
-
243
- ### Metrics Formalism
244
- * **Nominal Control Competence ($D$)**: Total trials where the agent successfully completes the task under nominal execution without faults:
245
- $$D = \sum_{i=1}^N C_i$$
246
- * **Unconditional Recovery Success Rate (RSR)**: Overall task completion rate under fault injection across all $N$ trials:
247
- $$\text{RSR} = \frac{\sum_{i=1}^N F_i}{N}$$
248
- * **Conditional Recovery Success Rate (CRSR)**: Recovery success rate strictly among the subset of trials that succeed under nominal CONTROL:
249
- $$\text{CRSR} = \frac{\sum_{i=1}^N C_i F_i}{\sum_{i=1}^N C_i} = \frac{\sum_{i=1}^N C_i F_i}{D}$$
250
- * **Exactly-Once Semantic Effect Rate (EOR)**: Task completion where the intended semantic effect occurs exactly once with zero duplicate or missing effects.
251
- * **Duplicate Effect Rate (DER)**: Rate of hazardous duplicate mutations (e.g., duplicate payments, duplicate tags).
252
- * **Missing Effect Rate (MER)**: Rate of abandoned or uncommitted workflow goals.
253
- * **Unsafe Retry Rate (URR)**: Overall rate of side-effect safety violations.
254
-
255
- ---
256
-
257
- ## Paper & Links
258
-
259
- * **Paper (arXiv)**: [https://arxiv.org/abs/2610.05622](https://arxiv.org/abs/2610.05622)
260
- * **Hugging Face Paper Page**: [https://huggingface.co/papers/2610.05622](https://huggingface.co/papers/2610.05622)
261
- * **alphaXiv**: [https://www.alphaxiv.org/abs/2610.05622](https://www.alphaxiv.org/abs/2610.05622)
262
- * **Code & Benchmark Execution Framework**: [https://github.com/tradertanmay/undobench](https://github.com/tradertanmay/undobench)
263
-
264
- > The Hugging Face repository contains the task-oriented dataset representation of UndoBench. The complete benchmark execution framework, CLI, fault injection engine, recovery baselines, evaluation harness, and reproduction code are available on GitHub.
265
-
266
- ---
267
 
268
  ## Citation
269
 
270
  ```bibtex
271
  @article{undobench2026,
272
- title = {UndoBench: Separating Task Competence from Recovery Capability in Tool-Using AI Agents},
273
- author = {Dolly Sah and Tanmay Sah and Harshul Jain and Tanya Sah},
274
- journal = {arXiv preprint arXiv:2610.05622},
275
- year = {2026},
276
- url = {https://arxiv.org/abs/2610.05622}
277
  }
278
  ```
279
 
280
- ---
281
 
282
- ## Licensing
283
 
284
- * **Dataset & Task Specifications**: [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/)
285
- * **Software, CLI & Execution Harness on GitHub**: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
 
28
 
29
  **Separating Task Competence from Recovery Capability in Tool-Using AI Agents**
30
 
31
+ **Dolly Sah · Tanmay Sah · Harshul Jain · Tanya Sah**
 
 
 
 
32
 
33
  ## Overview
34
 
35
+ 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.
 
 
36
 
37
+ 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.
 
 
 
 
 
 
 
 
38
 
39
  ## Benchmark at a Glance
40
 
41
+ | | |
42
+ |---|---:|
43
+ | Workflows | 36 |
44
+ | Domains | 8 |
45
+ | DEV | 14 |
46
+ | Validation | 10 |
47
+ | Test | 12 |
48
+ | Benchmark version | v1.0.1 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
+ ## Quickstart
 
 
51
 
52
  ```python
53
  from datasets import load_dataset
54
 
 
55
  ds = load_dataset("TanmaySah/undobench")
 
56
 
57
+ print(ds)
58
  print(ds["test"][0])
59
  ```
60
 
 
 
 
 
 
 
 
 
 
61
  ## What Does One Row Represent?
62
 
63
+ Each row represents one canonical UndoBench workflow specification.
 
 
 
 
 
 
 
 
64
 
65
+ The 36 rows are benchmark task definitions, not individual model executions or aggregate experimental results.
 
 
66
 
67
+ Each workflow includes the task objective, available tools, fault metadata, environment/evaluation metadata, and provenance.
 
 
 
 
 
68
 
69
+ Full benchmark execution code and reproducibility artifacts are available in the GitHub repository.
 
70
 
71
+ ## Dataset Structure
72
 
73
+ | Split | Workflows |
74
+ |---|---:|
75
+ | `dev` | 14 |
76
+ | `validation` | 10 |
77
+ | `test` | 12 |
78
 
79
+ ### Schema
80
 
81
  | Column | Type | Description |
82
+ |:---|:---|:---|
83
+ | `task_id` | `string` | Unique workflow identifier |
84
+ | `split` | `string` | `dev` / `validation` / `test` |
85
+ | `domain` | `string` | Enterprise domain |
86
+ | `workflow_name` | `string` | Canonical workflow title |
87
+ | `workflow_description` | `string` | Baseline workflow description |
88
+ | `objective` | `string` | Agent task instruction |
89
+ | `fault_scenario` | `string` (JSON) | Fault-injection specification |
90
+ | `fault_boundary` | `string` | Failure lifecycle boundary |
91
+ | `reversibility` | `string` | Action reversibility class |
92
+ | `idempotency_support` | `bool` | Native idempotency support |
93
+ | `tools` | `list[string]` | Available tools |
94
+ | `initial_state` | `string` (JSON) | Evaluator environment setup |
95
+ | `expected_outcome` | `string` (JSON) | Expected final-state assertions |
96
+ | `required_effects` | `string` (JSON) | Required semantic effects |
97
+ | `oracle_spec` | `string` (JSON) | Evaluation oracle |
98
+ | `benchmark_version` | `string` | Benchmark version (`v1.0.1`) |
99
+ | `source_path` | `string` | Canonical implementation path |
100
+
101
+ ## Important Evaluation Note
102
+
103
+ Fields such as `initial_state`, `expected_outcome`, `required_effects`, `oracle_spec`, and fault-injection metadata are published for transparency and reproducibility. They are evaluator metadata and are **not privileged inputs supplied to the evaluated agent**.
104
+
105
+ At runtime, agents receive the task objective, permitted tool interfaces, and ordinary tool responses.
106
+
107
+ For the full evaluation protocol, recovery metrics, failure-boundary taxonomy, and experimental results, see the paper and GitHub repository.
108
+
109
+ ## Paper & Code
110
+
111
+ * **Paper:** https://arxiv.org/abs/2610.05622
112
+ * **Hugging Face Paper:** https://huggingface.co/papers/2610.05622
113
+ * **Code:** https://github.com/tradertanmay/undobench
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
  ## Citation
116
 
117
  ```bibtex
118
  @article{undobench2026,
119
+ title={UndoBench: Separating Task Competence from Recovery Capability in Tool-Using AI Agents},
120
+ author={Dolly Sah and Tanmay Sah and Harshul Jain and Tanya Sah},
121
+ journal={arXiv preprint arXiv:2610.05622},
122
+ year={2026},
123
+ url={https://arxiv.org/abs/2610.05622}
124
  }
125
  ```
126
 
127
+ ## License
128
 
129
+ Dataset and benchmark specifications: **CC BY 4.0**
130
 
131
+ Software and execution framework: **Apache 2.0**