✔ P5 broker preserves original plugin subject and derives internal run context from authenticated native caller (100.714572ms)
✔ P5 configured key quotas never use a supplied safe-looking ID when trusted metadata lookup is missing (42.059265ms)
✔ P5 internal context resolves exactly current or retained generation; wrong business, instance, run and owner refuse (0.383747ms)
✖ P5 model-key mustStop without native run context fails closed even when the current key resolves (42.738629ms)
ℹ tests 4
ℹ suites 0
ℹ pass 3
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 276.940054

✖ failing tests:

test at packages/bus/tests/p5-key-context.test.mjs:39:1
✖ P5 model-key mustStop without native run context fails closed even when the current key resolves (42.738629ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
    {
  +   stop: false
  -   check: null,
  -   code: 'proxy-key-refused',
  -   stop: true
    }
  
      at TestContext.<anonymous> (file:///home/jwoltje/.t3/worktrees/mosaic-stack/t3-79263d4f/packages/bus/tests/p5-key-context.test.mjs:43:9)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: { stop: false },
    expected: { stop: true, check: null, code: 'proxy-key-refused' },
    operator: 'deepStrictEqual',
    diff: 'simple'
  }
