✖ REQ-MSG-2: the chief of staff names an instance under its within-role grant, and the write is logged (80.830229ms) ✔ REQ-MSG-2: the human names an instance through the CLI (74.065449ms) ✔ REQ-MSG-2: a role without the grant, or holding it cross-role, is refused not-authorized (96.543497ms) ✖ REQ-MSG-2: a name is unique in the business and is never an instance key or a role name (87.293248ms) ✔ REQ-MSG-2: a send by name reaches the instance and records both; a send by instance key is unchanged (176.962043ms) ✔ REQ-MSG-2: an instance key beats a name that equals it, as when a later instance takes the key (91.690446ms) ✔ REQ-MSG-2: a role name beats a name that equals it, as when a later definition takes the word (sage-0590) (90.997409ms) ℹ tests 7 ℹ suites 0 ℹ pass 5 ℹ fail 2 ℹ cancelled 0 ℹ skipped 0 ℹ todo 0 ℹ duration_ms 753.83268 ✖ failing tests: test at tests/names.test.mjs:53:1 ✖ REQ-MSG-2: the chief of staff names an instance under its within-role grant, and the write is logged (80.830229ms) AssertionError [ERR_ASSERTION]: the shipped chief file grants instance.name at TestContext. (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/tests/names.test.mjs:55:10) 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) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } test at tests/names.test.mjs:103:1 ✖ REQ-MSG-2: a name is unique in the business and is never an instance key or a role name (87.293248ms) AssertionError [ERR_ASSERTION]: The input did not match the regular expression /name-taken/. Input: 'Error: not-authorized' at TestContext. (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/tests/names.test.mjs:107:10) 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) { generatedMessage: true, code: 'ERR_ASSERTION', actual: Error: not-authorized at fail (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/src/broker.mjs:109:9) at #dispatch (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/src/broker.mjs:1959:11) at file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/src/broker.mjs:1148:38 at Store.transaction (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/src/store.mjs:248:22) at Broker.request (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/src/broker.mjs:1142:26) at call (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/tests/names.test.mjs:49:44) at file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/tests/names.test.mjs:107:23 at getActual (node:assert:580:5) at strict.throws (node:assert:728:24) at TestContext. (file:///home/jwoltje/darkwing-scratch/r141/wt3/packages/bus/tests/names.test.mjs:107:10), expected: /name-taken/, operator: 'throws', diff: 'simple' }