From 13c70a7a10c447b895c24c66ec13f9ca276c7c35 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Tue, 11 Aug 2026 17:35:10 -0500 Subject: [PATCH] test(mutator-gate): keep launch ledger out of the shipped framework tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit runRuntimeLaunchEntry set MOSAIC_HOME to the shipped framework root, so launch-runtime.py appended its launch ledger to framework/fleet/run/sessions/events.ndjson — polluting the tree that manifest.spec.ts walks and failing its completeness check in CI. Point MOSAIC_HOME at the per-entry temp root instead. Nothing in the launch chain resolves tools via MOSAIC_HOME (entry scripts resolve via SCRIPT_DIR); the ledger is its only consumer here. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Dtdjx4Gxude9fwyLezCrhh --- .../src/mutator-gate/mutator-gate.acceptance.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/mosaic/src/mutator-gate/mutator-gate.acceptance.spec.ts b/packages/mosaic/src/mutator-gate/mutator-gate.acceptance.spec.ts index c8fbc48f..f2f48e2e 100644 --- a/packages/mosaic/src/mutator-gate/mutator-gate.acceptance.spec.ts +++ b/packages/mosaic/src/mutator-gate/mutator-gate.acceptance.spec.ts @@ -196,7 +196,12 @@ raise SystemExit(0 if len(session_id) == 64 and denied else 1) env: { ...process.env, PATH: `${binDir}:${process.env.PATH ?? ''}`, - MOSAIC_HOME: frameworkRoot, + // Point MOSAIC_HOME at the per-entry temp root, NOT the shipped framework + // tree: launch-runtime.py appends its launch ledger to + // $MOSAIC_HOME/fleet/run/sessions/events.ndjson, and writing that into + // framework/ pollutes the tree manifest.spec.ts walks. Nothing in the + // launch chain resolves tools via MOSAIC_HOME (scripts use SCRIPT_DIR). + MOSAIC_HOME: root, MOSAIC_PRDY_RUNTIME: 'claude', MOSAIC_LEASE_BROKER_SOCKET: socket, MOSAIC_RUNTIME_GENERATION: '1',