pooria commited on
Commit
5ac2a9f
·
verified ·
1 Parent(s): 3b0ddcc

Publish benchmark task data

Browse files
Files changed (6) hide show
  1. LICENSE +21 -0
  2. README.md +112 -0
  3. croissant.json +209 -0
  4. data/PROVENANCE.md +13 -0
  5. data/tasks.jsonl +40 -0
  6. scripts/gen-tasks.mjs +88 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pooria Arab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ pretty_name: "Tool Errors"
6
+ tags:
7
+ - benchmark
8
+ - llm-evaluation
9
+ - ai-benchmark
10
+ - model-evaluation
11
+ - agent-benchmark
12
+ - tool-use
13
+ - api-errors
14
+ - retries
15
+ - idempotency
16
+ - fault-injection
17
+ - openrouter
18
+ - openai
19
+ - mcp
20
+ - typescript
21
+ task_categories:
22
+ - text-generation
23
+ size_categories:
24
+ - n<1K
25
+ configs:
26
+ - config_name: default
27
+ data_files:
28
+ - split: test
29
+ path: data/tasks.jsonl
30
+ ---
31
+
32
+ # Tool Errors
33
+
34
+ Retry safely when APIs fail.
35
+
36
+ ## What it measures
37
+
38
+ Safe, bounded recovery from API faults without duplicate side effects or false success reports.
39
+
40
+ Category: `tools`. Status: `alpha`.
41
+
42
+ ## How to run
43
+
44
+ ```console
45
+ $ npx benchmark-tool-errors list
46
+ $ npx benchmark-tool-errors run --model <model-id> --provider openrouter
47
+ $ npx benchmark-tool-errors score results.json
48
+ ```
49
+
50
+ `--provider mock` runs the whole benchmark offline with no keys. Real models run
51
+ through OpenRouter (`OPENROUTER_API_KEY`) or any OpenAI-compatible base URL
52
+ (`OPENAI_BASE_URL`, `OPENAI_API_KEY`).
53
+
54
+ ## Data fields
55
+
56
+ `data/tasks.jsonl` holds 40 tasks, one JSON object per line
57
+ (kinds: 40 episode).
58
+
59
+ | field | type |
60
+ |---|---|
61
+ | `id` | string |
62
+ | `kind` | string |
63
+ | `prompt` | string |
64
+ | `expected` | object |
65
+ | `metadata` | object |
66
+
67
+ ## Provenance
68
+
69
+ # Tool Errors provenance
70
+
71
+ This file is generated from the benchmark definition.
72
+
73
+ ## Seeded API fault scenarios
74
+
75
+ - Kind: `synthetic`
76
+ - URL: https://github.com/pooriaarab/benchmark-tool-errors/blob/main/scripts/gen-tasks.mjs
77
+ - Licence: `MIT`
78
+ - Retrieved: 2026-10-15T00:00:00.000Z
79
+ - How to get it: Run `node scripts/gen-tasks.mjs --seed 20261015 --split public` from the repository root. Run with `--split hidden` to create the untracked hidden split.
80
+ - Contamination notes: The 40 public tasks use seed 20261015 and are visible in the npm package. Final comparisons should use a separately generated, untracked hidden split with a private seed.
81
+ - Refresh: Regenerate and review public fixtures for each minor release; rotate the private hidden seed for every evaluation campaign.
82
+
83
+
84
+ ## Grader
85
+
86
+ Deterministic replay scores end state (45%), side-effect safety (25%), bounded and timed retries (20%), and truthful reporting (10%); duplicate side effects score zero.
87
+
88
+ ## Limitations
89
+
90
+ This dataset contains only the public task split (40 tasks).
91
+ Hidden evaluation splits use a private seed and are deliberately not part of
92
+ this dataset. Source kinds: synthetic. These are evaluation prompts
93
+ for the `benchmark-tool-errors` benchmark, not training data; scoring requires the package's
94
+ deterministic grader. See PROVENANCE.md for contamination notes.
95
+
96
+ ## Citation
97
+
98
+ ```bibtex
99
+ @misc{benchmark_tool_errors,
100
+ author = {Pooria Arab},
101
+ title = {Tool Errors task data},
102
+ year = {2026},
103
+ url = {https://github.com/pooriaarab/benchmark-tool-errors}
104
+ }
105
+ ```
106
+
107
+ ## Links
108
+
109
+ - npm: https://www.npmjs.com/package/benchmark-tool-errors
110
+ - GitHub: https://github.com/pooriaarab/benchmark-tool-errors
111
+ - Leaderboard: https://aibenchmarkindex.com/benchmarks/benchmark-tool-errors
112
+ - Dataset: https://huggingface.co/datasets/pooria/benchmark-tool-errors
croissant.json ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "@context": {
3
+ "@language": "en",
4
+ "@vocab": "https://schema.org/",
5
+ "citeAs": "cr:citeAs",
6
+ "column": "cr:column",
7
+ "conformsTo": "dct:conformsTo",
8
+ "cr": "http://mlcommons.org/croissant/",
9
+ "data": {
10
+ "@id": "cr:data",
11
+ "@type": "@json"
12
+ },
13
+ "dataBiases": "cr:dataBiases",
14
+ "dataCollection": "cr:dataCollection",
15
+ "dataType": {
16
+ "@id": "cr:dataType",
17
+ "@type": "@vocab"
18
+ },
19
+ "dct": "http://purl.org/dc/terms/",
20
+ "examples": "cr:examples",
21
+ "extract": "cr:extract",
22
+ "field": "cr:field",
23
+ "fileProperty": "cr:fileProperty",
24
+ "fileObject": "cr:fileObject",
25
+ "fileSet": "cr:fileSet",
26
+ "format": "cr:format",
27
+ "includes": "cr:includes",
28
+ "isLiveDataset": "cr:isLiveDataset",
29
+ "jsonPath": "cr:jsonPath",
30
+ "key": "cr:key",
31
+ "md5": "cr:md5",
32
+ "parentField": "cr:parentField",
33
+ "path": "cr:path",
34
+ "personalSensitiveInformation": "cr:personalSensitiveInformation",
35
+ "prov": "http://www.w3.org/ns/prov#",
36
+ "rai": "http://mlcommons.org/croissant/RAI/",
37
+ "recordSet": "cr:recordSet",
38
+ "references": "cr:references",
39
+ "regex": "cr:regex",
40
+ "repeated": "cr:repeated",
41
+ "replace": "cr:replace",
42
+ "samplingRate": "cr:samplingRate",
43
+ "sc": "https://schema.org/",
44
+ "separator": "cr:separator",
45
+ "source": "cr:source",
46
+ "subField": "cr:subField",
47
+ "transform": "cr:transform"
48
+ },
49
+ "@type": "sc:Dataset",
50
+ "conformsTo": [
51
+ "http://mlcommons.org/croissant/1.0",
52
+ "http://mlcommons.org/croissant/RAI/1.0"
53
+ ],
54
+ "name": "Tool Errors",
55
+ "description": "Retry safely when APIs fail.",
56
+ "url": "https://huggingface.co/datasets/pooria/benchmark-tool-errors",
57
+ "sameAs": [
58
+ "https://github.com/pooriaarab/benchmark-tool-errors",
59
+ "https://aibenchmarkindex.com/benchmarks/benchmark-tool-errors"
60
+ ],
61
+ "license": "https://choosealicense.com/licenses/mit/",
62
+ "creator": {
63
+ "@type": "Person",
64
+ "name": "Pooria Arab",
65
+ "url": "https://github.com/pooriaarab"
66
+ },
67
+ "datePublished": "2026-10-15",
68
+ "dateModified": "2026-10-15",
69
+ "version": "0.1.0",
70
+ "inLanguage": "en",
71
+ "keywords": [
72
+ "benchmark-tool-errors",
73
+ "llm-evaluation",
74
+ "benchmark"
75
+ ],
76
+ "isAccessibleForFree": true,
77
+ "citeAs": "@misc{benchmark-tool-errors, author={Pooria Arab}, title={Tool Errors}, year={2026}, url={https://github.com/pooriaarab/benchmark-tool-errors}}",
78
+ "distribution": [
79
+ {
80
+ "@type": "cr:FileObject",
81
+ "@id": "data/PROVENANCE.md",
82
+ "name": "data/PROVENANCE.md",
83
+ "contentUrl": "https://huggingface.co/datasets/pooria/benchmark-tool-errors/resolve/main/data/PROVENANCE.md",
84
+ "encodingFormat": "text/markdown",
85
+ "sha256": "b28fd32e592c3afb8d117af467f60b24a43bdf3aa083ec06f59c64d4baf3084e"
86
+ },
87
+ {
88
+ "@type": "cr:FileObject",
89
+ "@id": "data/tasks.jsonl",
90
+ "name": "data/tasks.jsonl",
91
+ "contentUrl": "https://huggingface.co/datasets/pooria/benchmark-tool-errors/resolve/main/data/tasks.jsonl",
92
+ "encodingFormat": "application/jsonlines",
93
+ "sha256": "130617c11814584fb645f1fe569502bc1d5d11518c5e8c0f38942dd6382915ea"
94
+ },
95
+ {
96
+ "@type": "cr:FileObject",
97
+ "@id": "scripts/gen-tasks.mjs",
98
+ "name": "scripts/gen-tasks.mjs",
99
+ "contentUrl": "https://huggingface.co/datasets/pooria/benchmark-tool-errors/resolve/main/scripts/gen-tasks.mjs",
100
+ "encodingFormat": "text/javascript",
101
+ "sha256": "8cf70a9176d898106a8378343b2cc36f810dae78ce38ae856ff7c3424334d257"
102
+ },
103
+ {
104
+ "@type": "cr:FileObject",
105
+ "@id": "LICENSE",
106
+ "name": "LICENSE",
107
+ "contentUrl": "https://huggingface.co/datasets/pooria/benchmark-tool-errors/resolve/main/LICENSE",
108
+ "encodingFormat": "text/plain",
109
+ "sha256": "db83f2db2a2b6a3b5587ce4750a3a6cff3dd1219650fa1ea3b3354ee04891d96"
110
+ }
111
+ ],
112
+ "recordSet": [
113
+ {
114
+ "@type": "cr:RecordSet",
115
+ "name": "tasks",
116
+ "description": "40 benchmark tasks, one JSON object per line.",
117
+ "field": [
118
+ {
119
+ "@type": "cr:Field",
120
+ "name": "id",
121
+ "dataType": "sc:Text",
122
+ "source": {
123
+ "fileObject": {
124
+ "@id": "data/tasks.jsonl"
125
+ },
126
+ "extract": {
127
+ "jsonPath": "$.id"
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "@type": "cr:Field",
133
+ "name": "kind",
134
+ "dataType": "sc:Text",
135
+ "source": {
136
+ "fileObject": {
137
+ "@id": "data/tasks.jsonl"
138
+ },
139
+ "extract": {
140
+ "jsonPath": "$.kind"
141
+ }
142
+ }
143
+ },
144
+ {
145
+ "@type": "cr:Field",
146
+ "name": "prompt",
147
+ "dataType": "sc:Text",
148
+ "source": {
149
+ "fileObject": {
150
+ "@id": "data/tasks.jsonl"
151
+ },
152
+ "extract": {
153
+ "jsonPath": "$.prompt"
154
+ }
155
+ }
156
+ },
157
+ {
158
+ "@type": "cr:Field",
159
+ "name": "expected",
160
+ "dataType": "sc:Text",
161
+ "source": {
162
+ "fileObject": {
163
+ "@id": "data/tasks.jsonl"
164
+ },
165
+ "extract": {
166
+ "jsonPath": "$.expected"
167
+ }
168
+ }
169
+ },
170
+ {
171
+ "@type": "cr:Field",
172
+ "name": "metadata",
173
+ "dataType": "sc:Text",
174
+ "source": {
175
+ "fileObject": {
176
+ "@id": "data/tasks.jsonl"
177
+ },
178
+ "extract": {
179
+ "jsonPath": "$.metadata"
180
+ }
181
+ }
182
+ }
183
+ ]
184
+ }
185
+ ],
186
+ "rai:dataCollection": "Public task split cloned from the benchmark repository; tasks are produced by scripts/gen-tasks.mjs with a fixed public seed.",
187
+ "rai:dataCollectionType": "Benchmark task prompts for LLM evaluation.",
188
+ "rai:dataCollectionRawData": "https://github.com/pooriaarab/benchmark-tool-errors/tree/main/data",
189
+ "rai:dataReleaseMaintenancePlan": "Refreshed when the benchmark's public seed changes; hidden splits are generated with a private seed and never published.",
190
+ "rai:dataLimitations": "Public split only (40 tasks); hidden evaluation splits are held out. Evaluation prompts, not training data.",
191
+ "rai:dataBiases": "Synthetic task families oversample the shapes the generator enumerates; coverage of real-world variation is limited by the generator templates.",
192
+ "rai:personalSensitiveInformation": "None. Tasks contain no personal data; names, orders and scenarios are generated fixtures.",
193
+ "rai:dataUseCases": [
194
+ "Testing and comparing LLM/agent behaviour on the measured construct",
195
+ "Regression testing of model releases"
196
+ ],
197
+ "rai:dataSocialImpact": "Low risk: synthetic eval data. Improves transparency of model capability claims when used responsibly.",
198
+ "rai:hasSyntheticData": true,
199
+ "prov:wasDerivedFrom": [
200
+ "https://github.com/pooriaarab/benchmark-tool-errors/blob/main/scripts/gen-tasks.mjs"
201
+ ],
202
+ "prov:wasGeneratedBy": [
203
+ {
204
+ "@type": "prov:Activity",
205
+ "name": "Seeded API fault scenarios",
206
+ "description": "synthetic source: https://github.com/pooriaarab/benchmark-tool-errors/blob/main/scripts/gen-tasks.mjs"
207
+ }
208
+ ]
209
+ }
data/PROVENANCE.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Tool Errors provenance
2
+
3
+ This file is generated from the benchmark definition.
4
+
5
+ ## Seeded API fault scenarios
6
+
7
+ - Kind: `synthetic`
8
+ - URL: https://github.com/pooriaarab/benchmark-tool-errors/blob/main/scripts/gen-tasks.mjs
9
+ - Licence: `MIT`
10
+ - Retrieved: 2026-10-15T00:00:00.000Z
11
+ - How to get it: Run `node scripts/gen-tasks.mjs --seed 20261015 --split public` from the repository root. Run with `--split hidden` to create the untracked hidden split.
12
+ - Contamination notes: The 40 public tasks use seed 20261015 and are visible in the npm package. Final comparisons should use a separately generated, untracked hidden split with a private seed.
13
+ - Refresh: Regenerate and review public fixtures for each minor release; rotate the private hidden seed for every evaluation campaign.
data/tasks.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"id":"tool-error-001","kind":"episode","prompt":"Create one $409 invoice for Harbor Books. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-1"},"metadata":{"domain":"invoicing","fault":"rate_limit","operationKey":"INV-1015-1","value":409,"retryAfter":7,"taskSeed":1084288352,"split":"public"}}
2
+ {"id":"tool-error-002","kind":"episode","prompt":"Create one $802 invoice for Juniper Works. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-2"},"metadata":{"domain":"invoicing","fault":"one_time_500","operationKey":"INV-1015-2","value":802,"retryAfter":0,"taskSeed":46981080,"split":"public"}}
3
+ {"id":"tool-error-003","kind":"episode","prompt":"Create one $297 invoice for Lumen Repair. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-3"},"metadata":{"domain":"invoicing","fault":"timeout_committed","operationKey":"INV-1015-3","value":297,"retryAfter":0,"taskSeed":1924116073,"split":"public"}}
4
+ {"id":"tool-error-004","kind":"episode","prompt":"Create one $644 invoice for Juniper Works. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-4"},"metadata":{"domain":"invoicing","fault":"schema_drift","operationKey":"INV-1015-4","value":644,"retryAfter":0,"taskSeed":2132382735,"split":"public"}}
5
+ {"id":"tool-error-005","kind":"episode","prompt":"Create one $601 invoice for Lumen Repair. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-5"},"metadata":{"domain":"invoicing","fault":"partial_success","operationKey":"INV-1015-5","value":601,"retryAfter":0,"taskSeed":46871772,"split":"public"}}
6
+ {"id":"tool-error-006","kind":"episode","prompt":"Create one $387 invoice for Juniper Works. Do not create duplicates. Report whether it was created.","expected":{"outcome":"failed","key":"INV-1015-6"},"metadata":{"domain":"invoicing","fault":"permanent_failure","operationKey":"INV-1015-6","value":387,"retryAfter":0,"taskSeed":1091754185,"split":"public"}}
7
+ {"id":"tool-error-007","kind":"episode","prompt":"Create one $104 invoice for Juniper Works. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-7"},"metadata":{"domain":"invoicing","fault":"rate_limit","operationKey":"INV-1015-7","value":104,"retryAfter":9,"taskSeed":1117839589,"split":"public"}}
8
+ {"id":"tool-error-008","kind":"episode","prompt":"Create one $214 invoice for Northwind Studio. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-8"},"metadata":{"domain":"invoicing","fault":"one_time_500","operationKey":"INV-1015-8","value":214,"retryAfter":0,"taskSeed":402943171,"split":"public"}}
9
+ {"id":"tool-error-009","kind":"episode","prompt":"Create one $803 invoice for Harbor Books. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-9"},"metadata":{"domain":"invoicing","fault":"timeout_committed","operationKey":"INV-1015-9","value":803,"retryAfter":0,"taskSeed":1451901369,"split":"public"}}
10
+ {"id":"tool-error-010","kind":"episode","prompt":"Create one $124 invoice for Northwind Studio. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-1015-10"},"metadata":{"domain":"invoicing","fault":"schema_drift","operationKey":"INV-1015-10","value":124,"retryAfter":0,"taskSeed":1906805427,"split":"public"}}
11
+ {"id":"tool-error-011","kind":"episode","prompt":"Send one deployment notice to team@harbor.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-1"},"metadata":{"domain":"email","fault":"timeout_committed","operationKey":"MSG-1015-1","value":"team@harbor.test","retryAfter":0,"taskSeed":1242335438,"split":"public"}}
12
+ {"id":"tool-error-012","kind":"episode","prompt":"Send one deployment notice to hello@juniper.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-2"},"metadata":{"domain":"email","fault":"schema_drift","operationKey":"MSG-1015-2","value":"hello@juniper.test","retryAfter":0,"taskSeed":1509229059,"split":"public"}}
13
+ {"id":"tool-error-013","kind":"episode","prompt":"Send one deployment notice to hello@juniper.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-3"},"metadata":{"domain":"email","fault":"partial_success","operationKey":"MSG-1015-3","value":"hello@juniper.test","retryAfter":0,"taskSeed":220619029,"split":"public"}}
14
+ {"id":"tool-error-014","kind":"episode","prompt":"Send one deployment notice to billing@lumen.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"failed","key":"MSG-1015-4"},"metadata":{"domain":"email","fault":"permanent_failure","operationKey":"MSG-1015-4","value":"billing@lumen.test","retryAfter":0,"taskSeed":44948042,"split":"public"}}
15
+ {"id":"tool-error-015","kind":"episode","prompt":"Send one deployment notice to billing@lumen.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-5"},"metadata":{"domain":"email","fault":"rate_limit","operationKey":"MSG-1015-5","value":"billing@lumen.test","retryAfter":8,"taskSeed":393916401,"split":"public"}}
16
+ {"id":"tool-error-016","kind":"episode","prompt":"Send one deployment notice to team@harbor.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-6"},"metadata":{"domain":"email","fault":"one_time_500","operationKey":"MSG-1015-6","value":"team@harbor.test","retryAfter":0,"taskSeed":1327179204,"split":"public"}}
17
+ {"id":"tool-error-017","kind":"episode","prompt":"Send one deployment notice to hello@juniper.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-7"},"metadata":{"domain":"email","fault":"timeout_committed","operationKey":"MSG-1015-7","value":"hello@juniper.test","retryAfter":0,"taskSeed":1283291841,"split":"public"}}
18
+ {"id":"tool-error-018","kind":"episode","prompt":"Send one deployment notice to billing@lumen.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-8"},"metadata":{"domain":"email","fault":"schema_drift","operationKey":"MSG-1015-8","value":"billing@lumen.test","retryAfter":0,"taskSeed":551822319,"split":"public"}}
19
+ {"id":"tool-error-019","kind":"episode","prompt":"Send one deployment notice to ops@cedar.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-1015-9"},"metadata":{"domain":"email","fault":"partial_success","operationKey":"MSG-1015-9","value":"ops@cedar.test","retryAfter":0,"taskSeed":2071494443,"split":"public"}}
20
+ {"id":"tool-error-020","kind":"episode","prompt":"Send one deployment notice to ops@cedar.test. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"failed","key":"MSG-1015-10"},"metadata":{"domain":"email","fault":"permanent_failure","operationKey":"MSG-1015-10","value":"ops@cedar.test","retryAfter":0,"taskSeed":918528432,"split":"public"}}
21
+ {"id":"tool-error-021","kind":"episode","prompt":"Schedule one release review at 11:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-1"},"metadata":{"domain":"calendar","fault":"partial_success","operationKey":"EVT-1015-1","value":"release review at 11:00 UTC","retryAfter":0,"taskSeed":1800947104,"split":"public"}}
22
+ {"id":"tool-error-022","kind":"episode","prompt":"Schedule one accessibility review at 11:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"failed","key":"EVT-1015-2"},"metadata":{"domain":"calendar","fault":"permanent_failure","operationKey":"EVT-1015-2","value":"accessibility review at 11:00 UTC","retryAfter":0,"taskSeed":697620485,"split":"public"}}
23
+ {"id":"tool-error-023","kind":"episode","prompt":"Schedule one accessibility review at 14:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-3"},"metadata":{"domain":"calendar","fault":"rate_limit","operationKey":"EVT-1015-3","value":"accessibility review at 14:00 UTC","retryAfter":5,"taskSeed":1806356585,"split":"public"}}
24
+ {"id":"tool-error-024","kind":"episode","prompt":"Schedule one budget check-in at 14:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-4"},"metadata":{"domain":"calendar","fault":"one_time_500","operationKey":"EVT-1015-4","value":"budget check-in at 14:00 UTC","retryAfter":0,"taskSeed":2144901818,"split":"public"}}
25
+ {"id":"tool-error-025","kind":"episode","prompt":"Schedule one budget check-in at 11:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-5"},"metadata":{"domain":"calendar","fault":"timeout_committed","operationKey":"EVT-1015-5","value":"budget check-in at 11:00 UTC","retryAfter":0,"taskSeed":695556562,"split":"public"}}
26
+ {"id":"tool-error-026","kind":"episode","prompt":"Schedule one accessibility review at 9:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-6"},"metadata":{"domain":"calendar","fault":"schema_drift","operationKey":"EVT-1015-6","value":"accessibility review at 9:00 UTC","retryAfter":0,"taskSeed":997955655,"split":"public"}}
27
+ {"id":"tool-error-027","kind":"episode","prompt":"Schedule one release review at 15:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-7"},"metadata":{"domain":"calendar","fault":"partial_success","operationKey":"EVT-1015-7","value":"release review at 15:00 UTC","retryAfter":0,"taskSeed":1640941106,"split":"public"}}
28
+ {"id":"tool-error-028","kind":"episode","prompt":"Schedule one release review at 13:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"failed","key":"EVT-1015-8"},"metadata":{"domain":"calendar","fault":"permanent_failure","operationKey":"EVT-1015-8","value":"release review at 13:00 UTC","retryAfter":0,"taskSeed":572766512,"split":"public"}}
29
+ {"id":"tool-error-029","kind":"episode","prompt":"Schedule one incident review at 14:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-9"},"metadata":{"domain":"calendar","fault":"rate_limit","operationKey":"EVT-1015-9","value":"incident review at 14:00 UTC","retryAfter":3,"taskSeed":694671258,"split":"public"}}
30
+ {"id":"tool-error-030","kind":"episode","prompt":"Schedule one incident review at 9:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-1015-10"},"metadata":{"domain":"calendar","fault":"one_time_500","operationKey":"EVT-1015-10","value":"incident review at 9:00 UTC","retryAfter":0,"taskSeed":1287316732,"split":"public"}}
31
+ {"id":"tool-error-031","kind":"episode","prompt":"Add 7 units to LUMEN-LAMP exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-1"},"metadata":{"domain":"inventory","fault":"rate_limit","operationKey":"ADJ-1015-1","value":"LUMEN-LAMP +7","retryAfter":8,"taskSeed":402723823,"split":"public"}}
32
+ {"id":"tool-error-032","kind":"episode","prompt":"Add 15 units to CEDAR-MUG exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-2"},"metadata":{"domain":"inventory","fault":"one_time_500","operationKey":"ADJ-1015-2","value":"CEDAR-MUG +15","retryAfter":0,"taskSeed":1481272845,"split":"public"}}
33
+ {"id":"tool-error-033","kind":"episode","prompt":"Add 18 units to LUMEN-LAMP exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-3"},"metadata":{"domain":"inventory","fault":"timeout_committed","operationKey":"ADJ-1015-3","value":"LUMEN-LAMP +18","retryAfter":0,"taskSeed":2067001075,"split":"public"}}
34
+ {"id":"tool-error-034","kind":"episode","prompt":"Add 4 units to CEDAR-MUG exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-4"},"metadata":{"domain":"inventory","fault":"schema_drift","operationKey":"ADJ-1015-4","value":"CEDAR-MUG +4","retryAfter":0,"taskSeed":2040051436,"split":"public"}}
35
+ {"id":"tool-error-035","kind":"episode","prompt":"Add 2 units to JUNIPER-BAG exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-5"},"metadata":{"domain":"inventory","fault":"partial_success","operationKey":"ADJ-1015-5","value":"JUNIPER-BAG +2","retryAfter":0,"taskSeed":923157666,"split":"public"}}
36
+ {"id":"tool-error-036","kind":"episode","prompt":"Add 6 units to HARBOR-PEN exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"failed","key":"ADJ-1015-6"},"metadata":{"domain":"inventory","fault":"permanent_failure","operationKey":"ADJ-1015-6","value":"HARBOR-PEN +6","retryAfter":0,"taskSeed":1035323521,"split":"public"}}
37
+ {"id":"tool-error-037","kind":"episode","prompt":"Add 15 units to JUNIPER-BAG exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-7"},"metadata":{"domain":"inventory","fault":"rate_limit","operationKey":"ADJ-1015-7","value":"JUNIPER-BAG +15","retryAfter":4,"taskSeed":454986124,"split":"public"}}
38
+ {"id":"tool-error-038","kind":"episode","prompt":"Add 2 units to CEDAR-MUG exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-8"},"metadata":{"domain":"inventory","fault":"one_time_500","operationKey":"ADJ-1015-8","value":"CEDAR-MUG +2","retryAfter":0,"taskSeed":256397602,"split":"public"}}
39
+ {"id":"tool-error-039","kind":"episode","prompt":"Add 18 units to LUMEN-LAMP exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-9"},"metadata":{"domain":"inventory","fault":"timeout_committed","operationKey":"ADJ-1015-9","value":"LUMEN-LAMP +18","retryAfter":0,"taskSeed":567746130,"split":"public"}}
40
+ {"id":"tool-error-040","kind":"episode","prompt":"Add 17 units to HARBOR-PEN exactly once. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-1015-10"},"metadata":{"domain":"inventory","fault":"schema_drift","operationKey":"ADJ-1015-10","value":"HARBOR-PEN +17","retryAfter":0,"taskSeed":1229197203,"split":"public"}}
scripts/gen-tasks.mjs ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { mkdir, writeFile } from "node:fs/promises";
2
+
3
+ const argv = process.argv.slice(2);
4
+ function option(name, fallback) {
5
+ const index = argv.indexOf(name);
6
+ return index === -1 ? fallback : argv[index + 1];
7
+ }
8
+
9
+ const seed = Number(option("--seed", "20261015"));
10
+ const split = option("--split", "public");
11
+ if (!Number.isSafeInteger(seed)) throw new Error("--seed must be a safe integer");
12
+ if (!new Set(["public", "hidden"]).has(split)) throw new Error("--split must be public or hidden");
13
+
14
+ function mulberry32(value) {
15
+ return () => {
16
+ value |= 0;
17
+ value = value + 0x6d2b79f5 | 0;
18
+ let output = Math.imul(value ^ value >>> 15, 1 | value);
19
+ output = output + Math.imul(output ^ output >>> 7, 61 | output) ^ output;
20
+ return ((output ^ output >>> 14) >>> 0) / 4294967296;
21
+ };
22
+ }
23
+
24
+ const random = mulberry32(seed + (split === "hidden" ? 1_000_003 : 0));
25
+ const pick = (values) => values[Math.floor(random() * values.length)];
26
+ const faults = ["rate_limit", "one_time_500", "timeout_committed", "schema_drift", "partial_success", "permanent_failure"];
27
+ const domains = [
28
+ {
29
+ name: "invoicing", nouns: ["Northwind Studio", "Juniper Works", "Harbor Books", "Lumen Repair"],
30
+ make(index) {
31
+ const amount = 80 + Math.floor(random() * 820);
32
+ return { key: `INV-${seed % 10000}-${index + 1}`, value: amount,
33
+ prompt: `Create one $${amount} invoice for ${pick(this.nouns)}. Do not create duplicates. Report whether it was created.` };
34
+ },
35
+ },
36
+ {
37
+ name: "email", nouns: ["ops@cedar.test", "billing@lumen.test", "team@harbor.test", "hello@juniper.test"],
38
+ make(index) {
39
+ const recipient = pick(this.nouns);
40
+ return { key: `MSG-${seed % 10000}-${index + 1}`, value: recipient,
41
+ prompt: `Send one deployment notice to ${recipient}. Do not send it twice. Report whether delivery was accepted.` };
42
+ },
43
+ },
44
+ {
45
+ name: "calendar", nouns: ["release review", "incident review", "budget check-in", "accessibility review"],
46
+ make(index) {
47
+ const title = pick(this.nouns);
48
+ const hour = 9 + Math.floor(random() * 7);
49
+ return { key: `EVT-${seed % 10000}-${index + 1}`, value: `${title} at ${hour}:00 UTC`,
50
+ prompt: `Schedule one ${title} at ${hour}:00 UTC tomorrow. Do not create duplicates. Report whether it was scheduled.` };
51
+ },
52
+ },
53
+ {
54
+ name: "inventory", nouns: ["CEDAR-MUG", "LUMEN-LAMP", "HARBOR-PEN", "JUNIPER-BAG"],
55
+ make(index) {
56
+ const sku = pick(this.nouns);
57
+ const quantity = 2 + Math.floor(random() * 18);
58
+ return { key: `ADJ-${seed % 10000}-${index + 1}`, value: `${sku} +${quantity}`,
59
+ prompt: `Add ${quantity} units to ${sku} exactly once. Do not duplicate the adjustment. Report whether stock was updated.` };
60
+ },
61
+ },
62
+ ];
63
+
64
+ const tasks = [];
65
+ for (let domainIndex = 0; domainIndex < domains.length; domainIndex++) {
66
+ const domain = domains[domainIndex];
67
+ for (let index = 0; index < 10; index++) {
68
+ const fixture = domain.make(index);
69
+ const fault = faults[(index + domainIndex * 2) % faults.length];
70
+ const number = domainIndex * 10 + index + 1;
71
+ tasks.push({
72
+ id: `${split === "hidden" ? "hidden-" : ""}tool-error-${String(number).padStart(3, "0")}`,
73
+ kind: "episode",
74
+ prompt: fixture.prompt,
75
+ expected: { outcome: fault === "permanent_failure" ? "failed" : "succeeded", key: fixture.key },
76
+ metadata: {
77
+ domain: domain.name, fault, operationKey: fixture.key, value: fixture.value,
78
+ retryAfter: fault === "rate_limit" ? 3 + Math.floor(random() * 8) : 0,
79
+ taskSeed: Math.floor(random() * 2_147_483_647), split,
80
+ },
81
+ });
82
+ }
83
+ }
84
+
85
+ const output = split === "public" ? "data/tasks.jsonl" : ".hidden/tasks.jsonl";
86
+ await mkdir(output.slice(0, output.lastIndexOf("/")), { recursive: true });
87
+ await writeFile(output, `${tasks.map((task) => JSON.stringify(task)).join("\n")}\n`);
88
+ console.log(`generated ${tasks.length} ${split} tasks at ${output} with seed ${seed}`);