Repository navigation
pm(fleet-write): the relay reads the low-risk skills arm before it summons approvers - #33686
Conversation
…mmons approvers governedReviewPlan takes the arm's own reading (pullLowRiskReading over the pull, the file walk's statuses, the timeline, and the changesets and catalog modes from the checkout, the head fetched at depth ahead_by + 1) and requests no approver when lowRiskArmVerdict reads the pull as Tier S. Any reading not made, a mixed pull or another repository requests as before. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oDmvJaKtcHYvPTR9P
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Read for this record: card #33540 (body, triage 6886853485, claim 6890051181, os-dev-report 6890370003), PR #33686 (body, file list of one file, net diff against merge base Check-runs on the head at read time: 46 runs, none failed, cancelled or timed out. Two were still in progress: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentscripts/pm/fleet-write/execute.mjs, judged against card #33540 and the arm as merged by PR #33531. It holds. No must-fix, no should-fix. Agreement with the contract, read sentence by sentence:
Break attempts, and what happened:
Self-test rows against the card: both directions are covered. S: the plan row and the run row (no request, no reviews read, timeline read once, Findings:
Nits only; they are left as accepted deviations or follow-up cards, and the head is not moved. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T06:34Z · 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 |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 席位核对Verdict: ACCEPT, seat lands (ungoverned, scripts/pm/)** · head
|
…udges each on a same-head at-tier PASS record (objectstack-ai#33711) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X5SKzXRHQWjMHXgyfyiaqkP)_ Fixes objectstack-ai#33603 Clause-②: no Metadata-protocol: none domain:skills#1 · os-project-manager · session_01FEkQ5kXwEA8abP4hMhtodW ## 维护者速读 - 改了什么:合后审计 `check-governed-merges.mjs` 现在对每个 skills 合并,用队列守卫自己的 arm 读法和记录读法再读一遍落地提交。按守卫自己的顺序判:合并前有授权批准或授权入队的,算维护者的合并,留在维护者清单并写明谁放行;其余 arm 判为 Tier S 的合并单独列出,每条再查同 head、达档、PASS、出自守卫信任的作者、合并前已存在且未再编辑的复核记录,且该 PR 确实以这个提交落地(`merge_commit_sha`),缺了就标 ⛔ BREACH。另外修了 objectstack-ai#33616 评审留下的三处:校验器比对 `advisorModel`、拒收把复核交给子代理的转录,post-stamped 对校验器自测的 spawn 加超时并转出子进程的失败行。 - 为什么改:AGENTS.md 第 14 条把合后审计定为座位落地的补偿控制,但它按路径分类,arm 落地看起来和「Tier H 无批准」一模一样(卡 objectstack-ai#33603,评审 6886787995 N3);objectstack-ai#33616 的复核记录把校验器残项挂到本卡。 - 风险与回滚:只动三个 `scripts/pm/` 工具文件,审计仍是只报告;读不到时记 NOT MEASURED、整轮 INCOMPLETE(退出 2),不会把未读的合并报成干净。校验器更严:复核会话里调用过 Agent / Task / Workflow / SendMessage 的转录现在被拒,要传子代理自己的输出。回滚即还原本 PR。 - 先看:`scripts/pm/check-governed-merges.mjs` 的 `readArmLanding`(新,读法全部来自队列守卫)和 `renderReport` 的分列;`scripts/pm/verify-review-tier.mjs` 的 `SUB_AGENT_TOOLS` 判断。 - 两分钟验证:`node scripts/pm/check-governed-merges.mjs --since-ref objectstack=b937b75f --repos objectstack`,预期 objectstack-ai#33668、objectstack-ai#33555、objectstack-ai#33632 三条 skills 合并都留在维护者清单,各带一行「cleared by an authorized enqueue (os-zhuang)」;没有 BREACH。 - 需要你做的:定合后审计的周期执行人(本 PR 建议:定时 workflow,由席位立卡交你,见下文 Owner);本 PR 本身无,席位落地。 ## 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 objectstack-ai#33555, objectstack-ai#33632 and objectstack-ai#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 objectstack-ai#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 objectstack-ai#33540: `governedReviewPlan` (`scripts/pm/fleet-write/execute.mjs`) reads the arm with its readers. objectstack-ai#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 objectstack-ai#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 objectstack-ai#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 - `node scripts/pm/check-governed-merges.mjs --self-test`: 728 assertions. New battery `⚖️ objectstack-ai#33603: ...` (38 cases, floor 38; roster floor 37 to 38). It loads the REAL guard through `loadArmReaders` and drives `readArmLanding` with fake fetchers and a fake git: pass on the PR thread and on the card; breach for no record, a FAIL record, a record on another head, a record below the tier, an unsigned record, a record from an untrusted author, a record posted after the landing, a record edited after it (the reason names the edited comment), a pull merged as another commit and a pull closed unmerged; an untrusted FAIL after a trusted PASS does not shadow it (and a trusted one does); cleared for an authorized approval and an authorized enqueue on the measured queue-merge timeline, with controls that a seat-account enqueue, a post-landing approval and an unauthorized approval clear nothing; tier-h for a `security` label, `Clause-②: yes`, a path outside the allowlist in the same commit and an oversized landing; not-measured for an unread pull, review list, timeline, comment thread or merge, and for readers that did not load; null without a catalog row or a PR number; the report's head count, its apart section and a cleared row staying on the maintainer's list; the INCOMPLETE banner; and a structural pin that neither dispatch awaits at module scope. - `node scripts/pm/verify-review-tier.mjs --self-test`: 27 cases across 6 batteries (new battery: advisor, sub-agent spawn, and the refusal's advice naming the reviewing agent). - `node scripts/pm/post-stamped.mjs --self-test`: 787 cases across 29 batteries (record-tier battery floor 15 to 16). - A live sweep on this head, read-only, from `b937b75f`: 8 governed merges. The three skills landings, objectstack-ai#33668, objectstack-ai#33555 and objectstack-ai#33632, read Tier S on the arm and were each enqueued by `os-zhuang` before the merge, so each is `cleared` and stays on the maintainer's list; nothing is listed apart and nothing is a BREACH; exit 0. (Before the review fix, objectstack-ai#33555 and objectstack-ai#33632 were listed apart as PASS.) <details><summary>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</summary> ```text 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) ``` </details> ## 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 (objectstack-ai#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 objectstack-ai#33686 and objectstack-ai#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](https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5kXwEA8abP4hMhtodW --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…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>
Requested by Leehom · project thread
Fixes #33540
domain:skills#1 · os-project-manager · session_01FEkQ5oDmvJaKtcHYvPTR9P
Clause-②: no
Metadata-protocol: none
维护者速读
pr_ready之后决定要不要请 os-zhuang / hotlong 审时,先用低风险 skills 臂自己的读法读这个 PR(PR 正文、标签、文件状态、timeline、changeset、目录文件 mode),臂判 Tier S 就不请任何人;臂判 H、或任何一项读不到,照旧请两位。scripts/pm/fleet-write/execute.mjs的lowRiskReadingFor/lowRiskCheckoutFor(读法和 fetch 深度)、requestGovernedReview里新加的那段、governedReviewPlan多出的lowRisk参数。node scripts/pm/fleet-write/execute.mjs --self-test,预期 375 例全过(governed-review 这一组 45 例)。What changes
All in
scripts/pm/fleet-write/execute.mjs.scripts/pm/check-governed-merges.mjsis read, not edited: every reader below is already exported there.governedReviewPlangainslowRiskand chains the register exactly asgovernedTierFordoes:applyLowRiskArm(applyWorkflowSplit(matched, …), repoId, lowRisk), thenlandingTierOf. Only a readinglowRiskArmVerdictholds to every condition moves the catalog rows to S.null(every path-only call) keeps them H, so existing callers answer as before. The plan also returnslowRiskVerdictfor the row's words.lowRiskReadingFor). No second parser:pullLowRiskReadingover the pull answer the follow-up already reads (body, labels, fork predicate);pullCatalogStatusesover the file walk it already reads;fetchTimelineOverover the relay token (every page, or NOT MEASURED);pullChangesetReadingandpullCatalogReadingfrom the relay's checkout.lowRiskCheckoutFor). The relay checks outmainat depth 1.GET /compare/{base.sha}...{head.sha}answers the merge base andahead_by; the checkout must be the target by itsorigin; the head is fetched by sha at depthahead_by + 1. Every commit on the shortest path from the head down to its merge base is in the compare's ahead set, so that depth holds the merge base, andpullCatalogReadingcomputes the merge base in the checkout itself, as--prdoes. The merge base is handed in as the base, sogit merge-baseanswers it back only when it really is an ancestor of the head here. PastLOW_RISK_FETCH_DEPTH_CAP(200 commits), the reading is NOT MEASURED.lowRiskArmReadable). Only on a Tier H plan whose every governed hit is a catalog row carryinglowRiskfor the target. It is a cost gate, the same shape asworkflowSplitReadable: it can keep a plan H, never move one to S. A mixed pull (.claude/**besideskills/**) or another repository (objectui) costs no timeline walk, compare or fetch, and the row says why.requestGovernedReview). After the pull is re-read and the workflow split is judged, a readable plan is re-planned with the reading. Tier S writes one row (… lands on a seat's review of record — no review requested · low-risk skills arm read: Tier S (ruling)) and requests nobody; no review list is read. Tier H continues to the reviews read and requests as today, and the row lists every reason the arm gave.Fail closed, each measured in the self-test: no checkout, an unread timeline, a refused compare, a head past the fetch cap, a checkout of another repository, a fetch that throws, a head the fetch cannot bring, and a pull answer with no head sha each request BOTH approvers, and the row reads
low-risk skills arm read: Tier H, fail closed — REASON.Tests
node scripts/pm/fleet-write/execute.mjs --self-test: 375 cases across 28 batteries pass. The governed-review battery goes from 36 to 45 cases (floor raised to 45, measured: a floor of 46 reds with "registered 45 case(s)"); its name now says how a skills-only pull is judged. New cases:null, an unmeasured reading, or a reading with the timeline, changesets and catalog files not read keeps H and plans both;Clause-②: yes, asecuritylabel, asecuritylabel removed in the timeline, a security-named catalog path, an added catalog file, a changeset that also releases@objectstack/spec, or apackages/**path beside it plans BOTH approvers;lowRiskArmReadable(objectstack catalog rows read;AGENTS.mdbeside them, or objectui, not read, with the words why);fetch --no-tags --depth=3 origin HEADforahead_by: 2; a security label, an added file, or a catalog path turned symlink (120000) requests both and names the reason; the eight unreadable readings above; a mixed pull and an objectui pull are not read.The fake platform's response now carries
okas a realResponsedoes, becausefetchTimelineOverreads it (the relay's ownrestreads the status only). Before that line was added, the Tier S run case failed with "its timeline was not read (… HTTP 200)", which is the fail-closed direction.Live probe (read-only, not committed). From a fresh
git clone --depth=1of objectstack,lowRiskReadingForon merged PR #33555 (a real skills-wording PR) with GETs overgh api: the head fetched at depthahead_by + 1, the merge base computed in the clone, all five catalog files readmodified100644to100644, the changeset read at the head, 28 timeline events read, and the plan answered Tier S. So the reading can be made in the relay's own checkout shape; the order's fallback ("if the reading cannot be made in the relay, the plan summons") does not apply.Acceptance notes
scripts/pm/check-governed-merges.mjsheader (the arm section, around "every path-only reader (--test,--branch, the CODEOWNERS mirror, the prose gate, the relay's review plan) answers exactly as before, and the approvers are still summoned") now overstates the relay: the relay reads the arm. That file is out of this card's surface, so the sentence is left; carrier: none.scripts/pm/**as NOT governed (check-governed-merges.mjs --branch, below), while the card body calls this change Tier S. The landing route is the seat's to read.Verification
All local readings at head
2e18efd8.Derived gates: 36 of 36 run, every one exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 36 families on this diff (1 path, vs merge based4e3dcc6e). Each was run with its exit code captured before any pipe:node scripts/pm/dispatch-gates.mjs --ran FILE:✓ dispatch-gates --ran: 36 derived famil(ies) accounted for — 36 run, 0 NOT-MEASURED (a DERIVED zero — all 36 recorded an exit code and none of them is 3).Tier and governed-surface readings
dispatch-gates --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)"; 268 changed lines (+260 / -8), under the 3000-line human-merge threshold.check-governed-merges.mjs --branch claude/project-thread-nthn1w: "governed-surface predicate: 0 of 1 path(s) hit the register … NOT governed — ordinary queue landing applies to a PR with exactly this file list." Head repo NOT MEASURED there (a--branchreading);--prreads it.skip-changeset(scripts/pm/**ships in no package).Generated by Claude Code