command: ["node", "--test", "/home/jwoltje/.t3/worktrees/mosaic-stack/magica-row329/packages/bus/tests/thread-shares.test.mjs"]
TMPDIR: /mnt/storage/scratch/tmp/oEntjx
launch nice: 19
✔ a share lets the sharee read the thread and nothing else: every write verb stays the owner's (mutants 7, 9) (46.350806ms)
✔ the business human shares too, and a `*` share reaches every covered principal but the tester (25.040098ms)
✔ mutant 2: a share never widens a grant; when the sharee's grant stops covering the thread, its reads end (26.367821ms)
✔ mutant 3: a thread whose user owner has lost coverage is hidden from its sharees, the owner's board included (37.288872ms)
✔ mutant 4: a share's state is its latest row, so an unshare ends it and a share after it starts it again (30.145276ms)
✔ mutant 8: a user target needs a live grant of any level covering the thread, else share-not-covered (22.256271ms)
✔ a viewer reads a thread shared with it, and share, unshare and shares refuse a viewer access-refused (design 4.3) (24.284544ms)
✔ a share target is `user:<id>`, the business human or `*`, and never the sharer (41.215372ms)
✔ a user whose collaborator grant no longer covers its own thread can't share, unshare or list its shares (22.471754ms)
✔ the tester and a reader session never share: each verb refuses and writes nothing (38.374544ms)
✔ the owner's trail and replies show a user's message only while that user's thread is shared with the owner (29.521529ms)
✔ a share covers every session of the thread (23.301343ms)
✔ a sharee can't list the thread's sessions: session.list stays owner-only (Q7, sage-2818 Q1) (22.054912ms)
✔ only a human principal matches a share: an agent bound to the thread and the tester match none (sage-2818 Q2) (34.504776ms)
✔ a 3l store migrates to 3m: thread_shares is new and empty, and every other row stays as it was (94.608232ms)
✔ the 3l engine refuses a 3m store, migrating or not, and leaves it as it was (169.145064ms)
ℹ tests 16
ℹ suites 0
ℹ pass 16
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 779.347645
