Stranded delivery list on the bus agents view. Built by Sage's Haiku
subagent (decision 129), rebased onto 57a2ddc5. Phase B, three runs:
the first failed the new test (node:sqlite null-prototype rows, fixed
by mapping to plain objects), the second stopped at cli on a missing
node_modules link, the third passed: 14 node suites, nine scripts,
15/15 mutants killed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
43 lines
2.1 KiB
Plaintext
43 lines
2.1 KiB
Plaintext
✔ agents: a held role with nothing on the bus is idle; a role session gets the claim rows unchanged (12.427972ms)
|
||
✔ agents: working counts what the holder received and has not read; routed alone is not working (11.244325ms)
|
||
✔ agents: input needed is the role's open decisions routed to the human, gated first, then oldest (20.517617ms)
|
||
✔ agents: working wins over waiting, and Input needed still shows (8.45146ms)
|
||
✔ agents: a new holder doesn't inherit what the last one left unread; decisions stay with the role (11.231301ms)
|
||
✔ agents: state reads only its own business, even for a run name both use (10.056929ms)
|
||
✔ agents: a message the holder released unread is stranded; the next holder gets nothing and cannot read it (11.274098ms)
|
||
✔ agents: a message the holder read is not stranded; one the current holder has not read is not listed (11.709671ms)
|
||
✖ agents: stranded is oldest first and capped at 50 for a role (54.239239ms)
|
||
✔ agents: stranded is per role and per business (20.35104ms)
|
||
✔ agents: a message routed to a held role and not yet received is not stranded (7.009064ms)
|
||
ℹ tests 11
|
||
ℹ suites 0
|
||
ℹ pass 10
|
||
ℹ fail 1
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 227.158892
|
||
|
||
✖ failing tests:
|
||
|
||
test at tests/agents.test.mjs:195:1
|
||
✖ agents: stranded is oldest first and capped at 50 for a role (54.239239ms)
|
||
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
|
||
|
||
51 !== 50
|
||
|
||
at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack/.claude/worktrees/agent-abe72e00ca2bcdf7e/packages/bus/tests/agents.test.mjs:203: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: 51,
|
||
expected: 50,
|
||
operator: 'strictEqual',
|
||
diff: 'simple'
|
||
}
|