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

✖ failing tests:

test at packages/cli/tests/stack-copy.test.mjs:140:1
✖ bus status reads effective copy/pm/drop-ins without writes; check refuses an overridden ExecStart (440.11921ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /pm: on/. Input:
  
  'unit: mosaic-bus@demo.service\n' +
    '  enabled: disabled\n' +
    '  active:  inactive\n' +
    '  LoadState=loaded\n' +
    '  WorkingDirectory=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6\n' +
    '  ExecStart={ path=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6/scripts/mosaic ; argv[]=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6/scripts/mosaic bus start demo --pm ; }\n' +
    '  DropInPaths=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/pm.conf\n' +
    'tree: /mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6\n' +
    'copy: a963cb6568e470dda31ebaccdf79c8282816f3e6\n' +
    'pm: off\n' +
    'drop-ins: /mnt/storage/scratch/tmp/stack-copy-ORX6TX/pm.conf\n' +
    'refactor: a963cb6568e470dda31ebaccdf79c8282816f3e6\n'
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-85/packages/cli/tests/stack-copy.test.mjs:145:164)
      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 process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: 'unit: mosaic-bus@demo.service\n  enabled: disabled\n  active:  inactive\n  LoadState=loaded\n  WorkingDirectory=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6\n  ExecStart={ path=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6/scripts/mosaic ; argv[]=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6/scripts/mosaic bus start demo --pm ; }\n  DropInPaths=/mnt/storage/scratch/tmp/stack-copy-ORX6TX/pm.conf\ntree: /mnt/storage/scratch/tmp/stack-copy-ORX6TX/copies/a963cb6568e470dda31ebaccdf79c8282816f3e6\ncopy: a963cb6568e470dda31ebaccdf79c8282816f3e6\npm: off\ndrop-ins: /mnt/storage/scratch/tmp/stack-copy-ORX6TX/pm.conf\nrefactor: a963cb6568e470dda31ebaccdf79c8282816f3e6\n',
    expected: /pm: on/,
    operator: 'match',
    diff: 'simple'
  }
