✔ P5 usage plugin off by default, default poll is 15 seconds and configured polls skip early ticks (60.34137ms)
✖ P5 safe telemetry stores failures per key and proxy-labelled accounts; no client/upstream value enters store/log/view or quota records (43.55479ms)
✖ P5 unknown msk key goes only to value-free reconcile log and other businesses stay isolated (42.788302ms)
✔ P5 queue failure is safe, does not enforce and does not retry before poll deadline (43.315969ms)
✖ P5 retiring key keeps attribution and telemetry rows remain append-only across reader restart (40.209703ms)
✔ P5 malformed queue batch is atomic: no valid prefix, body or credential can reach store/log/view (38.596309ms)
✔ P5 concurrent ticks issue one bounded queue read and a closed collector never polls again (45.908134ms)
✖ P5 queue read uses actual bounded fixed management GET and immediately drops client and upstream values (16.729146ms)
✔ P5 bad envelope refuses safely with no retry (3.674119ms)
✔ P5 over count refuses safely with no retry (1.818219ms)
✔ P5 missing key refuses safely with no retry (1.550156ms)
✔ P5 bad counts refuses safely with no retry (2.537033ms)
✔ P5 redirect refuses safely with no retry (1.858685ms)
✔ P5 refusal refuses safely with no retry (1.153412ms)
✔ P5 malformed event after a valid event rejects the entire queue before any credential can escape (1.135306ms)
ℹ tests 15
ℹ suites 0
ℹ pass 11
ℹ fail 4
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 487.776777

✖ failing tests:

test at packages/bus/tests/proxy-usage.test.mjs:36:1
✖ P5 safe telemetry stores failures per key and proxy-labelled accounts; no client/upstream value enters store/log/view or quota records (43.55479ms)
  TypeError: Cannot read properties of undefined (reading 'keyId')
      at TestContext.<anonymous> (file:///home/jwoltje/.t3/worktrees/mosaic-stack/t3-79263d4f/packages/bus/tests/proxy-usage.test.mjs:38:87)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)

test at packages/bus/tests/proxy-usage.test.mjs:47:1
✖ P5 unknown msk key goes only to value-free reconcile log and other businesses stay isolated (42.788302ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
  + undefined
  - {
  -   action: 'proxy.usage.reconcile',
  -   code: 'proxy-usage-unknown-key',
  -   keyId: 'f76403e5ce2e'
  - }
  
      at TestContext.<anonymous> (file:///home/jwoltje/.t3/worktrees/mosaic-stack/t3-79263d4f/packages/bus/tests/proxy-usage.test.mjs:49:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      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: undefined,
    expected: { action: 'proxy.usage.reconcile', keyId: 'f76403e5ce2e', code: 'proxy-usage-unknown-key' },
    operator: 'deepStrictEqual',
    diff: 'simple'
  }

test at packages/bus/tests/proxy-usage.test.mjs:58:1
✖ P5 retiring key keeps attribution and telemetry rows remain append-only across reader restart (40.209703ms)
  AssertionError [ERR_ASSERTION]: Missing expected exception.
      at TestContext.<anonymous> (file:///home/jwoltje/.t3/worktrees/mosaic-stack/t3-79263d4f/packages/bus/tests/proxy-usage.test.mjs:63:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: undefined,
    expected: /append-only/,
    operator: 'throws',
    diff: 'simple'
  }

test at packages/model-proxy/tests/usage-client.test.mjs:21:1
✖ P5 queue read uses actual bounded fixed management GET and immediately drops client and upstream values (16.729146ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
    [
      {
  +     accountId: 'made-up-upstream-canary',
  -     accountId: '51dfa8a6722b',
        cacheRead: 4,
        cacheWrite: 3,
        failed: true,
        input: 7,
        keyId: 'd1e3e19ac482',
  
      at TestContext.<anonymous> (file:///home/jwoltje/.t3/worktrees/mosaic-stack/t3-79263d4f/packages/model-proxy/tests/usage-client.test.mjs:24:10)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: [ { keyId: 'd1e3e19ac482', accountId: 'made-up-upstream-canary', managed: true, failed: true, statusCode: 503, input: 7, output: 2, cacheWrite: 3, cacheRead: 4 } ],
    expected: [ { keyId: 'd1e3e19ac482', accountId: '51dfa8a6722b', managed: true, failed: true, statusCode: 503, input: 7, output: 2, cacheWrite: 3, cacheRead: 4 } ],
    operator: 'deepStrictEqual',
    diff: 'simple'
  }
