Repository navigation
fix(pm): the relay review plan, H43 and the early-warning leg chain the .claude/** declaration split, and the split reads the queue's record leg (#35612) - #36215
Conversation
… reader prints Tier S over a record the queue refuses Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
…lit, so a declared rule change requests the approver at pr_ready Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
… read, so a declared rule change is listed as Tier H Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
…laration off the event payload's body Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
…ata-protocol line alone, as the queue leg does Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
…and the skills-lane exception names the guard instruments Claude-Session: https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 101fd54 · 2026-11-22T06:05Z |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 101fd54 · 2026-11-22T06:07Z |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Read: card #35612 (body and all six comments, the seat's reading 7071055960 included), PR #36215 (body, its seven files, the net diff of 420 added and 44 deleted lines), and the 55 check-runs on this head. The PR's files were read at the head with On the two header lines:
① Derived judgmentsEvery tier reading the diff moves, each compared with
② Semver levelClause-②: no — correct. The diff touches ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC 维护者速读
席位核对
|
… isolated L2 beside its L1; a dispatch order missing its derivation is sent back (objectstack-ai#35813) (objectstack-ai#36213) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_ Fixes objectstack-ai#35813 Part of objectstack-ai#35905 (its item 2 and the `os-dev.md` mirror land here; items 1 and 3, the two project-memory lines for `references/project-forms.md`, are carried on branch `claude/issue-35905-project-forms-lines`, see "Not in this PR") Clause-②: no Metadata-protocol: none Rule-change: ruled Ruling-ref: 7035727071 — the maintainer's words 「已经决定了,不是试 3 张 p1 卡,是所有 p1 都按照新规则执行」, seat thread, 2026-11-20T09:22:50Z, for the p1 hand-back lines; 7046610679 — the maintainer's answer 「同意,立卡派发」, cost-review thread, 2026-11-20T09:07:52Z, to 「如果确保协调者严格按照技能执行,之前有犯错,协调者用了项目记忆」, for the missing-derivation line and its mirror; each transcribed as the ruling record on its card ## 维护者速读 - 用户无感;车队内部:p1 卡由卡线程交回后,审核线程做普通审核的同时就起独立的契约审核,两份意见一起回到座位,不再一前一后各等一轮;派发令缺少档位或投入度的推导时,接令的线程或分区不开工并退回座位。 - 为什么做:你裁定所有 p1 卡都按精简流程走,并同意把「协调者严格照技能执行、不凭项目记忆」写进技能;这里是照这两条裁决抄写的规则文字。 - 出错会怎样:只影响车队内部的审核路由与派发文字,最坏是一张 p1 卡的两级审核仍然一前一后,或一张派发令被多退回一次,随时可整段撤回。 - 要你做什么:无;另有两条关于项目记忆的规则因所在文件的字节上限已满没有写进这次改动,座位会另行向你呈报。 ## What changes Four governed files under `.claude/`, internal only (nothing publishes). Every added line copies one of the two rulings above; every deleted fragment is a restatement whose fact keeps a home elsewhere (cut list below). No ceiling row moves. **The p1 hand-back path (ruling record 7035727071)** 1. `references/contract-review.md`, who runs L2. New line under the existing `谁跑 = 派发席` line: - `` - p1 卡线程卡交回且欠 L2 ⇒ L1 线程起隔离 L2 子代理,与其 L1 并行,两份意见同回席。 `` 2. `references/contract-review.md`, the adoption line. The seat adopts the L1 thread's sub-agent record exactly as it adopts a card thread's, so the brief, the `Scope:` check, the independence pair and the tier evidence read as before. - Before: `` - 卡线程隔离子代理照上落现 head 记录并贴简报 ⇒ 席核简报、… `` - After: `` - 卡线程或 L1 线程隔离子代理照上落现 head 记录并贴简报 ⇒ 席核简报、… `` 3. `references/dispatch-runbook.md`, card-thread section, the roles line: the thread builds itself. - Before: `` …;线程实施、开 draft PR、驱动 CI 与可合并。 `` - After: `` …;线程自己实施、开 draft PR、驱动 CI 与可合并,⛔ 不起 `os-dev` 子代理。 `` 4. `references/dispatch-runbook.md`, card-thread section, the same hand-back path in one line, directly under the roles line: - `` - p1 卡交回且欠 L2 ⇒ L1 线程并行起 L1 与隔离 L2(`contract-review.md`),两份意见同回席。 `` 5. `references/area-lease.md`, the L1 thread lines of 〈分不分区,动态定〉. This is where the L1 thread's duties live: there is no `lanes/l1-review.md`, and `l1-review-checklist.md` holds the L1 criteria, not who starts what. New line: - `` - p1 卡线程卡交回且欠 L2 ⇒ L1 线程并行起隔离 L2 子代理(`contract-review.md`)。 `` **A dispatch order missing its derivation (ruling record 7046610679, item 2 of that card)** 6. `references/dispatch-runbook.md`, card-thread section, new line under the line that says the order carries the tier, the effort and their derivation: - `` - 线程或区见令缺推导 ⇒ 不开工,退回席位;⛔ 不凭记忆补档位。 `` 7. `.claude/agents/os-dev.md`, 〈何时停手不写码〉, the mirror a card thread reads, scoped to the ruled subject (a card thread or an area), so an ordinary sub-agent or cloud dev is not bound by it: - `` - 卡线程或区:派发令缺档位或 effort 的推导 ⇒ 不开工,退回席位;⛔ 不凭记忆补档位。 `` **Cut list (bytes paid in the same file; each fact keeps a home)** | # | File | Cut text | Bytes | Where the fact still lives | |---|---|---|---|---| | 1 | `contract-review.md` (section heading) | ``(按面;L2 席章程见 `lanes/l2-review.md`)`` | 45 | 按面: the file's title and its first rule line (`欠不欠按面判`). The charter pointer: SKILL.md lane table, `l2-review` row; the routing line of the same section (``请谁照 `lanes/l2-review.md` ``). Scripts cite the heading as 〈L2 归属与资格〉, which still matches | | 2 | `contract-review.md` (prose-face sentence) | `:派发席按本席档在 ACCEPT 逐句对照 diff 核,ACCEPT 点名所核句` | 77 | `l1-review-checklist.md` 〈范围与 changeset〉 (`逐句核 diff,ACCEPT 点名所核句,⛔ 不起子代理` for the same three prose faces); SKILL.md 〈审核两级〉 (L1 stays with the lane). The sentence it ended keeps `散文面 ⛔ 不在其列` | | 3 | `dispatch-runbook.md` (patrol line) | `;PASS 同笔摘标记、FAIL 不摘` | 35 | `contract-review.md` 〈等 L2 标记〉, the 摘 line; the patrol line keeps its pointer to that file | | 4 | `dispatch-runbook.md` (disclosure line) | ``;卡线程照计 `batch` `` | 24 | SKILL.md entry table, `batch` row (one slot = one running sub-agent or card thread) | | 5 | `dispatch-runbook.md` (claim line) | `;线程核对最新认领指向本分支方开工` | 49 | AGENTS.md, Multi-agent discipline, claim paragraph (a dispatched executor verifies the newest claim names its branch and stops on a mismatch) | | 6 | `dispatch-runbook.md` (whole line) | `- 线程只能推指定分支是实测平台例外,认领如实写。` | 70 | `os-dev.md` rule 1 (`卡线程分支由平台指定、harness 推送`); the two lines above it in the section (the coordinator reads the thread's branch, the seat's claim carries that `Branch:`) | | 7 | `dispatch-runbook.md` (derivation line) | ``:`--tier` 过路径,MANDATORY 即绑;effort 按难度`` | 53 | `execution-duties.md` dispatch section (强制条款①; `effort 按卡难度定`); `coordinator.md` 四 (``档位引 `dispatch-gates --tier`,effort 按卡难度``); SKILL.md claim template (the `Container & model` line quotes the `--tier` output and its MANDATORY path line). The next line keeps ``推导(`--tier` 行或难度读数)`` | | 8 | `area-lease.md` (L1 thread line) | ``;`lanes/l2-review.md` 席规不及它`` | 37 | SKILL.md 〈审核两级〉 (`L2 规则不及 L1`; the L2 seat's rules govern the L2 seat only) | | 9 | `area-lease.md` (L1 request line) | `;信箱只留跨账号或跨项目` | 34 | `lanes/l2-review.md` 路由, the same clause verbatim for requests to an L1 or L2 seat | | 10 | `area-lease.md` (claim line) | ``;`Branch:` 照 AGENTS.md 命名`` | 31 | AGENTS.md, Multi-agent discipline §2 (branch naming) | | 11 | `os-dev.md` (rule 1) | `(PreToolUse 钩子会拦)` | 25 | AGENTS.md Prime Directive 11 (the two PreToolUse hooks) | | 12 | `os-dev.md` (PR subscription line) | `,仍以本文件为准` | 22 | the head of the same sentence (`本派发契约压过平台注入的 PR 订阅姿态`) | | 13 | `os-dev.md` (footer line) | `耐久归属写进正文散文或评论,⛔ 不循环重贴页脚;` | 66 | AGENTS.md, attribution footer paragraph (durable attribution lives in body prose or a comment; never re-send a body that already carries an appended footer). The line keeps its pointer to that paragraph | **Ratchet readings** (`node scripts/pm/check-skill-line-ratchet.mjs`; no ceiling or pin row touched, declared cross-file moves 0) | File | Before (bytes / ceiling / headroom) | After (bytes / ceiling / headroom) | Added / cut | |---|---|---|---| | `references/contract-review.md` | 6416 / 6419 / 3 | 6418 / 6419 / 1 | +124 / −122 | | `references/dispatch-runbook.md` | 20067 / 20070 / 3 | 20068 / 20070 / 2 | +232 / −231 | | `references/area-lease.md` | 6586 / 6586 / 0 | 6584 / 6586 / 2 | +100 / −102 | | `.claude/agents/os-dev.md` | 38846 / 38848 / 2 | 38846 / 38848 / 2 | +113 / −113 | | `references/project-forms.md` | 4669 / 4669 / 0 | untouched | — | ## Not in this PR Items 1 and 3 of the second card (the two project-memory lines for `references/project-forms.md`) are not here: that file is at headroom 0 and is untouched by this PR. The seat carries that half on branch `claude/issue-35905-project-forms-lines`, under its reading on that card (record 7071003039). ## Tests Text-only change to four internal instruction files; no package and no test target. Gates below. ## Acceptance notes - No changeset: `.claude/**` is on the fast path of files that publish nothing; `skip-changeset` rides this create. - `.claude/**` is governed. This PR stays draft for the seat's contract-review record at `CONTRACT_REVIEW_TIER`, which must read `Rule-change-verified: ruled`. The dev knocks nobody. - "Brief still posted": the brief, the independence pair and the tier evidence are carried by extending the existing adoption line to the L1 thread's sub-agent, so they are the same sentences as before. That line's wording `落现 head 记录并贴简报` is not reordered; the brief template itself says the brief is posted beside the record for the seat to read before it adopts. - "No `os-dev` sub-agent" is written for every card thread, not only p1: the section already calls the card thread the dev (`coordinator 调度卡线程(即 dev)`, `线程实施`), so the clause states what the section meant, and the ruling orders it for p1. - The hand-back line sits under the roles line, not under the `交回:` line, because open draft PR objectstack-ai#36205 inserts two lines at that point; `overlap-check` now reads clean against it. That PR also adds bytes to `dispatch-runbook.md`, which lands here at headroom 2, so whichever lands second pays again. - The tool text printed by `record-recognisers.mjs --brief-template` names a card thread as the one handing the brief to its isolated sub-agent; it does not yet name the L1 thread. Noted, not changed: scripts are outside this card's file surface. - Base: the branch was cut at `cbd582f4` (the dispatch order named `fa304140`; `origin/main` had moved). `git diff --stat fa30414 cbd582f -- .claude scripts/pm` is empty, and so is the same reading from the branch base to `origin/main` at `1d060265`, so no merge of `main` was taken before opening. - Fix round 1 (review record 7071038753, S1): the `os-dev.md` mirror line named no subject and so read as binding every dev that reads the file; it now names the ruled subject, 16 bytes inside that file's headroom. No other text changed. `origin/main` at `99fbaa6d` had moved `area-lease.md` and the ratchet table, so `main` was merged (clean) before the push; the four files measure the same after the merge and no ceiling row of theirs moved. ## Verification First files to read, by risk: 1. `references/contract-review.md`: the new p1 line under `谁跑`, the adoption line, and the two cut hunks at the top of the file (the heading and the prose-face sentence). 2. `references/dispatch-runbook.md`, card-thread section: the derivation pair (cut 7 and the new line under it), the roles line and the hand-back line. 3. `.claude/agents/os-dev.md` 〈何时停手不写码〉: the mirror line. Two-minute check: `node scripts/pm/check-skill-line-ratchet.mjs | grep -E 'contract-review|dispatch-runbook|area-lease|os-dev' | grep ceiling` prints the four files at 20068, 6418, 6584 and 38846 bytes under ceilings 20070, 6419, 6586 and 38848, every line ticked. <details><summary>Local gates at head 1b94ad0 (re-run after the fix round and the merge of main)</summary> Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (26 commands); reconciled with `--ran`: `26 derived famil(ies) accounted for — 26 run, 0 NOT-MEASURED (a DERIVED zero — all 26 recorded an exit code and none of them is 3)`. - exit 0: `check-closing-keyword-parity` (and its `--self-test`), `check-comment-mask-corpus`, `check-governed-queue-guard --self-test`, `check-harness-current --self-test`, `check:adr-anchors`, `check:agent-model-declared`, `check:agent-test-spelling`, `check:commit-card-trailers`, `check:cross-package-test-inputs`, `check:doc-authoring`, `check:driver-memory-census`, `check:gitlink-declared`, `check:nul-bytes`, `check:pm-expected-skips`, `check:pm-governed-merges`, `check:pm-label-write`, `check:pm-prior-rulings`, `check:pm-record-recognisers`, `check:pm-settings-deny-roster`, `check:pm-skill-id-lint` (`131 file(s) clean`), `check:pm-skill-ratchet`, `check:refd-timer-probe`, `check:skill-frame-sync`, `check:watch-hint-literal`. - `check:doc-formula-expressions` (lint package): exit 0, run after `turbo run build --filter=@objectstack/formula --filter=@objectstack/lint` under the verify lock (`VERDICT command-exit 0`); without that build it exits 3, prerequisite not met. - Outside the derivation: `check:skill-frame-freshness` exit 0 (local reading: `1/1 framework files are byte-identical to the ref`); `check:pm-governed-prose` exit 0. - `node scripts/pm/overlap-check.mjs --branch=claude/issue-35813-lean-review-and-memory-rules`: `VERDICT clean exit 0` (merges cleanly with `origin/main` at `99fbaa6d18` and with the two open PR heads that share a file, objectstack-ai#36215 on `os-dev.md` and objectstack-ai#36205 on `dispatch-runbook.md`). </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… + pm:awaiting-merge + review request) as one relay stroke (objectstack-ai#36214) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_ Fixes objectstack-ai#35948 Clause-②: no Metadata-protocol: none Rule-change: yes ## 维护者速读 - 用户能看到什么变化:用户无感。车队内部:座位把需要你批的 PR 交给你时,交接评论、等你合并的标签和给你的审核请求改成一条命令一次完成,并当场回读核对。 - 为什么做:前天有三个需要你批的 PR 只收到评论提醒,没进你的待合并清单和审核队列,空等了约四个半小时;这是座位交接流程的修补。 - 出错会怎样:最坏是某次交接被这条命令拒绝、座位改回手工补写;它不合并、不放行任何东西,可整体撤回。 - 要你做什么:批准本 PR(它改了座位交接流程的条文,按规则须你批)。 ## What changes - `scripts/pm/label-write.mjs --issue PR --comment-file request.md --handoff` makes the seat's Tier H hand-off (pm-dispatch 〈路径分叉〉 ② and ③) ONE relay stroke: the request comment, then `labels_add pm:awaiting-merge`, then `assign` for an approver who is the pull's author, then `pr_request_reviewers` for every other `GOVERNED_APPROVERS` account not already requested, assigned or holding a submitted review. - Refused with zero writes (exit 2) unless: - `check-governed-merges.mjs --pr OWNER/NAME#N --json` (spawned, so every split it chains, `Rule-change:` included, is the one reading) reads Tier H, or the size limb fires, or a narrowing is declared (`narrowed` route: the queue guard's `narrowingDeclarationsIn` over the PR body and the head's committed changesets; admitted whatever the register reads, Tier S included). Tier S, ungoverned and fork pulls are refused. An unanswered reading is exit 3. - The newest `## 席位核对` reads ACCEPT and is newer than the head's committer date (H69's comparison). gpgsig -----BEGIN PGP SIGNATURE----- wsFcBAABCAAQBQJrAqPoCRC1aQ7uu5UhlAAAcDkQABanMSL67Qxn6nKK97I3RRME mrJrr2uOBgXv2AEnydWp7XH26Tp3Hsip9P2TSmV6RxBFDuj64YCCos3y5nS63Iek UX4IjeA/DdDklofAZcYHpNNbBgkAGf7fhQJI9NzpsLaPhljTqPc/JUuML9L7tEx6 zJptVvvJONR1SGPO7zOdu4VDMe0NlPMqDtszRLbfz+xOiKLeD9fU9uyc32XIlTI+ LkjaHQHZ0m7cZ+wDJDqaYUmauHJ+10Q4mlvnvK4RMiAJQQ2cAifK6lSmFm6qUsgd YEmmJ0D/IRZrd/V2Ym2sR0z/+co8UHL3oH5rqzDqslO3rPGHafoRe0jN9hoOai1Y 4Ena7K2B7gryXAeDTrx7mscwI+oAjmRS5AUrbLFCX5/r/qMQ+js/t3jfXf32PWNk DYBm02Kn4OuhKNwCat+W7VhRj2ACRYD4d6hViMxWJb0anpycR6Vf974WTTa7QZCr KJsT6/8dF9dxQ31fUlh19P5y62W3xi7yqiBpPUBt6E5xXDv7ApMutoUkXXl17xty DJfk7cSqvXXq6RJ243oxr43fOSCLXLAlvtdlqIV8jxQMA5wPDSxCORlKlDbQjWsZ RhdY8Z1SiygxKArQgviIiLBTk6Xvi1ZXJUaiEEDeteBWReG6Hd+49ddzUgBfX9U1 qjLD6O4QLkMthm8BiI5W =wIzx -----END PGP SIGNATURE----- - The newest trusted `## Contract review` naming the head reads PASS, and its `Served-tier:` stands. - A `## 维护者速读` comment is on the thread, or is the request itself (H48's brief half). - Read-back: labels, assignees and comment (the fold's lines), plus `④ reviewers`, `④ H43` and `④ H48`. The last two call the patrol rows themselves (`h43GovernedReviewRequestGap`, `h48GovernedVerdictWithoutBrief`) on the pull as read back, using the tier tool's post-split slice. Any ✗ is exit 4, not repaired. - `--handoff --dry-run` may omit `--comment-file`. It reads everything, prints `now H43` / `now H48` for the pull as it stands and the stroke it would send, and sends nothing. This is the shape chosen for To-do 3: the per-round reading of a seat's own governed pulls, without a check-half-states run (over two minutes) and without a new `--rows` mode there. - `.claude/skills/pm-dispatch/SKILL.md` 〈路径分叉〉 ③: one line now points at the command (`同轮一笔 label-write.mjs --handoff 交②③`). The file is 4 bytes smaller (33863 to 33859, ceiling 33872 unchanged). Read first, by risk: 1. `scripts/pm/label-write.mjs`, `handoffGate`: the refusal order and the record readings it reuses. 2. `scripts/pm/label-write.mjs`, `foldStroke`'s `--handoff` hunks: the action order and the `④ H43` / `④ H48` read-back. 3. `.claude/skills/pm-dispatch/SKILL.md` line 203. 4. `.claude/skills/pm-dispatch/references/execution-duties.md` line 17: the per-round 四件读数器 now names `label-write.mjs --issue PR --handoff --dry-run` (exit 7 = a piece is missing) in place of the full `check-half-states.mjs` run; rewritten in place, 20148 to 20143 bytes, ceiling unchanged. ## Tests <details><summary>label-write self-test at 27e6000: 398 cases across 19 batteries, exit 0 (was 339 across 18)</summary> The new battery `--handoff: …` is pinned at 59 cases (32 at 26da765, 43 at d513fbc). It shows: - `--handoff` writes all three in one dispatch, in this order: `comment` → `labels_add` → `assign` → `pr_request_reviewers`. - The author-approver is ASSIGNED and never requested. - Control: the fixture pull fires BOTH H43 and H48 before the hand-off, and the same row functions read `null` on the board after it. - Refusals with zero sends, one each: Tier S, ungoverned, a PASS on an older head, no PASS, a same-head FAIL, a PASS whose Served-tier does not stand, an untrusted PASS author, REWORK, an ACCEPT older than the head, no brief, an issue, a closed pull, an unsigned request, and the direct route. - An unanswered tier reading is exit 3. - Idempotence: a covered approver, or the label already on, costs no action. - A relay that skips a part reads `④ reviewers ✗` / `④ H43 ✗` or `④ labels ✗` / `④ H48 ✗`, exit 4. - The dry run sends nothing, both before and after the hand-off. - SKILL.md carries the pointer and the author-assign rule as substrings. - Rework at d513fbc. The PASS is read the queue guard's way, over the pull AND the card it delivers: a same-head PASS on the card clears the gate; the same PASS by an untrusted author is refused; a pull that delivers no card does not read the card. The size-limb face: a code-only size-limb pull is judged on the declaration face (a TIER_DEFAULT PASS is handed off, a CONTRACT_REVIEW_TIER PASS is refused); a committed changeset declaring `(narrowing)` moves the face. The register's own slice is empty on that pull and both rows read null; the hand-off slice fires both rows before the hand-off and reads null after. A pull already whole sends nothing. A request signed by an uncovered approver is refused. </details> <details><summary>Ablation, one-time, at 26da765, through scripts/ablation-replace.mjs (restore verified: blob == HEAD, git diff HEAD empty)</summary> - `handoffReviewPlan` made to request the author (`toRequest: missing, toAssign: []`): the self-test went red on 3 cases (the plan, the stroke and the author-assigned case), then was restored. - The `!handoff.passed` refusal disabled: the self-test went red on the same-head FAIL case (exit 0 and one send instead of exit 2 and zero), then was restored. - At d513fbc: `handoffSlice` made to ignore the size limb went red on 2 cases; the card thread read as empty went red on the card-PASS case; the changeset texts dropped from `declaredOn` went red on the narrowing-face case. Each restored (blob == HEAD, `git diff HEAD` empty). </details> A read-only check of the spawn half on a merged pull: `readGovernedTier` on objectstack-ai/objectstack 35610 answered exit 3, Tier H, 5 matched rows. Per the dispatch, `--handoff` itself was never run against a real pull. Round 3 at 27e6000 (contract review 7075527312 FAIL at d513fbc): M1 a declared narrowing is a hand-off population (`narrowed` route, CONTRACT_REVIEW_TIER face), control: `none` refused; S1 a deleted or renamed-away changeset (404 at the head) declares nothing, any other failed read is exit 3, the Tier H route reads no changeset; S2 "already handed off" needs a `## 维护者速读` on the thread, else a comment-only stroke goes out; S3 `reviewFace` gets every pre-lift path (hit, clear, exceptions) and, on the size route, `narrowingDeclared` and the changeset texts; N1 the guard's `LOW_RISK_CHANGESET_PATH` is reused; N4 `--handoff --dry-run` exits 7 while a `now` row reads ✗. Ablations (each restored, blob == HEAD): M1 red on 7, S2 on 2, S1 on 1, S3a and S3b red, N4 red, tier-route read red on 1. ## Acceptance notes - Mechanism readings, measured against origin/main `cbd582f4`: - `--land` does NOT read ACCEPT + same-head PASS. Its only gate is the dogfood battery gate. The reading lives in `check-half-states.mjs` `h43HandoffReading`, which this mode calls. - `fleet-write/execute.mjs` `governedReviewPlan` is not reused. Since PR objectstack-ai#36215 (`b78b14cc`, Part of objectstack-ai#35612) it chains the `.claude/**` split too, but this mode still takes its tier from `check-governed-merges --pr` and its coverage union from H43's own reading, so there is one reading for both, not two kept in step. (Earlier text here called that split missing; it was true when written and is not on `main` now.) - For the same reason, H43 and H48 on a full patrol run still stand down on such a pull. `--handoff`'s read-back asks the same rows on the tool's post-split slice, so they judge it. - The seat's own account is not excluded from the request: `GOVERNED_APPROVERS` holds only the maintainer's account today. A seat whose login is in that set would be requested. - `execution-duties.md` line 17 is now in this PR (the review would not accept "noted, not filed"): the card's To-do 3 pointer. - New exit code 7 (`EXIT_HANDOFF_OWED`) for the dry run only, declared in the header's exit-code table. ## Verification Two minutes: `node scripts/pm/label-write.mjs --self-test` should print `✓ label-write self-test: 398 cases pass across 19 batteries`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steedos · project thread
Part of #35612 — this PR carries every work item but the post-merge sweep's split leg (item 4), which is measured below and left for its own card.
Clause-②: no
Metadata-protocol: none
Rule-change: none
维护者速读
What changes
The
.claude/**declaration split (applyRuleChangeSplit, landed with #35610) is now CHAINED by every reader that had been reading the raw row's Tier S. No reader re-derives it, and no gate, derivation row or constant is added.governedReviewPlan,scripts/pm/fleet-write/execute.mjs). The plan chains the split last, on the same reading the low-risk arm takes, so a.claude/**pull read on its path list alone is Tier H. Atpr_readythe follow-up then reads the body off the pull answer. When the body declaresnone(orruledwith itsRuling-ref:), it also reads the record stage through the queue guard's ownreadLowRiskRecordStage(card labels left unread). It requests nobody only when the record on the head verifies the declared value. Ayes, a missing line, a settings or hooks path, a mixed pull, or a record that is absent, unread or not verifying all request the approvers, and the verdict row names the reason.pr_create". The relay summons nobody atpr_createby ruled design (the header section "The governed-review follow-up — afterpr_ready, never afterpr_create"; the seat's hand-off ispr_request_reviewers). The request is pinned atpr_ready, the one follow-up the relay has.scripts/pm/check-half-states.mjs). The sweep's governed slice is the split's reading: the body off the PR list row, then, for a body that declares a seat value, the record on the head off the PR thread (H48's fetch class, cached; H48 buys that thread anyway while the PR reads Tier H). Ayes, no line or a hooks path is listed as Tier H. Anonestands down only on a trusted PASS on the head whoseRule-change-verified:line matches. The register loader exportsapplyRuleChangeSplitandreadRuleChangeVerifiedbeside the matcher.check-governed-merges.mjs,check-governed-queue-guard.mjs). The split's record stage now carries the queue's own record-leg verdict on the same comment (recordVerdict, thenrecordPassVerdict) asrecordLeg, andruleChangeRecordReasonsholds the conjunct only where itstands. A FAIL, a below-tier record, or a leg that was not read keeps the split at Tier H. So--prand the relay can no longer print Tier S over a record the queue refuses. The queue leg's own call hands in the leg it has already judged.cbd582f4: thepull_requestleg read no body although the event payload carries one).resolveEventContextkeepspull_request.body, andrunGuardre-reads the split off it (readPayloadDeclaration). On a.claude/**pull,yesis now Tier H on the body. A declarednoneprints "Tier H UNTIL its record is read", naming the value, because this leg reads no record. A payload with no body still prints "Tier H UNTIL the PR body is read". The body is the one at the event; the workflow'stypes:list has noedited, so the next push or the queue leg reads a later edit.scripts/pm/check-owed-reviews.mjs).owedFacefinds a narrowing the way the queue's narrowed leg does (narrowingDeclarationsIn, imported). When it finds one, it reads the face withNARROWING_FACE_LINEhanded in first. A narrowing declared on the protocol line alone, on a diff with no schema or governed path, is now listed at the narrowing face's tier. Its control is the same body declaringnone.workflowsrow (item 5). Pinned: a hotcrm workflow pull is Tier H and outsidesplit.repos, sopr_readyrequests the approvers at the hotcrm pull. The row namessplit.repos, and no compare is read. The control is an ungoverned hotcrm path, which plans nobody..claude/agents/os-dev.mdsays exactly one line-start declaration line again (net −1 byte; ceiling 38848, now 38845)..claude/skills/pm-dispatch/SKILL.md's skills-lane exception says 守卫仪器 like the 恒 H line (+6 bytes; ceiling 33872, now 33869). No ceiling row is touched.Not done here: item 4, the post-merge sweep (measured)
Measured at
cbd582f4:classifyCommitcallstestVerdictwith no reading, so every merged.claude/**pull reads Tier H and is listed among the maintainer's merges. No landing is hidden. A seat landing on a verifiednoneis listed as a maintainer merge, and one whose record did not verify is not told apart from it. To list the split's seat landings apart and judge each on its record as landed, the sweep needs a leg likereadArmLanding: approval and enqueue legs beforemerged_at, as-landed comments, and the carry rule. That is a new audit leg of about arm-leg size, not a reader chaining an existing split. It is left for its own card, and the report names it.Tests
Each new pin carries its negative control one step away:
check-governed-merges --self-test: the split battery's floor goes from 40 to 44. It adds a FAIL record, a below-tier record and an unread leg, each Tier H whatever the verified line says, plus the words.check-governed-queue-guard --self-test: arm battery 84 → 85 (the stage carries the leg: FAIL and below-tier read H on the split, a clean PASS reads S). Early-warning battery 6 → 9 (a payload body withnonewaits on its record, withyesit is H on the body, with no body it still waits on the body, and an entry with no split row is untouched).fleet-write/execute --self-test: governed-review battery 52 → 62. Plan cases:noneover a verifying record plans nobody, and its path-only control plans both. Eight Tier H variants each plan both:yes, no line, a settings path, a hooks path, an unread record, a record verifyingyes, a FAIL, and AGENTS.md beside the wording. Also the readable gate, the words, fourpr_readyruns (none+verified sends nothing, withyes,none+yes-record andnone+no-record as controls), and hotcrm's plan and run. The three existing pins that encoded the raw Tier S are re-pinned to the split.check-half-states --self-test: H43 battery 103 → 109 (stood down on a verifiednone, listed onyes, six Tier H shapes, the pending stage, the thread's record reading, an unloaded register, the loader's two exports).check-owed-reviews --self-test: owed-face battery 9 → 11.Readings are in the Verification section below.
Acceptance notes
Served-tier:line and its signature are not read there; H43 reads the verdict word through the guard's author binding, as its hand-off already does.readLowRiskRecordStageno checkout, so a record carried from an older head is refused there, and the relay requests the approvers. That is fail closed, at the cost of one extra request.owedFacereads the body alone. The queue's narrowed leg also reads the changesets the commits touch, so a narrowing declared only in a changeset is still not listed. This bound is stated in the function's docblock.Security-touching:line:--prreads the line without the record leg's verdict. The queue's record leg still refuses there, and this PR does not change it (it is outside this card).Verification
Read first, by risk:
scripts/pm/check-governed-queue-guard.mjs:lowRiskRecordStage(the newrecordLeg, built by the queue's ownrecordVerdictandrecordPassVerdict),ruleChangeRecordVerdictandreadPayloadDeclaration.scripts/pm/fleet-write/execute.mjs:governedReviewPlan's chain,ruleChangeReadableandruleChangeReadingFor, plus their wiring inrequestGovernedReview.scripts/pm/check-half-states.mjs:h43RuleChangeSliceandh43RuleChangeRecord, plus the sweep's pending-thread pass beforeshortOfCoverage.Two-minute check:
node scripts/pm/fleet-write/execute.mjs --self-test. Expect✓ fleet-write/execute self-test: 443 cases pass across 30 batteries, with the⭐ pr_ready on a .claude/** pull declaring Rule-change: nonecase and itsRule-change: yescontrol both green.Readings at head 101fd54 (local, derived subset; every CI family is the PR's own check-runs)
check-governed-merges✓ 963 assertions ·check-governed-queue-guard✓ 641 cases ·fleet-write/execute✓ 443 cases across 30 batteries ·check-half-states✓ 5389 cases ·check-owed-reviews✓ 96 cases in 10 batteries — each exit 0, captured before any pipe.node scripts/pm/dispatch-gates.mjs --commands(no paths, merge-base derived): 78 families. All 78 were run; 77 exit 0.pnpm check:i18n-coverageis NOT MEASURED: PREREQUISITE NOT MET (exit 3) because the workspace CLI and the example configs are not built; the diff touches no package, and CI runs it.check:doc-formula-expressionsfirst exited 3 (formula not built), then 0 afterturbo run build --filter=@objectstack/formula --filter=@objectstack/lintunder the verify lock.--ranreconciliation:✓ dispatch-gates --ran: 78 derived famil(ies) accounted for — 77 run, 1 NOT-MEASURED.pnpm check:skill-frame-freshness(local-only family): exit 0.node scripts/pm/overlap-check.mjs --branch=claude/issue-35612-rule-change-split-readers:VERDICT clean exit 0before every push.origin/mainmoved 36 files past the basecbd582f4, none underscripts/pm/,.claude/orpackage.json, so it is not merged here.check-skill-line-ratchet.mjs):.claude/agents/os-dev.mdis at 38845 of 38848,.claude/skills/pm-dispatch/SKILL.mdat 33869 of 33872.🤖 Generated with Claude Code