Skip to content

pm: the governed-merges sweep lists low-risk arm landings apart and judges each on a same-head at-tier PASS record - #33711

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-sgww6y
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-sgww6y

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33603

Clause-②: no
Metadata-protocol: none

domain:skills#1 · os-project-manager · session_01FEkQ5kXwEA8abP4hMhtodW

维护者速读

What changes

Part 1, the audit (scripts/pm/check-governed-merges.mjs).

  • readArmLanding reads every skills landing in the sweep again with the queue guard's own readers on the landed commit (the commit the merge group judged): decomposeGovernedWork, readLowRiskTier (the register's lowRiskArmVerdict), landsOnLowRiskArm, then recordAuthorTrusted, recordVerdict and lowRiskRecordVerdict. One reader: no predicate is restated here; the guard is imported lazily (loadArmReaders, ARM_READER_EXPORTS), and a missing export or failed load is NOT MEASURED.
  • Five states. pass: the arm reads Tier S and a same-head record that stands at the tier and reads PASS exists. breach: the arm reads Tier S and no such record exists. cleared: the arm reads Tier S, and an authorized approval or enqueue cleared it first. tier-h: the arm reads H (its reasons are printed under the row), or the landing crosses the 3,000-line human-merge line. not-measured: the pull, the timeline or a comment thread could not be read.
  • The legs run in the guard's own order (entrySatisfied): an authorized approval (authorizedApprovalVerdict on makeReviewReader), then an authorized enqueue (enqueuerFromTimeline, authorizedEnqueueVerdict on the timeline already fetched), then the record. A landing cleared by either of the first two is cleared: the maintainer's merge, kept on the maintainer's list with who cleared it, never a BREACH.
  • Each leg reads only what existed before the landing. Reviews and timeline events count strictly before merged_at: on a queue merge the removed_from_merge_queue event shares the merge's instant (measured on docs(skills): an owner, assignee or 负责人 in a request is the injected owner_id #33555, docs(skills): four automation, query and ui evals spell their own must_contain literals #33632 and feat(pm): a record naming CONTRACT_REVIEW_TIER is written only on a transcript served at the tier #33616), so the post-merge timeline would always read the enqueuer as undetermined. Comments count only from an author the guard trusts (recordAuthorTrusted on recognisers.trustedAuthors, the pm: the queue guard's Tier S record leg reads the verdict and the record's author #33687 binding: the relay's identity and GOVERNED_APPROVERS), and only when created and last edited (updated_at) at or before the landing. So a record any commenter posted cannot excuse a landing, an untrusted row cannot shadow a trusted one, and a record written or edited after the landing cannot excuse it; a BREACH whose only record was edited after the landing names that comment.
  • The record's head is tied to the landed commit: the attribution read now carries merge_commit_sha, and a pull GitHub says is not merged (no merged_at) or merged as another commit is a BREACH with that reason, never pass. A failed attribution read is NOT MEASURED. Reads ride the channel that attributed the row (makePullReader, makeTimelineReader, makeCommentReader), and each one counts in the API lookup total.
  • The report lists arm landings (pass and breach) apart, after the maintainer's list, under their own contract lines; the head counts them and their breaches. cleared, tier-h and not-measured rows stay on the maintainer's list with an arm cell. A not-measured row makes the sweep INCOMPLETE (exit 2) and the banner names it. --json carries the reading as entries[].arm.
  • Neither dispatch awaits at module scope any more (main().then, selfTest().then): the guard imports this file at module scope, so an awaiting dispatch deadlocks the lazy import (exit 13). The two comments that said the lazy door is shut here were corrected.
  • The register header's arm section says what the sweep now does and its limit: it reads the record, not the run that wrote it. At the seat's request, the line that called the relay's review plan path-only now says the plan is not path-only from pm: the relay's governedReviewPlan still summons the approvers on a low-risk Tier H PR the seat may land #33540: governedReviewPlan (scripts/pm/fleet-write/execute.mjs) reads the arm with its readers. pm(fleet-write): the relay reads the low-risk skills arm before it summons approvers #33686 has since merged, so the line holds on main.

Part 2, the owner. Proposed below; no workflow and no rule line in this PR.

Part 3, the verifier residuals (PR #33616's records 6888257144 N5 and 6888534276 N7 and N10).

Residual Verdict Where
advisorModel not compared Fixed. Present and not null, it must equal the tier. Measured present on every assistant entry of a real session transcript, equal to the served model. verify-review-tier.mjs, 2 pin rows
A model value with a context suffix refuses an at-tier run Closed. Fails closed by design, and measured unreachable here: a session configured with [1m] records message.model, requestedModel, advisorModel and the identity attachment without the suffix (129 turns). Accepting a suffix would widen the accept set on an unseen shape. The header says so. header only
A nested sub-agent's transcript is not followed Fixed by refusing instead of following: an assistant turn that calls Agent, Task, Workflow or SendMessage (SUB_AGENT_TOOLS) refuses, naming the tool and asking for the transcript of the agent that ran the review, one that called no other agent (a seat that reviewed in-seat beside unrelated agents passes the review's own sub-agent file). Following would need the child's file, which the transcript does not name. verify-review-tier.mjs, 3 pin rows
A delegating session passing its own transcript passes whatever served its sub-agent Fixed by the same refusal (a session that spawned its reviewer is refused). 1 pin row
A cleanly truncated transcript prefix passes Closed. No honest run writes a prefix: the record is the final turn's text, so a prefix without that turn is a copy the seat cut, the dishonest route the card leaves to the audit. A completeness test would rest on stop_reason, which this session cannot measure for a sub-agent output; a wrong guess would refuse every at-tier record. Named in the header's boundary. header only
The verifier self-test spawn has no timeout and hides the child's failure lines Fixed. timeout: 120000, and childRunDetail puts the timeout or signal, the exit and the child's own failing case lines into the case's detail. post-stamped.mjs, 1 pin row
A raw relay comment / comment_edit op is not judged for tier Not here: it lives in scripts/pm/fleet-write/ (the relay's door), outside this card's file surface and on the same files as #33540. Belongs on its own card. report

Owner of the weekly audit

Proposed owner: a scheduled workflow, filed by the seat for the maintainer (this PR adds none). Reasons:

  • The audit is the compensating control for seat landings, and the skills seat lands most of the arm's PRs. A seat patrol would have the audited party run its own audit.
  • A workflow runs whether or not a seat is staffed; seats go off duty and a patrol stops with them.
  • It needs only an objectstack checkout with history, --repos objectstack, a topological --since-ref from the last run's printed tip (or --since 8d for overlap), and a read token. A ⛔ BREACH or not-measured row can be surfaced in the job summary; making the job red on entries[].arm.state === 'breach' would be a reader of --json, not a change here.

The interim, until the workflow lands: the skills seat's patrol runs node scripts/pm/check-governed-merges.mjs --since 8d --repos objectstack weekly and posts the arm section to the seat post. That line does not fit .claude/skills/pm-dispatch/references/lanes/skills.md: 35 lines against a ceiling of 35, headroom 0 (check-skill-line-ratchet), so it is reported here and not added.

Tests

Ablations, each restored and `git diff` checked empty: the first five on the first commit, the next six on the first review-fix commit, the last two on the second
the merge-time filter on comment rows removed      -> ✗ a-PASS-record-posted-AFTER-the-landing-is-a-BREACH
the apart filter in renderReport removed           -> ✗ arm-landings-are-listed-AFTER-the-maintainers-list-never-in-it
any non-unreadable record read as pass             -> ✗ no-record / FAIL-record / record-on-another-head is a BREACH
the sub-agent spawn refusal disabled               -> ✗ 3 verifier cases (nested reviewer, delegating session, other tool names)
the advisorModel comparison disabled               -> ✗ an advisor model off the tier refuses
the authorized-approval leg disabled               -> ✗ 1 case (an approval before the landing clears it)
the authorized-enqueue leg disabled                -> ✗ 1 case (an enqueue clears it)
timeline events counted AT merged_at, not before   -> ✗ 1 case (the measured queue-merge timeline)
the merge_commit_sha tie disabled                  -> ✗ 1 case (a pull merged as another commit)
the not-merged check disabled                      -> ✗ 1 case (a pull closed unmerged)
the updated_at filter disabled                     -> ✗ 1 case (a record edited after the landing)
the author binding disabled                        -> ✗ the untrusted-author cases
the edited-after note disabled                     -> ✗ 1 case (the BREACH names the edited comment)

Acceptance notes

  • An arm landing the maintainer's account enqueued is the maintainer's merge by the guard's own reading, whoever prepared it; the sweep follows that reading and does not second-guess it.
  • The record's existence is all the audit adds; it cannot tell a record from the run that served it (the verifier's boundary). Body and labels are read as they are now; a removed security label is still caught by the timeline.
  • The arm reads today's register, so a skills landing from before the arm existed (docs(skills): four automation, query and ui evals spell their own must_contain literals #33632 landed 05:14Z, the arm at 05:57Z) is listed apart when it qualifies. It had its PASS record, so it is not a breach.
  • contract-review.md's rule line on session evidence (「卡线程或席内复核」) does not yet say that a session which spawned or messaged a sub-agent is refused; the refusal text says what to pass. Carrier: the skills seat (the file is at its 63-line ceiling).
  • Raw relay comment / comment_edit ops not judged for tier: carrier, the skills seat, as its own card (relay files).

Verification

Gate list dispatch-gates --commands on this diff: 35 families, all run locally; results below. dispatch-gates --tier: no path-derived mandate (floor sonnet, default opus, ceiling fable); 449 changed lines, under 3,000. check-governed-merges --branch claude/project-thread-sgww6y: NOT governed (0 of 3 paths on the register).

On head c48e9f1 (rebased on main 48e69596, which carries #33686 and #33687), every derived family ran and exited 0: dispatch-gates --ran reconciles 35 derived, 35 run, 0 NOT-MEASURED. One gate went red on the first pass of the first round and was fixed in its own commit: check:pm-dispatch-gates refused a helper named like a compound self-test (childSelfTestDetail, not in COMPOUND_ANCHOR_LEDGER); it is now childRunDetail.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9d13278ddab087a998a58495abe9fdda109beced
Local-runs: none
Scope: scripts/pm/check-governed-merges.mjs, scripts/pm/verify-review-tier.mjs, scripts/pm/post-stamped.mjs + none

reviewFace returns no hits on this file list (ungoverned); the three files above are judged as the contract files, per the brief. Read: card #33603 with every comment, PR #33711 body and file list, the net diff against the merge base d4e3dcc6 (3 files, +330 −37), item F of the delegation review, and the check-runs on the head. Cited code read at the head, not reviewed: check-governed-queue-guard.mjs (runGuard, readLowRiskTier, recordVerdict, lowRiskRecordVerdict, the three readers), record-recognisers.mjs (regenCarry), contract-review.md lines 33 to 38, and PR #33686's diff of fleet-write/execute.mjs.

Check-runs on the head when this was written: 24 success, 23 skipped, 0 failed; Test Core (1/8) still in progress. Every lint family, both type-check families, Check Changeset, Check PR Size, the PR-body guards and Governed Surface Queue Guard are complete and green. The seat confirms the last shard before landing.

① Derived judgments

  • Verifier accept set, narrowed: an advisorModel present, not null and off the tier refuses. Right; null and absent pass, a non-string value refuses (closed).
  • Verifier accept set, narrowed: any assistant turn calling Agent, Task, Workflow or SendMessage refuses. Right for the failure it targets (a delegating session passing its own at-tier transcript for a review an off-tier sub-agent ran, the 11-15 shape). It also closes the in-seat route for any session that ever dispatched an agent; see N1.
  • Verifier accept set, unchanged: a model value with a context suffix still refuses (closed, with a measured reason); a cleanly cut prefix still passes (closed with a reason: no honest run writes one, and the record is the last turn's text). Both closures are sound against the card's "fixed with a pin row or closed with a reason".
  • Audit, new states pass, breach, tier-h, not-measured; pass and breach rows leave the maintainer's list for their own section. Right in shape; wrong in two cases, S1 and S2.
  • Audit exit: not-measured now makes the sweep INCOMPLETE (exit 2). Right. A breach row leaves the exit at 0: the tool stays report-only, which the PR says and the card does not forbid.
  • --json gains entries[].arm (additive). Right.
  • Both dispatches moved from a module-scope await to .then: a thrown main still exits 1, a self-test that misses its verdict still exits 1. main runs its synchronous prefix at the same point in module evaluation as before, so no new TDZ exposure. Right.
  • post-stamped.mjs: self-test only (a spawn timeout and a detail helper). A timed-out child has status null, so the case fails: the timeout path is closed. Right.

② Semver level

skip-changeset is right: three scripts/pm/ tools, nothing published, Check Changeset green. Clause-②: no is right: no accept set of a published surface moves. Metadata-protocol: none is right.

③ Boundary flags

The dev report carries no open_questions. Its three out-of-scope items and the header wording, judged:

④ Design judgment

No must-fix. Two should-fix, both in readArmLanding, both owing a delta review.

S1 (should-fix) — a landing the maintainer cleared is reported as a BREACH. In the queue, an entry the arm reads Tier S is cleared by an authorized approval or an authorized enqueue BEFORE the record leg runs (runGuard: if (approvals...state === 'approved') continue; if (enqueues...state === 'authorized') continue;), so such a landing never needed a record. readArmLanding reads neither: every landing the arm reads Tier S without a same-head at-tier PASS record is breach, printed under "NOT the maintainer's to recognise ... file it as an incident". Reachable today: a skills wording PR the maintainer approves or enqueues himself with no seat record, a record on an older head carried by his approval, and every pre-arm skills landing inside the first weekly windows (the PR body concedes the arm reads pre-arm landings; #33632 escaped only because it had a record). The jsdoc claim "the audit cannot read a landing differently from the queue that let it in" is false for these. The fix is small and stays one reader: the timeline is already in hand, and the guard exports enqueuerFromTimeline / authorizedEnqueueVerdict, makeReviewReader and authorizedApprovalVerdict; an entry either one clears is the maintainer's merge and stays on his list with that reason. Pin rows: an authorized enqueue with no record, an authorized approval with no record.

S2 (should-fix) — the record's head is never tied to the landed commit. The PR is taken from the commit subject (pullNumberFromSubject), the head from that PR NOW, and nothing checks that this PR produced this commit: neither merged nor merge_commit_sha === entry.sha is read. A commit on main whose subject ends with the number of an earlier arm PR that holds a PASS record reads pass and leaves the maintainer's list, provided its own paths fit the allowlist. That is the direct-push case the post-merge audit exists for (the queue catches everything that went through the queue). Also, a named PR that was closed unmerged has merged_at null, so the created-at filter is off and every comment counts. The fix: carry merge_commit_sha (and merged_at not null) off the attribution read the row already pays for; a mismatch is not-measured or breach, never pass. One pin row each.

Nits (no effect on a correct, honest run; follow-up or accepted deviation):

  • N1 The sub-agent refusal's reason says "pass that agent's own transcript". For a seat reviewing in-seat after dispatching unrelated agents that advice is wrong; the remedy there is to run the review in a sub-agent at the tier. Wording, plus the contract-review.md line the seat carries.
  • N2 The "from pm: the relay's governedReviewPlan still summons the approvers on a low-risk Tier H PR the seat may land #33540" header sentence: true only after PR pm(fleet-write): the relay reads the low-risk skills arm before it summons approvers #33686 lands. Order the landings; no edit needed.
  • N3 SUB_AGENT_TOOLS is an exact-name deny list. A skill that forks into a sub-agent and connector tools that message another thread or session are not on it. Not measurable from this seat; a follow-up card to measure what such a run writes.
  • N4 A comment created before the landing and edited after it counts (only created_at is read). With S1 fixed this matters only for a deliberate edit; printing "edited after landing" on the row from updated_at would cost nothing.
  • N5 A git-side read that fails inside the arm (the diff-tree status, a changeset's text, the fork predicate) folds into tier-h with a reason, not not-measured, so the sweep stays complete; and armCell prints only the first two reasons, which can hide that one. The header's "a read that fails is NOT MEASURED" overstates it.
  • N6 baseRef here is the landed commit's first parent; the queue used the merge group's base. For the second PR of a group the carry test compares against a different base. Fails toward breach at worst.

Held against the break list: a record on another head, below the tier, unsigned, FAIL, or posted after the landing is a breach (pinned, and each ablation went red per the PR body); a carried record is re-judged by the guard's own lowRiskRecordVerdict; unread pull, timeline or thread is not-measured and exit 2; an off-tier advisor, a nested reviewer and a delegating session refuse; the spawn timeout fails closed.

Implemented-by: claude/project-thread-sgww6y
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T07:15Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 42323f341b198c6c0625ac74f6ffd3eea8265c6b
Local-runs: none
Scope: scripts/pm/check-governed-merges.mjs, scripts/pm/verify-review-tier.mjs, scripts/pm/post-stamped.mjs + none

DELTA review from 9d13278ddab087a998a58495abe9fdda109beced (record 6890932729: PASS, should-fix S1 and S2, nits N1 to N6) to this head. The branch was rebased from d4e3dcc6 onto main 5604aeb0; main's moves between the two bases touch none of the three files, so the file-to-file diff of the two heads is the PR's own net change: check-governed-merges.mjs (the S1, S2 and N4 hunks, nine pin rows, battery floor 27 to 36), verify-review-tier.mjs (the N1 wording and one pin row, floor 6 to 7), post-stamped.mjs unchanged. reviewFace returns no hits (ungoverned); the three files are judged as the contract files, as in the prior record. Read: card #33603 and its five comments, the PR body and file list, the net diff against main, the prior record, and the check-runs on this head. Cited code read at this head, not reviewed: check-governed-queue-guard.mjs (entrySatisfied, runGuard, authorizedApprovalVerdict, enqueuerFromTimeline, authorizedEnqueueVerdict, recordVerdict, recordPassVerdict, lowRiskRecordVerdict, recordAuthorTrusted, the four readers) and fleet-write/execute.mjs on main. Read over REST, read-only: the timelines and merge fields of #33555, #33632, #33668, #33616, #33679, #33686 and #33687, and the record comments on six of them.

Check-runs on this head when this was written: 45 runs; 13 success, 22 skipped, 0 failed, 10 still in progress. Pending: Test Core (1/8), Test Core (2/8), Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · slot lookup & corpus, Lint · PM dispatch-gates, Lint · ESLint, Type Check · source gates, Type Check · consumer gates. Complete and green: Governed Surface Queue Guard, Check PR Size, the PR-body guards, Type Check · workspace, Type Check · debt ledger, Lint · scoped · tooling self-tests, Lint · scoped · query-options erasure. Lint · PM dispatch-gates and Lint · repo & tooling gates are the families that run these files' self-tests in CI: the seat confirms them before landing.

① Derived judgments

② Semver level

Unchanged: skip-changeset, Clause-②: no, Metadata-protocol: none are right. Three scripts/pm/ tools, nothing published. --json gains the cleared state and its by / who fields under entries[].arm (additive).

③ Boundary flags

  • The three seat-carried items of the prior record (the relay raw comment ops card, the contract-review.md rule line, the workflow owner card) are unchanged by the delta and still owed with this landing; the PR body still says Fixes #33603.
  • The PR body's two-minute check (three skills landings cleared by an os-zhuang enqueue, no BREACH) agrees with the timelines read here: all three were enqueued by os-zhuang.

④ Design judgment

No must-fix. One should-fix, new at this head, and two nits.

S3 (should-fix) — the audit's record leg does not apply the guard's author binding. Main moved under this branch: #33687 (card #33541) made runGuard drop every comment row whose author is not the relay or a GOVERNED_APPROVERS account (recordAuthorTrusted(row, recognisers.trustedAuthors)) before the locator reads the thread. readArmLanding hands recordVerdict every row that passes the time filter, whoever wrote it; the battery's own record() rows carry no user at all and read pass, where the guard would read them absent. So at this head the header's "one reader" and the jsdoc's "the audit cannot read a landing differently from the queue" are false in one leg. Effect: (a) a landing that did not go through the queue (the bypass case the audit exists for) is excused as pass by a record body any commenter posted before the merge; (b) a queue landing whose trusted PASS record is followed by an untrusted FAIL-shaped comment reads BREACH, since the locator takes the newest. Not introduced by the dev's hunks, and no regression against main (the sweep has no arm leg there), which is why it is not must-fix; but it is the same class as S2. The fix stays one reader: add recordAuthorTrusted to ARM_READER_EXPORTS, filter the rows with recognisers.trustedAuthors beside the time filter, give the battery's rows the relay login, and pin two rows (an untrusted PASS record is a BREACH; an untrusted FAIL after a trusted PASS changes nothing). The seat either takes it here (one more delta) or files it on this file before landing.

Nits:

  • N7 A record dropped by the edited-after-landing filter produces a BREACH whose reason reads "no ## Contract review record on its head", the same words as a landing with no record at all. The row tells the reader to file an incident; it should say a record was present and edited after the landing. Wording only; no live record is affected.
  • N8 The approval leg reads the review's state as it is now. An authorized approval given before the landing and dismissed after it reads DISMISSED and no longer clears; the landing then falls to the record leg. Toward BREACH only, and not seen on any landing read here.
  • N3, N5, N6 of the prior record stand as written.

Held against the break list for the delta: an enqueue or approval by a seat account, an unauthorized account, or after the landing clears nothing (pinned); an unread review list, timeline, pull or merge is not-measured and exit 2 (pinned); a pull closed unmerged or merged as another commit is never pass or cleared (pinned); a record created or edited after the landing does not count (pinned); the verifier's accept set did not widen (wording and one pin row only).

Implemented-by: claude/project-thread-sgww6y
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T07:48Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

…udges each on a same-head at-tier PASS record; verifier residuals

The sweep reads every skills landing again with the queue guard's own arm and
record readers on the landed commit: an arm landing is listed apart from the
maintainer's merges, PASS on a same-head at-tier PASS record that existed when
it landed, BREACH without one; a read that fails is NOT MEASURED and the sweep
INCOMPLETE. Neither dispatch awaits at module scope, so the lazy guard import
cannot deadlock.

verify-review-tier compares advisorModel and refuses a run that hands work to
another agent (its turns are in another file). post-stamped's spawn of the
verifier self-test carries a timeout and relays the child's failure lines.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW
… ties a record to the landed commit, and drops rows edited after it

The sweep now reads the guard's own leg order on an arm landing: an authorized
approval, then an authorized enqueue, then the record. A cleared landing stays
on the maintainer's list. Reviews and timeline events count only strictly
before merged_at (the queue's removal shares the merge's instant), comments
only when created and last edited by then. A record counts only on a pull
GitHub says landed as this commit. The verifier's sub-agent refusal now asks
for the reviewing agent's transcript.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW
…REACH names a record edited after the landing

The sweep's record leg drops a comment its author does not earn with the
guard's own recordAuthorTrusted, beside the time filter, so a record any
commenter posted cannot excuse a landing and an untrusted row cannot shadow a
trusted one. A trusted record dropped for an edit after the landing is named
in the BREACH reason.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c48e9f19a0f6610029f20510e4ad6c970c57374a
Local-runs: none
Scope: scripts/pm/check-governed-merges.mjs, scripts/pm/verify-review-tier.mjs, scripts/pm/post-stamped.mjs + none

DELTA review from 42323f341b198c6c0625ac74f6ffd3eea8265c6b (record 6891274033: PASS, should-fix S3, nits N7 and N8) to this head. The branch was rebased from main 5604aeb0 onto main 48e69596; main's moves between the two bases touch check-half-states.mjs, check-skill-line-ratchet.mjs and mailbox-open.mjs only, none of the three files and neither the guard nor the recognisers, so the file-to-file diff of the two heads is the PR's own net change: check-governed-merges.mjs alone, 24 lines added and 10 removed (the header sentence, ARM_READER_EXPORTS, the readArmLanding jsdoc and its row filter, the BREACH reason, the battery's record() helper, two new pin rows and one widened, battery floor 36 to 38). verify-review-tier.mjs and post-stamped.mjs are byte-identical between the two heads. reviewFace returns no hits (ungoverned); the three files are judged as the contract files, as in the prior records. Read: card #33603 and its five comments, the PR body and file list, the net diff against main (3 files, 412 added, 37 removed), the prior record, and the check-runs on this head. Cited code read at this head, not reviewed: check-governed-queue-guard.mjs (recordAuthorTrusted, loadRecordRecognisers, the runGuard author filter, its #33541 pins) and check-handover.mjs (FLEET_BOT_LOGIN).

Check-runs on this head when this was written: 43 runs; 7 success, 22 skipped, 1 cancelled, 0 failed, 13 still in progress. Pending: Plan Test Core shards, Type Check · source gates, Type Check · consumer gates, Type Check · workspace, Type Check · debt ledger, Lint · PM dispatch-gates, Lint · repo & tooling gates, Lint · scoped · tooling self-tests, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · slot lookup & corpus, Lint · ESLint, Lint · scoped · query-options erasure. Complete and green: Governed Surface Queue Guard, Check PR Size, PR-body guards (one run green; the cancelled run is its superseded twin), Auto Label, Test UI, Dogfood Regression Gate, filter. Nothing was run locally, so the new pin rows and the 38 floor are read, not executed: Lint · PM dispatch-gates, Lint · repo & tooling gates and Lint · scoped · tooling self-tests are the families that run this file's self-test, and the seat confirms them green before landing.

① Derived judgments

  • S3: closed. readArmLanding now filters each thread's rows with guard.recordAuthorTrusted(r, recognisers.trustedAuthors) first, then by creation time, then by last edit, and only the survivors reach recordVerdict. The predicate is the guard's own export, called through the lazily loaded module; recordAuthorTrusted is in ARM_READER_EXPORTS, so a rename is NOT MEASURED, never a second parser. No login is typed in this file. The order (author, then time) matches runGuard, which drops untrusted rows before any reader sees the thread; an untrusted row can therefore neither be the record nor shadow one, in the audit as in the queue. The header and the jsdoc sentence "one reader" are true again in this leg.
  • The battery rows post as the relay from the live loader. RELAY is readers.recognisers.trustedAuthors[0], read from the real loadArmReaders() result, and record() stamps user.login with it by default. If the loader did not yield it, the fallback string is not a trusted login, every PASS row of the battery reads BREACH and the battery goes red: the fallback cannot make a pin vacuous.
  • Pins, read against the code. (a) a-PASS-record-from-an-UNTRUSTED-author-is-not-PASS: a full at-tier same-head PASS body by some-commenter is a BREACH reading no record. (b) an-UNTRUSTED-FAIL-after-a-trusted-PASS-does-not-shadow-it: a newer FAIL by some-commenter leaves pass, and in the same assertion the identical newer FAIL by the relay is a BREACH reading "does not read PASS", so the control proves the first half is the author binding and not the locator ignoring the row. All three shapes the brief names are pinned. Floor arithmetic: two assertions added, one renamed, 36 to 38.
  • Fail closed when trustedAuthors cannot be loaded: yes, at three depths, never trust-everyone. (1) loadRecordRecognisers sets trustedAuthors to null when FLEET_BOT_LOGIN is not a non-empty string and then returns available: false, naming it; readArmLanding returns not-measured on recognisers.available !== true before the record leg, and the sweep is INCOMPLETE (exit 2). (2) A guard that fails to load or lacks recordAuthorTrusted is readers.available: false, also not-measured. (3) Were a recogniser set to arrive available with no list, recordAuthorTrusted requires Array.isArray(trusted), so every row is dropped and the landing is a BREACH. A row with no readable user.login is untrusted. A non-array comment read throws inside the try and is not-measured. The guard pins (1) and (3) itself (#33541-recordAuthorTrusted-is-exact-on-the-login-and-fails-closed-on-no-list, a-loader-that-cannot-read-the-relay-identity-is-unavailable); see N11 for the audit-side pin.
  • N7: closed. A trusted row created at or before the landing and edited after it is collected in editedAfter and the absent-record BREACH reason now ends "PR comment 900 was edited after the landing, so it does not count" (thread and comment id). Untrusted rows are never named, and a row created after the landing is not named either (it is not an edit). Pinned by the widened row, which requires both the old words and the new clause. See N9 and N10 for its edges.
  • Did the delta break anything? No. The time filter is the same predicate split in two: created at or before the landing and updated_at (falling back to created_at) at or before it, a missing time never counting; the prior every over the same two values reads identically. The record leg's other states, the approval and enqueue legs, the S2 ties, the report and --json are untouched. The live effect of the binding is nil on honest landings: records reach the threads through the relay, whose login is the first trusted author, and GOVERNED_APPROVERS are trusted beside it, exactly the set the queue read them with.
  • N8 (an approval dismissed after the landing no longer clears) and N3, N5, N6 are untouched by the delta and stand as nits.

② Semver level

Unchanged: skip-changeset, Clause-②: no, Metadata-protocol: none are right. Three scripts/pm/ tools, nothing published. The delta changes no output shape; only the text of one BREACH reason grows.

③ Boundary flags

  • The three seat-carried items (the relay raw comment ops card, the contract-review.md rule line, the workflow owner card) are unchanged by the delta and still owed with this landing; the PR body still says Fixes #33603.
  • The PR body was brought in line with the delta (the author binding, the edited-comment wording, 38 cases, 728 assertions, two more ablations). Those counts and ablations are the dev's report; none was re-run here.

④ Design judgment

No must-fix. No should-fix. Three new nits.

  • N9 The edited-after clause is appended only when the record reads absent. A landing with an older trusted record that reads FAIL, below tier or unsigned, plus a newer trusted PASS edited after the landing, reads "its record does not read PASS" (or the tier or signature words) with no mention of the dropped row. Toward BREACH only; wording.
  • N10 editedAfter names every trusted comment edited after the landing, not only a ## Contract review record: a relay claim or report comment on the PR or the card that was edited after the merge is named on an absent-record BREACH as "does not count", which can read as if a record had been there. The clause also reads "A, B was edited" for two rows. Wording on a row that is a BREACH either way; narrowing it to rows the recognisers read as a record would need a recogniser export, so it is not asked here.
  • N11 The audit's battery pins "readers that did not load" but has no row for the record leg's own recognisers.available !== true return, and none driving readArmLanding with a recogniser set that carries no trustedAuthors. Both branches are right as read and the guard pins the predicate and the loader; one row here (a rd whose recognisers are unavailable reads not-measured) would hold the audit's half. Separately, an untrusted PASS reads the same words as no record at all; the guard prints an informational line naming ignored authors (ignoredAuthorLines), and the audit could carry the same count. Neither changes a verdict.
  • N8, N3, N5, N6 of the prior records stand as written.

Held against the break list for the delta: a record by an author outside the relay and GOVERNED_APPROVERS is never pass (pinned); an untrusted row cannot turn a trusted PASS into a BREACH (pinned, with a trusted control); an unloadable trusted list is not-measured or drops every row, never trust-everyone (read; pinned in the guard); a trusted record created or edited after the landing still does not count, and the edit is now named (pinned); nothing in verify-review-tier.mjs or post-stamped.mjs moved.

Implemented-by: claude/project-thread-sgww6y
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T08:13Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet objectstack-fleet Bot mentioned this pull request Nov 15, 2026
7 tasks done
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

席位核对

Verdict: ACCEPT, seat lands (ungoverned, scripts/pm/)** · head c48e9f19a0f6610029f20510e4ad6c970c57374a · card #33603 · report 6890850812 · at-tier contract review 6890932729 (PASS with should-fix S1, S2 on 9d13278d), delta 6891274033 (PASS with should-fix S3 on 42323f34) and delta 6891542450 (PASS on this head, nits only; CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
… and a dismissed approval as it stood, and the verifier refuses skill and connector hand-offs (objectstack-ai#33762)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XL2xU3RxQwgawwt8cWF1NtV)_

Fixes objectstack-ai#33729

Clause-②: no
Metadata-protocol: none

domain:skills#1 · os-project-manager · session_01FEkQ5nqeu4RWPfV6S5jfCq

## 维护者速读

- 改了什么:合后审计 `check-governed-merges.mjs` 的 skills arm 一腿收紧 PR objectstack-ai#33711
评审留下的六处 nit:arm 需要的 git 读取失败或 fork 判定没测到时记 NOT MEASURED(不再折成 Tier
H);合并后才被撤销的授权批准按合并时的状态读;"合并后被编辑"一句挂在每种 BREACH
理由上,且只点名本该被读成记录的那条;没有受信作者名单记 NOT MEASURED,被作者绑定丢掉的评论按守卫原话计数。校验器
`verify-review-tier.mjs` 另拒 `Skill` 和向别的线程、会话、触发器发消息或启动它们的连接器工具。N6
以理由关闭,不改代码。
- 为什么改:卡 objectstack-ai#33729 是 objectstack-ai#33711 三份复核记录(6890932729、6891274033、6891542450)的 nit
清单,按 objectstack-ai#33718 裁决 B 一卡一 PR。
- 风险与回滚:只动两个 `scripts/pm/` 工具文件,不发布。方向全部是收紧:Tier H 可能变 NOT MEASURED(整轮
INCOMPLETE,退出 2);唯一由 BREACH 变 cleared 的是 N8
点名的情形(合并后撤销的授权批准),这是该项本身要的。校验器多拒一类转录。回滚即还原本 PR。
- 先看:`scripts/pm/check-governed-merges.mjs` 的
`readArmLanding`、`armReadsNotMeasured`、`reviewsAsLanded`;`scripts/pm/verify-review-tier.mjs`
的 `SUB_AGENT_TOOL_SHAPES`。
- 两分钟验证:`node scripts/pm/check-governed-merges.mjs --self-test && node
scripts/pm/verify-review-tier.mjs --self-test`,预期两行成功判定(741 条断言;30 个用例)。
- 需要你做的:无,席位落地。

## What changes

Card objectstack-ai#33729's checklist, item by item. Every reading still goes through
the queue guard's exports (`ARM_READER_EXPORTS`, now with
`ignoredAuthorLines`); no second parser.

| Item | Verdict | Where |
|:--|:--|:--|
| N3 `SUB_AGENT_TOOLS` is an exact-name list | Fixed.
`handsWorkToAnotherAgent` adds `SUB_AGENT_TOOL_SHAPES`: `Skill` (a skill
can fork into a sub-agent and reads the same in the file either way),
and a connector tool `mcp__SERVER__TOOL` whose tool name starts with
`send`, `message`, `start`, `fire`, `spawn`, `dispatch` or `delegate`,
or names a trigger. The `mcp__SERVER__TOOL` spelling was measured in a
session transcript (`mcp__hearthbot__message_thread`). Fail closed: a
read-only connector tool that fits the shape refuses too. |
`verify-review-tier.mjs`, 3 pin rows |
| N5 a git-side read failing in the arm folds into `tier-h` | Fixed.
`readArmLanding` hands the arm a git reader that records every throw;
when the arm reads H with a recorded throw, or with the fork predicate
not measured, the landing is `not-measured` with the failed read and the
arm's reasons (`armReadsNotMeasured`). One exception, read rather than
assumed: `git show SHA:PATH` throws for a changeset the commit deleted,
and the arm reads that H by itself; an empty `git ls-tree` of that path
at that commit proves the deletion, so it stays a measured Tier H. The
Tier H cell now says how many reasons it did not print (`(+N more)`). |
`check-governed-merges.mjs`, 5 pin rows |
| N6 `baseRef` is the first parent, not the merge group's base | Closed
with a reason, no code change. `baseRef` is read only by the carry test
(`regenCarry` in `record-recognisers.mjs`), through `git merge-base BASE
HEAD`. Between the merge group's base and the landed commit's first
parent lie only the squash commits of entries ahead in the same group. A
head that contains one of those was pushed after that entry landed,
which takes it out of the queue, so its next group's base already holds
it. Either way `git merge-base` of the two bases with a queued head
names the same commit, and the carry reads the same. The reasoning is in
`readArmLanding`'s jsdoc. | jsdoc |
| N8 an approval dismissed after the landing no longer clears | Fixed.
`reviewsAsLanded` puts a review that now reads DISMISSED back in the
state the timeline's `review_dismissed` event names
(`dismissed_review.state`, matched by `dismissed_review.review_id`) when
that event is dated at or after the landing. A dismissal before the
landing, with no event, or of a non-approval clears nothing. The event's
shape is GitHub's documented timeline shape; no live dismissal was found
to measure it on, and a shape that does not match leaves the review
DISMISSED (toward BREACH, as today). | `check-governed-merges.mjs`, 2
pin rows |
| N9 the edited-after clause rides only `absent` | Fixed. It is appended
to every BREACH reason (`absent`, `below-tier`, `unsigned`, `not-pass`).
| 1 pin row |
| N10 the clause names any trusted comment edited after the landing; "A,
B was edited" | Fixed with the guard's own reader, no new recogniser:
the record leg runs once more, read-only, on the threads with the edited
rows put back (`guard.recordVerdict` on `unedited`), and the clause
names the edited row only when that run would have read it as the
record. So a claim or report edited after the merge is never named, and
the clause names one comment. | 2 pin rows |
| N11 no row for unavailable recognisers or a set without
`trustedAuthors`; an untrusted PASS reads like no record | Fixed. A
recogniser set with no trusted-author list (null or empty) is now
`not-measured` before any thread is read, where it read BREACH (every
row dropped); both readings fail closed, and a missing reading is NOT
MEASURED. The comments the author binding dropped (those existing at the
landing) are counted on `pass` and `breach` rows in the guard's own
words (`ignoredAuthorLines`). | 3 pin rows |

Direction check against the order ("nothing here may make the audit read
`pass` where it reads BREACH or NOT MEASURED today unless the item says
so"): no state moves to `pass`. N5 and N11 move `tier-h` and `breach` to
`not-measured`. N8 moves a `breach` to `cleared` only for an authorized
approval dismissed after the landing, which is what N8 asks.

## Tests

<details><summary>Self-tests on head 9177c4e</summary>

- `node scripts/pm/check-governed-merges.mjs --self-test`: exit 0, `✓
check-governed-merges --self-test: 741 assertions`. The `⚖️ objectstack-ai#33603`
battery has 51 cases (floor 38 to 51): the 13 new rows above.
- `node scripts/pm/verify-review-tier.mjs --self-test`: exit 0, `✓
verify-review-tier self-test: 30 cases pass across 6 batteries` (battery
floor 7 to 10).

</details>

<details><summary>Ablations (each through scripts/ablation-replace.mjs,
anchor hit once, restored to the HEAD blob with an empty git diff
HEAD)</summary>

| Mutation | Red rows |
|:--|:--|
| `if (false && unread.length > 0)` (N5) | the three N5 NOT MEASURED
rows |
| delete `if (listed === '') continue;` (N5 deletion probe) | the
deleted-changeset control |
| `restored.set` removed (N8) | the dismissed-after-landing row |
| trusted-author check disabled (N11) | the no-trusted-author-list row |
| clause on any edited row (N10) | the edited-claim row |
| clause dropped from the reason (N9) | the N9 row, the N10 one-record
row and the existing N7 row |
| delete the `Skill` shape (N3) | the Skill row |
| delete the trigger shape (N3) | the connector-tool row |

</details>

## Acceptance notes

- N8's restore reads only GitHub-written timeline events, and only to
restore a state the queue saw; it never invents an approval.
- N3 widens what the verifier refuses, so an honest review run that
calls `Skill` now refuses; the remedy is the existing one (review in an
agent that calls no other).
- Carried elsewhere, unchanged: raw relay comment tier objectstack-ai#33715,
`contract-review.md` session evidence objectstack-ai#33716, weekly audit owner objectstack-ai#33717.

## Verification

<details><summary>Derived gates on head 9177c4e: 33 of 33 exit 0
(dispatch-gates --ran: 33 derived, 33 run, 0 NOT MEASURED)</summary>

```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-skills-token-ratchet.mjs :: exit 0
node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:watch-hint-literal :: exit 0
```

Also run: both scripts' own `--self-test` (exit 0, outside the
derivation), and
`ui/scripts/__tests__/check-governed-queue-guard.test.ts`, the one test
file naming `check-governed-merges.mjs` (`VERDICT command-exit 0`,
10/10).

</details>

- `node scripts/pm/dispatch-gates.mjs --tier`: no path-derived mandate
(the surface hits none of the 4 declared globs); 205 changed lines,
under 3000.
- `node scripts/pm/check-governed-merges.mjs --branch
claude/project-thread-qz1fgc`: 0 of 2 paths hit the register, NOT
governed; size 205 (+183 / −22).
- `skip-changeset`: two `scripts/pm/**` tools, nothing published.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5nqeu4RWPfV6S5jfCq)_

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5nqeu4RWPfV6S5jfCq -->

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…n open must-fix or should-fix (objectstack-ai#33736)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XLnqJDfSWuHodQt1yWeTRqD)_

Fixes objectstack-ai#33604

domain:skills#1 · os-project-manager · session_01FEkQ5pJkb8Rbcrj6yEXfiA

Clause-②: no
Metadata-protocol: none

## 维护者速读

- **改了什么**:合并队列守卫对 Tier S 的复核记录多读三件事:记录虽写 PASS 但同时列着未结的 must-fix 或
should-fix,不放行;记录别处(任一标题、小写/列表/表格/标题里的 verdict 行、单独一行 FAIL)写着
FAIL,不放行;题头之上的 `VERDICT:` 行也计数。同一 head 上后一条把它们关掉的 delta
记录才放行(引用前一条记录的等级、写明 closed 的不算未结)。规则文字的一句(contract-review.md ①)由 objectstack-ai#33731
带,本 PR 不碰该文件。
- **为什么改**:规则说 should-fix 要先做 delta 复核再落地,守卫却只认 PASS 这个词,带着未结 should-fix
的 PASS 记录能直接入队(卡 objectstack-ai#33604,加上 objectstack-ai#33687 复核记录 6890532571 的 N2、N3)。
- **风险与回滚**:只收紧放行面,不放宽:原来清不了的照样清不了。读不懂的等级一律不放行(fail closed),复核者要按 `S1
(should-fix)` 或 `No must-fix, no should-fix.` 的写法落记录,简报模板已同步写明。回滚即
revert。
- **先看**:`scripts/pm/check-half-states.mjs` 的
`contractReviewRecordReading`(唯一读法);`scripts/pm/check-governed-queue-guard.mjs`
的 `recordPassVerdict`;`record-recognisers.mjs` 的
`BRIEF_GRADE_LINES`(教复核者的写法)。
- **两分钟验证**:`node scripts/pm/check-governed-queue-guard.mjs --self-test
&& node scripts/pm/check-half-states.mjs --self-test && node
scripts/pm/record-recognisers.mjs --self-test`,预期三个全绿(526 / 5268 / 389
例)。
- **需要你做的**:无,席位落地(非受管面)。

## What changes

1. **One reader, `contractReviewRecordReading`**
(`scripts/pm/check-half-states.mjs`, beside
`contractReviewVerdictLines`, on the same regexes; ⛔ no second parser).
For a comment with a `## Contract review` heading it returns:
- `verdicts`: every explicit `VERDICT:` line's word, over the WHOLE
comment (N3: lines above the heading count).
`contractReviewVerdictLines` is now a view of this.
- `failSpellings`: lines that read FAIL outside the explicit form (N2),
in every verdict-bearing shape measured: a caps FAIL anywhere in any `##
Contract review` heading's tail; a `verdict` key in any case under a
heading mark, quote, bullet or emphasis, after up to two words (`Overall
verdict:`), with a parenthetical (`Verdict (delta):`), with `:`, a dash,
`=` or `is`, reading FAIL, FAILED or FAILS; a table row with a verdict
cell and a FAIL cell in either order; a bare `FAIL` line followed only
by a separator, a full stop or `!`. Prose that merely mentions FAIL (`-
Newest FAIL over an older PASS`, `FAIL, none or two refuse`) is not one.
- `findings`: per mention of the hyphenated grade word: `open` (named
with its grade at the line's lead: `**S1 (should-fix) — …**`, `- **S2
(should-fix) — …**`, `M1 (must-fix, …)`, `- should-fix: …`); `closed` (a
named finding whose line goes on to say closed and ENDS there: only
closing emphasis, `.`, `;` or `on this head` / `at this head` / `here`
may follow, and a full stop that closes the bold title may lead a new
sentence: `- **S1 (should-fix): closed.**`); `none` (`must-fix: none`,
same terms); a title that merely opens with either word (`closed in
part`, `Closed PRs …`, `none of …`) stays OPEN; `cited` (inside `(record
ID: …)`, the measured delta preamble); negated (`No must-fix, no
should-fix.`, `No new should-fix.`, `Neither must-fix nor should-fix.`,
`0 must-fix`, a second grade carried by `or` or `/`; after a comma or
`and` the second grade needs its own `no`); or `unreadable` (any other
mention, e.g. `Two should-fix, both …` or `No must-fix, should-fix S1
and S2 below.`).
2. **The guard decides** (`recordPassVerdict`, every Tier S leg
including the low-risk arm): after the existing one-PASS-line rule, a
record also refuses (`not-pass`, naming the comment id) when it carries
a FAIL spelling, names an open must-fix or should-fix, has an
unattributable grade, or its reading lacks the grade fields (fail
closed). The recogniser loader now requires `reading` (re-exported by
`record-recognisers.mjs`) in place of `verdictLines`. A later same-head
delta record that cites the prior record's grades, names what it closes
(`S1: closed`, `S1 (should-fix): closed`) and raises nothing new clears,
because the locator already reads the newest same-head record. The
unattributable refusal names the shapes the reader takes; it never asks
for a sentence the record may already carry.
3. **The brief teaches the grammar** (`record-recognisers.mjs`
`BRIEF_GRADE_LINES`, +3 lines): spell a finding `S1 (should-fix) — …`, a
clean round `No must-fix, no should-fix.`, and close by id alone.

## Acceptance notes

- **Round 3 (review 6892305129, S1 and N2).** S1: the round-2
closed/none reading took the first word after the grade, so `S1
(should-fix): closed in part, still open for X`, `**S2 (should-fix) —
Closed PRs are still read as merged…**`, `- **S2 (should-fix) — none of
the three ablations ran…**`, `S1 (should-fix) — closed on the prior
head, reopened by this delta` and `- should-fix: none of S1, S2 is
fixed` cleared; the state word must now end the finding, and each of
those six refuses again (pinned, with a control that `closed here.`, a
closed bold title followed by a sentence, and `closed;` still clear). N2
(cheap ones taken): `Verdict: FAILED`, `Verdict is FAIL`, `Verdict
(delta): FAIL`, `| FAIL | Verdict |`, `FAIL!` and a late FAIL in a
heading tail (`— PASS withdrawn, FAIL`) now refuse. Not taken: a verdict
column carried by a header row (needs table state). Accepted nits N1,
N3, N4 unchanged; N3's `- Leg verdict: fail-closed …` refusal stands
(fail closed).
- **Round 2 (review 6891926185, S1 and S2).** S1: the clean delta
6891542450 (objectstack-ai#33711's final record, nits only) was refused for its
preamble `(record 6891274033: PASS, should-fix S3, nits N7 and N8)`;
citations, named-and-closed lines and `No new should-fix.` now read
clean, pinned on the measured preamble. S2: `### VERDICT: FAIL`, `##
Verdict: FAIL`, `| Verdict | FAIL |`, `Overall verdict: FAIL`, `Verdict
— FAIL`, `FAIL.` and `**FAIL.**` now refuse beside one PASS line, and
`No must-fix, should-fix S1 and S2 below.` is unreadable (fail closed),
one pin each. Nits taken: N1 (`Neither … nor`, `0 must-fix`, `must-fix:
none`, `- should-fix: none` read clean), N3 (every heading's tail is
read). Not taken: N2 (the grade is read off the hyphenated word only;
the brief spells it and every measured record uses it), N4 (a prose
bullet opening `- FAIL — …` refuses; fail closed, a repost cures it).
- **Grammar measured, not assumed.** Read on the real records of PRs
objectstack-ai#33686 (6890432656), objectstack-ai#33687 (6890532571), objectstack-ai#33688 (6890622635 round 1,
6890939010 delta) and objectstack-ai#33711 (6890932729) with the new reader, plus the
review's own measurement of objectstack-ai#33711's deltas 6891274033 and 6891542450,
objectstack-ai#33720 (6891083453) and objectstack-ai#33726 (6891576194):
- objectstack-ai#33686, objectstack-ai#33687: one PASS, no FAIL spelling, no open grade, nothing
unreadable → still clear.
- objectstack-ai#33688 round 1: S1, S2 should-fix open → refused (correct: they earned
a delta).
- objectstack-ai#33688 delta 6890939010: S1, S2, N1 closed (`- **S1: closed.**`, no
grade word), but it raises **S3 (should-fix, the seat's, no head
change)** on the PR body → refused. If objectstack-ai#33688 is still queued when this
lands, it needs a later same-head record closing S3.
- objectstack-ai#33711 round 1: S1, S2 should-fix open plus the count line `No
must-fix. Two should-fix, both …` (unreadable) → refused; delta
6891274033 raises S3 → refused; delta 6891542450 (cites the prior
grades, closes S3, `No must-fix. No should-fix.`) → clears.
  - objectstack-ai#33720, objectstack-ai#33726: nits only → clear.
- **Rule sentence owed, carried by PR objectstack-ai#33731.** The seat moved
`contract-review.md` to objectstack-ai#33718 (PR objectstack-ai#33731) mid-round, so this PR leaves
it untouched. The sentence the rule owes, measured to fit line 51 in
place (63/63 lines, 119/120 bytes, paid by dropping 「两条」 and the second
「Tier」): `- 请审/求批与落地前检,过则 Tier S 入队、H 等人批:① 现 head 同形达档 PASS 在案,无前两级。`
(前两级 = must-fix/should-fix, the term line 45 already uses).
`check-skill-line-ratchet` was green with it on an earlier head
(148b0ce6, dropped).
- **Fail closed costs a wording rule.** A record that quotes the grade
word in prose (`the should-fix rule says …`) is refused as unreadable.
The brief now names the two shapes the reader accepts; a seat can always
repost a clean record.
- **Not changed:** the H43 patrol (`contractReviewVerdictOf`, first
match under the heading) and `check-owed-reviews.mjs` still read no
grades; that is follow-up F1 of record 6890532571, not this card.
- Ablation, round 3 (on 38cc292, guard self-test, restored, `git diff
HEAD` empty): the state-word tail reverted to `(closed|none)\b` → the r3
titled-open row red (all six CLEARED); the heading-tail caps FAIL
deleted → the r3 N2 row red.
- Ablation, round 2 (each reader branch mutated on 7c2fb52, guard
self-test run, restored, `git diff HEAD` empty): citation off → the
measured-delta row red; closed/none state off → 2 rows red; table-cell
regex off → the S2 FAIL-forms row red; comma carrying the denial → the
S2 comma row red.
- Ablation, round 1 (each guard branch mutated with
`scripts/ablation-replace.mjs`, run, restored; `git diff HEAD` empty
after each): open-grade branch off → 3 objectstack-ai#33604 rows red; FAIL-spelling
branch off → 2 N2 rows red; unattributable branch off → 1 row red;
reading below the heading only → the N3 row red.

## Verification

- `dispatch-gates --tier`: no path-derived model mandate (floor sonnet,
default opus); built on the claim's default.
- `check-governed-merges --branch claude/project-thread-78jrbs`: **NOT
governed** (0 of 3 paths on the register; `scripts/pm/**` is not a row);
190 changed lines, under 3000. Ordinary queue landing.
- Self-tests on the final head 38cc292: `check-governed-queue-guard
--self-test` 526 pass; `check-half-states --self-test` 5268 pass (11 new
H43 rows); `record-recognisers --self-test` 389 pass (1 new cross-tool
pin: the brief's shapes are the guard's).

<details><summary>Derived gate list on head 38cc292: 49 derived, 49 run
green, 0 NOT MEASURED</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` on head 38cc292 (round 3, after merging
`origin/main` again at 34c6eec; main's nine new commits touch none of
the three files), each exit captured before any pipe; `--ran`
reconciliation: "49 derived famil(ies) accounted for — 49 run, 0
NOT-MEASURED". `check:doc-formula-expressions` ran after `pnpm --filter
"@objectstack/lint..." build` under the verify lock. The two
`check-closing-keyword-parity` runs overlapped a five-second ablation
window of the reader, a file they do not read; both were re-run on the
restored tree, exit 0.

```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs --self-test :: exit 0
node scripts/check-release-section-coverage.mjs :: exit 0
node scripts/check-release-section-coverage.mjs --strict :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/scheduled-full-run.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/board-snapshot.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/sweep-closed-cards.mjs --self-test :: exit 0
node scripts/render-release-coverage-anchor.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:closing-target-claim :: exit 0
pnpm check:commit-card-trailers :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:partof-closing-keyword :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:single-claim-paths :: exit 0
pnpm check:watch-hint-literal :: exit 0
```

- Rounds 1 and 2 ran the same 49 on bbe4fba and 7c2fb52, all green; an
earlier pass on 148b0ce6 (with the `contract-review.md` line, since
dropped) was stopped at 41 of 55, all green.
</details>

- Every family CI runs beyond the derived list: read off this PR's
check-runs.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5pJkb8Rbcrj6yEXfiA)_

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5pJkb8Rbcrj6yEXfiA -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…3766)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XBbeqTDBizjSe5fUrtDQ4Kj)_

Fixes objectstack-ai#33717

domain:skills#1 · os-project-manager · session_01FEkQ5mSZZN2eYXjy9RHmAu

Clause-②: no
Metadata-protocol: none

## 维护者速读

- **改了什么**:`fleet-patrols.yml` 加第五个任务 `governed-merges-audit`,每周日 23:31
UTC(周一 07:31 北京时间)对过去一周的 `main`
跑合并后受管面审计(`check-governed-merges.mjs`,不改脚本)。干净的一周什么都不写;出现低风险技能臂的 ⛔
BREACH,或这一周有读不到的部分(NOT MEASURED),就开或更新同一张给你的卡。
- **为什么改**:你在 objectstack-ai#33717 选了「每周定时工作流」:objectstack-ai#33711
合并后加一个每周任务,只在发现违规或读不到时开一张卡给你。在此之前审计只靠被审计的 skills 席位自己手跑。
- **风险与回滚**:不进必过检查、不挡任何 PR、任何席位的开工都不以它为前提(避开 objectstack-ai#208
的坑)。读不全的那周会让本任务变红并开卡;BREACH 开卡但任务保持绿。卡挂 `governed-merges-audit` 身份标签加
`pm:awaiting-maintainer`,正文带 `Maintainer-action:`
行,席位不会派发它。卡开着时,之后的坏周会把卡上尚未处理的 BREACH 行原样带进新正文,并在卡上留一条评论通知;BREACH
行靠你在卡上记下的裁定了结(重跑永远读不成干净),只有 NOT MEASURED
行靠手动重跑读干净了结;全部了结后由你关卡。关卡即视为卡上各行已裁定:之后窗口内再读到同一行,只列在「Already ruled on card
#N」下,不再当新违规报给你;若只剩已裁定的行且没有读不到的部分,就不开卡。回滚即 revert 本 PR。
- **先看**:`.github/workflows/fleet-patrols.yml` 文件末尾新任务的头注释与 `File or
refresh the audit card` 一步(写卡的唯一一步,PR 运行与非 main 分支都不写);其次 `on.schedule`
里新加的 cron。
- **两分钟验证**:看本 PR 上 Fleet Patrols 的 `Weekly governed-merges audit` 检查:它在
PR 上只扫 24 小时、不写卡,摘要里应写 `verdict clean` 并列出条目数。
- **需要你做的**:审阅后合并(Tier H,工作流面)。合并后席位会请你在 Actions 里手动触发一次 `patrol =
governed-merges-audit` 读首个整周结果;首个定时运行转绿前,skills 席位照旧每周手跑。

## What changes

One file, `.github/workflows/fleet-patrols.yml`: a fifth job,
`governed-merges-audit`, beside the four daily patrols, plus the shared
parts a fifth job needs (header table, the `schedule:` cron, the
`workflow_dispatch` `patrol` option, the count words "four clocks" /
"all four").

- **Clock.** `31 23 * * 0` (Sunday 23:31 UTC), twinned in the job's
`if:` and in `PATROL_SCHEDULE`. Hour 23 UTC carries no other scheduled
workflow in this repository (inventory of every `cron:` under
`.github/workflows/` at bd96ec9); board-snapshot spends the shared
`GITHUB_TOKEN` budget at 2/8/14/20 and `stale.yml` runs at 01:00.
- **What it reads.** `node scripts/pm/check-governed-merges.mjs --since
7d --repos objectstack --repo-root objectstack=$RUNNER_TEMP/audit-main
--json`, over a fresh `--shallow-since` clone (10 days) of `main`, not
the job's own checkout: a `pull_request` checkout is a merge ref, and
the sweep refuses a window its history does not cover. The script itself
runs from the job's checkout, so a PR runs the version it carries.
`--repos objectstack` because the runner holds no sibling checkout (an
absent checkout reads UNAUDITED by design). `GITHUB_TOKEN` is the
script's env channel; no `pnpm install` (the sweep and the queue-guard
readers load on builtins and repo-local modules only).
- **One retry, for one refusal.** If `main` moves between the clone and
the script's own `ls-remote` probe, the sweep refuses the mirror as
stale (exit 1, `[stale-mirror]`, before any API read). The step
re-fetches and re-runs, at most twice. Every other refusal stands.
- **Verdict.** A github-script step reads the JSON: `breach` (an entry
whose `arm.state` is `breach`), `unread` (an UNAUDITED repo, a WINDOW
EDGE, an attribution error, an arm `not-measured`, exit 1, no or
unparseable JSON, or exit and `complete` disagreeing),
`breach-and-unread`, or `clean`. It writes the run summary on every
trigger.
- **Card.** Only on a non-clean verdict, only on `schedule` /
`workflow_dispatch`, only on `refs/heads/main` (the card step's `if:`
carries the `pull_request` guard the watchdog pin requires). Identity
and de-dup copy the platform-checklist watchdog: identity label
`governed-merges-audit`, plain-text marker `os-governed-merges-audit`,
stable title `governed-merges audit: a BREACH or an unread week on
main`. An open card is refreshed in place (body only, labels untouched);
a closed one is not reopened, and a new card names it. Labels on create:
`governed-merges-audit`, `pm:awaiting-maintainer`; the body's
`Maintainer-action: … — done when …` line is the one that state owes
(H55).
- **Refresh keeps what is unhandled, and says so.** On refresh, every
keyed BREACH row (`PR #N` or `commit SHA12`) already on the open card
that this run did not read again is carried into the new body, marked as
carried; a row leaves only when the card is closed (deleting a row by
hand does not retire it: a row still inside the window is read again and
returns, and the body says so). NOT MEASURED rows are one run's reading
and are not carried. Each refresh also posts one comment: the run link,
the BREACH rows new to the card, the counts read again, carried and
already ruled, the NOT MEASURED count, and how many lines under the
BREACH heading carry no row key (a hand-edited row the carry-forward
cannot see). A section is read from its heading to the next heading or
the footer's first line, blank lines included, so a row set apart by a
blank line is still carried; blank and footer lines are never counted.
`issues.createComment` sits in the same guarded step.
- **A ruled row is not announced again.** Closing the card is the
maintainer's word that every row on it is ruled, so the keys on the
newest closed card (closed within `AUDIT_HISTORY_DAYS`, 10, and not as a
duplicate; both its BREACH and its already-ruled sections) are read as
ruled. The day bound means an old ruling can never hide a reused key. A
later run that reads one again inside the 7-day window (a dispatch with
`patrol=all`, or the scheduled run's skew overlap) lists it under
"Already ruled on card #N", not as a new BREACH; a run whose every
BREACH row is ruled and that reads nothing unread files nothing.
- **What closes the card.** The `Maintainer-action:` line: rule on each
BREACH row (kept, or rolled back) and record the ruling as a comment on
the card; re-run the job by hand for any NOT MEASURED row; done when
every BREACH row has the ruling recorded on the card and a manual run
reads no NOT MEASURED row, then close the card. A BREACH never reads
clean on a re-run (the arm reads only evidence that existed before the
landing, so the entry reads breach until it leaves the 7-day window), so
a clean re-run is asked only of NOT MEASURED rows.
- **Colour.** The job goes red when the sweep exit is not 0 (the week
was not read in full), after the card is filed. A BREACH files the card
and stays green. The sweep step has its own 12-minute timeout (the 7-day
sweep measured 222 s), under the job's 20: a timed-out sweep records no
exit code and leaves no complete JSON, so it reads NOT MEASURED, files
or refreshes the card on `main`, and the run goes red.
- **Artifact.** The sweep's JSON and stderr are uploaded as
`governed-merges-audit` (30 days), so the card's run link carries the
whole reading.
- **`pull_request` run.** `AUDIT_SINCE` is `24h` on a pull request: it
proves the clone, the token's reads, the JSON contract and the rendering
at a few dozen API reads, and writes nothing.

## Why

Ruling-ref: Leehom, option 0 「每周定时工作流」 on objectstack-ai#33717 (record comment
6891841310), consequence line 「objectstack-ai#33711 合并后加一个每周任务,只在发现违规或读不到时开一张卡给你。工作流
PR 是 Tier H,由你合并。」. PR objectstack-ai#33711 (card objectstack-ai#33603) gave the sweep its low-risk
arm leg (`pass` / `breach` / `cleared` / `tier-h` / `not-measured`);
this job is its standing caller.

## Acceptance notes

- **Routing of the card (a choice inside the ruling, named for the
maintainer).** The ruling says "a card for you". The board's two
maintainer-facing states were read: `needs-user-decision` owes a
four-facet analysis on the card face (`check-half-states` H62), which a
machine cannot write, and its inbox counts rulings owed;
`pm:awaiting-maintainer` is "decided, one act of the maintainer's
remains" and owes a `Maintainer-action:` line (H55), which this card
carries. AGENTS.md Prime Directive 14 already decides a seat landing
without its record ("a seat violation, filed and rolled back. No seat
judges this"), so the act is the maintainer's. Without `pm:queue` the
card is outside H74's population. If the maintainer prefers another
route, it is one env value (`ANCHOR_STATE_LABEL`).
- **`pull_request` paths filter not widened.** The job names no path
beyond this workflow file, the same posture as the watchdog:
`check-governed-merges.mjs` and the queue-guard readers change several
times a week, `check:pm-governed-merges` already runs their self-test
per PR, and a live sweep on each would spend the shared token budget.
Widening it would also be an edit to the frozen
`PR_TRIGGER_ALLOWED_PATHS` pin, outside this card's surface. Because a
`pull_request` run exercises every job, a PR that matches a sibling
patrol's path (`scripts/pm/check-half-states.mjs` among them) also runs
this job's 24h sweep, writing nothing; the paths comment says so.
Consequence: a PR that changes the sweep's `--json` shape does not run
this job; the verdict step reads a shape it does not recognise as NOT
MEASURED (a card and a red run), never as clean.
- **Known gap, stated in the job header.** `--since 7d` on a weekly
clock overlaps consecutive runs by the script's 1 h skew budget; a run
that does not fire leaves its week unread and nothing here sees it (the
Actions run list does). A missed week is re-read by hand with a wider
`--since`.
- **Token budget, not measured on a runner.** A 7-day sweep measured
from a cloud container on 2026-11-15 (base bd96ec9): 1044 mainline
commits, 191 governed entries, 71 read on the low-risk arm (16 pass, 28
cleared, 27 tier-h, 0 breach, 0 not-measured), complete, exit 0, 222 s.
That is roughly 400 to 550 API reads against `GITHUB_TOKEN`'s
per-repository hourly budget. Whether a repository-wide budget leaves
room at 23:31 UTC on a Sunday is read by the first full run, and a
shortfall surfaces as attribution errors, i.e. NOT MEASURED, never as
clean.
- **Out of scope, noted.** The sweep judges BREACH only on the low-risk
skills arm; the other Tier S legs (`.claude/**`, the workflows split)
are listed as governed merges without a record verdict. This job reports
what the script reads and does not change it.

## Verification

Head `0f23dcd2` (review fixes `a41dcd29`, `86d72352` and `0f23dcd2` on
top of `fdffef2a`), base bd96ec9.

<details><summary>Live sweep, same flags the job runs (container,
2026-11-15)</summary>

- `--since 7d --repos objectstack --json` on a 10-day shallow checkout:
exit 0, `complete: true`, 191 entries, arm states `{none: 120, pass: 16,
tier-h: 27, cleared: 28}`, 222 s.
- `--since 24h --repos objectstack --repo-root objectstack=PATH --json`
on a fresh `git clone --no-checkout --single-branch
--shallow-since=DATE` (DATE nine days back) of main (187 MB, 31 s): exit
0, complete, 43 entries, horizon "shallow, oldest visible 2026-11-06
(predates the window)".
- The sweep and `check-governed-queue-guard.mjs` (with
`loadRecordRecognisers`) load from a tree with no `node_modules`.

</details>

<details><summary>The two github-script bodies, run offline against
fixtures</summary>

A harness (scratch, not committed) parsed this workflow, ran the verdict
step and the card step with stub `core` / `context` / `github`:

- the real 7-day JSON: verdict `clean`, no write;
- the same JSON with one entry set to `breach` (subject carrying a
less-than fragment and an at-sign) and one `not-measured`, exit 2:
verdict `breach-and-unread`, one `create` with labels
`governed-merges-audit,pm:awaiting-maintainer`, the subject's angle
brackets replaced and the at-sign defused, `Maintainer-action:` line
present, next deadline computed weekly;
- exit 1 with stderr and an open card: `unread`, one `update` of that
card, stderr fenced in the body;
- unparseable JSON and a closed prior card: `unread`, one `create`
naming the prior card;
- a four-week chain on one open card (round 1 fixes): week 1 files the
card with a BREACH row; week 2 reads only a NOT MEASURED row, and the
refresh carries the week-1 row (marked carried) and comments "new to
this card: none … carried from earlier runs: 1"; week 3 reads a new
BREACH on a body with CRLF line ends, and the body lists the new row
plus the carried row with the carried mark exactly once, drops week 2's
NOT MEASURED rows, and the comment names the new row; week 4 re-reads
the week-1 row, which is listed once and counted as read again, not
carried. Every body carries a `Maintainer-action:` line with `done when`
and no HTML comment;
- ruled rows (round 2 fix): with the week-4 card closed, a run
re-reading its row plus a NOT MEASURED row files a card that lists the
row only under "Already ruled on card objectstack-ai#41" and keeps the NOT MEASURED
section; a run reading only that ruled row files nothing; a row named
only in a closed card's already-ruled section still counts as ruled; a
card closed as a duplicate is not a ruling (the row files as BREACH);
with an open card and a closed one, a row ruled on the closed card is
listed as already ruled, not new, and the refresh comment counts one
hand-edited line under the BREACH heading.
- round 3 fix: two BREACH rows separated by a blank line on an open card
are both carried, and the comment counts 0 unkeyed lines (blank and
footer lines never count); a card closed 30 days ago, or with no
`closed_at`, is not a ruling, so the row files as BREACH. All 27
assertions pass.

</details>

<details><summary>Governed verdict and tier</summary>

- `node scripts/pm/check-governed-merges.mjs --branch HEAD`: exit 3,
GOVERNED, landing tier H at `0f23dcd2` (`.github/workflows/**` split by
content: a `permissions:` block added, a `secrets.*` reference at
`job:governed-merges-audit/step:sweep`, an added `set +e` and `||
true`). The maintainer merges.
- `node scripts/pm/dispatch-gates.mjs --tier`: no path-derived model
mandate; 578 changed lines (+560 / -18), under the 3000 human-merge
line.

</details>

<details><summary>Derived gates: 42 derived, 42 run, all exit
0</summary>

Head `0f23dcd2` (re-run after the review round 3 fix; the derived list
is unchanged from `fdffef2a`): `node scripts/pm/dispatch-gates.mjs
--commands --repo objectstack-ai/objectstack` derived 42 commands; all
42 ran, all exit 0. `--ran`: "42 derived famil(ies) accounted for — 42
run, 0 NOT-MEASURED". No package is touched, so no build closure is owed
and no package test runs (`skip-changeset`: a workflow file publishes
nothing).

```
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs --self-test :: exit 0
node scripts/check-release-section-coverage.mjs :: exit 0
node scripts/check-release-section-coverage.mjs --strict :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-step-collectors.mjs :: exit 0
node scripts/check-step-collectors.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
node scripts/pm/board-snapshot.mjs --self-test :: exit 0
node scripts/render-release-coverage-anchor.mjs --self-test :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:aggregator-roster :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:declared-population-live :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:node-version :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pnpm-acquisition :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:required-contexts :: exit 0
pnpm check:shard-attestation :: exit 0
pnpm check:stall-guard-budget :: exit 0
pnpm check:stall-guard-headroom :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:workflow-status-functions :: exit 0
pnpm check:workflow-step-name-quoting :: exit 0
```

</details>

- Every family CI runs beyond the derived list: read off this PR's
check-runs.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5mSZZN2eYXjy9RHmAu)_

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5mSZZN2eYXjy9RHmAu -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach

1 participant