Unclaimed files left in the canonical checkout. Inventory: canonical-cleanup-inventory.md (commit-as-evidence groups). detect-secrets scan clean on 2026-11-02: hits are sha256 pins, git object ids, test sentinels already in tracked tests and unit-file lines.
6.3 KiB
Row 85 — One pinned stack copy (#1579)
Rocko, gpt-6.1-sol. Base in base.txt (0d71b9ddd). Reviewers Darkwing and
Filbert; Sage requests review as jarvis. Candidate is uncommitted in the
detached mosaic-stack-rocko-85 worktree. Mos released the build after
Jason's re-test and Sage granted the test slot. No live steps are executed.
Implementation
stack-copy.sh owns shared copies under XDG_DATA_HOME/mosaic-stack/copies. Copy requires ancestry of both local and origin/refactor, archives to a sibling temp directory, guards both package manifests, runs exact locked npm ci in that directory, removes file/directory write permission and renames atomically. Existing copies are not rebuilt. Failure/race paths remove their temp tree. webui-service.sh copy delegates; both services use the shared directory. Old Console-only copies and Q81 worktrees are retained.
Bus render/install take --copy and --pm, retaining the Claude pin and the checkout render without those flags. Install checks every loaded bus state, including with --no-reload; any non-inactive/non-failed state refuses. Failed/missing systemctl metadata refuses. Template and loaded-instance ExecStart/WorkingDirectory drop-ins refuse by filename, while environment only drop-ins stay allowed. Status reads effective WorkingDirectory, ExecStart and DropInPaths, reports copy/checkout, PM and refactor drift.
Wrapper replaces only a regular Q81-marked wrapper, preserves its exact mosaic-old lease probe and marker on line 2, and uses a sibling temp rename. --bin is the fixture override. Check reads effective systemd roots and executables plus the wrapper exec: absent data or different trees fail; no proof path is added. The human verifier is untouched.
Import and runtime closure
out/import-closure.json records relative imports, URL child entrypoints and the source-directory closure of the wrapper entrypoints, host and Console. The archive covers bus/business/cli/conversation/discord/harness/seat/tasks/ webui source, queue source (scripts/mosaic dispatches it), adapters, roles, RELEASE, package.json/lock, both service READMEs, mosaic and mosaic-config. Runtime data outside src adds bus/schema.sql, tasks/fields.json and requirements.json; on-demand Discord helper/extension directories also ship. npm ci supplies node_modules and its installed lock record.
The real-install fixture checks checkEnginePin against both package locks, starts a fake-config bus host from the copy until bus host up, serves a Console healthz 200 from it, and runs the copy's scripts/mosaic talk against a fixture broker loaded from the copy. verifyHuman uses its existing test readProcess seam only to stub agent ancestry while retaining the real child pid/start/argv/nonce; different-copy and checkout entry paths refuse. No code bypass, actual credential or live bus is involved.
Tests and mutation evidence
stack-copy.test tests pushed reachability, required archive paths, read-only publication/existing fast path, wrapper/foreign/symlink/lease, alignment and executable mismatch, both overriding drop-in fields, unknown metadata, busy installs and uninstall with --no-reload, effective status and the real pinned integration. Existing pinned-copy/service tests move to shared paths and assert effective WorkingDirectory. host.test's install fixture now stubs systemctl rather than consulting the live bus. No host.mjs edit. The CLI README change stays inside Bus host; row 103's other README sections are excluded. A second landing re-gates on its new base under decision 127, even without path drift.
The first mutant pass uncovered overlapping test guards (manifest absence already failed archive; foreign wrapper also lacked the lease; both unit executables mismatched). Tests now isolate each condition, and assert no npm rerun for an existing copy. A post-extraction missing-manifest fault proves the explicit temp manifest guard before npm can walk up. Final mutation/gate counts and receipts will follow below.
Protected live plan — STOP before this boundary
The one operator sequence lives in docs/TOOLS.md, Pinned stack update. After review, gate and landing, Sage notifies Mos (decisions 109/123). Mos approves each individual live step: no PM turn in flight; prepare the pushed copy; stop Console then bus; remove only overriding drop-ins, including initial pm.conf, and reload systemd; install bus --copy/--pm with the existing Claude pin, install Console with its current flags; switch the Q81 wrapper; start bus then Console; read alignment/status/ healthz/launches evidence. Jason's ordinary mosaic talk must print sent and a reply before #225 closes. Rollback uses the prior full id and the same Mos-gated sequence. No copy pruning, Q81 worktree removal or PM relaunch is authorized by this build. Candidate completion authorizes none of these live actions.
Reproduce
Detached worktree at base.txt, apply build.patch, link canonical pinned node_modules for the package suites; candidate-manifest.sha256 has repo-root paths. Run all bus/cli/webui *.test.mjs and gate.py with an absolute output directory. Set DOCKER_HOST=unix:///nonexistent.sock for every command. mutants.py takes a separate output directory and must not overlap other runs on this tree. Fixture npm ci is real; no unversioned dependency install.
Final gate
Bus 127, CLI 153, webui 108 pass; no failures, skips or cancellations. All nine shell suites exit 0 with the disabled Docker endpoint, 2026-10-13T20:36:33.717570+00:00–2026-10-13T20:37:56.631987+00:00. 20/20 mutants killed with nonzero exits, no timeouts (out/mutants); first-pass gaps remain honestly recorded in out/mutants-first. The final full CLI rerun is node-cli-rerun.txt: a legacy pin fixture needed its own systemctl stub. Only that test fixture changed after the full gate; product code stayed frozen, and the other suites/mutation cases do not use that fixture.
Final manifest efb6a65671fae3a727b8d58823e678513f1187c7abc6fce48007411cee0da0dd names 11 repo-root paths; hashes match and patch applies to the canonical checkout with no candidate-path drift. No host.mjs edit, canonical source edit, candidate commit, push, real unit change, bus/Console restart or wrapper rewrite. Test slot is clear. Review by Darkwing/Filbert, Sage's gate and Mos's protected live plan remain.
Queue transition and tokenless-request receipt: out/queue-in-review.txt. Sage posts the review request as jarvis; both reviewers are required.