✖ messages pages all human messages newest first without writes; read state is history (255.271712ms)
✖ messages refuses role callers, invalid paging and cursors outside this human feed (12.844216ms)
✖ views messages passes only its paging arguments through (0.259271ms)
✖ follow prints an unsolicited message after plain talk returned (21.546358ms)
✖ talk --follow continues after reply and prints a later unsolicited message (10.875054ms)
✖ inbox lists all unread human messages under decisions, does not deliver or read them (253.482672ms)
✖ follow refuses agent context and bad arguments (12.699498ms)
ℹ tests 7
ℹ suites 0
ℹ pass 0
ℹ fail 7
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 426.800092

✖ failing tests:

test at packages/bus/tests/messages.test.mjs:7:1
✖ messages pages all human messages newest first without writes; read state is history (255.271712ms)
  Error: read-only
      at fail (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/broker.mjs:69:9)
      at file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/broker.mjs:555:11
      at Store.transaction (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/store.mjs:156:22)
      at Broker.request (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/broker.mjs:553:26)
      at Object.read (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/tests/helpers.mjs:103:114)
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/tests/messages.test.mjs:12:19)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.start (node:internal/test_runner/test:1262:17)
      at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
    code: 'read-only'
  }

test at packages/bus/tests/messages.test.mjs:29:1
✖ messages refuses role callers, invalid paging and cursors outside this human feed (12.844216ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
    Comparison {
  +   code: 'read-only'
  -   code: 'invalid-request'
    }
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/tests/messages.test.mjs:32:12)
      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: Error: read-only
        at fail (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/broker.mjs:69:9)
        at file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/broker.mjs:555:11
        at Store.transaction (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/store.mjs:156:22)
        at Broker.request (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/src/broker.mjs:553:26)
        at Object.read (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/tests/helpers.mjs:103:114)
        at assert.throws.code (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/tests/messages.test.mjs:32:25)
        at getActual (node:assert:580:5)
        at strict.throws (node:assert:728:24)
        at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/tests/messages.test.mjs:32:12)
        at Test.runInAsyncScope (node:async_hooks:226:14),
    expected: { code: 'invalid-request' },
    operator: 'throws',
    diff: 'simple'
  }

test at packages/bus/tests/messages.test.mjs:38:1
✖ views messages passes only its paging arguments through (0.259271ms)
  TypeError: v.messages is not a function
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/bus/tests/messages.test.mjs:40:11)
      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 Test.processPendingSubtests (node:internal/test_runner/test:974:7)

test at packages/cli/tests/follow.test.mjs:6:35
✖ follow prints an unsolicited message after plain talk returned (21.546358ms)
  Error [CliError]: usage:
    mosaic inbox [--business <id>] [--json]
    mosaic decide <decision> <option> [--note <text>] [--yes] [--business <id>]
    mosaic tasks [--business <id>] [--json]
    mosaic agents [--business <id>] [--json]
    mosaic trail <task|decision> [--business <id>] [--json]
    mosaic talk <role> <text> [--wait <seconds>] [--business <id>]
    mosaic stop <run>
    mosaic launches off|on [--business <id>]
    mosaic launches list [--json]
    mosaic bus start <business> [--pm]
    mosaic bus stop
    mosaic bus status [--json]
      at usage (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:47:24)
      at main (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:343:9)
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/tests/follow.test.mjs:21:9)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
    exitCode: 4
  }

test at packages/cli/tests/follow.test.mjs:6:35
✖ talk --follow continues after reply and prints a later unsolicited message (10.875054ms)
  Error [CliError]: unknown option --follow
  usage:
    mosaic inbox [--business <id>] [--json]
    mosaic decide <decision> <option> [--note <text>] [--yes] [--business <id>]
    mosaic tasks [--business <id>] [--json]
    mosaic agents [--business <id>] [--json]
    mosaic trail <task|decision> [--business <id>] [--json]
    mosaic talk <role> <text> [--wait <seconds>] [--business <id>]
    mosaic stop <run>
    mosaic launches off|on [--business <id>]
    mosaic launches list [--json]
    mosaic bus start <business> [--pm]
    mosaic bus stop
    mosaic bus status [--json]
      at usage (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:47:24)
      at parse (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:57:42)
      at talk (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:190:18)
      at main (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:338:31)
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/tests/follow.test.mjs:21: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) {
    exitCode: 4
  }

test at packages/cli/tests/follow.test.mjs:28:1
✖ inbox lists all unread human messages under decisions, does not deliver or read them (253.482672ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /messages: 205 unread/. Input:
  
  'inbox: empty\n'
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/tests/follow.test.mjs:33:43)
      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: 'inbox: empty\n',
    expected: /messages: 205 unread/,
    operator: 'match',
    diff: 'simple'
  }

test at packages/cli/tests/follow.test.mjs:39:1
✖ follow refuses agent context and bad arguments (12.699498ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
    Comparison {
  +   exitCode: 4
  -   exitCode: 3
    }
  
      at async TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/tests/follow.test.mjs:42:2)
      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: CliError: usage:
      mosaic inbox [--business <id>] [--json]
      mosaic decide <decision> <option> [--note <text>] [--yes] [--business <id>]
      mosaic tasks [--business <id>] [--json]
      mosaic agents [--business <id>] [--json]
      mosaic trail <task|decision> [--business <id>] [--json]
      mosaic talk <role> <text> [--wait <seconds>] [--business <id>]
      mosaic stop <run>
      mosaic launches off|on [--business <id>]
      mosaic launches list [--json]
      mosaic bus start <business> [--pm]
      mosaic bus stop
      mosaic bus status [--json]
        at usage (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:47:24)
        at main (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/src/cli.mjs:343:9)
        at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-94/packages/cli/tests/follow.test.mjs:42:23)
        at async Test.run (node:internal/test_runner/test:1409:7)
        at async Test.processPendingSubtests (node:internal/test_runner/test:974:7),
    expected: { exitCode: 3 },
    operator: 'rejects',
    diff: 'simple'
  }
