Repository navigation
Description
Context
experiments/turn-surface-fixture-live.test.ts:27-44 ("whole live collector indexes, routes, claims, executes and drains all four arms keylessly") fails every run on epic/3855-test-health at b71c6e4fe (same experiment sources as main 0129244ad). It spawns scripts/check-turn-surface-live-offline.ts, which stops on the second matrix cell:
1/20 baseline rep1 quote-card completed
2/20 hint rep1 quote-card excluded
error: turn_error_or_missing_raw_usage
at measureLiveSurface (scripts/measure-turn-surface-live.ts:232:54)
The cell's private error file (<tmp>/turn-surface-live-*/1-error.txt, written at scripts/measure-turn-surface-live.ts:213) says Invalid routing catalogue. That is the guard in wideRoutingRequest (scripts/turn-surface-classifier.ts:18), which refuses a catalogue whose tools plus skills exceed 64 entries. The live collector builds its catalogue from the core tools, every registered bridge tool and the frozen skill catalogue (scripts/measure-turn-surface-live.ts:145). The bridge now registers 41 tools (the ten brain_apify_*, six brain_compute_* and read_attachment additions listed in #3711), so the catalogue passes 64 and every routed arm is refused before the classifier runs.
This is the same registration change as #3711, but a different consumer: #3711 repairs the pinned roster expectation, while this failure is the harness's catalogue bound and needs its own decision. Fixing #3711's roster alone leaves this test red.
Found by the test-health push (epic #3855), batch e3855-experiments-01, lens failure-issues. The audit lane changes only member test files, so it cannot change the harness.
Decision (settled 2026-11-11: option 3)
Question: how should the retained #587 live collector build its routing catalogue now that the bridge registers more tools than the 64-entry bound in wideRoutingRequest (scripts/turn-surface-classifier.ts:17-18) allows?
Background: the #587 research is concluded. docs/decisions/turn-surface-routing.md retains the shipped surface, and no shipping router imports the classifier (its header comment, scripts/turn-surface-classifier.ts:1-2). A provider rerun is pinned to the measured source commit and refuses catalogue drift (same decision, "For a provider rerun"). So this offline control checks that the harness still works on the current tree; it does not measure anything new. The 2026-10-07 run completed under the same guard, so the catalogue at the measured source fitted under 64. The repository records no reason for 64, and it is not a limit found in the Jev client or the classification schemas at 91e54be37.
Options:
- Raise the bound to cover the current catalogue, with the reason written next to it. Smallest change. The offline control cannot show that the live classifier accepts a wider choice question, so the bound becomes a mechanical limit with no measured meaning, and the next registration that passes it fails the same way.
- Shortlist before the wide pass. This changes the harness's routing design, the thing Spike: route each turn's tool and skill surface through Jev, so unneeded definitions stay out of the prompt #587 measured. Too large for a concluded experiment, and it would need its own review under the decision record.
- Limit the measured catalogue to a reviewed subset, for example the bridge tools present at the measured source, filtered in
scripts/measure-turn-surface-live.ts:145. The control stays the shape Spike: route each turn's tool and skill surface through Jev, so unneeded definitions stay out of the prompt #587 measured and needs no claim about wider questions. New bridge tools are left out of the routed arms, and the subset becomes one more pinned list to maintain beside test: turn-surface-routing experiment expects a bridge roster without the Apify tools #3711's roster.
Recommendation: option 3. The maintainer chose option 3 on 2026-11-11. It keeps the retained harness equal to the experiment it reproduces, and the guard stays meaningful. A catalogue over the bound must still fail loudly (acceptance criteria below).
The ruling is recorded; the implementation is mechanical.
Scope
- Limit the live collector's routing catalogue to a reviewed subset: the bridge tools present at the measured Spike: route each turn's tool and skill surface through Jev, so unneeded definitions stay out of the prompt #587 source, as a pinned, commented list filtered at
scripts/measure-turn-surface-live.ts:145. - Keep the 64-entry guard in
wideRoutingRequest(scripts/turn-surface-classifier.ts:17-18) unchanged.
Out of scope
- Changing which tools the bridge registers.
- The pinned roster in
scripts/turn-surface-fixture.ts(test: turn-surface-routing experiment expects a bridge roster without the Apify tools #3711). - Any assertion change in
experiments/turn-surface-fixture-live.test.ts.
Acceptance criteria
-
bun run test ./experiments/turn-surface-fixture-live.test.tspasses, with the receipt assertions atexperiments/turn-surface-fixture-live.test.ts:35-42unchanged. - The routed catalogue is built from the reviewed subset only; a bridge tool outside it is excluded by name, not by truncation.
- A catalogue over the 64-entry bound still fails with a message naming the bound, not a silent truncation.
Verification
Run the experiment file locally and in the experiment tier. Keyless; BRAIN_LIVE_EVAL=587_OFFLINE as the test sets it.
Contract impact
None.
2026-11-11: maintainer ruling folded in (option 3, a reviewed subset). Scope and acceptance criteria now follow it; no open decision remains.
Activity
schlessera commentedon Nov 10, 2026
Triage, 2026-11-10, at
main91e54be37: citations checked, and this does not depend on #3711 (the live collector does not importSTABLE_BRIDGE_ROSTER). The issue asks which way to handle the catalogue bound. That is a ruling on the retained #587 harness, so it getsneeds: decision. The body has a "Decision needed" section with three options, their consequences and a recommendation (option 3, a reviewed subset), which is not approved. Priority p2. Note: the experiment tier is a release gate (docs/decisions/experiment-tier.md), so this failure blocks the next publish until it is resolved.schlessera commentedon Nov 15, 2026
Claimed for implementation. Claim token:
claim-81bd0ebd. Branch:test/3886-turn-surface-catalogue-subset.collisions: closure-only overlaps, no path collisions
test(experiments): route the turn-surface live collector over the mea…
schlessera commentedon Nov 15, 2026
Merged in #4035 as
849751e42through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.