command: ["node", "--test", "/home/jwoltje/.t3/worktrees/mosaic-stack/magica-row329/packages/bus/tests/grant-enroll.test.mjs"]
TMPDIR: /mnt/storage/scratch/tmp/oEntjx
launch nice: 19
✔ G1, A1: only the chief raises a grant, and a refused raise stores nothing and runs no keyscan (46.645134ms)
✔ G1: grant goes only with credential.mint, row a takes only host-enroll, and E1 refuses each bad field (56.664466ms)
✔ G5, A5, A6: the scanned key set must equal the requested set, or host-key-mismatch and nothing stored (36.701202ms)
✔ G4 (host-enroll block, M1): the broker appends the keys, fingerprints and sudo line, and the cap counts the block (28.0911ms)
✔ G6, X1: the human's cli yes starts enrollment, which writes the record, the key file and the events in order (51.818404ms)
✔ A2, A4: a credential.mint without grant, and a no, start nothing (239.59713ms)
✔ A3, X1: a resolve by the tester or an agent starts nothing (236.514451ms)
✔ G6 (duckworth-0081 B3): a withdraw by the chief or the human, and an arbiter resolve, start nothing (236.673986ms)
✔ G10 (duckworth-0081 B1): a second start for a spent decision refuses decision-consumed, and an unresolved or agent-resolved one not-authorized (57.656722ms)
✔ A8, S1: two approved enrollments for one host: the second ends host-enrolled and the pin stays (78.14571ms)
✔ A9: the hosts primary key refuses a second record for (business, host) (28.890609ms)
✔ X3: a failure at step 2 deletes the record again and ends grant.failed, with no key file (51.353326ms)
✔ A10, X3: at start a resolved, unspent enrollment is spent and ends interrupted, and never runs late (32.999556ms)
✔ X3: at start an enrollment that stopped after its registry step loses its record and key file (54.85496ms)
✔ G24 first sentence, M2, A12: tags are mosaic- and 32 hex, and differ by business, agent and host (0.386375ms)
✔ E4: hosts.check sets the record ready and records grant.host.checked; a non-zero list leaves it pending (58.522726ms)
✔ G20 (duckworth-0081 B3): the human's hosts.check marks the host ready, and the reader refuses (55.395701ms)
✔ G18 (duckworth-0081 B2), broker half: a check refused host-key-mismatch leaves the host pending-install with no grant.host.checked (56.214661ms)
✔ E4: a check whose installer fingerprint differs from the record refuses host-changed (52.6934ms)
✔ E4, G21: hosts.remove is the human's or the tester's, deletes the key and the record, and records grant.host.removed (55.639523ms)
✔ G21, F1, F2, M4, A22: hosts.remove refuses host-line-left on a guarded hostLineLeft, and ignores look-alikes (59.528393ms)
✔ hosts.remove refuses host-in-use while a grant record names the host (51.634343ms)
✔ the grant writer refuses a body outside section 7's shape (27.061082ms)
✔ recordEvent refuses reserved-event for a grant.* action or operation (28.617014ms)
ℹ tests 24
ℹ suites 0
ℹ pass 24
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1775.39436
