From e3577e9d3114f87b52d7e6948a457b238e76a71d Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Tue, 10 Nov 2026 22:38:34 -0600 Subject: [PATCH] fix(case2): give the case2 fixture host the request-host ops (#1873) test-case2.sh failed 8 of 21 steps on base from S3b on. Bisect names f23a998ee (#797, "close project archive admission races") as the first bad commit: it made every launch call request.admission and updated each in-process launcher fixture except scripts/case2/launch.mjs. The fixture host refused the op with invalid-host-request, so no launch started; the S6/S7 "unauthenticated" and S8/S10 reds followed from the missing launch capability, not from a separate session change. The fixture now spreads requestHostOps from packages/cli/tests, the shared map every other fixture uses, so it tracks the production protocol. --- scripts/case2/launch.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/case2/launch.mjs b/scripts/case2/launch.mjs index f5250949e..eeb3b007e 100644 --- a/scripts/case2/launch.mjs +++ b/scripts/case2/launch.mjs @@ -8,6 +8,7 @@ import { startBroker } from '../../packages/bus/src/runtime.mjs'; import { grantDecision } from '../../packages/bus/tests/host-fixtures.mjs'; import { launchDoc } from '../../packages/organization/tests/helpers.mjs'; import { fakeHarnesses, fixture } from '../../packages/cli/tests/helpers.mjs'; +import { requestHostOps } from '../../packages/cli/tests/request-host-ops.mjs'; import { bootConfig, loadSystem } from '../../packages/cli/src/config.mjs'; import { createLauncher } from '../../packages/cli/src/launcher.mjs'; import { SESSION_CREDENTIALS } from '../../packages/seat/src/session.mjs'; @@ -101,6 +102,9 @@ export async function launchFixture(root, entry, { fetchToken, seatToken, humanT landHeld: m => runtime.landHeld(m.record), landHolders: m => runtime.landHolders(m.business), landRelease: m => runtime.landRelease(m.record), sessionClears: m => runtime.sessionClears(m.business), lifecycleRequests: m => runtime.lifecycleRequests(m.business), + // f23a998ee (#797) made every launch call request.admission; this fixture was the one host + // left without the request ops, so S3b's launch was refused. Shared with the cli fixtures. + ...requestHostOps(runtime), }; const wrap = fn => async value => { try { return await fn(value); }