Skip to content

test: turn-surface-routing experiment expects a bridge roster without the Apify tools #3711

Closed

Description

@schlessera

Context

experiments/turn-surface-routing.test.ts fails 19 of its 36 tests on main (a63e564, 2026-11-08). The observed bridge tool roster now includes the Apify tools (brain_apify_abort and others), but the independently pinned STABLE_BRIDGE_ROSTER (scripts/turn-surface-fixture.ts:26-33) was not updated. The experiment imports it at experiments/turn-surface-routing.test.ts:7. The failing assertion is experiments/turn-surface-routing.test.ts:143. Experiments run in the experiment tier, so the publish will fail on this (docs/decisions/experiment-tier.md).

The #3640 landing is now on main. #3702 already added brain_read_many to the separate core-MCP expectations; it is not a missing bridge entry. Current bridge deltas are ten brain_apify_* names, six brain_compute_* names and read_attachment (17 names total).

Scope

Repair the shared independently pinned bridge roster against the approved production registrations. Inspect all consumers of STABLE_BRIDGE_ROSTER, including the inventory, fallback-posture and request-size assertions. Keep the expected roster independent of the code under test so an unintended registration still fails with the missing/extra tool name; do not derive expected and observed lists from the same production value.

Out of scope

Changing which tools the bridge exposes.

Acceptance criteria

  • bun run test ./experiments/turn-surface-routing.test.ts passes on main.
  • Adding a tool to the bridge without updating the expectation fails with a message that names the tool.
  • Any intended differences, such as the autonomous posture, stay asserted.

Verification

Run the experiment file locally and in the experiment tier.

Contract impact

None.

Current reproduction

At inspected main, Bun 1.4.4 after bun install --frozen-lockfile, bun run test ./experiments/turn-surface-routing.test.ts exits 1: 17 pass / 19 fail, 586 assertions. The inventory assertion at line 67 and fallback at line 143 show 17 extra registered names: brain_apify_abort, brain_apify_approvals, brain_apify_availability, brain_apify_discover, brain_apify_inspect, brain_apify_prepare, brain_apify_results, brain_apify_revoke, brain_apify_run, brain_apify_status; brain_compute_cancel, brain_compute_collect, brain_compute_health, brain_compute_plan, brain_compute_run, brain_compute_status; and read_attachment. The request-size check at line 243 expects 31 questions and receives 48. This is the claimed assertion failure, not a module-load failure. An initial run before dependency installation failed to import the MCP SDK and supplied no behavioral evidence. No API key or external provider call was used.

Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Reproduced 19 failing / 17 passing experiment cases after a frozen install. Corrected the shared roster location and all 17 observed missing names; p2 is wanted, unscheduled release-gate repair.

Activity

  1. added
    type: test
    area: ui-server
    area: ci
    on Nov 8, 2026
  2. added
    priority: p2
    agent-ready
    on Nov 8, 2026
  3. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    Reproduced by the test-health push (epic #3855, batch e3855-experiments-01) at epic/3855-test-health b71c6e4fe, whose experiment sources match main 0129244ad. The command was bun scripts/test-health.ts measure experiments/turn-surface-{routing,capture,fixture-live,overlap,classifier}.test.ts --shuffle --together, run 10 times per file plus 3 runs together. Every run failed the same way.

    • experiments/turn-surface-routing.test.ts: the same 19 cases as the issue body. The inventory and fallback cases list the 17 extra names, the hint and load-set arms get Expected: 24 / Received: 41 at :180, and the request-size case gets 31 / 48 at :243.
    • experiments/turn-surface-capture.test.ts:21 and the two roster cases in experiments/turn-surface-overlap.test.ts (:76, :104) fail on the same roster. Both already import STABLE_BRIDGE_ROSTER and are in this issue's scope.
    • experiments/turn-surface-fixture-live.test.ts also fails, but on a different consumer of the same registrations: the harness's 64-entry catalogue bound. It is filed separately as experiments: the turn-surface live collector refuses every routed arm once the bridge roster passes the 64-entry catalogue bound #3886, because fixing the roster alone will not turn it green.

    Verdict: test fault. The expectation is stale, and the fix belongs in scripts/turn-surface-fixture.ts:27-32, which is outside what the audit lane may change. The test files were left unchanged.

  4. added
    priority: p1
    and removed
    priority: p2
    on Nov 11, 2026
  5. added this to the 0.45.0 milestone on Nov 11, 2026
  6. self-assigned this
    on Nov 15, 2026
  7. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-7a8f90aa. Branch: test/3711-bridge-roster.

    No direct path collisions. Shared proof closures with PRs #3054, #3056, #3059, #3069, #3116, #3393, #3437, #3464, #3581, #3622, #3806 and #4002. Related #3886 and #3788 inspected; separate scope.

  8. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Readiness review at main 3f8ff29341fbe25665cea42659f92e6f3d3ccef0: no active implementation PR, no parent epic or unresolved dependency; #3886 and #3788 remain separate. Source citations still identify the pinned roster and its consumers.

    Failing-first reproduced 17 passing / 19 failing routing cases, including the 31-versus-48 question count. Updating the bridge pin exposes two further inventory assumptions in that same required test: Apify approvals has an intentionally empty input object, and the core stdio server now registers the approved Apify/compute tools unconditionally. This change pins those source-verified expectations too, so the required routing file can pass without changing registrations or autonomous membership.

    The bridge assertions in capture/overlap pass with the updated pin. Their separate stale deferred-core inventories and negative-control regex are recorded in #4003; the live catalogue bound remains #3886. A temporary production registration named unexpected_bridge_tool failed the routing inventory assertion with that name in the diff, and was restored.

  9. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Implementation handoff: PR #4006, head 7a96784c26c437314450cccb19254e22d467c32a, targets main with milestone 0.45.0 (read back on both PR and issue). Local preflight passed on this head; routing passes all 36 tests / 624 assertions, including in the full experiment tier. The extra-registration mutation failed with the added tool name and was restored. Full-tier unrelated failures and follow-ups are recorded in the PR; new findings #4003 and #4005 remain unscheduled.

    bun scripts/integrate.ts confirm 4006 --issues schlessera/brain-kit#3711 stopped before acquiring a reservation: Integration busy, held by PR #4004 on base 3f8ff29341fbe25665cea42659f92e6f3d3ccef0. No merge occurred. PR #4006 remains draft.

    Resume when the existing lease is free: fetch main and assess any changed files; merge and push unrelated main advances while retaining the source receipt, or rerun preflight if inputs overlap. Then run the same confirmation command, reconcile its JSON result (exit 2 with merged true is success), and verify squash ancestry, issue closure, milestones and main proof. The current worker is releasing its claim; preserve the implementation PR as active work rather than starting a duplicate.

  10. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-4db4921f. Branch: test/3711-bridge-roster.

  11. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Merged in #4006 as c09454c. Verified that the squash is an ancestor of origin/main and that its parent b22ca4b and tree 23714cd5cb0e4f4a9c9e583960d9209042415cbc match the confirmed candidate. Candidate run 43718657065 passed proof for head a177239. The issue is closed and both issue and PR retain milestone 0.45.0.

    Automatic main push CI started at the actual squash in run 43720964187 and is currently in progress; this is not a claim that post-merge proof has passed. Existing unrelated experiment findings remain tracked in the PR; no new follow-up was needed for landing. Claim cleanup was invoked and retained the closed issue assignment as history.

  12. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Post-merge verification complete: automatic main push CI run 43720964187, attempt 1, passed all 17 jobs, including the integrated proof aggregate, four unit shards, three browser shards, both layout shards, runtime, host runtime, captures, packaging and endurance. Inspected each job's actual checkout log: all 17 checked out c09454c. This completes the main proof that was pending in the preceding outcome comment. No landing follow-up was needed.

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