test(mutator-gate): keep launch ledger out of the shipped framework tree
ci/woodpecker/pr/ci Pipeline was successful

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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dtdjx4Gxude9fwyLezCrhh
This commit is contained in:
Jason Woltje
2026-08-11 20:51:03 -05:00
co-authored by Claude Fable 5
parent dd6357e670
commit 13c70a7a10
@@ -196,7 +196,12 @@ raise SystemExit(0 if len(session_id) == 64 and denied else 1)
env: { env: {
...process.env, ...process.env,
PATH: `${binDir}:${process.env.PATH ?? ''}`, 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_PRDY_RUNTIME: 'claude',
MOSAIC_LEASE_BROKER_SOCKET: socket, MOSAIC_LEASE_BROKER_SOCKET: socket,
MOSAIC_RUNTIME_GENERATION: '1', MOSAIC_RUNTIME_GENERATION: '1',