✔ shared copy: npm ci, pushed reachability, readonly/existing copy, webui delegation (342.127207ms)
✔ wrapper preserves Q81 lease and marker, rejects foreign/symlink; check uses effective roots (381.821706ms)
✔ bus unit copy/pm pins, install refuses all busy states and failed reads, drop-in refusal (367.903878ms)
✔ missing package manifest refuses before npm; npm failure removes the unpublished temp copy (231.297427ms)
✔ real pinned install loads bus and Console; same-copy mosaic talk passes proof, other trees refuse (2972.799228ms)
✖ bus status reads effective copy/pm/drop-ins without writes; check refuses an overridden ExecStart (422.686519ms)
✔ drop-ins in either override field and malformed metadata refuse; uninstall also checks --no-reload (151.99268ms)
ℹ tests 7
ℹ suites 0
ℹ pass 6
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 4925.119821

✖ failing tests:

test at packages/cli/tests/stack-copy.test.mjs:129:1
✖ bus status reads effective copy/pm/drop-ins without writes; check refuses an overridden ExecStart (422.686519ms)
  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-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\n' +
    '  ExecStart={ path=/mnt/storage/scratch/tmp/stack-copy-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540/scripts/mosaic ; argv[]=/mnt/storage/scratch/tmp/stack-copy-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540/scripts/mosaic bus start demo --pm ; }\n' +
    '  DropInPaths=/mnt/storage/scratch/tmp/stack-copy-8CaZV5/pm.conf\n' +
    'tree: /mnt/storage/scratch/tmp/stack-copy-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\n' +
    'copy: ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\n' +
    'pm: off\n' +
    'drop-ins: /mnt/storage/scratch/tmp/stack-copy-8CaZV5/pm.conf\n' +
    'refactor: ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\n'
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-85/packages/cli/tests/stack-copy.test.mjs:134: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-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\n  ExecStart={ path=/mnt/storage/scratch/tmp/stack-copy-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540/scripts/mosaic ; argv[]=/mnt/storage/scratch/tmp/stack-copy-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540/scripts/mosaic bus start demo --pm ; }\n  DropInPaths=/mnt/storage/scratch/tmp/stack-copy-8CaZV5/pm.conf\ntree: /mnt/storage/scratch/tmp/stack-copy-8CaZV5/copies/ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\ncopy: ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\npm: off\ndrop-ins: /mnt/storage/scratch/tmp/stack-copy-8CaZV5/pm.conf\nrefactor: ee9f49cac5000dc4407b9a75fecb6ce0cf1c6540\n',
    expected: /pm: on/,
    operator: 'match',
    diff: 'simple'
  }
