command: ["node", "--test", "/home/jwoltje/.t3/worktrees/mosaic-stack/magica-row329/packages/bus/tests/grant-executor.test.mjs"]
TMPDIR: /mnt/storage/scratch/tmp/oEntjx
launch nice: 19
✔ row 280: an occupied TCP port is attempted, refused, and retried with our sshd (94.660089ms)
✔ row 280: every injected picker sample is unprivileged and outside the ephemeral range (0.439198ms)
✔ G7: an Approve installs the tagged line, logs in with the new key, and writes the key file, record and grant.applied (722.294369ms)
✔ G7: a commands change on a live grant updates the record in one transaction and keeps the key and line (570.920159ms)
✔ G8: a failure at install or verify removes the line and leaves no record, key file or reference (1632.927961ms)
✔ G8: a failed remove adds hostLineLeft and tells the human to sweep (679.963259ms)
✔ G8: a failure in step 5 before commit unlinks the key file, drops the reference and removes the line (697.024716ms)
✔ G8: a store fault in the commit transaction ends host-failed with no record, key file, reference or line (676.24616ms)
✔ G8: a failed step 1 check spends the decision and runs nothing remote (84.485711ms)
✔ G9: a registry, definition or commands change between raise and Approve ends decision-mismatch before any remote step (511.605818ms)
✔ G9: an agent no longer a role or no longer declaring host ends with its code, spent (77.932403ms)
✔ G10: a second start refuses decision-consumed, and an unresolved or agent-resolved decision not-authorized, writing nothing (523.218075ms)
✔ G15: no event, message or decision holds the private key (509.831129ms)
✔ G23: a revoke during install ends grant.failed revoked with no key file, no grant and no line (531.598279ms)
✔ G23 (row 249): an add that writes after an abort's remove leaves hostLineLeft until the sweep (873.84519ms)
✔ G23 (row 249): an add that writes after a timed-out install's remove leaves hostLineLeft until the sweep (884.79913ms)
✔ G23: a revoke recorded after the raise and before the start ends step 1 revoked, and a held slot ends host-busy (517.63216ms)
✔ G24: names at 64 characters with . and _ give distinct tags of the fixed length (0.419062ms)
✔ G11: a restart after install removes the line, then ends interrupted with the tag, holding the slot until then (227.523711ms)
✔ G11: a restart after a new key's commit, with the key file written, ends with no key file, record, reference or line (237.225684ms)
✔ G11: a restart after a commands change's commit leaves the record as it was and asks nothing of the host (527.207749ms)
✔ G11 (B2): a restart before step 1, spent or not yet spent, ends interrupted and nothing runs later (75.518953ms)
✔ G11: a remote undo that fails ends interrupted with hostLineLeft and the sweep hint (294.822848ms)
✔ G11: a restart leaves a finished grant alone, and the reconcile adds nothing for it (541.14692ms)
✔ N1 (G27): the start sweep unlinks host.<id> files with no record in loaded businesses only, and refuses a store dir that is not private (7.118517ms)
✔ G12: the human's hosts.revoke deletes the record, the key file, the reference and the line, with a closed marker (683.669283ms)
✔ G12 (N4): a revoke with no record still removes the computed tag's line, with granted false; bad args refuse (219.881995ms)
✔ G13: a revoke during install aborts the executor, which ends revoked, and the line goes (568.768707ms)
✔ G26: the human, the assistant and the tester revoke; the chief and a pm refuse; sweep is the human's or the tester's (520.879686ms)
✔ row 281 T8: a tester hosts.revoke refuses tester-dev-only once bus.tester is off, and a human revoke writes no job records (661.726101ms)
✔ G27: a restart after step 1 sweeps the key file and runs step 3 once the bus is up; status shows the revoke until then (686.867621ms)
✔ G27: after step 2 with the host down, the restart closes the marker with hostLineLeft; a marker without a revoke id is not reopened (964.354003ms)
✔ G27: a key file a revoke could not unlink is reported left and goes at the next start (710.946832ms)
✔ G28: a commands change, then a revoke, then a restart leave no record, key, reference or line (733.327501ms)
✔ G24 (B4): hosts.sweep removes only this business's recorded tags no live grant holds, and records what it left (1035.423551ms)
✔ G12: the local steps finish before the host step, so a host that hangs leaves the agent no access (725.603675ms)
✔ G23 (X5): a revoke right after the spend reaches the executor's claim, so the grant ends revoked (223.136275ms)
✔ G23 (X5): a revoke that lands as verify returns ends revoked with no record, key file or line (687.260709ms)
✔ G13: a revoke whose host remove fails still drops the record and key, and reports the line left for a sweep (663.382118ms)
✔ G22: enroll, check, grant, host.run, a commands change the next host.run uses, and a revoke that kills a run in flight (1252.408539ms)
✔ mos-1163: a grant whose agent became a creative role after the raise ends host-creative-role at step 1, spent, with nothing remote (71.190184ms)
✔ sage-1908: once the agent of an applied grant is a creative role, host.run refuses host-creative-role, runs nothing remote and keeps the record (523.043409ms)
ℹ tests 42
ℹ suites 0
ℹ pass 42
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 22539.529342
