Publish benchmark task data
Browse files- README.md +2 -2
- croissant.json +9 -5
- data/PROVENANCE.md +2 -2
- data/tasks.jsonl +40 -40
- scripts/gen-tasks.mjs +92 -40
README.md
CHANGED
|
@@ -76,8 +76,8 @@ This file is generated from the benchmark definition.
|
|
| 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
|
| 80 |
-
- Contamination notes: The 40 public tasks use seed 20261015 and are visible in the npm package. Final comparisons should use
|
| 81 |
- Refresh: Regenerate and review public fixtures for each minor release; rotate the private hidden seed for every evaluation campaign.
|
| 82 |
|
| 83 |
|
|
|
|
| 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 `node scripts/gen-tasks.mjs --split hidden --seed <private> [--out <path>]` (or set BTER_HIDDEN_SEED) 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 the separately generated, untracked hidden split; its ids, prompts, fault order, and expected answers differ from the public set.
|
| 81 |
- Refresh: Regenerate and review public fixtures for each minor release; rotate the private hidden seed for every evaluation campaign.
|
| 82 |
|
| 83 |
|
croissant.json
CHANGED
|
@@ -17,7 +17,11 @@
|
|
| 17 |
"@type": "@vocab"
|
| 18 |
},
|
| 19 |
"dct": "http://purl.org/dc/terms/",
|
| 20 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"extract": "cr:extract",
|
| 22 |
"field": "cr:field",
|
| 23 |
"fileProperty": "cr:fileProperty",
|
|
@@ -66,7 +70,7 @@
|
|
| 66 |
},
|
| 67 |
"datePublished": "2026-10-15",
|
| 68 |
"dateModified": "2026-10-15",
|
| 69 |
-
"version": "0.
|
| 70 |
"inLanguage": "en",
|
| 71 |
"keywords": [
|
| 72 |
"benchmark-tool-errors",
|
|
@@ -82,7 +86,7 @@
|
|
| 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": "
|
| 86 |
},
|
| 87 |
{
|
| 88 |
"@type": "cr:FileObject",
|
|
@@ -90,7 +94,7 @@
|
|
| 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": "
|
| 94 |
},
|
| 95 |
{
|
| 96 |
"@type": "cr:FileObject",
|
|
@@ -98,7 +102,7 @@
|
|
| 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": "
|
| 102 |
},
|
| 103 |
{
|
| 104 |
"@type": "cr:FileObject",
|
|
|
|
| 17 |
"@type": "@vocab"
|
| 18 |
},
|
| 19 |
"dct": "http://purl.org/dc/terms/",
|
| 20 |
+
"equivalentProperty": "cr:equivalentProperty",
|
| 21 |
+
"examples": {
|
| 22 |
+
"@id": "cr:examples",
|
| 23 |
+
"@type": "@json"
|
| 24 |
+
},
|
| 25 |
"extract": "cr:extract",
|
| 26 |
"field": "cr:field",
|
| 27 |
"fileProperty": "cr:fileProperty",
|
|
|
|
| 70 |
},
|
| 71 |
"datePublished": "2026-10-15",
|
| 72 |
"dateModified": "2026-10-15",
|
| 73 |
+
"version": "0.2.0",
|
| 74 |
"inLanguage": "en",
|
| 75 |
"keywords": [
|
| 76 |
"benchmark-tool-errors",
|
|
|
|
| 86 |
"name": "data/PROVENANCE.md",
|
| 87 |
"contentUrl": "https://huggingface.co/datasets/pooria/benchmark-tool-errors/resolve/main/data/PROVENANCE.md",
|
| 88 |
"encodingFormat": "text/markdown",
|
| 89 |
+
"sha256": "8351d2bebdb1bbdddb949f9d9e8c2f2b885b79794e9ccef6f337daf3af31e426"
|
| 90 |
},
|
| 91 |
{
|
| 92 |
"@type": "cr:FileObject",
|
|
|
|
| 94 |
"name": "data/tasks.jsonl",
|
| 95 |
"contentUrl": "https://huggingface.co/datasets/pooria/benchmark-tool-errors/resolve/main/data/tasks.jsonl",
|
| 96 |
"encodingFormat": "application/jsonlines",
|
| 97 |
+
"sha256": "9bbf9a8fca8cfa19df4470fa44d835b847eaddb1d1e9648708a8690f06eae34d"
|
| 98 |
},
|
| 99 |
{
|
| 100 |
"@type": "cr:FileObject",
|
|
|
|
| 102 |
"name": "scripts/gen-tasks.mjs",
|
| 103 |
"contentUrl": "https://huggingface.co/datasets/pooria/benchmark-tool-errors/resolve/main/scripts/gen-tasks.mjs",
|
| 104 |
"encodingFormat": "text/javascript",
|
| 105 |
+
"sha256": "86d2484b6bbaba412a9b494a15f3965883af5e750cc7d4730357d1be1cfb36f7"
|
| 106 |
},
|
| 107 |
{
|
| 108 |
"@type": "cr:FileObject",
|
data/PROVENANCE.md
CHANGED
|
@@ -8,6 +8,6 @@ This file is generated from the benchmark definition.
|
|
| 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
|
| 12 |
-
- Contamination notes: The 40 public tasks use seed 20261015 and are visible in the npm package. Final comparisons should use
|
| 13 |
- Refresh: Regenerate and review public fixtures for each minor release; rotate the private hidden seed for every evaluation campaign.
|
|
|
|
| 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 `node scripts/gen-tasks.mjs --split hidden --seed <private> [--out <path>]` (or set BTER_HIDDEN_SEED) 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 the separately generated, untracked hidden split; its ids, prompts, fault order, and expected answers differ from the public set.
|
| 13 |
- Refresh: Regenerate and review public fixtures for each minor release; rotate the private hidden seed for every evaluation campaign.
|
data/tasks.jsonl
CHANGED
|
@@ -1,40 +1,40 @@
|
|
| 1 |
-
{"id":"tool-error-001","kind":"episode","prompt":"Create one $
|
| 2 |
-
{"id":"tool-error-002","kind":"episode","prompt":"
|
| 3 |
-
{"id":"tool-error-003","kind":"episode","prompt":"
|
| 4 |
-
{"id":"tool-error-004","kind":"episode","prompt":"
|
| 5 |
-
{"id":"tool-error-005","kind":"episode","prompt":"
|
| 6 |
-
{"id":"tool-error-006","kind":"episode","prompt":"Create one $
|
| 7 |
-
{"id":"tool-error-007","kind":"episode","prompt":"
|
| 8 |
-
{"id":"tool-error-008","kind":"episode","prompt":"Create one $
|
| 9 |
-
{"id":"tool-error-009","kind":"episode","prompt":"Create one $
|
| 10 |
-
{"id":"tool-error-010","kind":"episode","prompt":"
|
| 11 |
-
{"id":"tool-error-011","kind":"episode","prompt":"
|
| 12 |
-
{"id":"tool-error-012","kind":"episode","prompt":"Send one
|
| 13 |
-
{"id":"tool-error-013","kind":"episode","prompt":"Send one deployment notice to
|
| 14 |
-
{"id":"tool-error-014","kind":"episode","prompt":"Send one
|
| 15 |
-
{"id":"tool-error-015","kind":"episode","prompt":"
|
| 16 |
-
{"id":"tool-error-016","kind":"episode","prompt":"
|
| 17 |
-
{"id":"tool-error-017","kind":"episode","prompt":"
|
| 18 |
-
{"id":"tool-error-018","kind":"episode","prompt":"Send one
|
| 19 |
-
{"id":"tool-error-019","kind":"episode","prompt":"Send one
|
| 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":"
|
| 21 |
-
{"id":"tool-error-021","kind":"episode","prompt":"Schedule one
|
| 22 |
-
{"id":"tool-error-022","kind":"episode","prompt":"
|
| 23 |
-
{"id":"tool-error-023","kind":"episode","prompt":"
|
| 24 |
-
{"id":"tool-error-024","kind":"episode","prompt":"Schedule one
|
| 25 |
-
{"id":"tool-error-025","kind":"episode","prompt":"
|
| 26 |
-
{"id":"tool-error-026","kind":"episode","prompt":"
|
| 27 |
-
{"id":"tool-error-027","kind":"episode","prompt":"
|
| 28 |
-
{"id":"tool-error-028","kind":"episode","prompt":"Schedule one
|
| 29 |
-
{"id":"tool-error-029","kind":"episode","prompt":"Schedule one
|
| 30 |
-
{"id":"tool-error-030","kind":"episode","prompt":"
|
| 31 |
-
{"id":"tool-error-031","kind":"episode","prompt":"
|
| 32 |
-
{"id":"tool-error-032","kind":"episode","prompt":"
|
| 33 |
-
{"id":"tool-error-033","kind":"episode","prompt":"Add
|
| 34 |
-
{"id":"tool-error-034","kind":"episode","prompt":"
|
| 35 |
-
{"id":"tool-error-035","kind":"episode","prompt":"
|
| 36 |
-
{"id":"tool-error-036","kind":"episode","prompt":"
|
| 37 |
-
{"id":"tool-error-037","kind":"episode","prompt":"
|
| 38 |
-
{"id":"tool-error-038","kind":"episode","prompt":"Add
|
| 39 |
-
{"id":"tool-error-039","kind":"episode","prompt":"Add
|
| 40 |
-
{"id":"tool-error-040","kind":"episode","prompt":"
|
|
|
|
| 1 |
+
{"id":"tool-error-001","kind":"episode","prompt":"Create one $80 invoice for Lumen Repair with reference INV-61015-1. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-61015-1"},"metadata":{"domain":"invoicing","fault":"schema_drift","operationKey":"INV-61015-1","value":80,"payloadField":"charge","staleField":"bill","retryAfter":0,"taskSeed":1171696878,"split":"public"}}
|
| 2 |
+
{"id":"tool-error-002","kind":"episode","prompt":"Issue a single invoice of $87 to Lumen Repair tagged INV-61015-2. Never bill twice. Report the outcome.","expected":{"outcome":"succeeded","key":"INV-61015-2"},"metadata":{"domain":"invoicing","fault":"timeout_committed","operationKey":"INV-61015-2","value":87,"payloadField":"amount","staleField":"amount","retryAfter":0,"taskSeed":857804931,"split":"public"}}
|
| 3 |
+
{"id":"tool-error-003","kind":"episode","prompt":"Issue a single invoice of $264 to Juniper Works tagged INV-61015-3. Never bill twice. Report the outcome.","expected":{"outcome":"succeeded","key":"INV-61015-3"},"metadata":{"domain":"invoicing","fault":"schema_drift","operationKey":"INV-61015-3","value":264,"payloadField":"amount","staleField":"value","retryAfter":0,"taskSeed":942967812,"split":"public"}}
|
| 4 |
+
{"id":"tool-error-004","kind":"episode","prompt":"Issue a single invoice of $110 to Juniper Works tagged INV-61015-4. Never bill twice. Report the outcome.","expected":{"outcome":"succeeded","key":"INV-61015-4"},"metadata":{"domain":"invoicing","fault":"schema_drift","operationKey":"INV-61015-4","value":110,"payloadField":"amount","staleField":"charge","retryAfter":0,"taskSeed":211213902,"split":"public"}}
|
| 5 |
+
{"id":"tool-error-005","kind":"episode","prompt":"Issue a single invoice of $603 to Moss Market tagged INV-61015-5. Never bill twice. Report the outcome.","expected":{"outcome":"succeeded","key":"INV-61015-5"},"metadata":{"domain":"invoicing","fault":"partial_success","operationKey":"INV-61015-5","value":603,"payloadField":"amount","staleField":"amount","retryAfter":0,"taskSeed":637109122,"split":"public"}}
|
| 6 |
+
{"id":"tool-error-006","kind":"episode","prompt":"Create one $156 invoice for Lumen Repair with reference INV-61015-6. Do not create duplicates. Report whether it was created.","expected":{"outcome":"failed","key":"INV-61015-6"},"metadata":{"domain":"invoicing","fault":"permanent_failure","operationKey":"INV-61015-6","value":156,"payloadField":"charge","staleField":"charge","retryAfter":0,"taskSeed":1244444853,"split":"public"}}
|
| 7 |
+
{"id":"tool-error-007","kind":"episode","prompt":"Issue a single invoice of $653 to Juniper Works tagged INV-61015-7. Never bill twice. Report the outcome.","expected":{"outcome":"succeeded","key":"INV-61015-7"},"metadata":{"domain":"invoicing","fault":"one_time_500","operationKey":"INV-61015-7","value":653,"payloadField":"payload","staleField":"payload","retryAfter":0,"taskSeed":1851393998,"split":"public"}}
|
| 8 |
+
{"id":"tool-error-008","kind":"episode","prompt":"Create one $906 invoice for Cobalt Pantry with reference INV-61015-8. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-61015-8"},"metadata":{"domain":"invoicing","fault":"rate_limit","operationKey":"INV-61015-8","value":906,"payloadField":"charge","staleField":"charge","retryAfter":4,"taskSeed":473704712,"split":"public"}}
|
| 9 |
+
{"id":"tool-error-009","kind":"episode","prompt":"Create one $106 invoice for Moss Market with reference INV-61015-9. Do not create duplicates. Report whether it was created.","expected":{"outcome":"succeeded","key":"INV-61015-9"},"metadata":{"domain":"invoicing","fault":"timeout_committed","operationKey":"INV-61015-9","value":106,"payloadField":"payload","staleField":"payload","retryAfter":0,"taskSeed":1614221713,"split":"public"}}
|
| 10 |
+
{"id":"tool-error-010","kind":"episode","prompt":"Issue a single invoice of $350 to Quill and Pine tagged INV-61015-10. Never bill twice. Report the outcome.","expected":{"outcome":"succeeded","key":"INV-61015-10"},"metadata":{"domain":"invoicing","fault":"schema_drift","operationKey":"INV-61015-10","value":350,"payloadField":"amount","staleField":"value","retryAfter":0,"taskSeed":63578441,"split":"public"}}
|
| 11 |
+
{"id":"tool-error-011","kind":"episode","prompt":"Email hello@juniper.test a single deployment notice tagged MSG-61015-1. Send exactly once. Report the delivery outcome.","expected":{"outcome":"succeeded","key":"MSG-61015-1"},"metadata":{"domain":"email","fault":"partial_success","operationKey":"MSG-61015-1","value":"hello@juniper.test","payloadField":"value","staleField":"value","retryAfter":0,"taskSeed":1960125271,"split":"public"}}
|
| 12 |
+
{"id":"tool-error-012","kind":"episode","prompt":"Send one policy update to ops@cedar.test using reference MSG-61015-2. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"failed","key":"MSG-61015-2"},"metadata":{"domain":"email","fault":"permanent_failure","operationKey":"MSG-61015-2","value":"ops@cedar.test","payloadField":"recipient","staleField":"recipient","retryAfter":0,"taskSeed":551193197,"split":"public"}}
|
| 13 |
+
{"id":"tool-error-013","kind":"episode","prompt":"Send one deployment notice to dev@ferrotype.test using reference MSG-61015-3. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-61015-3"},"metadata":{"domain":"email","fault":"rate_limit","operationKey":"MSG-61015-3","value":"dev@ferrotype.test","payloadField":"message","staleField":"message","retryAfter":4,"taskSeed":2038253810,"split":"public"}}
|
| 14 |
+
{"id":"tool-error-014","kind":"episode","prompt":"Send one policy update to ops@cedar.test using reference MSG-61015-4. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-61015-4"},"metadata":{"domain":"email","fault":"one_time_500","operationKey":"MSG-61015-4","value":"ops@cedar.test","payloadField":"message","staleField":"message","retryAfter":0,"taskSeed":1129059089,"split":"public"}}
|
| 15 |
+
{"id":"tool-error-015","kind":"episode","prompt":"Email billing@lumen.test a single deployment notice tagged MSG-61015-5. Send exactly once. Report the delivery outcome.","expected":{"outcome":"succeeded","key":"MSG-61015-5"},"metadata":{"domain":"email","fault":"schema_drift","operationKey":"MSG-61015-5","value":"billing@lumen.test","payloadField":"payload","staleField":"recipient","retryAfter":0,"taskSeed":884377356,"split":"public"}}
|
| 16 |
+
{"id":"tool-error-016","kind":"episode","prompt":"Email team@harbor.test a single incident recap tagged MSG-61015-6. Send exactly once. Report the delivery outcome.","expected":{"outcome":"succeeded","key":"MSG-61015-6"},"metadata":{"domain":"email","fault":"timeout_committed","operationKey":"MSG-61015-6","value":"team@harbor.test","payloadField":"recipient","staleField":"recipient","retryAfter":0,"taskSeed":1542194559,"split":"public"}}
|
| 17 |
+
{"id":"tool-error-017","kind":"episode","prompt":"Email billing@lumen.test a single incident recap tagged MSG-61015-7. Send exactly once. Report the delivery outcome.","expected":{"outcome":"failed","key":"MSG-61015-7"},"metadata":{"domain":"email","fault":"permanent_failure","operationKey":"MSG-61015-7","value":"billing@lumen.test","payloadField":"value","staleField":"value","retryAfter":0,"taskSeed":1966065027,"split":"public"}}
|
| 18 |
+
{"id":"tool-error-018","kind":"episode","prompt":"Send one policy update to hello@juniper.test using reference MSG-61015-8. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-61015-8"},"metadata":{"domain":"email","fault":"partial_success","operationKey":"MSG-61015-8","value":"hello@juniper.test","payloadField":"value","staleField":"value","retryAfter":0,"taskSeed":1473313508,"split":"public"}}
|
| 19 |
+
{"id":"tool-error-019","kind":"episode","prompt":"Send one usage report to support@cobalt.test using reference MSG-61015-9. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-61015-9"},"metadata":{"domain":"email","fault":"one_time_500","operationKey":"MSG-61015-9","value":"support@cobalt.test","payloadField":"message","staleField":"message","retryAfter":0,"taskSeed":1081941241,"split":"public"}}
|
| 20 |
+
{"id":"tool-error-020","kind":"episode","prompt":"Send one deployment notice to ops@cedar.test using reference MSG-61015-10. Do not send it twice. Report whether delivery was accepted.","expected":{"outcome":"succeeded","key":"MSG-61015-10"},"metadata":{"domain":"email","fault":"timeout_committed","operationKey":"MSG-61015-10","value":"ops@cedar.test","payloadField":"payload","staleField":"payload","retryAfter":0,"taskSeed":1066024192,"split":"public"}}
|
| 21 |
+
{"id":"tool-error-021","kind":"episode","prompt":"Schedule one incident review at 9:00 UTC next Monday with reference EVT-61015-1. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-61015-1"},"metadata":{"domain":"calendar","fault":"timeout_committed","operationKey":"EVT-61015-1","value":"incident review at 9:00 UTC next Monday","payloadField":"event","staleField":"event","retryAfter":0,"taskSeed":941066932,"split":"public"}}
|
| 22 |
+
{"id":"tool-error-022","kind":"episode","prompt":"Put a single hiring debrief on the calendar for 11:00 UTC next Tuesday tagged EVT-61015-2. Never book it twice. Report the outcome.","expected":{"outcome":"failed","key":"EVT-61015-2"},"metadata":{"domain":"calendar","fault":"permanent_failure","operationKey":"EVT-61015-2","value":"hiring debrief at 11:00 UTC next Tuesday","payloadField":"booking","staleField":"booking","retryAfter":0,"taskSeed":969317185,"split":"public"}}
|
| 23 |
+
{"id":"tool-error-023","kind":"episode","prompt":"Put a single incident review on the calendar for 12:00 UTC tomorrow tagged EVT-61015-3. Never book it twice. Report the outcome.","expected":{"outcome":"succeeded","key":"EVT-61015-3"},"metadata":{"domain":"calendar","fault":"partial_success","operationKey":"EVT-61015-3","value":"incident review at 12:00 UTC tomorrow","payloadField":"event","staleField":"event","retryAfter":0,"taskSeed":1753663212,"split":"public"}}
|
| 24 |
+
{"id":"tool-error-024","kind":"episode","prompt":"Schedule one uptime retrospective at 9:00 UTC next Tuesday with reference EVT-61015-4. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-61015-4"},"metadata":{"domain":"calendar","fault":"one_time_500","operationKey":"EVT-61015-4","value":"uptime retrospective at 9:00 UTC next Tuesday","payloadField":"title","staleField":"title","retryAfter":0,"taskSeed":1032181046,"split":"public"}}
|
| 25 |
+
{"id":"tool-error-025","kind":"episode","prompt":"Put a single uptime retrospective on the calendar for 13:00 UTC tomorrow tagged EVT-61015-5. Never book it twice. Report the outcome.","expected":{"outcome":"succeeded","key":"EVT-61015-5"},"metadata":{"domain":"calendar","fault":"schema_drift","operationKey":"EVT-61015-5","value":"uptime retrospective at 13:00 UTC tomorrow","payloadField":"title","staleField":"booking","retryAfter":0,"taskSeed":1028914908,"split":"public"}}
|
| 26 |
+
{"id":"tool-error-026","kind":"episode","prompt":"Put a single roadmap sync on the calendar for 9:00 UTC next Tuesday tagged EVT-61015-6. Never book it twice. Report the outcome.","expected":{"outcome":"succeeded","key":"EVT-61015-6"},"metadata":{"domain":"calendar","fault":"one_time_500","operationKey":"EVT-61015-6","value":"roadmap sync at 9:00 UTC next Tuesday","payloadField":"value","staleField":"value","retryAfter":0,"taskSeed":41567556,"split":"public"}}
|
| 27 |
+
{"id":"tool-error-027","kind":"episode","prompt":"Put a single accessibility review on the calendar for 8:00 UTC next Tuesday tagged EVT-61015-7. Never book it twice. Report the outcome.","expected":{"outcome":"succeeded","key":"EVT-61015-7"},"metadata":{"domain":"calendar","fault":"partial_success","operationKey":"EVT-61015-7","value":"accessibility review at 8:00 UTC next Tuesday","payloadField":"booking","staleField":"booking","retryAfter":0,"taskSeed":991023311,"split":"public"}}
|
| 28 |
+
{"id":"tool-error-028","kind":"episode","prompt":"Schedule one uptime retrospective at 17:00 UTC next Monday with reference EVT-61015-8. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"succeeded","key":"EVT-61015-8"},"metadata":{"domain":"calendar","fault":"rate_limit","operationKey":"EVT-61015-8","value":"uptime retrospective at 17:00 UTC next Monday","payloadField":"payload","staleField":"payload","retryAfter":9,"taskSeed":427873431,"split":"public"}}
|
| 29 |
+
{"id":"tool-error-029","kind":"episode","prompt":"Schedule one accessibility review at 14:00 UTC next Tuesday with reference EVT-61015-9. Do not create duplicates. Report whether it was scheduled.","expected":{"outcome":"failed","key":"EVT-61015-9"},"metadata":{"domain":"calendar","fault":"permanent_failure","operationKey":"EVT-61015-9","value":"accessibility review at 14:00 UTC next Tuesday","payloadField":"title","staleField":"title","retryAfter":0,"taskSeed":787730298,"split":"public"}}
|
| 30 |
+
{"id":"tool-error-030","kind":"episode","prompt":"Put a single budget check-in on the calendar for 8:00 UTC tomorrow tagged EVT-61015-10. Never book it twice. Report the outcome.","expected":{"outcome":"succeeded","key":"EVT-61015-10"},"metadata":{"domain":"calendar","fault":"one_time_500","operationKey":"EVT-61015-10","value":"budget check-in at 8:00 UTC tomorrow","payloadField":"title","staleField":"title","retryAfter":0,"taskSeed":462663694,"split":"public"}}
|
| 31 |
+
{"id":"tool-error-031","kind":"episode","prompt":"Increase FERRO-GEAR stock by 2 units one time tagged ADJ-61015-1. No double counting. Report the outcome.","expected":{"outcome":"failed","key":"ADJ-61015-1"},"metadata":{"domain":"inventory","fault":"permanent_failure","operationKey":"ADJ-61015-1","value":"FERRO-GEAR +2","payloadField":"payload","staleField":"payload","retryAfter":0,"taskSeed":1427139578,"split":"public"}}
|
| 32 |
+
{"id":"tool-error-032","kind":"episode","prompt":"Increase CEDAR-MUG stock by 17 units one time tagged ADJ-61015-2. No double counting. Report the outcome.","expected":{"outcome":"failed","key":"ADJ-61015-2"},"metadata":{"domain":"inventory","fault":"permanent_failure","operationKey":"ADJ-61015-2","value":"CEDAR-MUG +17","payloadField":"adjustment","staleField":"adjustment","retryAfter":0,"taskSeed":1713503299,"split":"public"}}
|
| 33 |
+
{"id":"tool-error-033","kind":"episode","prompt":"Add 4 units to HARBOR-PEN exactly once with reference ADJ-61015-3. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-61015-3"},"metadata":{"domain":"inventory","fault":"partial_success","operationKey":"ADJ-61015-3","value":"HARBOR-PEN +4","payloadField":"stock","staleField":"stock","retryAfter":0,"taskSeed":396629894,"split":"public"}}
|
| 34 |
+
{"id":"tool-error-034","kind":"episode","prompt":"Increase MOSS-TRAY stock by 2 units one time tagged ADJ-61015-4. No double counting. Report the outcome.","expected":{"outcome":"succeeded","key":"ADJ-61015-4"},"metadata":{"domain":"inventory","fault":"one_time_500","operationKey":"ADJ-61015-4","value":"MOSS-TRAY +2","payloadField":"stock","staleField":"stock","retryAfter":0,"taskSeed":1987206619,"split":"public"}}
|
| 35 |
+
{"id":"tool-error-035","kind":"episode","prompt":"Increase FERRO-GEAR stock by 5 units one time tagged ADJ-61015-5. No double counting. Report the outcome.","expected":{"outcome":"succeeded","key":"ADJ-61015-5"},"metadata":{"domain":"inventory","fault":"timeout_committed","operationKey":"ADJ-61015-5","value":"FERRO-GEAR +5","payloadField":"value","staleField":"value","retryAfter":0,"taskSeed":362407881,"split":"public"}}
|
| 36 |
+
{"id":"tool-error-036","kind":"episode","prompt":"Increase QUILL-PAD stock by 13 units one time tagged ADJ-61015-6. No double counting. Report the outcome.","expected":{"outcome":"succeeded","key":"ADJ-61015-6"},"metadata":{"domain":"inventory","fault":"schema_drift","operationKey":"ADJ-61015-6","value":"QUILL-PAD +13","payloadField":"adjustment","staleField":"quantity","retryAfter":0,"taskSeed":129285654,"split":"public"}}
|
| 37 |
+
{"id":"tool-error-037","kind":"episode","prompt":"Increase CEDAR-MUG stock by 14 units one time tagged ADJ-61015-7. No double counting. Report the outcome.","expected":{"outcome":"succeeded","key":"ADJ-61015-7"},"metadata":{"domain":"inventory","fault":"schema_drift","operationKey":"ADJ-61015-7","value":"CEDAR-MUG +14","payloadField":"stock","staleField":"adjustment","retryAfter":0,"taskSeed":870843989,"split":"public"}}
|
| 38 |
+
{"id":"tool-error-038","kind":"episode","prompt":"Add 16 units to HARBOR-PEN exactly once with reference ADJ-61015-8. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-61015-8"},"metadata":{"domain":"inventory","fault":"schema_drift","operationKey":"ADJ-61015-8","value":"HARBOR-PEN +16","payloadField":"quantity","staleField":"adjustment","retryAfter":0,"taskSeed":1753224846,"split":"public"}}
|
| 39 |
+
{"id":"tool-error-039","kind":"episode","prompt":"Add 17 units to QUILL-PAD exactly once with reference ADJ-61015-9. Do not duplicate the adjustment. Report whether stock was updated.","expected":{"outcome":"succeeded","key":"ADJ-61015-9"},"metadata":{"domain":"inventory","fault":"timeout_committed","operationKey":"ADJ-61015-9","value":"QUILL-PAD +17","payloadField":"value","staleField":"value","retryAfter":0,"taskSeed":1334636629,"split":"public"}}
|
| 40 |
+
{"id":"tool-error-040","kind":"episode","prompt":"Increase CEDAR-MUG stock by 13 units one time tagged ADJ-61015-10. No double counting. Report the outcome.","expected":{"outcome":"succeeded","key":"ADJ-61015-10"},"metadata":{"domain":"inventory","fault":"rate_limit","operationKey":"ADJ-61015-10","value":"CEDAR-MUG +13","payloadField":"adjustment","staleField":"adjustment","retryAfter":3,"taskSeed":2141274397,"split":"public"}}
|
scripts/gen-tasks.mjs
CHANGED
|
@@ -6,10 +6,14 @@ function option(name, fallback) {
|
|
| 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 () => {
|
|
@@ -23,66 +27,114 @@ function mulberry32(value) {
|
|
| 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",
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
},
|
| 35 |
},
|
| 36 |
{
|
| 37 |
-
name: "email",
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
const recipient = pick(this.nouns);
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
},
|
| 43 |
},
|
| 44 |
{
|
| 45 |
-
name: "calendar",
|
| 46 |
-
|
|
|
|
|
|
|
| 47 |
const title = pick(this.nouns);
|
| 48 |
-
const hour =
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
},
|
| 52 |
},
|
| 53 |
{
|
| 54 |
-
name: "inventory",
|
| 55 |
-
|
|
|
|
| 56 |
const sku = pick(this.nouns);
|
| 57 |
const quantity = 2 + Math.floor(random() * 18);
|
| 58 |
-
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
| 60 |
},
|
| 61 |
},
|
| 62 |
];
|
| 63 |
|
| 64 |
-
const
|
| 65 |
-
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
| 67 |
for (let index = 0; index < 10; index++) {
|
| 68 |
-
const
|
| 69 |
-
const
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 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}`);
|
|
|
|
| 6 |
return index === -1 ? fallback : argv[index + 1];
|
| 7 |
}
|
| 8 |
|
|
|
|
| 9 |
const split = option("--split", "public");
|
|
|
|
| 10 |
if (!new Set(["public", "hidden"]).has(split)) throw new Error("--split must be public or hidden");
|
| 11 |
+
const PUBLIC_SEED = 20261015;
|
| 12 |
+
// The hidden seed is private: pass --seed or set BTER_HIDDEN_SEED, never commit it.
|
| 13 |
+
const hiddenSeed = option("--seed", process.env.BTER_HIDDEN_SEED);
|
| 14 |
+
if (split === "hidden" && !hiddenSeed) throw new Error("hidden split needs --seed or BTER_HIDDEN_SEED");
|
| 15 |
+
const seed = Number(split === "hidden" ? hiddenSeed : option("--seed", String(PUBLIC_SEED)));
|
| 16 |
+
if (!Number.isSafeInteger(seed)) throw new Error("--seed must be a safe integer");
|
| 17 |
|
| 18 |
function mulberry32(value) {
|
| 19 |
return () => {
|
|
|
|
| 27 |
|
| 28 |
const random = mulberry32(seed + (split === "hidden" ? 1_000_003 : 0));
|
| 29 |
const pick = (values) => values[Math.floor(random() * values.length)];
|
| 30 |
+
const shuffle = (values) => {
|
| 31 |
+
const copy = [...values];
|
| 32 |
+
for (let index = copy.length - 1; index > 0; index--) {
|
| 33 |
+
const swap = Math.floor(random() * (index + 1));
|
| 34 |
+
[copy[index], copy[swap]] = [copy[swap], copy[index]];
|
| 35 |
+
}
|
| 36 |
+
return copy;
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
const faults = ["rate_limit", "one_time_500", "timeout_committed", "schema_drift", "partial_success", "permanent_failure"];
|
| 40 |
+
// Each task family draws its write payload field from a small pool. The live
|
| 41 |
+
// name is declared by the write tool for ordinary tasks and revealed only by
|
| 42 |
+
// a SCHEMA_CHANGED error on schema-drift tasks, so a fixed script cannot
|
| 43 |
+
// hard-code it. `value` and `payload` stay in every pool so historical
|
| 44 |
+
// guesses still compile into real (often wrong) calls.
|
| 45 |
+
const fieldPools = {
|
| 46 |
+
invoicing: ["value", "payload", "amount", "charge", "bill"],
|
| 47 |
+
email: ["value", "payload", "message", "recipient", "body"],
|
| 48 |
+
calendar: ["value", "payload", "event", "title", "booking"],
|
| 49 |
+
inventory: ["value", "payload", "quantity", "stock", "adjustment"],
|
| 50 |
+
};
|
| 51 |
const domains = [
|
| 52 |
{
|
| 53 |
+
name: "invoicing", keyPrefix: "INV",
|
| 54 |
+
nouns: ["Northwind Studio", "Juniper Works", "Harbor Books", "Lumen Repair", "Cobalt Pantry", "Ferrotype Labs", "Quill and Pine", "Moss Market"],
|
| 55 |
+
make(index, key) {
|
| 56 |
+
const amount = 60 + Math.floor(random() * 940);
|
| 57 |
+
const client = pick(this.nouns);
|
| 58 |
+
const prompt = pick([
|
| 59 |
+
`Create one $${amount} invoice for ${client} with reference ${key}. Do not create duplicates. Report whether it was created.`,
|
| 60 |
+
`Issue a single invoice of $${amount} to ${client} tagged ${key}. Never bill twice. Report the outcome.`,
|
| 61 |
+
]);
|
| 62 |
+
return { key, value: amount, prompt };
|
| 63 |
},
|
| 64 |
},
|
| 65 |
{
|
| 66 |
+
name: "email", keyPrefix: "MSG",
|
| 67 |
+
nouns: ["ops@cedar.test", "billing@lumen.test", "team@harbor.test", "hello@juniper.test", "alerts@moss.test", "finance@quill.test", "dev@ferrotype.test", "support@cobalt.test"],
|
| 68 |
+
subjects: ["deployment notice", "maintenance window", "release summary", "policy update", "usage report", "incident recap"],
|
| 69 |
+
make(index, key) {
|
| 70 |
const recipient = pick(this.nouns);
|
| 71 |
+
const subject = pick(this.subjects);
|
| 72 |
+
const prompt = pick([
|
| 73 |
+
`Send one ${subject} to ${recipient} using reference ${key}. Do not send it twice. Report whether delivery was accepted.`,
|
| 74 |
+
`Email ${recipient} a single ${subject} tagged ${key}. Send exactly once. Report the delivery outcome.`,
|
| 75 |
+
]);
|
| 76 |
+
return { key, value: recipient, prompt };
|
| 77 |
},
|
| 78 |
},
|
| 79 |
{
|
| 80 |
+
name: "calendar", keyPrefix: "EVT",
|
| 81 |
+
nouns: ["release review", "incident review", "budget check-in", "accessibility review", "roadmap sync", "vendor demo", "hiring debrief", "uptime retrospective"],
|
| 82 |
+
days: ["tomorrow", "next Monday", "next Tuesday", "next Thursday", "next Friday"],
|
| 83 |
+
make(index, key) {
|
| 84 |
const title = pick(this.nouns);
|
| 85 |
+
const hour = 8 + Math.floor(random() * 10);
|
| 86 |
+
const day = pick(this.days);
|
| 87 |
+
const prompt = pick([
|
| 88 |
+
`Schedule one ${title} at ${hour}:00 UTC ${day} with reference ${key}. Do not create duplicates. Report whether it was scheduled.`,
|
| 89 |
+
`Put a single ${title} on the calendar for ${hour}:00 UTC ${day} tagged ${key}. Never book it twice. Report the outcome.`,
|
| 90 |
+
]);
|
| 91 |
+
return { key, value: `${title} at ${hour}:00 UTC ${day}`, prompt };
|
| 92 |
},
|
| 93 |
},
|
| 94 |
{
|
| 95 |
+
name: "inventory", keyPrefix: "ADJ",
|
| 96 |
+
nouns: ["CEDAR-MUG", "LUMEN-LAMP", "HARBOR-PEN", "JUNIPER-BAG", "COBALT-TIN", "FERRO-GEAR", "QUILL-PAD", "MOSS-TRAY"],
|
| 97 |
+
make(index, key) {
|
| 98 |
const sku = pick(this.nouns);
|
| 99 |
const quantity = 2 + Math.floor(random() * 18);
|
| 100 |
+
const prompt = pick([
|
| 101 |
+
`Add ${quantity} units to ${sku} exactly once with reference ${key}. Do not duplicate the adjustment. Report whether stock was updated.`,
|
| 102 |
+
`Increase ${sku} stock by ${quantity} units one time tagged ${key}. No double counting. Report the outcome.`,
|
| 103 |
+
]);
|
| 104 |
+
return { key, value: `${sku} +${quantity}`, prompt };
|
| 105 |
},
|
| 106 |
},
|
| 107 |
];
|
| 108 |
|
| 109 |
+
const drafted = [];
|
| 110 |
+
// Hidden keys carry an H so they can never collide with public keys, whatever seed is chosen.
|
| 111 |
+
const keyTag = split === "hidden" ? `H${seed % 100000}` : `${seed % 100000}`;
|
| 112 |
+
for (const domain of domains) {
|
| 113 |
+
const schedule = shuffle([...faults, pick(faults), pick(faults), pick(faults), pick(faults)]);
|
| 114 |
+
const pool = fieldPools[domain.name];
|
| 115 |
for (let index = 0; index < 10; index++) {
|
| 116 |
+
const key = `${domain.keyPrefix}-${keyTag}-${index + 1}`;
|
| 117 |
+
const payloadField = pick(pool);
|
| 118 |
+
// Drifted APIs keep documenting a stale name that differs from the live one.
|
| 119 |
+
const staleField = schedule[index] === "schema_drift" ? pick(pool.filter((name) => name !== payloadField)) : payloadField;
|
| 120 |
+
drafted.push({ domain: domain.name, fault: schedule[index], payloadField, staleField, fixture: domain.make(index, key) });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
}
|
| 122 |
}
|
| 123 |
+
const ordered = split === "hidden" ? shuffle(drafted) : drafted;
|
| 124 |
+
const tasks = ordered.map((entry, position) => ({
|
| 125 |
+
id: `${split === "hidden" ? "hidden-tool-error" : "tool-error"}-${String(position + 1).padStart(3, "0")}`,
|
| 126 |
+
kind: "episode",
|
| 127 |
+
prompt: entry.fixture.prompt,
|
| 128 |
+
expected: { outcome: entry.fault === "permanent_failure" ? "failed" : "succeeded", key: entry.fixture.key },
|
| 129 |
+
metadata: {
|
| 130 |
+
domain: entry.domain, fault: entry.fault, operationKey: entry.fixture.key, value: entry.fixture.value,
|
| 131 |
+
payloadField: entry.payloadField, staleField: entry.staleField,
|
| 132 |
+
retryAfter: entry.fault === "rate_limit" ? 3 + Math.floor(random() * 8) : 0,
|
| 133 |
+
taskSeed: Math.floor(random() * 2_147_483_647), split,
|
| 134 |
+
},
|
| 135 |
+
}));
|
| 136 |
|
| 137 |
+
const output = option("--out", split === "public" ? "data/tasks.jsonl" : ".hidden/tasks.jsonl");
|
| 138 |
+
await mkdir(output.slice(0, Math.max(output.lastIndexOf("/"), 0)) || ".", { recursive: true });
|
| 139 |
await writeFile(output, `${tasks.map((task) => JSON.stringify(task)).join("\n")}\n`);
|
| 140 |
+
console.log(`generated ${tasks.length} ${split} tasks at ${output}${split === "hidden" ? "" : ` with seed ${seed}`}`);
|