✔ F1: an ordinary commit after update-ref is refused until step 8; then it commits and the queue stays at C (1213.513287ms)
✔ F1: a plain `commit -e` whose guard ran before update-ref fails at its own HEAD update (1069.107357ms)
ℹ git commit -e: index.lock free during the editor
✔ F1: a `commit -e -- path` whose guard ran before update-ref fails at its own HEAD update (974.487379ms)
ℹ git commit -e -- src.txt: index.lock held during the editor
✔ F1: step 8 with index.lock held exits 3, and ordinary commits stay refused until the printed command runs (1116.046618ms)
✔ F1: HEAD moving after the step-7 guard check and before update-ref: refused, nothing published (1026.511233ms)
✔ F1: H is recorded before the canary, so HEAD moving during the step-1 canary is refused at step 7 (1006.880591ms)
✔ F1: a queue commit landing after H is recorded: step 1 says HEAD moved, not the guard (1385.680207ms)
✔ F1: a queue commit landing between the HEAD check and the canary: the failed clean run is reported as HEAD moved (1026.268035ms)
✔ F1: a shared-index change during the procedure is not committed (1107.139632ms)
✔ F1: a queue path staged after update-ref: step 8 stops and touches nothing (1064.514494ms)
✔ F1: a missing or a different hook refuses (794.853144ms)
✔ F1: same bytes without the exec bit, a symlinked hook, and core.hooksPath in the local or global scope each refuse before update-ref (1241.997413ms)
✔ F1: the canary refuses a hook that git would not run (733.099779ms)
✔ F1: the guard deactivated after step 1 is refused at the step-7 recheck (1139.731222ms)
✔ bootstrap: implementation-only HEAD, the guard, genesis, the --genesis commit, then an extending commit (903.361989ms)
✔ bootstrap: --genesis with a base present, no base without --genesis, an op before the first commit, a changed map, another branch (926.505232ms)
✔ bootstrap: the archived tests and validator run outside any repository (907.817519ms)
✔ general: an unrelated staged file stays staged, and the committed blobs are the snapshot bytes (921.470664ms)
✔ general: a queue write after the snapshot is not committed (1352.817484ms)
✔ general: a snapshot whose log does not extend the base refuses (1111.754128ms)
✔ general: install-hook privilege, repair of a same-bytes hook, and its refusals (162.258953ms)
✔ general: environment overrides, a linked worktree and usage (667.207031ms)
✔ general: a queue path staged before the run refuses at step 1 (682.311835ms)
✔ general: HEAD's queue tests failing in the archive refuse (894.163937ms)
✔ genesis document serializes deterministically and replays (3.72264ms)
✔ a hand edit that stays valid JSON fails replay; a formatting-only edit fails re-serialization (2.261016ms)
✔ a tampered result, receipt or viewSha fails replay (2.069395ms)
✔ op ids: 8 to 72 characters for callers, 80 in the log for .outcome entries (0.156196ms)
✔ add: defaults for an ordinary seat, privileged extras, refusals (3.698885ms)
✔ matrix: queued→briefed privileged; briefed→in-progress owner with after satisfied (4.833452ms)
✔ matrix: release, review round, changes requested and waiting-on-jason (13.459417ms)
✔ matrix J5: in-review→done by the gate owner with evidence naming the current round (8.120048ms)
✔ review issue, lead decision 23: none refuses, one is used, several need --issue, later rounds keep it (18.90493ms)
✔ the row schema refuses a round with a null issue, and the A1 review shape (P2) (2.21006ms)
✔ matrix R1: every state × target × actor class matches 8.7, gate owner jason or not, required or not (1311.201423ms)
✔ matrix: blocked keeps the claim and returns only to previousState (3.468986ms)
✔ matrix J4: parking is Jason's, refused while required; unpark returns to queued (2.267256ms)
✔ field edits: who may change what (4.188321ms)
✔ set issues keeps a logged narrowing of closes (N10) (2.572373ms)
✔ text the table shows refuses \ and <, everywhere it enters (N8) (1.587104ms)
✔ every accepted text renders to nine cells on every row (N8) (19.691247ms)
✔ genesis: the map refuses an owner among its row's reviewers; replay doesn't (2026-10-04) (0.486984ms)
✔ times and dates must be calendar values, not just the shape (2026-10-04) (1.40233ms)
✔ replay holds every op id to the caller's rule (N11) (4.722269ms)
✔ note: owner, listed reviewer or privileged; empty clears (1.00409ms)
✔ assign moves the claim with the owner; done clears it (2.164224ms)
✔ render is byte-stable and escapes pipes (0.458507ms)
✔ view classification: current, genuine stale, edited stale marker, changed current body, markers (0.520792ms)
✔ next: resume, then review, then start, then wait, then nothing; lowest id first (15.736859ms)
✔ canonical args make a retry's identity independent of list order (0.294223ms)
✔ manifests, headings and blob ids (0.416495ms)
✔ the migration map: one queue-map block, exact keys (0.528395ms)
✔ every call but `queue` reaches the seat CLI exactly as before A2 (558.04744ms)
✔ `queue` reaches the queue CLI with the rest of the arguments (181.075919ms)
✔ the pre-A2 fixture is the script A2 changed (0.458276ms)
✔ acquire publishes the record by link; release removes only its own lock (10.631557ms)
✔ a kill between the temp write and the link leaves no lock (54.98358ms)
✔ a short or failed temp write refuses and leaves no lock and no temp (9.046649ms)
✔ a link error other than EEXIST refuses (6.03194ms)
✔ an error after the link releases the lock: unreadable gate, failing temp stat (25.058842ms)
✔ a release that fails on a gate path is reported, never a stack trace (P1) (37.873526ms)
✔ a paused holder: another writer waits 10 s, then refuses naming it live (10097.430167ms)
✔ two concurrent unlockers: the second refuses on the gate (32.774663ms)
✔ a writer publishing during an unlock, lock first: unlock sees it live and refuses (9.917845ms)
✔ a writer publishing during an unlock, gate first: the writer releases and refuses (11.895493ms)
✔ a gate swapped while held is left in place and reported, on success and on refusal (N1) (25.265671ms)
✔ a reused pid within one boot is mismatch; unlock removes the lock and never signals the process (22.564019ms)
✔ the same pid and start on a different boot is mismatch (0.467676ms)
✔ a foreign host is unknown whatever the local pid says; unlock refuses (70.360828ms)
✔ unreadable /proc: classification is unknown and acquire refuses (0.652675ms)
✔ invalid records: empty, unparsable, wrong keys, bad start or boot (0.540424ms)
✔ a stale gate blocks writers; --check-gate says mismatch for a reused pid (24.872192ms)
✔ a delayed release by a dead owner, after unlock and a new owner: the inode check keeps the new lock (32.477596ms)
✔ release checks the inode too: a byte-identical lock file with a new inode is left in place (13.653148ms)
✔ unlock refuses a live, unknown or invalid lock, and does nothing without one (60.577196ms)
✔ the migration map validates and renders the golden genesis table (3.280246ms)
✔ the marked QUEUE.md holds every row and parked item between its markers (1.587567ms)
✔ map-check reports each kind of drift (5.023352ms)
✔ a request posts once as the requester; a retry sends nothing (776.579847ms)
✔ each transport answer maps to posted, failed or uncertain (8.9 step 3) (4441.347113ms)
✔ the pre-send checks: GET user must name the requester, under the deadline (1570.572909ms)
✔ the lead's request refuses a token for login sage (1060.099198ms)
✔ the credential file: the seat's own, 0600, no symlink, never the shared default (974.653704ms)
✔ an unresolved request blocks a new request, a new round, waiting-on-jason and done (2565.280814ms)
✔ a same-op retry after a kill sends nothing, even with a stale view (3502.362113ms)
✔ a held lock at the outcome exits 3 and names what the transport said (772.010489ms)
✔ late outcomes: after an abandon, and after a resolve with the same or another id (2455.150991ms)
✔ resolve checks the comment: issue, markers, round, candidate and author (1780.398496ms)
✔ the lead resolves a seat's request: the comment's author is the requester, fetched with the lead's token (811.227356ms)
✔ validateRow checks a request round's shape, which every replayed entry must keep (518.426737ms)
✔ request, changes, a new candidate, approval: every round pinned; no review files (1835.462759ms)
✔ a row with no reviewers opens a round that posts nothing (1232.619181ms)
✔ verify-commit: a prospective tree must hold exactly the candidate's paths (1362.828077ms)
✔ semantics: v1 entries replay as before; review entries need v2 (505.983018ms)
✔ set reviewers refuses the row's owner (2026-09-28) (381.747755ms)
✔ the owner records no verdict, even as a listed reviewer (535.840723ms)
✔ a request comment over the length limit is not sent (633.418807ms)
✔ a late POST on a closed row leaves a conflict nothing can resolve, and resolve asks nothing (695.947063ms)
✔ a Jason-gated row reaches waiting-on-jason only on every reviewer's approval (2665.868291ms)
✔ genesis: refusals before anything is written (399.556692ms)
✔ genesis: the map must be committed, well formed, with committed briefs and seats (593.065097ms)
✔ genesis: markers, a stray witness, once only; a retry returns the receipt (565.934383ms)
✔ genesis: a file holding genesis alone with no witness is confirmed by sync or a retry (381.577139ms)
✔ canonical checks: worktree, second clone, detached HEAD, wrong branch, GIT_DIR, foreign code; a symlink works (644.239906ms)
✔ --by that differs from MOSAIC_AGENT_NAME warns on stderr and logs nothing more (N12) (769.483708ms)
✔ op ids: missing, too long, reserved; a retry answers; another payload refuses (762.62937ms)
✔ a retried add returns the id it first allocated, after reassignment and after done (962.158705ms)
✔ Rocko's S4 schedule: a lost result, another writer, then the retry opens no second round (703.083043ms)
✔ the review issue and the evidence round through the CLI (lead decision 23, 8.7) (1260.087325ms)
✔ claims and add defaults through the CLI; candidates are manifests or reachable commits (926.025142ms)
✔ add, set reviewers and assign refuse the row's owner as a reviewer (611.721552ms)
✔ the working-brief check: a changed working copy refuses the start and flags next (688.832413ms)
✔ next: resume first, then nothing for an idle seat; needs a seat (302.049161ms)
✔ view stale: new ops and verify refuse naming the unshown op; retries answer; reads warn; render fixes (755.381882ms)
✔ view unknown: a hand edit, an old marker over an edited body, missing or duplicate markers (1320.096998ms)
✔ a hand edit to queue.json refuses every verb, reads included (623.985474ms)
✔ verify and render --check leave bytes and mtimes unchanged (456.693689ms)
✔ render is byte-stable across runs and repositories (323.632045ms)
✔ snapshot and verify --snapshot (853.89672ms)
✔ usage errors exit 4 (578.558636ms)
✔ a short write, ENOSPC or a file fsync failure: nothing visible, temp removed (287.804763ms)
✔ a rename failure: nothing visible, temp removed (160.964047ms)
✔ a directory fsync failure: uncertain, exit 3, no receipt; the tail refuses new ops; a retry confirms (221.921063ms)
✔ a directory fsync failure, then sync names the op (384.379841ms)
✔ a witness write failure: uncertain, durable, exit 3; the view is untouched (229.818869ms)
✔ the .git fsync after the witness rename fails: uncertain, exit 3, the witness says so (206.280197ms)
✔ confirming a tail fsyncs queue.json and docs/plans before the witness; either failure changes nothing (237.081979ms)
✔ the docs/plans fsync after the view rename fails: the op stands, the view is written, a warning says so (192.959497ms)
✔ a lock swapped while held is left in place and reported, on a receipt and on a refusal (201.519196ms)
✔ a lock that cannot be released after an op is reported, on a receipt and on a refusal (192.012053ms)
✔ unlock prints a swapped gate's warning on stderr, the result on stdout (152.234406ms)
✔ a view write that fails keeps the op and reports a stale view (181.103512ms)
✔ SIGKILL before the rename: nothing recorded; the retry removes the leftover temp (676.48917ms)
✔ SIGKILL after the rename, before the witness: the tail refuses new ops and sync names the op (709.803644ms)
✔ SIGKILL after the witness, before the view: the stale refusal names the op (627.947435ms)
✔ SIGKILL after the view, before the receipt: the retry returns the receipt (676.296653ms)
✔ git checkout between steps 1 and 7: step 7 refuses and nothing is written (217.160751ms)
✔ git stash restoring an older valid pair: history lost; accept-history needs privilege, a reason and --yes (1043.283064ms)
✔ a deleted witness: refused after the locked recheck; accept-history records it absent (333.644697ms)
✔ a header edit during a write: the op stands, the view write is skipped with a warning (227.120825ms)
✔ a reader paused between the witness and the file while a writer finishes: no lost-history report (222.117391ms)
✖ rows: every row as show prints it, in list order; writes nothing; same notes and refusals as list (286.928512ms)
✔ file-then-witness order forced by a hook: the locked recheck prevents a false report (282.274709ms)
✔ a writer paused before and after the witness rename: readers see a tail, then a match (211.829398ms)
✔ a true rollback is reported only after the locked recheck; a held lock names its holder instead (609.130001ms)
✔ an accept-history in progress: an unlocked reader waits on the lock and never reports lost history (653.178306ms)
✔ the platform check refuses other filesystems (131.913302ms)
✔ tmpfs passes only a test layer that allows it (N5) (318.184031ms)
✔ unlock keeps a multi-line lock record on stdout (P3) (250.143797ms)
ℹ tests 149
ℹ suites 0
ℹ pass 148
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 31150.650186

✖ failing tests:

test at tests/write.test.mjs:337:1
✖ rows: every row as show prints it, in list order; writes nothing; same notes and refusals as list (286.928512ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
  + []
  - [
  -   'rev 1 visible, not confirmed durable'
  - ]
  
      at TestContext.<anonymous> (file:///home/jwoltje/darkwing-scratch/r54a/mutwt/packages/queue/tests/write.test.mjs:349:10)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: [],
    expected: [ 'rev 1 visible, not confirmed durable' ],
    operator: 'deepStrictEqual',
    diff: 'simple'
  }
