docs: row 115 round 2 packet, the seen-before-close request test (#1609)

Candidate on base 94ece491f: 5 files, manifest 1910eb5a; only
decision-close.test.mjs changed since round 1. Mutants m1-m4 killed
(m4 is Filbert's f4); gate passed with no flakes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 12:00:51 -05:00
co-authored by Claude Opus 5.5
parent 66e101b7bd
commit 40e5917f9b
34 changed files with 3874 additions and 0 deletions
@@ -0,0 +1,166 @@
✔ F1: an ordinary commit after update-ref is refused until step 8; then it commits and the queue stays at C (1191.356783ms)
✔ F1: a plain `commit -e` whose guard ran before update-ref fails at its own HEAD update (991.385552ms)
ℹ 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 (977.647876ms)
ℹ 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 (1046.907592ms)
✔ F1: HEAD moving after the step-7 guard check and before update-ref: refused, nothing published (1001.83685ms)
✔ F1: H is recorded before the canary, so HEAD moving during the step-1 canary is refused at step 7 (1005.08238ms)
✔ F1: a queue commit landing after H is recorded: step 1 says HEAD moved, not the guard (1491.946905ms)
✔ F1: a queue commit landing between the HEAD check and the canary: the failed clean run is reported as HEAD moved (1127.562318ms)
✔ F1: a shared-index change during the procedure is not committed (1133.097061ms)
✔ F1: a queue path staged after update-ref: step 8 stops and touches nothing (1042.855242ms)
✔ F1: a missing or a different hook refuses (703.655534ms)
✔ F1: same bytes without the exec bit, a symlinked hook, and core.hooksPath in the local or global scope each refuse before update-ref (1156.731961ms)
✔ F1: the canary refuses a hook that git would not run (644.277355ms)
✔ F1: the guard deactivated after step 1 is refused at the step-7 recheck (922.471578ms)
✔ bootstrap: implementation-only HEAD, the guard, genesis, the --genesis commit, then an extending commit (859.276223ms)
✔ bootstrap: --genesis with a base present, no base without --genesis, an op before the first commit, a changed map, another branch (858.603324ms)
✔ bootstrap: the archived tests and validator run outside any repository (887.113095ms)
✔ general: an unrelated staged file stays staged, and the committed blobs are the snapshot bytes (824.760468ms)
✔ general: a queue write after the snapshot is not committed (1218.736308ms)
✔ general: a snapshot whose log does not extend the base refuses (966.442659ms)
✔ general: install-hook privilege, repair of a same-bytes hook, and its refusals (152.549091ms)
✔ general: environment overrides, a linked worktree and usage (632.93992ms)
✔ general: a queue path staged before the run refuses at step 1 (649.155916ms)
✔ general: HEAD's queue tests failing in the archive refuse (847.059311ms)
✔ genesis document serializes deterministically and replays (4.549207ms)
✔ a hand edit that stays valid JSON fails replay; a formatting-only edit fails re-serialization (3.381448ms)
✔ a tampered result, receipt or viewSha fails replay (3.060361ms)
✔ op ids: 8 to 72 characters for callers, 80 in the log for .outcome entries (0.16132ms)
✔ add: defaults for an ordinary seat, privileged extras, refusals (4.450922ms)
✔ matrix: queued→briefed privileged; briefed→in-progress owner with after satisfied (4.733653ms)
✔ matrix: release, review round, changes requested and waiting-on-jason (15.45561ms)
✔ matrix J5: in-review→done by the gate owner with evidence naming the current round (11.996962ms)
✔ review issue, lead decision 23: none refuses, one is used, several need --issue, later rounds keep it (17.670429ms)
✔ the row schema refuses a round with a null issue, and the A1 review shape (P2) (2.23442ms)
✔ matrix R1: every state × target × actor class matches 8.7, gate owner jason or not, required or not (1279.048085ms)
✔ matrix: blocked keeps the claim and returns only to previousState (3.602083ms)
✔ matrix J4: parking is Jason's, refused while required; unpark returns to queued (2.376782ms)
✔ field edits: who may change what (4.87863ms)
✔ set issues keeps a logged narrowing of closes (N10) (2.465582ms)
✔ text the table shows refuses \ and <, everywhere it enters (N8) (1.705594ms)
✔ every accepted text renders to nine cells on every row (N8) (20.818558ms)
✔ genesis: the map refuses an owner among its row's reviewers; replay doesn't (2026-10-04) (0.491959ms)
✔ times and dates must be calendar values, not just the shape (2026-10-04) (1.494059ms)
✔ replay holds every op id to the caller's rule (N11) (4.553404ms)
✔ note: owner, listed reviewer or privileged; empty clears (1.057159ms)
✔ assign moves the claim with the owner; done clears it (2.298714ms)
✔ render is byte-stable and escapes pipes (0.705158ms)
✔ view classification: current, genuine stale, edited stale marker, changed current body, markers (0.558857ms)
✔ next: resume, then review, then start, then wait, then nothing; lowest id first (16.267049ms)
✔ canonical args make a retry's identity independent of list order (0.281545ms)
✔ manifests, headings and blob ids (0.403442ms)
✔ the migration map: one queue-map block, exact keys (0.538414ms)
✔ every call but `queue` reaches the seat CLI exactly as before A2 (492.382164ms)
✔ no argument reaches the app entry in packages/cli, and only that call (71.626989ms)
✔ `queue` reaches the queue CLI with the rest of the arguments (170.509318ms)
✔ the pre-A2 fixture is the script A2 changed (0.27824ms)
✔ an old privileged add with no gate owner still replays through loadDoc, and gets jason (7.386899ms)
✔ a non-privileged add gets jason through the replay path and can't name a gate owner (1.877951ms)
✔ the CLI refuses a privileged add without --gate-owner, for jason and sage, and writes nothing (287.660913ms)
✔ the CLI add with --gate-owner carries the named owner and records a log entry (276.536235ms)
✔ the CLI add by a non-privileged seat gets jason and can't name a gate owner (305.015641ms)
✔ a retried sage add recorded with no gate owner answers (already recorded at rev N) and writes nothing (266.048687ms)
✔ acquire publishes the record by link; release removes only its own lock (9.576172ms)
✔ a kill between the temp write and the link leaves no lock (61.811999ms)
✔ a short or failed temp write refuses and leaves no lock and no temp (6.709365ms)
✔ a link error other than EEXIST refuses (9.167221ms)
✔ an error after the link releases the lock: unreadable gate, failing temp stat (24.402429ms)
✔ a release that fails on a gate path is reported, never a stack trace (P1) (36.324212ms)
✔ a paused holder: another writer waits 10 s, then refuses naming it live (10098.739804ms)
✔ two concurrent unlockers: the second refuses on the gate (37.849306ms)
✔ a writer publishing during an unlock, lock first: unlock sees it live and refuses (20.767567ms)
✔ a writer publishing during an unlock, gate first: the writer releases and refuses (27.526475ms)
✔ a gate swapped while held is left in place and reported, on success and on refusal (N1) (11.355623ms)
✔ a reused pid within one boot is mismatch; unlock removes the lock and never signals the process (19.70906ms)
✔ the same pid and start on a different boot is mismatch (0.408046ms)
✔ a foreign host is unknown whatever the local pid says; unlock refuses (57.976521ms)
✔ unreadable /proc: classification is unknown and acquire refuses (0.625267ms)
✔ invalid records: empty, unparsable, wrong keys, bad start or boot (0.185996ms)
✔ a stale gate blocks writers; --check-gate says mismatch for a reused pid (12.627477ms)
✔ a delayed release by a dead owner, after unlock and a new owner: the inode check keeps the new lock (30.410439ms)
✔ release checks the inode too: a byte-identical lock file with a new inode is left in place (12.376322ms)
✔ unlock refuses a live, unknown or invalid lock, and does nothing without one (46.915047ms)
✔ the migration map validates and renders the golden genesis table (3.988842ms)
✔ the marked QUEUE.md holds every row and parked item between its markers (1.385553ms)
✔ map-check reports each kind of drift (4.272718ms)
✔ a request posts once as the requester; a retry sends nothing (791.851996ms)
✔ each transport answer maps to posted, failed or uncertain (8.9 step 3) (4391.002716ms)
✔ the pre-send checks: GET user must name the requester, under the deadline (1485.397722ms)
✔ the lead's request refuses a token for login sage (1045.660332ms)
✔ the credential file: the seat's own, 0600, no symlink, never the shared default (924.168697ms)
✔ an unresolved request blocks a new request, a new round, waiting-on-jason and done (2310.104153ms)
✔ a same-op retry after a kill sends nothing, even with a stale view (2908.320364ms)
✔ a held lock at the outcome exits 3 and names what the transport said (706.601631ms)
✔ late outcomes: after an abandon, and after a resolve with the same or another id (2196.990885ms)
✔ resolve checks the comment: issue, markers, round, candidate and author (1572.635771ms)
✔ the lead resolves a seat's request: the comment's author is the requester, fetched with the lead's token (654.674821ms)
✔ validateRow checks a request round's shape, which every replayed entry must keep (482.88427ms)
✔ request, changes, a new candidate, approval: every round pinned; no review files (1724.581037ms)
✔ a row with no reviewers opens a round that posts nothing (1184.979584ms)
✔ verify-commit: a prospective tree must hold exactly the candidate's paths (1362.136348ms)
✔ semantics: v1 entries replay as before; review entries need v2 (578.397341ms)
✔ set reviewers refuses the row's owner (2026-09-28) (418.768164ms)
✔ the owner records no verdict, even as a listed reviewer (610.448668ms)
✔ a request comment over the length limit is not sent (701.817497ms)
✔ a late POST on a closed row leaves a conflict nothing can resolve, and resolve asks nothing (837.540294ms)
✔ a Jason-gated row reaches waiting-on-jason only on every reviewer's approval (2917.269691ms)
✔ genesis: refusals before anything is written (404.54234ms)
✔ genesis: the map must be committed, well formed, with committed briefs and seats (595.896572ms)
✔ genesis: markers, a stray witness, once only; a retry returns the receipt (523.197469ms)
✔ genesis: a file holding genesis alone with no witness is confirmed by sync or a retry (381.90048ms)
✔ canonical checks: worktree, second clone, detached HEAD, wrong branch, GIT_DIR, foreign code; a symlink works (606.905448ms)
✔ --by that differs from MOSAIC_AGENT_NAME warns on stderr and logs nothing more (N12) (826.116682ms)
✔ op ids: missing, too long, reserved; a retry answers; another payload refuses (676.641417ms)
✔ a retried add returns the id it first allocated, after reassignment and after done (914.347707ms)
✔ Rocko's S4 schedule: a lost result, another writer, then the retry opens no second round (673.137119ms)
✔ the review issue and the evidence round through the CLI (lead decision 23, 8.7) (1203.542105ms)
✔ claims and add defaults through the CLI; candidates are manifests or reachable commits (936.049753ms)
✔ add, set reviewers and assign refuse the row's owner as a reviewer (604.273965ms)
✔ the working-brief check: a changed working copy refuses the start and flags next (772.696138ms)
✔ next: resume first, then nothing for an idle seat; needs a seat (300.589202ms)
✔ view stale: new ops and verify refuse naming the unshown op; retries answer; reads warn; render fixes (646.119726ms)
✔ view unknown: a hand edit, an old marker over an edited body, missing or duplicate markers (1149.130993ms)
✔ a hand edit to queue.json refuses every verb, reads included (573.221351ms)
✔ verify and render --check leave bytes and mtimes unchanged (408.361525ms)
✔ render is byte-stable across runs and repositories (305.042353ms)
✔ snapshot and verify --snapshot (753.571506ms)
✔ usage errors exit 4 (546.48552ms)
✔ a short write, ENOSPC or a file fsync failure: nothing visible, temp removed (296.257635ms)
✔ a rename failure: nothing visible, temp removed (186.584088ms)
✔ a directory fsync failure: uncertain, exit 3, no receipt; the tail refuses new ops; a retry confirms (241.286443ms)
✔ a directory fsync failure, then sync names the op (376.867428ms)
✔ a witness write failure: uncertain, durable, exit 3; the view is untouched (234.286697ms)
✔ the .git fsync after the witness rename fails: uncertain, exit 3, the witness says so (185.780843ms)
✔ confirming a tail fsyncs queue.json and docs/plans before the witness; either failure changes nothing (208.086561ms)
✔ the docs/plans fsync after the view rename fails: the op stands, the view is written, a warning says so (176.170354ms)
✔ a lock swapped while held is left in place and reported, on a receipt and on a refusal (211.445122ms)
✔ a lock that cannot be released after an op is reported, on a receipt and on a refusal (209.619403ms)
✔ unlock prints a swapped gate's warning on stderr, the result on stdout (151.853295ms)
✔ a view write that fails keeps the op and reports a stale view (181.26114ms)
✔ SIGKILL before the rename: nothing recorded; the retry removes the leftover temp (668.245373ms)
✔ SIGKILL after the rename, before the witness: the tail refuses new ops and sync names the op (695.016172ms)
✔ SIGKILL after the witness, before the view: the stale refusal names the op (650.588395ms)
✔ SIGKILL after the view, before the receipt: the retry returns the receipt (621.457423ms)
✔ git checkout between steps 1 and 7: step 7 refuses and nothing is written (243.596161ms)
✔ git stash restoring an older valid pair: history lost; accept-history needs privilege, a reason and --yes (1018.098224ms)
✔ a deleted witness: refused after the locked recheck; accept-history records it absent (344.092264ms)
✔ a header edit during a write: the op stands, the view write is skipped with a warning (270.274026ms)
✔ a reader paused between the witness and the file while a writer finishes: no lost-history report (264.101364ms)
✔ rows: every row as show prints it, in list order; writes nothing; same notes and refusals as list (279.015951ms)
✔ file-then-witness order forced by a hook: the locked recheck prevents a false report (250.694854ms)
✔ a writer paused before and after the witness rename: readers see a tail, then a match (239.367482ms)
✔ a true rollback is reported only after the locked recheck; a held lock names its holder instead (650.715255ms)
✔ an accept-history in progress: an unlocked reader waits on the lock and never reports lost history (633.547015ms)
✔ the platform check refuses other filesystems (140.43136ms)
✔ tmpfs passes only a test layer that allows it (N5) (225.210569ms)
✔ unlock keeps a multi-line lock record on stdout (P3) (194.630648ms)
ℹ tests 156
ℹ suites 0
ℹ pass 156
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 29876.591312