✔ shared copy: npm ci, pushed reachability, readonly/existing copy, webui delegation (333.791293ms)
✖ wrapper preserves Q81 lease and marker, rejects foreign/symlink; check uses effective roots (327.163368ms)
✔ bus unit copy/pm pins, install refuses all busy states and failed reads, drop-in refusal (412.448434ms)
✔ missing package manifest refuses before npm; npm failure removes the unpublished temp copy (169.617361ms)
✔ real pinned install loads bus and Console; same-copy mosaic talk passes proof, other trees refuse (3045.914073ms)
✔ bus status reads effective copy/pm/drop-ins without writes; check refuses an overridden ExecStart (423.259024ms)
✔ drop-ins in either override field and malformed metadata refuse; uninstall also checks --no-reload (142.441266ms)
✔ install never shows a template name on systemd 261; template drop-ins still refuse (146.054679ms)
✔ unlisted instance drop-in is found in another unit lookup directory; path discovery errors refuse (127.93658ms)
ℹ tests 9
ℹ suites 0
ℹ pass 8
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 5186.999252

✖ failing tests:

test at packages/cli/tests/stack-copy.test.mjs:43:1
✖ wrapper preserves Q81 lease and marker, rejects foreign/symlink; check uses effective roots (327.163368ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /569d8553d1d12560e4acea4283efadef70ca369e/. Input:
  
  '#!/usr/bin/env bash\n' +
    '# mosaic-cli wrapper (Q81, agents/sage/work/q81/mosaic-cli.sh)\n' +
    '[ "${1:-}" = __lease-capability ] && exec "/mnt/storage/scratch/tmp/stack-copy-JEizpR/bin/mosaic-old" "$@"\n' +
    'exec "/other/scripts/mosaic" "$@"\n'
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-85/packages/cli/tests/stack-copy.test.mjs:49:9)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
      at Test.postRun (node:internal/test_runner/test:1542:19)
      at Test.run (node:internal/test_runner/test:1467:12)
      at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: '#!/usr/bin/env bash\n# mosaic-cli wrapper (Q81, agents/sage/work/q81/mosaic-cli.sh)\n[ "${1:-}" = __lease-capability ] && exec "/mnt/storage/scratch/tmp/stack-copy-JEizpR/bin/mosaic-old" "$@"\nexec "/other/scripts/mosaic" "$@"\n',
    expected: /569d8553d1d12560e4acea4283efadef70ca369e/,
    operator: 'match',
    diff: 'simple'
  }
