TrangBui commited on
Commit
285b9fc
·
verified ·
1 Parent(s): cdc67ba

Document reproducible RoutingBench V4 beta.2 release

Browse files
Files changed (1) hide show
  1. README.md +500 -452
README.md CHANGED
@@ -1,452 +1,500 @@
1
- ---
2
- license: other
3
- language:
4
- - en
5
- pretty_name: "RoutingBench V4-beta: Multi-Agent Dynamic Routing Benchmark"
6
- annotations_creators:
7
- - expert-generated
8
- multilinguality:
9
- - monolingual
10
- source_datasets:
11
- - extended
12
- size_categories:
13
- - 1K<n<10K
14
- tags:
15
- - multi-agent
16
- - multi-agent-systems
17
- - agent-routing
18
- - llm-routing
19
- - slm
20
- - orchestration
21
- - dynamic-routing
22
- - live-trajectories
23
- - tool-use
24
- - agent-evaluation
25
- - benchmark
26
- - datasets
27
- - text
28
- - tabular
29
- - code-debugging
30
- - formal-proof
31
- - database-migration
32
- - spreadsheet
33
- configs:
34
- - config_name: router_state
35
- default: true
36
- data_files:
37
- - split: development
38
- path: data/router_state/development.parquet
39
- - split: validation
40
- path: data/router_state/validation.parquet
41
- - split: test
42
- path: data/router_state/test.parquet
43
- - config_name: router_structured
44
- data_files:
45
- - split: development
46
- path: data/router_structured/development.parquet
47
- - split: validation
48
- path: data/router_structured/validation.parquet
49
- - split: test
50
- path: data/router_structured/test.parquet
51
- - config_name: router_raw_development
52
- data_files:
53
- - split: development
54
- path: data/router_raw_development/development.parquet
55
- - config_name: track_a_labels
56
- data_files:
57
- - split: development
58
- path: data/track_a_labels/development.parquet
59
- - split: validation
60
- path: data/track_a_labels/validation.parquet
61
- - split: test
62
- path: data/track_a_labels/test.parquet
63
- - config_name: agent_catalog
64
- data_files:
65
- - split: train
66
- path: data/agent_catalog/train.parquet
67
- - config_name: provenance
68
- data_files:
69
- - split: development
70
- path: data/provenance/development.parquet
71
- - split: validation
72
- path: data/provenance/validation.parquet
73
- - split: test
74
- path: data/provenance/test.parquet
75
- - config_name: human_review
76
- data_files:
77
- - split: development
78
- path: data/human_review/development.parquet
79
- - split: validation
80
- path: data/human_review/validation.parquet
81
- - split: test
82
- path: data/human_review/test.parquet
83
- - config_name: track_b_tasks
84
- data_files:
85
- - split: full
86
- path: data/track_b_tasks/full.parquet
87
- - config_name: track_b_agents
88
- data_files:
89
- - split: full
90
- path: data/track_b_agents/full.parquet
91
- - config_name: track_b_trajectories
92
- data_files:
93
- - split: full
94
- path: data/track_b_trajectories/full.parquet
95
- - config_name: track_b_results
96
- data_files:
97
- - split: full
98
- path: data/track_b_results/full.parquet
99
- - config_name: track_b_runs
100
- data_files:
101
- - split: full
102
- path: data/track_b_runs/full.parquet
103
- - config_name: track_b_provenance
104
- data_files:
105
- - split: full
106
- path: data/track_b_provenance/full.parquet
107
- ---
108
-
109
- # RoutingBench V4-beta: Multi-Agent Dynamic Routing Benchmark
110
-
111
- RoutingBench is a benchmark for **LLM/decision-model routing**, **multi-agent
112
- orchestration**, and coordination of **small language model (SLM) or
113
- deterministic executors** on multi-step tasks. A router observes the public
114
- state, selects one role or `STOP`, and receives the observable consequence of
115
- that action. The environment preserves action consequences, separates
116
- router-visible artifacts from evaluator-only artifacts, and reports routing
117
- behavior separately from final task correctness.
118
-
119
- This is **version 4.0.0-beta.2**. It keeps Track A unchanged and replaces the
120
- earlier simulated Track B export with 82 live trajectories from four task
121
- domains. Track C is temporarily absent from this revision.
122
-
123
- ## Release scope
124
-
125
- | Track | Status in beta.2 | Unit | Split policy |
126
- |---|---|---|---|
127
- | Track A | Unchanged from beta.1 | Isolated next-agent decision | Existing `development` / `validation` / `test` splits |
128
- | Track B | Updated | Full live multi-agent trajectory | One public `full` split; no holdout |
129
- | Track C | Temporarily removed | Checkpointed recovery | Will return in a later revision |
130
-
131
- The next planned update will revise Track A, restore Track C, and add four more
132
- Track B domains. This beta is a transparent research benchmark, not a sealed
133
- leaderboard.
134
-
135
- ## Tracks
136
-
137
- ### Track A — isolated routing
138
-
139
- Track A asks a model to choose the next agent from an isolated observable state.
140
- It contains 2,604 decisions derived from 124 base workflows. The router-facing
141
- views are `router_state`, `router_structured`, and development-only
142
- `router_raw_development`; labels are stored separately in `track_a_labels`.
143
-
144
- The Track A data and split assignment are byte-for-byte inherited from beta.1.
145
- Its existing human-review records remain pending unless a row states otherwise.
146
-
147
- ### Track B — live multi-step coordination
148
-
149
- Track B runs the complete router–executor loop. Every action is executed through
150
- the domain adapter, its observable consequence is added to state, and the router
151
- chooses again until `STOP` or the call budget terminates the episode.
152
-
153
- | Domain | Packets | Core task | Executor backbone | Packet human review |
154
- |---|---:|---|---|---|
155
- | Database migration and integrity | 12 | Plan, implement, execute, and verify schema/data migrations | Qwen3.5-9B | Complete |
156
- | Code debugging | 20 | Reproduce, diagnose, patch, test, and finalize repository bugs | Gemini 2.5 Flash | Complete |
157
- | Formal proof | 30 | Repair or complete Lean proofs with compiler feedback | Goedel-Prover-V2-8B | Complete |
158
- | Structured data processing | 20 | Transform and validate reusable spreadsheet programs | Qwen3.5-9B | Pending; research preview |
159
-
160
- All four published pilots use `typesafe/jev-1.13` as the router. Model/provider
161
- names are provenance, not router input features. The executor pool, adapter,
162
- budget, packet, evaluator, and role cards are frozen within each comparison.
163
-
164
- Track B deliberately has no train/test split in this revision. The `full` split
165
- is intended for controlled router comparisons where every competing router sees
166
- the same public packet set and uses the same frozen executor environment.
167
-
168
- ### Track C — checkpointed recovery
169
-
170
- Track C is not included in beta.2. The beta.1 checkpoint tables were removed to
171
- avoid presenting a partially updated recovery track beside the new live Track B.
172
- Track C will be republished after its state contracts and review records are
173
- updated.
174
-
175
- ## Track B configurations
176
-
177
- | Configuration | Rows | Visibility | Purpose |
178
- |---|---:|---|---|
179
- | `track_b_tasks` | 82 | Router/task public | Task, adapter, packet paths, status, and public manifest |
180
- | `track_b_agents` | 33 | Router public | Role cards and role contracts for the four pools |
181
- | `track_b_trajectories` | 82 | Analysis public | Compact decision/event sequences; raw prompts and executor outputs excluded |
182
- | `track_b_results` | 82 | Evaluator only | Terminal outcome, independent task result, budget and routing counts |
183
- | `track_b_runs` | 4 | Analysis public | Domain-level run provenance and headline metrics |
184
- | `track_b_provenance` | 82 | Analysis public | Source revision, record identifier, generator, checksum, and license |
185
-
186
- ## Agent-pool design
187
-
188
- Each domain exposes the complete role pool plus `STOP` at every routing step.
189
- The environment does not prescribe a fixed role order or a single workflow.
190
- Role cards define a bounded implementation contract through `role_goal`,
191
- `use_when`, `avoid_when`, supported inputs, tools, and expected outputs; they do
192
- not tell the router which role must be selected next. The router may revisit a
193
- role, skip a role, branch after new evidence, recover from failure, or stop.
194
-
195
- The pools intentionally separate evidence collection, artifact authoring,
196
- execution, diagnosis, repair, and verification. This creates alternative valid
197
- workflows while preserving role accountability: an inspector cannot claim an
198
- execution result, an author cannot claim validation, and a verifier evaluates
199
- the current artifact rather than silently replacing it.
200
-
201
- ### Database migration and integrity — 10 roles
202
-
203
- | Role | Contract boundary |
204
- |---|---|
205
- | Schema Inspector | Materialize schema, index, trigger, foreign-key, and migration-history evidence without mutation. |
206
- | Data Profiler | Measure nulls, duplicates, orphan rows, types, and distributions relevant to migration safety. |
207
- | Constraint Analyzer | Analyze invariants and concrete foreign-key, uniqueness, or check-constraint failures. |
208
- | Migration Planner | Plan operation ordering, transaction boundaries, and rollback boundaries from visible evidence. |
209
- | Data Repair Planner | Design the smallest justified backfill, deduplication, remapping, or orphan repair. |
210
- | SQL Migration Author | Produce the smallest evidence-grounded SQLite migration candidate; does not execute it. |
211
- | Transactional Dry-run Executor | Execute the current candidate on an isolated copy and preserve its trace and consequences. |
212
- | Integrity Validator | Check target schema, invariants, rows, foreign keys, and regression queries on the executed artifact. |
213
- | Query Performance Auditor | Inspect query plans or explicit performance constraints when the task requires them. |
214
- | Snapshot & Rollback Operator | Create or restore explicit database snapshots; recovery remains an observable routed action. |
215
-
216
- Possible trajectories include direct inspect–author–execute–validate, a
217
- profile/constraint branch before authoring, data-repair planning, repeated
218
- author–dry-run–diagnose cycles, performance audit, or explicit snapshot recovery.
219
-
220
- ### Code debugging — 6 roles
221
-
222
- | Role | Contract boundary |
223
- |---|---|
224
- | Repository Test Reproducer | Prepare the pinned checkout and establish a fresh baseline with the supplied reproducer. |
225
- | Failure Diagnostician | Explain a concrete failure mechanism from execution or repair evidence without changing source. |
226
- | Patch Author | Produce the smallest justified unified diff from visible source, tests, and diagnostics. |
227
- | Regression Verifier | Run the public regression contract against the exact current candidate. |
228
- | Verified Patch Consumer | Promote an exactly verified candidate into the downstream workflow artifact when packaging is needed. |
229
- | Patch Finalizer | Commit the verified downstream patch as the final deliverable after all visible requirements are satisfied. |
230
-
231
- The router can choose reproduction before diagnosis, diagnose after a failed
232
- patch, iterate patch and verification, or omit optional packaging roles when the
233
- task contract does not require them. Promotion and finalization cannot substitute
234
- for fresh regression evidence.
235
-
236
- ### Formal proof — 7 roles
237
-
238
- | Role | Contract boundary |
239
- |---|---|
240
- | Proof State Inspector | Read the Lean goal, hypotheses, source, and compiler diagnostics without editing the proof. |
241
- | Premise and Lemma Retriever | Identify applicable visible hypotheses and Mathlib lemmas without claiming compilation. |
242
- | Tactic Synthesizer | Construct a candidate Lean proof from the current goal and evidence. |
243
- | Proof Repair Specialist | Revise a failed candidate using the latest compiler diagnostic while preserving the theorem statement. |
244
- | Lean Compiler Executor | Compile the current candidate in the pinned Lean/Mathlib environment. |
245
- | Kernel and Assumption Verifier | Confirm closure without `sorry`, `admit`, forbidden placeholders, or added assumptions. |
246
- | Formal Failure Diagnostician | Explain concrete compiler/proof failures and derive repair constraints. |
247
-
248
- Valid workflows may retrieve lemmas before synthesis, synthesize directly from
249
- the goal, diagnose after compilation, perform several repair–compile cycles, or
250
- verify immediately after a clean compile. Compilation and kernel/assumption
251
- verification remain separate evidence stages.
252
-
253
- ### Structured data processing — 10 roles
254
-
255
- | Role | Contract boundary |
256
- |---|---|
257
- | Workbook Surveyor | Inspect sheets, dimensions, values, formulas, and styles without modifying the input. |
258
- | Data Quality Profiler | Measure missing values, row types, key multiplicity, and other transformation-relevant properties. |
259
- | Formula Dependency Analyst | Inspect formulas and dependencies that may be affected by workbook changes. |
260
- | Table Reshaping Specialist | Author reusable grouping, filtering, joining, sorting, or reshaping transformations. |
261
- | Formula Computation Specialist | Author reusable transformations dominated by formulas or calculated-field semantics. |
262
- | Cross-sheet Reconciler | Reconcile identifiers or values across sheets while preserving unrelated content. |
263
- | Formatting & Presentation Specialist | Implement styles, number formats, layout, or presentation requirements. |
264
- | Workbook Repair Specialist | Revise a failed candidate from concrete public execution or validation evidence. |
265
- | Workbook Test Executor | Run the current candidate in the restricted Python/OpenPyXL public runner. |
266
- | Workbook Integrity Validator | Check a fresh public output against deterministic transformation and preservation constraints. |
267
-
268
- Task archetypes—aggregation, cleaning, formatting, formula/dependency, and
269
- reshape/join—activate different authoring roles. The router can survey or profile
270
- first, combine cross-sheet and formula analysis, test early, repair after either
271
- execution or semantic validation failure, and decide when a fresh validation is
272
- sufficient for `STOP`.
273
-
274
- The runnable packet trees are under:
275
-
276
- ```text
277
- track_b_packets/<domain>/<packet_id>/
278
- ├── manifest.json
279
- ├── public/ # router/executor-visible task artifacts
280
- ├── fixtures/ # pinned source/provenance fixtures
281
- └── private/ # evaluator-only reference and oracle material
282
- ```
283
-
284
- This is a transparent public beta: private reference proofs, gold patches,
285
- answer workbooks, and oracle files are downloadable, but **evaluator-only**.
286
- Their visibility label is a benchmark protocol boundary, not repository access
287
- control. Never pass `private/`, `track_b_results`, or Track A label rows to the
288
- router.
289
-
290
- ## Loading
291
-
292
- ```python
293
- from datasets import load_dataset
294
-
295
- # Track A: unchanged isolated routing benchmark
296
- track_a_state = load_dataset("TrangBui/RoutingBench-V4", "router_state")
297
- track_a_labels = load_dataset("TrangBui/RoutingBench-V4", "track_a_labels")
298
-
299
- # Track B: four live domains, one full split
300
- tasks = load_dataset("TrangBui/RoutingBench-V4", "track_b_tasks", split="full")
301
- agents = load_dataset("TrangBui/RoutingBench-V4", "track_b_agents", split="full")
302
- trajectories = load_dataset(
303
- "TrangBui/RoutingBench-V4", "track_b_trajectories", split="full"
304
- )
305
- results = load_dataset("TrangBui/RoutingBench-V4", "track_b_results", split="full")
306
- ```
307
-
308
- JSON-valued columns are stored as JSON strings so the schemas remain stable
309
- across domains. Decode them with `json.loads`.
310
-
311
- ## Evaluation protocol
312
-
313
- For a router comparison:
314
-
315
- 1. select a Track B domain and freeze its packet revision, role cards, adapter,
316
- executor model, executor decoding parameters, call budget, and evaluator;
317
- 2. expose only the packet's `public/` artifacts and the full role pool plus
318
- `STOP` to the router;
319
- 3. execute every selected action and retain its observable consequence, including
320
- failed or invalid actions;
321
- 4. stop on router `STOP` or budget termination; a decision suppressed at zero
322
- remaining budget is retained in the raw trace but excluded from primary
323
- routing decisions;
324
- 5. run the independent evaluator on the final state; and
325
- 6. report outcome, coordination, safety, and efficiency metrics separately.
326
-
327
- Do not automatically roll back failed actions merely to improve the trajectory.
328
- A domain transaction may roll back according to its execution contract, but an
329
- orchestrator-level recovery is a new routed action and must remain observable.
330
-
331
- ### Required reporting
332
-
333
- At minimum, report:
334
-
335
- - packet completion and infrastructure-affected episode count;
336
- - trajectory success (`STOP` plus terminal public contract);
337
- - independent end-task success;
338
- - primary and raw router-decision counts;
339
- - budget-suppressed decisions;
340
- - agent/role usage and transitions;
341
- - executor outcomes (`success`, `invalid_output`, `failed`, precondition reject);
342
- - task-specific partial progress; and
343
- - whether valid-action labels were available.
344
-
345
- There is no weighted composite score in this release. In particular, final task
346
- success is not a pure router-accuracy measure: it also depends on the fixed
347
- executor. Compare routers only under the same environment freeze.
348
-
349
- ## Jev reference results
350
-
351
- These numbers are reference-system results, not a claim that Jev is an oracle.
352
- They are included to verify that the environment produces non-trivial routing
353
- and task signals.
354
-
355
- | Domain | Packets | Trajectory/public success | Independent trusted success | Primary decisions | Raw decisions | Budget-suppressed |
356
- |---|---:|---:|---:|---:|---:|---:|
357
- | Database migration and integrity | 12 | 6 | 7 | 84 | 90 | 6 |
358
- | Code debugging | 20 | 12 | 12 | 143 | 151 | 8 |
359
- | Formal proof | 30 | 17 | 18 | 185 | 198 | 13 |
360
- | Structured data processing | 20 | 2 | 1 | 156 | 174 | 18 |
361
-
362
- For database, code, and formal proof, “trajectory success” means the terminal
363
- public contract passed and the router selected `STOP`; “independent trusted
364
- success” is the evaluator-only final task result. Structured data uses a richer
365
- milestone bundle because its hard-pass outcome has a strong floor effect:
366
-
367
- | Structured-data milestone | Jev result |
368
- |---|---:|
369
- | Accepted candidate | 11/20 |
370
- | Public execution succeeded | 6/20 |
371
- | Public validation passed and router selected `STOP` | 2/20 |
372
- | Trusted hard pass | 1/20 |
373
- | Trusted evaluator cases passed | 3/59 |
374
-
375
- The structured-data traces still contain survey, authoring, profiling,
376
- cross-sheet work, testing, validation, repair, precondition rejection, missing
377
- `STOP`, and budget exhaustion. They are useful for coordination analysis, but
378
- task success alone has limited power until executor reliability improves.
379
-
380
- ## Human-review status
381
-
382
- Human review is recorded at two different units and must not be conflated:
383
-
384
- - **Packet review:** checks task meaning, public/private boundary, contract,
385
- artifacts, and evaluator suitability. It is complete for database, code
386
- debugging, and formal proof. Structured-data packet review is still pending.
387
- - **Decision-state review:** labels whether a routed next action is valid at a
388
- particular live state. These labels are pending for all new Track B domains.
389
-
390
- The formal-proof metadata records project-owner approval dated 2026-11-02.
391
- Code-debugging review is supported by the 20-item artifact review queue and a
392
- complete 20-episode live run, so no replacement run was needed for this release.
393
-
394
- ## Quality controls
395
-
396
- - 82/82 Track B packets have a canonical live episode.
397
- - Formal-proof manifests validate after the review update (30/30).
398
- - Public task artifacts and evaluator-only private artifacts are packaged in
399
- separate directories with explicit visibility boundaries.
400
- - Compact trajectory rows retain routing choices, probabilities, timing,
401
- budget, dispatch status, event status, and state hashes without publishing raw
402
- model prompts or outputs.
403
- - The structured-data cohort excludes superseded infrastructure-affected
404
- episodes and uses the patched replacement runs.
405
- - Source/run identifiers remain attached; historical runs are not relabeled as
406
- newly executed experiments.
407
-
408
- ## Known limitations
409
-
410
- - Track B has no sealed test split and should not be used for hidden-leaderboard
411
- claims.
412
- - New Track B live states do not yet have human valid-action labels.
413
- - Structured-data packet human review is pending and its executor creates a
414
- strong outcome floor.
415
- - Executor backbones differ by domain, so absolute success rates should not be
416
- compared across domains as if task difficulty were controlled.
417
- - Three code-debugging packets have `NOASSERTION` license metadata; inspect
418
- `track_b_provenance` before redistribution or derivative packaging.
419
- - Track A review and Track C redesign are not part of beta.2.
420
-
421
- ## Provenance and licenses
422
-
423
- RoutingBench contains project-authored schemas and adapters plus heterogeneous
424
- upstream task material. The repository-level license is therefore `other`.
425
- Use the row-level `license`, source revision, record ID, and checksum in
426
- `track_b_provenance`; Track A provenance remains in `provenance`. The project
427
- license does not replace upstream licenses.
428
-
429
- Reference implementation:
430
- [BuiThiThanhTrang/RACO_MAS](https://github.com/BuiThiThanhTrang/RACO_MAS)
431
-
432
- ## Roadmap
433
-
434
- A later revision is planned to:
435
-
436
- - update and review Track A;
437
- - restore the redesigned Track C recovery benchmark;
438
- - finish structured-data human review; and
439
- - add four additional Track B domains to reach the planned eight-domain suite.
440
-
441
- ## Citation
442
-
443
- ```bibtex
444
- @dataset{bui2026routingbenchv4,
445
- author = {Trang Bui},
446
- title = {RoutingBench V4-beta: Dynamic Multi-Agent Routing with Live Trajectories},
447
- year = {2026},
448
- version = {4.0.0-beta.2},
449
- publisher = {Hugging Face},
450
- url = {https://huggingface.co/datasets/TrangBui/RoutingBench-V4}
451
- }
452
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ pretty_name: "RoutingBench V4-beta: Multi-Agent Dynamic Routing Benchmark"
6
+ annotations_creators:
7
+ - expert-generated
8
+ multilinguality:
9
+ - monolingual
10
+ source_datasets:
11
+ - extended
12
+ size_categories:
13
+ - 1K<n<10K
14
+ tags:
15
+ - multi-agent
16
+ - multi-agent-systems
17
+ - agent-routing
18
+ - llm-routing
19
+ - slm
20
+ - orchestration
21
+ - dynamic-routing
22
+ - live-trajectories
23
+ - tool-use
24
+ - agent-evaluation
25
+ - benchmark
26
+ - datasets
27
+ - text
28
+ - tabular
29
+ - code-debugging
30
+ - formal-proof
31
+ - database-migration
32
+ - spreadsheet
33
+ configs:
34
+ - config_name: router_state
35
+ default: true
36
+ data_files:
37
+ - split: development
38
+ path: data/router_state/development.parquet
39
+ - split: validation
40
+ path: data/router_state/validation.parquet
41
+ - split: test
42
+ path: data/router_state/test.parquet
43
+ - config_name: router_structured
44
+ data_files:
45
+ - split: development
46
+ path: data/router_structured/development.parquet
47
+ - split: validation
48
+ path: data/router_structured/validation.parquet
49
+ - split: test
50
+ path: data/router_structured/test.parquet
51
+ - config_name: router_raw_development
52
+ data_files:
53
+ - split: development
54
+ path: data/router_raw_development/development.parquet
55
+ - config_name: track_a_labels
56
+ data_files:
57
+ - split: development
58
+ path: data/track_a_labels/development.parquet
59
+ - split: validation
60
+ path: data/track_a_labels/validation.parquet
61
+ - split: test
62
+ path: data/track_a_labels/test.parquet
63
+ - config_name: agent_catalog
64
+ data_files:
65
+ - split: train
66
+ path: data/agent_catalog/train.parquet
67
+ - config_name: provenance
68
+ data_files:
69
+ - split: development
70
+ path: data/provenance/development.parquet
71
+ - split: validation
72
+ path: data/provenance/validation.parquet
73
+ - split: test
74
+ path: data/provenance/test.parquet
75
+ - config_name: human_review
76
+ data_files:
77
+ - split: development
78
+ path: data/human_review/development.parquet
79
+ - split: validation
80
+ path: data/human_review/validation.parquet
81
+ - split: test
82
+ path: data/human_review/test.parquet
83
+ - config_name: track_b_tasks
84
+ data_files:
85
+ - split: full
86
+ path: data/track_b_tasks/full.parquet
87
+ - config_name: track_b_agents
88
+ data_files:
89
+ - split: full
90
+ path: data/track_b_agents/full.parquet
91
+ - config_name: track_b_trajectories
92
+ data_files:
93
+ - split: full
94
+ path: data/track_b_trajectories/full.parquet
95
+ - config_name: track_b_results
96
+ data_files:
97
+ - split: full
98
+ path: data/track_b_results/full.parquet
99
+ - config_name: track_b_runs
100
+ data_files:
101
+ - split: full
102
+ path: data/track_b_runs/full.parquet
103
+ - config_name: track_b_provenance
104
+ data_files:
105
+ - split: full
106
+ path: data/track_b_provenance/full.parquet
107
+ ---
108
+
109
+ # RoutingBench V4-beta: Multi-Agent Dynamic Routing Benchmark
110
+
111
+ RoutingBench is a benchmark for **LLM/decision-model routing**, **multi-agent
112
+ orchestration**, and coordination of **small language model (SLM) or
113
+ deterministic executors** on multi-step tasks. A router observes the public
114
+ state, selects one role or `STOP`, and receives the observable consequence of
115
+ that action. The environment preserves action consequences, separates
116
+ router-visible artifacts from evaluator-only artifacts, and reports routing
117
+ behavior separately from final task correctness.
118
+
119
+ This is **version 4.0.0-beta.2**. It keeps Track A unchanged and replaces the
120
+ earlier simulated Track B export with 82 live trajectories from four task
121
+ domains. Track C is temporarily absent from this revision.
122
+
123
+ ## Release scope
124
+
125
+ | Track | Status in beta.2 | Unit | Split policy |
126
+ |---|---|---|---|
127
+ | Track A | Unchanged from beta.1 | Isolated next-agent decision | Existing `development` / `validation` / `test` splits |
128
+ | Track B | Updated | Full live multi-agent trajectory | One public `full` split; no holdout |
129
+ | Track C | Temporarily removed | Checkpointed recovery | Will return in a later revision |
130
+
131
+ The next planned update will revise Track A, restore Track C, and add four more
132
+ Track B domains. This beta is a transparent research benchmark, not a sealed
133
+ leaderboard.
134
+
135
+ ## Reproducible release
136
+
137
+ The frozen beta.2 code and dataset are identified independently. Report both
138
+ revisions in every experiment:
139
+
140
+ - **GitHub tag:** [`routingbench-v4-beta.2`](https://github.com/BuiThiThanhTrang/RACO_MAS/tree/routingbench-v4-beta.2)
141
+ - **Code commit:** [`ee21943c3594c97f51f2082d0671dde44b7d2eb2`](https://github.com/BuiThiThanhTrang/RACO_MAS/commit/ee21943c3594c97f51f2082d0671dde44b7d2eb2)
142
+ - **Dataset revision:** [`cdc67bad1458f6b939f759e3f764f2e93612f424`](https://huggingface.co/datasets/TrangBui/RoutingBench-V4/tree/cdc67bad1458f6b939f759e3f764f2e93612f424)
143
+
144
+ The following PowerShell commands reproduce the release certificate from a
145
+ clean checkout on Windows with Python 3.13:
146
+
147
+ ```powershell
148
+ git clone --branch routingbench-v4-beta.2 --depth 1 `
149
+ https://github.com/BuiThiThanhTrang/RACO_MAS.git
150
+ cd RACO_MAS\puppeteer
151
+
152
+ py -3.13 -m venv .venv
153
+ .\.venv\Scripts\Activate.ps1
154
+ python -m pip install --upgrade pip
155
+ python -m pip install -r requirements-routingbench-v4-release.lock.txt
156
+
157
+ python scripts\download_routingbench_v4.py `
158
+ --repo-id TrangBui/RoutingBench-V4 `
159
+ --revision cdc67bad1458f6b939f759e3f764f2e93612f424 `
160
+ --output data\RoutingBench\v4_beta_4d_82_20261102
161
+
162
+ python -m unittest tests.test_routingbench_v4_private_isolation -v
163
+ python scripts\certify_routingbench_v4_release.py `
164
+ --release-root data\RoutingBench\v4_beta_4d_82_20261102 `
165
+ --runtime-manifest reproducibility\runtime_core.sha256.json `
166
+ --report reproducibility\certification_report.json
167
+ ```
168
+
169
+ The clean-clone certificate validates 94 frozen runtime files with aggregate
170
+ SHA-256 `779cfc4d9e913c26b8145f7435a983cd200771465707f54360fdec15ece2f16e`,
171
+ all 82 Track B packets, and 732 router/executor model contexts.
172
+
173
+ ## Tracks
174
+
175
+ ### Track A — isolated routing
176
+
177
+ Track A asks a model to choose the next agent from an isolated observable state.
178
+ It contains 2,604 decisions derived from 124 base workflows. The router-facing
179
+ views are `router_state`, `router_structured`, and development-only
180
+ `router_raw_development`; labels are stored separately in `track_a_labels`.
181
+
182
+ The Track A data and split assignment are byte-for-byte inherited from beta.1.
183
+ Its existing human-review records remain pending unless a row states otherwise.
184
+
185
+ ### Track B — live multi-step coordination
186
+
187
+ Track B runs the complete router–executor loop. Every action is executed through
188
+ the domain adapter, its observable consequence is added to state, and the router
189
+ chooses again until `STOP` or the call budget terminates the episode.
190
+
191
+ | Domain | Packets | Core task | Executor backbone | Packet human review |
192
+ |---|---:|---|---|---|
193
+ | Database migration and integrity | 12 | Plan, implement, execute, and verify schema/data migrations | Qwen3.5-9B | Complete |
194
+ | Code debugging | 20 | Reproduce, diagnose, patch, test, and finalize repository bugs | Gemini 2.5 Flash | Complete |
195
+ | Formal proof | 30 | Repair or complete Lean proofs with compiler feedback | Goedel-Prover-V2-8B | Complete |
196
+ | Structured data processing | 20 | Transform and validate reusable spreadsheet programs | Qwen3.5-9B | Pending; research preview |
197
+
198
+ All four published pilots use `typesafe/jev-1.13` as the router. Model/provider
199
+ names are provenance, not router input features. The executor pool, adapter,
200
+ budget, packet, evaluator, and role cards are frozen within each comparison.
201
+
202
+ Track B deliberately has no train/test split in this revision. The `full` split
203
+ is intended for controlled router comparisons where every competing router sees
204
+ the same public packet set and uses the same frozen executor environment.
205
+
206
+ ### Track C — checkpointed recovery
207
+
208
+ Track C is not included in beta.2. The beta.1 checkpoint tables were removed to
209
+ avoid presenting a partially updated recovery track beside the new live Track B.
210
+ Track C will be republished after its state contracts and review records are
211
+ updated.
212
+
213
+ ## Track B configurations
214
+
215
+ | Configuration | Rows | Visibility | Purpose |
216
+ |---|---:|---|---|
217
+ | `track_b_tasks` | 82 | Router/task public | Task, adapter, packet paths, status, and public manifest |
218
+ | `track_b_agents` | 33 | Router public | Role cards and role contracts for the four pools |
219
+ | `track_b_trajectories` | 82 | Analysis public | Compact decision/event sequences; raw prompts and executor outputs excluded |
220
+ | `track_b_results` | 82 | Evaluator only | Terminal outcome, independent task result, budget and routing counts |
221
+ | `track_b_runs` | 4 | Analysis public | Domain-level run provenance and headline metrics |
222
+ | `track_b_provenance` | 82 | Analysis public | Source revision, record identifier, generator, checksum, and license |
223
+
224
+ ## Agent-pool design
225
+
226
+ Each domain exposes the complete role pool plus `STOP` at every routing step.
227
+ The environment does not prescribe a fixed role order or a single workflow.
228
+ Role cards define a bounded implementation contract through `role_goal`,
229
+ `use_when`, `avoid_when`, supported inputs, tools, and expected outputs; they do
230
+ not tell the router which role must be selected next. The router may revisit a
231
+ role, skip a role, branch after new evidence, recover from failure, or stop.
232
+
233
+ The pools intentionally separate evidence collection, artifact authoring,
234
+ execution, diagnosis, repair, and verification. This creates alternative valid
235
+ workflows while preserving role accountability: an inspector cannot claim an
236
+ execution result, an author cannot claim validation, and a verifier evaluates
237
+ the current artifact rather than silently replacing it.
238
+
239
+ ### Database migration and integrity — 10 roles
240
+
241
+ | Role | Contract boundary |
242
+ |---|---|
243
+ | Schema Inspector | Materialize schema, index, trigger, foreign-key, and migration-history evidence without mutation. |
244
+ | Data Profiler | Measure nulls, duplicates, orphan rows, types, and distributions relevant to migration safety. |
245
+ | Constraint Analyzer | Analyze invariants and concrete foreign-key, uniqueness, or check-constraint failures. |
246
+ | Migration Planner | Plan operation ordering, transaction boundaries, and rollback boundaries from visible evidence. |
247
+ | Data Repair Planner | Design the smallest justified backfill, deduplication, remapping, or orphan repair. |
248
+ | SQL Migration Author | Produce the smallest evidence-grounded SQLite migration candidate; does not execute it. |
249
+ | Transactional Dry-run Executor | Execute the current candidate on an isolated copy and preserve its trace and consequences. |
250
+ | Integrity Validator | Check target schema, invariants, rows, foreign keys, and regression queries on the executed artifact. |
251
+ | Query Performance Auditor | Inspect query plans or explicit performance constraints when the task requires them. |
252
+ | Snapshot & Rollback Operator | Create or restore explicit database snapshots; recovery remains an observable routed action. |
253
+
254
+ Possible trajectories include direct inspect–author–execute–validate, a
255
+ profile/constraint branch before authoring, data-repair planning, repeated
256
+ author–dry-run–diagnose cycles, performance audit, or explicit snapshot recovery.
257
+
258
+ ### Code debugging — 6 roles
259
+
260
+ | Role | Contract boundary |
261
+ |---|---|
262
+ | Repository Test Reproducer | Prepare the pinned checkout and establish a fresh baseline with the supplied reproducer. |
263
+ | Failure Diagnostician | Explain a concrete failure mechanism from execution or repair evidence without changing source. |
264
+ | Patch Author | Produce the smallest justified unified diff from visible source, tests, and diagnostics. |
265
+ | Regression Verifier | Run the public regression contract against the exact current candidate. |
266
+ | Verified Patch Consumer | Promote an exactly verified candidate into the downstream workflow artifact when packaging is needed. |
267
+ | Patch Finalizer | Commit the verified downstream patch as the final deliverable after all visible requirements are satisfied. |
268
+
269
+ The router can choose reproduction before diagnosis, diagnose after a failed
270
+ patch, iterate patch and verification, or omit optional packaging roles when the
271
+ task contract does not require them. Promotion and finalization cannot substitute
272
+ for fresh regression evidence.
273
+
274
+ ### Formal proof — 7 roles
275
+
276
+ | Role | Contract boundary |
277
+ |---|---|
278
+ | Proof State Inspector | Read the Lean goal, hypotheses, source, and compiler diagnostics without editing the proof. |
279
+ | Premise and Lemma Retriever | Identify applicable visible hypotheses and Mathlib lemmas without claiming compilation. |
280
+ | Tactic Synthesizer | Construct a candidate Lean proof from the current goal and evidence. |
281
+ | Proof Repair Specialist | Revise a failed candidate using the latest compiler diagnostic while preserving the theorem statement. |
282
+ | Lean Compiler Executor | Compile the current candidate in the pinned Lean/Mathlib environment. |
283
+ | Kernel and Assumption Verifier | Confirm closure without `sorry`, `admit`, forbidden placeholders, or added assumptions. |
284
+ | Formal Failure Diagnostician | Explain concrete compiler/proof failures and derive repair constraints. |
285
+
286
+ Valid workflows may retrieve lemmas before synthesis, synthesize directly from
287
+ the goal, diagnose after compilation, perform several repair–compile cycles, or
288
+ verify immediately after a clean compile. Compilation and kernel/assumption
289
+ verification remain separate evidence stages.
290
+
291
+ ### Structured data processing — 10 roles
292
+
293
+ | Role | Contract boundary |
294
+ |---|---|
295
+ | Workbook Surveyor | Inspect sheets, dimensions, values, formulas, and styles without modifying the input. |
296
+ | Data Quality Profiler | Measure missing values, row types, key multiplicity, and other transformation-relevant properties. |
297
+ | Formula Dependency Analyst | Inspect formulas and dependencies that may be affected by workbook changes. |
298
+ | Table Reshaping Specialist | Author reusable grouping, filtering, joining, sorting, or reshaping transformations. |
299
+ | Formula Computation Specialist | Author reusable transformations dominated by formulas or calculated-field semantics. |
300
+ | Cross-sheet Reconciler | Reconcile identifiers or values across sheets while preserving unrelated content. |
301
+ | Formatting & Presentation Specialist | Implement styles, number formats, layout, or presentation requirements. |
302
+ | Workbook Repair Specialist | Revise a failed candidate from concrete public execution or validation evidence. |
303
+ | Workbook Test Executor | Run the current candidate in the restricted Python/OpenPyXL public runner. |
304
+ | Workbook Integrity Validator | Check a fresh public output against deterministic transformation and preservation constraints. |
305
+
306
+ Task archetypes—aggregation, cleaning, formatting, formula/dependency, and
307
+ reshape/join—activate different authoring roles. The router can survey or profile
308
+ first, combine cross-sheet and formula analysis, test early, repair after either
309
+ execution or semantic validation failure, and decide when a fresh validation is
310
+ sufficient for `STOP`.
311
+
312
+ The runnable packet trees are under:
313
+
314
+ ```text
315
+ track_b_packets/<domain>/<packet_id>/
316
+ ├── manifest.json
317
+ ├── public/ # router/executor-visible task artifacts
318
+ ├── fixtures/ # pinned source/provenance fixtures
319
+ └── private/ # evaluator-only reference and oracle material
320
+ ```
321
+
322
+ This is a transparent public beta: private reference proofs, gold patches,
323
+ answer workbooks, and oracle files are downloadable, but **evaluator-only**.
324
+ Their visibility label is a benchmark protocol boundary, not repository access
325
+ control. Never pass `private/`, `track_b_results`, or Track A label rows to the
326
+ router.
327
+
328
+ ## Loading
329
+
330
+ ```python
331
+ from datasets import load_dataset
332
+
333
+ # Track A: unchanged isolated routing benchmark
334
+ track_a_state = load_dataset("TrangBui/RoutingBench-V4", "router_state")
335
+ track_a_labels = load_dataset("TrangBui/RoutingBench-V4", "track_a_labels")
336
+
337
+ # Track B: four live domains, one full split
338
+ tasks = load_dataset("TrangBui/RoutingBench-V4", "track_b_tasks", split="full")
339
+ agents = load_dataset("TrangBui/RoutingBench-V4", "track_b_agents", split="full")
340
+ trajectories = load_dataset(
341
+ "TrangBui/RoutingBench-V4", "track_b_trajectories", split="full"
342
+ )
343
+ results = load_dataset("TrangBui/RoutingBench-V4", "track_b_results", split="full")
344
+ ```
345
+
346
+ JSON-valued columns are stored as JSON strings so the schemas remain stable
347
+ across domains. Decode them with `json.loads`.
348
+
349
+ ## Evaluation protocol
350
+
351
+ For a router comparison:
352
+
353
+ 1. select a Track B domain and freeze its packet revision, role cards, adapter,
354
+ executor model, executor decoding parameters, call budget, and evaluator;
355
+ 2. expose only the packet's `public/` artifacts and the full role pool plus
356
+ `STOP` to the router;
357
+ 3. execute every selected action and retain its observable consequence, including
358
+ failed or invalid actions;
359
+ 4. stop on router `STOP` or budget termination; a decision suppressed at zero
360
+ remaining budget is retained in the raw trace but excluded from primary
361
+ routing decisions;
362
+ 5. run the independent evaluator on the final state; and
363
+ 6. report outcome, coordination, safety, and efficiency metrics separately.
364
+
365
+ Do not automatically roll back failed actions merely to improve the trajectory.
366
+ A domain transaction may roll back according to its execution contract, but an
367
+ orchestrator-level recovery is a new routed action and must remain observable.
368
+
369
+ ### Required reporting
370
+
371
+ At minimum, report:
372
+
373
+ - packet completion and infrastructure-affected episode count;
374
+ - trajectory success (`STOP` plus terminal public contract);
375
+ - independent end-task success;
376
+ - primary and raw router-decision counts;
377
+ - budget-suppressed decisions;
378
+ - agent/role usage and transitions;
379
+ - executor outcomes (`success`, `invalid_output`, `failed`, precondition reject);
380
+ - task-specific partial progress; and
381
+ - whether valid-action labels were available.
382
+
383
+ There is no weighted composite score in this release. In particular, final task
384
+ success is not a pure router-accuracy measure: it also depends on the fixed
385
+ executor. Compare routers only under the same environment freeze.
386
+
387
+ ## Jev reference results
388
+
389
+ These numbers are reference-system results, not a claim that Jev is an oracle.
390
+ They are included to verify that the environment produces non-trivial routing
391
+ and task signals.
392
+
393
+ | Domain | Packets | Trajectory/public success | Independent trusted success | Primary decisions | Raw decisions | Budget-suppressed |
394
+ |---|---:|---:|---:|---:|---:|---:|
395
+ | Database migration and integrity | 12 | 6 | 7 | 84 | 90 | 6 |
396
+ | Code debugging | 20 | 12 | 12 | 143 | 151 | 8 |
397
+ | Formal proof | 30 | 17 | 18 | 185 | 198 | 13 |
398
+ | Structured data processing | 20 | 2 | 1 | 156 | 174 | 18 |
399
+
400
+ For database, code, and formal proof, “trajectory success” means the terminal
401
+ public contract passed and the router selected `STOP`; “independent trusted
402
+ success” is the evaluator-only final task result. Structured data uses a richer
403
+ milestone bundle because its hard-pass outcome has a strong floor effect:
404
+
405
+ | Structured-data milestone | Jev result |
406
+ |---|---:|
407
+ | Accepted candidate | 11/20 |
408
+ | Public execution succeeded | 6/20 |
409
+ | Public validation passed and router selected `STOP` | 2/20 |
410
+ | Trusted hard pass | 1/20 |
411
+ | Trusted evaluator cases passed | 3/59 |
412
+
413
+ The structured-data traces still contain survey, authoring, profiling,
414
+ cross-sheet work, testing, validation, repair, precondition rejection, missing
415
+ `STOP`, and budget exhaustion. They are useful for coordination analysis, but
416
+ task success alone has limited power until executor reliability improves.
417
+
418
+ ## Human-review status
419
+
420
+ Human review is recorded at two different units and must not be conflated:
421
+
422
+ - **Packet review:** checks task meaning, public/private boundary, contract,
423
+ artifacts, and evaluator suitability. It is complete for database, code
424
+ debugging, and formal proof. Structured-data packet review is still pending.
425
+ - **Decision-state review:** labels whether a routed next action is valid at a
426
+ particular live state. These labels are pending for all new Track B domains.
427
+
428
+ The formal-proof metadata records project-owner approval dated 2026-11-02.
429
+ Code-debugging review is supported by the 20-item artifact review queue and a
430
+ complete 20-episode live run, so no replacement run was needed for this release.
431
+
432
+ ## Quality controls
433
+
434
+ - 82/82 Track B packets have a canonical live episode.
435
+ - Formal-proof manifests validate after the review update (30/30).
436
+ - Public task artifacts and evaluator-only private artifacts are packaged in
437
+ separate directories with explicit visibility boundaries.
438
+ - Compact trajectory rows retain routing choices, probabilities, timing,
439
+ budget, dispatch status, event status, and state hashes without publishing raw
440
+ model prompts or outputs.
441
+ - The structured-data cohort excludes superseded infrastructure-affected
442
+ episodes and uses the patched replacement runs.
443
+ - Source/run identifiers remain attached; historical runs are not relabeled as
444
+ newly executed experiments.
445
+
446
+ ## Known limitations
447
+
448
+ - Track B has no sealed test split and should not be used for hidden-leaderboard
449
+ claims.
450
+ - New Track B live states do not yet have human valid-action labels.
451
+ - Structured-data packet human review is pending and its executor creates a
452
+ strong outcome floor.
453
+ - Executor backbones differ by domain, so absolute success rates should not be
454
+ compared across domains as if task difficulty were controlled.
455
+ - Three code-debugging packets have `NOASSERTION` license metadata; inspect
456
+ `track_b_provenance` before redistribution or derivative packaging.
457
+ - Track A review and Track C redesign are not part of beta.2.
458
+
459
+ ## Provenance and licenses
460
+
461
+ RoutingBench contains project-authored schemas and adapters plus heterogeneous
462
+ upstream task material. The repository-level license is therefore `other`.
463
+ Use the row-level `license`, source revision, record ID, and checksum in
464
+ `track_b_provenance`; Track A provenance remains in `provenance`. The project
465
+ license does not replace upstream licenses.
466
+
467
+ The license boundary is explicit:
468
+
469
+ - the GitHub harness, adapters, runner, evaluator, CI, and project-authored
470
+ code are released under
471
+ [Apache License 2.0](https://github.com/BuiThiThanhTrang/RACO_MAS/blob/routingbench-v4-beta.2/LICENSE);
472
+ - dataset files on this Hugging Face repository are governed by
473
+ [`LICENSE_DATA`](./LICENSE_DATA), including the source-specific terms and
474
+ provenance it references;
475
+ - bundled third-party materials retain their original licenses.
476
+
477
+ Reference implementation:
478
+ [BuiThiThanhTrang/RACO_MAS](https://github.com/BuiThiThanhTrang/RACO_MAS)
479
+
480
+ ## Roadmap
481
+
482
+ A later revision is planned to:
483
+
484
+ - update and review Track A;
485
+ - restore the redesigned Track C recovery benchmark;
486
+ - finish structured-data human review; and
487
+ - add four additional Track B domains to reach the planned eight-domain suite.
488
+
489
+ ## Citation
490
+
491
+ ```bibtex
492
+ @dataset{bui2026routingbenchv4,
493
+ author = {Trang Bui},
494
+ title = {RoutingBench V4-beta: Dynamic Multi-Agent Routing with Live Trajectories},
495
+ year = {2026},
496
+ version = {4.0.0-beta.2},
497
+ publisher = {Hugging Face},
498
+ url = {https://huggingface.co/datasets/TrangBui/RoutingBench-V4}
499
+ }
500
+ ```