Skip to content

experiments: the turn-surface live collector refuses every routed arm once the bridge roster passes the 64-entry catalogue bound #3886

Closed

Description

@schlessera

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:

  1. 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.
  2. 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.
  3. 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

Out of scope

Acceptance criteria

  • bun run test ./experiments/turn-surface-fixture-live.test.ts passes, with the receipt assertions at experiments/turn-surface-fixture-live.test.ts:35-42 unchanged.
  • 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

  1. added
    type: test
    area: ui-server
    area: ci
    on Nov 10, 2026
  2. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    Triage, 2026-11-10, at main 91e54be37: citations checked, and this does not depend on #3711 (the live collector does not import STABLE_BRIDGE_ROSTER). The issue asks which way to handle the catalogue bound. That is a ruling on the retained #587 harness, so it gets needs: 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.

  3. added
    priority: p2
    needs: decision
    agent-ready
    priority: p1
    and removed
    needs: decision
    priority: p2
    on Nov 10, 2026
  4. added this to the 0.45.0 milestone on Nov 11, 2026
  5. self-assigned this
    on Nov 15, 2026
  6. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-81bd0ebd. Branch: test/3886-turn-surface-catalogue-subset.

    collisions: closure-only overlaps, no path collisions

  7. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Merged in #4035 as 849751e42 through 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ciarea: ui-serverpriority: p1type: test

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions