command: ["node", "--test", "/home/jwoltje/.t3/worktrees/mosaic-stack/magica-row329/packages/bus/tests/session-clear.test.mjs"]
TMPDIR: /mnt/storage/scratch/tmp/oEntjx
launch nice: 19
✔ T4 D7: a clear of a held default session fences it, drains at the next receive, retires at the exit proof and moves the default (60.171131ms)
✔ T4 D7: an unheld session drains at accept, its proof is run null, and a non-default clear leaves the default (20.963677ms)
✔ T4 D7: a run that ends before its next receive drains at its end, with its generation (20.969182ms)
✔ T4 D7: a run whose turn is running (delivered, unread) stays clearing; uncertain is recorded once and nothing more (30.89775ms)
✔ T4 D7 B1: undelivered inputs are cancelled with receipts at accept, never delivered to the successor, and a routed reply is cancelled at arrival (36.001831ms)
✔ T4 D7: repeat, conflict, a second op, a stale revision, confirm and a halt (36.076371ms)
✔ T4 Q4: the successor takes <old>-N, the next N free, and a bound name stays taken (25.080255ms)
✔ T4 D8: the successor start is held, refused or started, each report on its own counter (22.385143ms)
✔ T4 D7 N4: a halt at retirement waits and writes nothing; retirement goes once processing resumes (18.927024ms)
✔ T4 sage-2828: a cancel before retirement makes the session active again, keeps the claim and the cancelled messages, and never makes the successor (28.735193ms)
✔ T4 sage-2828 sage-2830: a cancel after retirement ends the startup only, and a later thread-only send makes the successor pending as new input (23.828081ms)
✔ T4 N4: a user's thread whose grant is gone by retirement ends the clear failed, writes no successor, and leaves the session as it was (21.58008ms)
✔ T4 N4: a user's thread whose grant is live at retirement retires the session and makes its successor (21.214767ms)
✔ T4 sage-2828: a cancel after the successor started refuses session-clear-complete (21.372203ms)
✔ T4 B2: a run bound to a clearing session refuses its claim, and claims again once the clear is cancelled (23.048665ms)
✔ T4 mos-1325: the tester clears its own thread; its clear, cancel and operation on a human-owned thread refuse thread-not-owned and write nothing (27.320764ms)
✔ T4 schema: session_ops and message_cancels are append-only, and a second open clear of a session is refused below the broker (18.939858ms)
✔ T4 schema: a 3m store migrates to 3n, session_ops and message_cancels are new and empty, and every other row stays as it was (95.021813ms)
✔ T4 schema: the 3m engine refuses a 3n store, migrating or not, and leaves it as it was (169.304789ms)
ℹ tests 19
ℹ suites 0
ℹ pass 19
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 836.534146
