Repository navigation
chore(governance): the guard scripts join the governed register, .claude/** lands by declared rule-change, a declared narrowing waits for the maintainer - #35610
Conversation
…aude/**` splits by declaration, a declared narrowing waits for the maintainer The four guard instruments and the guard's own workflow file are Tier H. `.claude/**` lands as Tier S only on a declared `Rule-change:` line the current head's PASS record verifies; settings and hooks are Tier H by path. A queued pull that declares a narrowing is refused until an authorized approval and a PASS contract review for the head are on record. The `workflows` row adds hotcrm. CODEOWNERS mirrors the new Tier H rows. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
…change-verified:` The template and the reviewer brief print the line where a `.claude/**` path can sit, shipped as `yes` so an unedited paste lands nothing; the duty wording is one constant both print. The cross-tool pin drives the template through the queue guard with the reviewer's own `none`. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
…ecord reference name the new rows and the declaration split AGENTS.md names the four guard instruments and states the `.claude/**` declaration split; the pm-dispatch path-fork region names the same surfaces and the declared-narrowing landing; the contract-review reference names the record's `Rule-change-verified:` line. Each file stays at its line ceiling: additions are paid by deleting restated content. Script headers describe the new rows, the split and the narrowed leg. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
…e, not by quotation The quotation stays in the header section; the string a refusal prints carries the date and the rule in plain words. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
…illed template line declares no narrowing The developer agent file says when the PR body carries the line, its three values and what `ruled` owes; the pull-request template says the same in a note that only a pull touching `.claude/` acts on. The narrowed leg no longer reads the template's own unfilled menu line as a declared narrowing; a partial menu still counts. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
… `.claude/**` diff owes One clause on the template's `Metadata-protocol:` line, beside the other PR-body line the dev writes from the diff. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN Green head for review · 2026-11-19T18:11Z ·
Contract-review-claim: session_01L6bhgVaDMEnj7SrgKsMrWN · head eb947a2 · 2026-11-19T18:11Z |
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN The brief handed to the isolated contract reviewer of this head, filled from Contract review brief — PR #35610 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN Contract reviewServed-tier: Read for this record: card #35321 with its six comments, PR #35610 (body, file list, its one comment), every hunk of the nine files in the net diff against Why the header block reads as it does. The two ① Derived judgments
② Semver levelNo level is owed and none is taken: the nine files sit under ③ Boundary flagsOpen questions of the dev report (card comments 7016679857 and 7017422696):
Out-of-scope findings the dev reported as noted and not filed. Each needs a carrier before the seat's ACCEPT:
Two further items, outside the card's five, were found while reading the cited code. Both are held as one security item with the owner seat and are not described here. Neither is graded in this record and neither changes its outcome. Other flags:
④ Design judgment
S1 (should-fix) — N1 (nit) — N2 (nit) — narrowed leg, a N3 (nit) —
Finding S1 stays open on this head. The queue guard reads it as open, and the record that closes it by id after the fix is the one that clears. Nothing found is graded above S1; the three nits end with this round. Implemented-by: VERDICT: PASS |
… on either declaration line The narrowed leg's record half took its tier from `reviewFace`, which reads the `Clause-②:` arm alone. A narrowing declared on the `Metadata-protocol:` line only, on a diff with no schema path and no governed path, landed on the declaration face: a default-tier record cleared it and an at-tier record was refused as below-tier. A near-arm clause spelling answered no face at all and was reported as a record that does not stand. Once the leg has found a declaration, `recordVerdict` now hands `reviewFace` the one spelling it reads as the narrowing arm (`NARROWING_FACE_LINE`), so the face is held wherever the paths decide none. A schema or governed path still decides first. One pin, five body shapes and a negative control. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
…ge:` values that give Tier S Read literally, the line let a declared and verified `yes` be Tier S. Edited in place; the file stays at its line ceiling. Claude-Session: https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN Green head for the delta reviews · 2026-11-19T19:22Z ·
Contract-review-claim: session_01L6bhgVaDMEnj7SrgKsMrWN · head eb45574 · 2026-11-19T19:22Z |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — ACCEPT (L1-a, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN Contract reviewServed-tier: This is the delta record for record 7018462956, by the same reviewer. Read for it: the net diff between the head that record names and this head (two commits, two files: The scope, security and rule-change values in the header are re-judged for this head, not copied. The file list is the same nine files, so the ① Derived judgments
② Semver levelUnchanged from record 7018462956: nothing published moves in the delta, the ③ Boundary flags
④ Design judgmentS1: closed Why it is closed. Nothing else is loosened. The hold is strict on the flag and needs the declaration texts too, and only the narrowed leg sets either; every governed entry takes the unchanged call. The one direction in which a pull request that was refused can now clear is the malformed clause line beside a found declaration, and it clears only on the maintainer's half plus an at-tier PASS record, which is exactly what a correctly spelled narrowing owes. The pin is real. Handing the reader a line nobody wrote opens nothing. The constant is prepended to a local array inside N2: closed The change is right. With the hold in place the narrowed leg can no longer reach an unreadable face, so a near-arm spelling is no longer reported as a record that does not stand; a default-tier record on it is now refused as below-tier, which is the true cause. N3: closed The change is right. The path-fork line now names N1 is unchanged by the delta and stays as record 7018462956 left it: a nit with no effect on a landing, for the seat to keep as an accepted deviation or a follow-up card. N4 (nit) — left by the fix, not opened by it: the face readers outside the queue still key the narrowing face on the clause arm alone. The owed-reviews list ( No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 adoption · 2026-11-19T19:31Z · The seat adopts the #35321 card thread's isolated delta record 7019888994 for head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN Green head for the delta reviews · 2026-11-20T04:58Z ·
Contract-review-claim: session_01L6bhgVaDMEnj7SrgKsMrWN · head 9a1758e · 2026-11-20T04:58Z |
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN The brief handed to the isolated contract reviewer of this head, filled from Contract review brief — PR #35610 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN Contract reviewServed-tier: This is the second delta record after records 7018462956 and 7019888994, by the same reviewer, under brief 7030893796. Read for it: the net diff of the nine files against The header is re-judged for this head. The file list is the same nine files, so the ① Derived judgments
② Semver levelUnchanged from the earlier records: nothing published moves, the ③ Boundary flags
④ Design judgmentS1: closed N2: closed N3: closed All three stay closed because the code and the line that closed them did not move: 1. Every line deleted, merged or shortened: did a rule go, or only repetition? In
In
Against
So against 2. What a body with two line-start Measured in 3. Where the declaration is still taught.
The claim template was a fourth copy on a line about a different declaration. Nothing a developer or a seat needs is taught only there. 4. The prose gate's region in the skill file.
5. What the merge of Only 6. The rule-change line for this head. Judged from the whole diff against N5 (nit) — N6 (nit) — N1 and N4 are unchanged and stay as the earlier records left them. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 re-adoption · 2026-11-20T05:11Z · This supersedes the seat's earlier adoption, 7019977853. The head moved because main was merged in after #35712 (the byte ratchet) landed, and the text was then compressed to fit the byte ceilings, with no ceiling raised. The seat adopts the #35321 card thread's isolated delta record 7031028923 for head
@os-zhuang, please review head |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44679589220 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Queue eject · 2026-11-20T05:32Z · The merge-queue build 44679589220 ejected this PR. The cause is inherited, not this diff: the Dogfood Regression Gate test @os-zhuang, the queue guard accepts a re-enqueue only from you or behind an APPROVED review. To save you a second trip, could you leave an APPROVED review on |
…he .claude/** declaration split, and the split reads the queue's record leg (objectstack-ai#35612) (objectstack-ai#36215) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_ Part of objectstack-ai#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 objectstack-ai#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. - **The relay's review plan** (`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. At `pr_ready` the follow-up then reads the body off the pull answer. When the body declares `none` (or `ruled` with its `Ruling-ref:`), it also reads the record stage through the queue guard's own `readLowRiskRecordStage` (card labels left unread). It requests nobody only when the record on the head verifies the declared value. A `yes`, 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. -⚠️ Premise correction: the card's done-when says "at `pr_create`". The relay summons nobody at `pr_create` by ruled design (the header section "The governed-review follow-up — after `pr_ready`, never after `pr_create`"; the seat's hand-off is `pr_request_reviewers`). The request is pinned at `pr_ready`, the one follow-up the relay has. - **H43 and H48** (`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). A `yes`, no line or a hooks path is listed as Tier H. A `none` stands down only on a trusted PASS on the head whose `Rule-change-verified:` line matches. The register loader exports `applyRuleChangeSplit` and `readRuleChangeVerified` beside the matcher. - **N1: one record leg everywhere** (`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`, then `recordPassVerdict`) as `recordLeg`, and `ruleChangeRecordReasons` holds the conjunct only where it `stands`. A FAIL, a below-tier record, or a leg that was not read keeps the split at Tier H. So `--pr` and 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. - **The queue guard's early-warning leg** (item 3, measured true at `cbd582f4`: the `pull_request` leg read no body although the event payload carries one). `resolveEventContext` keeps `pull_request.body`, and `runGuard` re-reads the split off it (`readPayloadDeclaration`). On a `.claude/**` pull, `yes` is now Tier H on the body. A declared `none` prints "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's `types:` list has no `edited`, so the next push or the queue leg reads a later edit. - **N4** (`scripts/pm/check-owed-reviews.mjs`). `owedFace` finds a narrowing the way the queue's narrowed leg does (`narrowingDeclarationsIn`, imported). When it finds one, it reads the face with `NARROWING_FACE_LINE` handed 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 declaring `none`. - **hotcrm on the `workflows` row** (item 5). Pinned: a hotcrm workflow pull is Tier H and outside `split.repos`, so `pr_ready` requests the approvers at the hotcrm pull. The row names `split.repos`, and no compare is read. The control is an ungoverned hotcrm path, which plans nobody. - **N5, N6 (prose)**. `.claude/agents/os-dev.md` says 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. - Header prose in the register, the queue guard and the relay now says the readers chain the split. The register's "two readers do NOT chain" paragraph is replaced. ### Not done here: item 4, the post-merge sweep (measured) Measured at `cbd582f4`: `classifyCommit` calls `testVerdict` with 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 verified `none` is 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 like `readArmLanding`: approval and enqueue legs before `merged_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 with `none` waits on its record, with `yes` it 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: `none` over 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 verifying `yes`, a FAIL, and AGENTS.md beside the wording. Also the readable gate, the words, four `pr_ready` runs (`none`+verified sends nothing, with `yes`, `none`+`yes`-record and `none`+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 verified `none`, listed on `yes`, 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 - H43's record reading has two stated bounds, both toward under-reporting (standing down where the queue would not), never asking early. Only the PR thread is read, so a record on the card alone reads absent and the PR stays Tier H. The record's `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. - The relay hands `readLowRiskRecordStage` no 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. - `owedFace` reads 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. - The low-risk arm's record stage has the same N1 shape for its `Security-touching:` line: `--pr` reads 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: 1. `scripts/pm/check-governed-queue-guard.mjs`: `lowRiskRecordStage` (the new `recordLeg`, built by the queue's own `recordVerdict` and `recordPassVerdict`), `ruleChangeRecordVerdict` and `readPayloadDeclaration`. 2. `scripts/pm/fleet-write/execute.mjs`: `governedReviewPlan`'s chain, `ruleChangeReadable` and `ruleChangeReadingFor`, plus their wiring in `requestGovernedReview`. 3. `scripts/pm/check-half-states.mjs`: `h43RuleChangeSlice` and `h43RuleChangeRecord`, plus the sweep's pending-thread pass before `shortOfCoverage`. 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: none` case and its `Rule-change: yes` control both green. <details><summary>Readings at head 101fd54 (local, derived subset; every CI family is the PR's own check-runs)</summary> - The five touched instruments' self-tests: `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-coverage` is 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-expressions` first exited 3 (formula not built), then 0 after `turbo run build --filter=@objectstack/formula --filter=@objectstack/lint` under the verify lock. - `--ran` reconciliation: `✓ 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 0` before every push. - `origin/main` moved 36 files past the base `cbd582f4`, none under `scripts/pm/`, `.claude/` or `package.json`, so it is not merged here. - Byte ceilings (`check-skill-line-ratchet.mjs`): `.claude/agents/os-dev.md` is at 38845 of 38848, `.claude/skills/pm-dispatch/SKILL.md` at 33869 of 33872. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
Fixes #35321
Clause-②: no
Metadata-protocol: none
Rule-change: yes
Branch note for the Duplicate Fix Guard:
claude/project-thread-ndkip6is the branch the card thread's harness assigns, and the claim comment on the card names it; it carries no issue number by construction.维护者速读
Source
The card's source line, the maintainer (Warren), 2026-11-19, review-split discussion thread, verbatim and untranslated:
Point 1 of 「1+2+4」 returns fleet rule text to the maintainer and overrides the 2026-09-18 ruling where that ruling handed all of
.claude/**to the seats on a contract review. Rule text is: what an agent may do without him (merge, bypass checks, change repository settings); what gets done and in what order (grading, dispatch, scope); what must go to him (decisions, maintainer actions). Process steps, scripts, wording, slimming and file moves stay with the reviewer.What changes
The card's five items, in its order, then the authors' side added in the patch round.
GOVERNED_SURFACES:scripts/pm/check-governed-merges.mjs,scripts/pm/check-governed-queue-guard.mjs,scripts/pm/record-recognisers.mjs,scripts/pm/dispatch-gates.mjs. The card's conditional was measured before the edit:readWorkflowDiffcould read an edit to the guard's own workflow file as Tier S, so.github/workflows/governed-surface-guard.ymljoinsWORKFLOW_TIER_H_FILES(seven always-H workflow files now)..github/CODEOWNERSmirrors the four rows, whichcodeownersMirrorVerdictdemands..claude/**splits by declaration. The row keepstier: Sand gainsruleChange;applyRuleChangeSplitruns last in the tier chain and answers Tier H unless the PR body carries one bare line-start declaration ofnone(or ofruledtogether with one bare line-start ruling reference) and the PASS record on the current head carriesRule-change-verified:with the same value. A missing line, ayes, a quoted, fenced or doubled line, or a record that does not verify is Tier H..claude/settings*.jsonand everything under.claude/hooks/are Tier H by path whatever is declared, and CODEOWNERS now carries a line for each.ui/.claude/**and every other repository's.claude/**stay Tier H.governedTierForandtestVerdict(--test,--branch) now answer Tier H for.claude/**: a path list cannot say what a body declares.ruleChangeRecordVerdict); a record carried across a head move must not have crossed a.claude/**hunk.--prstages the record read the way the low-risk arm does (pending, read, asked again).merge_grouponly, reads every queued pull's body and every changeset its commit carries, line by line with the fleet's two readers. A declared narrowing (the narrowed value of the metadata-protocol line, or the narrowing arm on either value of the clause line) is refused on exit 10 until both halves are on record: an authorized APPROVED review, and a PASS contract review that stands on the current head.added,semantic,noneand a bare clause line cost one already-memoized pull read and change nothing. Unreadable inputs refuse on exit 11. Exit precedence is governed, then size, then narrowed.UNFILLED_PROTOCOL_MENU, built from the reader's own kind list); a partial menu that still spells the narrowed kind counts as before. The pin reads the template file from disk.workflowsrow addshotcrm, as the audit mirror: a merged hotcrm workflow change now produces a row in the sweep.objectosandmobilestay out.AGENTS.mdPrime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14 names the four instruments and states the split in one sentence; the pm-dispatch path-fork region names the same surfaces, the split and the declared-narrowing landing;references/contract-review.mdnames the record'sRule-change-verified:line, andrecord-recognisers.mjs --templateand--brief-templateprint it (shipped asyes, so an unedited paste lands nothing) with one duty wording both share..claude/agents/os-dev.md), in its definition of done: a diff that touches the root.claude/**tree owes the PR body one line-start declaration, judged from the diff. It gives the three values (none: no fleet rule changed, with the three kinds of rule named;yes: one changed;ruled: the text copies a ruling already made), saysruledowes a second line-start line quoting the maintainer with source and time and says a missing line lands as Tier H likeyes.9a1758ee, whenmainbegan to count the skill files in bytes with no headroom (the deletions are listed under Acceptance notes). The developer is taught by the agent file, and the seat by the Tier S line of the path-fork region..github/PULL_REQUEST_TEMPLATE.md: an italic note under the two declaration lines, asking for the line only when the pull changes a file under.claude/. The template carries no fillable line for it, so an unfilled template still reads asmissing, as it did before. Measured before choosing the wording: no script or workflow reads the template file, the two existing line readers answer the same on the new template as on the old one, and the key is read only by the register's tier reading and only for a pull that hits the.claude/**row. No guard starts requiring the line on other pulls.Line budget: 1,751 changed lines (+1,602 / -149) over 9 files, against the 3,000-line human-merge line.
Landing impact
From the merge of this PR on, every open pull whose diff touches the root
.claude/**tree lands as Tier H until its body carries the line-start declaration and the PASS record on its current head carries the verified line..claude/settings*.jsonand.claude/hooks/**are Tier H whatever is declared.Read again at head
9a1758ee, over all 52 open pulls (this one included), each pull's full file list:.claude/settings.jsononly). Tier S today. Tier H by path after the merge, whatever it declares. Its body carries no declaration line.No other open pull touches the root
.claude/**tree, the four instrument files, the guard's workflow file orui/.claude/**.Item 3 changes a second set of open pulls, whatever paths they touch: from the merge on, a pull whose body or changeset declares a narrowing is refused at the queue until an authorized approval (or the authorized account's own enqueue) and a standing PASS contract review are on its head. Read at the same pass, by running this head's own reader,
narrowingDeclarationsIn, over every open pull body:$operator, as under the AST operators #35604, fix(plugin-auth)!: a directory deactivation removes the user's local password; a re-activation restores access through SSO only #34738, fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223, fix(plugin-auth)!: a credential change ends access issued before it #35664, fix(plugin-auth)!: SSO discovery fetches only hosts that resolve to public addresses #35697 and fix(driver-sql)!: a boolean field is stored as a boolean whatever spelling the caller sends #35718 (all drafts): each body carries a clause line with the narrowing arm.Only pull bodies were read for this list. A narrowing declared in a changeset alone is read by the leg at the queue and is not listed here.
The seat sends a notice to the owning seats of the pulls named in this section before this PR lands. The notices are sent: PR comment 7019977853 records those for #35443, #35604, #34738 and #34223, and the seat's notices for #35664, #35697 and #35718 are comments 7030716558, 7030722099 and 7030728219.
Tests
Head
9a1758ee, which hasmainata457b515merged in. Every exit code below was captured before any pipe.node scripts/pm/check-governed-merges.mjs --self-test: exit 0, 959 assertions. New battery of 40 cases pins item 1 and item 2: each guard file is H in objectstack and ungoverned elsewhere; a.claude/wording path with both lines is S; a missing line,yes, an unverified record, a quoted, fenced or doubled line are H; settings and hooks are H by path with both lines on record; hotcrm workflows are governed.node scripts/pm/check-governed-queue-guard.mjs --self-test: exit 0, 637 cases. Two new batteries (26 and 24 cases): the same branches driven end to end at the queue, the CODEOWNERS mirror, and the narrowed leg (declared without approval is refused on 10;addedis unchanged on one pull read; both halves clear; each half alone refuses and names the missing half; unreadable inputs refuse on 11; the PR template left unfilled declares no narrowing, a partial menu still does; the narrowed kind on a runtime-only path, in five body shapes, is refused on a default-tier record and cleared on an at-tier one).node scripts/pm/record-recognisers.mjs --self-test: exit 0, 456 cases. The template the tool prints is driven through the queue guard: with the reviewer's ownnoneit clears, pasted unedited it does not.pnpm check:pm-governed-prose: exit 0, both regions name all 17 rows that govern objectstack.pnpm check:pm-skill-ratchet: exit 0, counted in bytes sincemainata457b515, withAGENTS.mdat 78,011 of 78,106, the skill file at 33,872 of 33,872, the developer agent file at 38,846 of 38,848 and the review reference at 6,416 of 6,419. This PR edits no ceiling row.pnpm check:pm-skill-id-lint: exit 0.One-time ablations (not kept as tests): three mutations, each red, each restored
A1 to A3 ran at the earlier head
cd8dab31; the patch round changed one tested behaviour (the unfilled-menu exemption), ablated ateb947a21as A4; the second patch round changed one more (the record half holds the narrowing face), ablated ateb455747as A5. Head9a1758eechanges prose only and no tested behaviour. All ran throughscripts/ablation-replace.mjsin wrap mode on committed code; after each, the tool printed the restored blob equal to HEAD and an emptygit diff HEAD. Expected direction was red in every leg but one, noted below.yesdeclaration no longer refused (one line inruleChangeVerdict): register self-test exit 1 with 4 failures; queue-guard self-test exit 1, failingRule-change-yes-is-Tier-H-refused-whatever-the-record-says.guard-queuerow's exact path changed: register self-test exit 1 with 2 failures; queue-guard self-test exit 1 on four CODEOWNERS mirror pins. The prose gate stayed green on this mutation: it reads the row'sglob, which the mutation left alone, so that leg measured nothing about the prose gate.narrowed-declaration-without-approval-is-REFUSED-on-its-own-codeand three sibling pins.eb947a21, the unfilled-menu exemption removed fromnarrowingDeclarationsIn: queue-guard self-test exit 1, 1 of 636 cases failed, the pinthe-pull-request-template-left-UNFILLED-declares-no-narrowing-and-a-partial-menu-still-does. A first attempt with an empty replacement was refused by the tool before the command ran and measured nothing; the run quoted is the second.eb455747, the hold removed fromrecordVerdict: queue-guard self-test exit 1, 1 of 637 cases failed, the pinthe-narrowed-kind-on-a-runtime-only-path-holds-the-narrowing-faces-tier-a-default-tier-record-is-REFUSED-an-at-tier-one-CLEARS, with the default-tier record clearing and the at-tier record refused in three of its shapes, which is what the same pin read on the code before the change.Acceptance notes
Deliberate choices a reviewer should see, and what is left outside this PR.
missing.pull_request) leg reads no body, so it names a.claude/**diff as Tier H until the body is read, and never reddens.ui/copy of the queue guard, which belongs to its own card.9a1758eepays in bytes).AGENTS.mdfeat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14: the parenthetical after.claude/**, the sentence describing when the prose gate reds (shortened), the comment id afterpr_dequeue, the rationale clause after the no-approving-review rule, the sentence about CODEOWNERS and the relay routing, the restated "tiered by the register" clause, and one repeated "on a PR whose diff touches a governed surface". Path-fork region: the restated "split before acting" clause, the bullet restating the developer agent's own rule for the reader summary, and the "(该面独占)" restatement. Review reference: the words saying who reads the security line, which the template legend carries. Developer agent file (three lines added, three paid, at the earlier heads): the bullet restating that one foreground blocking wait is the only wait shape, and the bullet restating that no lock, sibling build or watcher wakes the agent, both already said by the resource rules above them; two pointer lines to the body-sanitizer rule inAGENTS.mdmerged into one. At head9a1758ee, after the merge ofmainleft the skill file 377 bytes and the developer agent file 38 bytes over their new byte ceilings: the claim-template clause added in the first patch round is taken back out; in the path-fork region the three lines that list the governed surfaces become one list line, with theGOVERNED_REPOSsentence on a line of its own, the two guard lines become one, and the tag 「(本仓)」 and one word of the skills-lane exception are dropped; in the developer agent file the three declaration lines become two, and the note that no other line may lead with the key is dropped (a second such line reads as Tier H at the guard, which prints the reason).pnpm check:i18n-coverageanswered exit 3, prerequisite not met (it needs the CLI and example builds); NOT MEASURED locally, left to CI. The diff touches no package, so there is no build closure and no package test owed.Verification
Read first, by risk:
scripts/pm/check-governed-merges.mjs: theruleChangeVerdictfunction and the register rows. Risk hunk: the order of its four checks, since Tier S is returned only with zero reasons.scripts/pm/check-governed-queue-guard.mjs:ruleChangeRecordVerdict,narrowedReadingandnarrowingDeclarationsIn. Risk hunks: the queue leg defers the record to its own record leg, so the verified line is enforced there and nowhere earlier; the unfilled-menu exemption must stay an exact match.AGENTS.mdPrime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14 and the two added lines in.claude/agents/os-dev.md: the new sentences, and the deletions listed above.Two-minute check: run
node scripts/pm/check-governed-merges.mjs --test scripts/pm/dispatch-gates.mjs. Expected: exit 3,landing tier: H, the row namedthe dispatch gates and the contract-review tier they declare. Onmainthe same command answers 0 hits.Derived gate union
At head
eb455747:node scripts/pm/dispatch-gates.mjs --commandsderived 78 commands from the 9 changed paths, one more than at the head before it (pnpm check:agent-model-declared, which reads the agent files). All 78 ran at that head, exit code recorded per command: 77 exit 0, 1 exit 3 (pnpm check:i18n-coverage, prerequisite not met). Nothing was carried from an earlier head.--ranreconciliation:78 derived famil(ies) accounted for — 77 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).pnpm check:nul-bytesandpnpm check:pm-dispatch-gatesare among the 77. The derivation printed a stale-tree note (12 commits behindorigin/main, one derivation input changed there); the branch was not merged withorigin/mainat that head.At head
9a1758ee:mainata457b515is merged in (no conflict), and one commit edits two files, the pm-dispatch skill file and the developer agent file.node scripts/pm/dispatch-gates.mjs --pathsover those two files derived 26 commands; all 26 ran at this head and exited 0, the three self-tests and the prose, ratchet and id-lint gates quoted under Tests among them. The other 52 commands are carried fromeb455747and left to CI on this head.node scripts/pm/overlap-check.mjsat this head: clean againstorigin/mainand the one open pull that shares a file (#35582,AGENTS.md).Human Minimum
pnpm lintis CI's run on this PR and was not run locally.main, one pull request.packages/specnot touched.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN