Skip to content

chore(governance): the guard scripts join the governed register, .claude/** lands by declared rule-change, a declared narrowing waits for the maintainer - #35610

Merged
os-zhuang merged 10 commits into
mainfrom
claude/project-thread-ndkip6
Nov 20, 2026
Merged

os-zhuang merged 10 commits into
mainfrom
claude/project-thread-ndkip6

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

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-ndkip6 is the branch the card thread's harness assigns, and the claim comment on the card names it; it carries no issue number by construction.

维护者速读

  • 用户能看到什么变化:用户无感。车队内部:改动「判定谁能合并」的那几件工具本身、改动车队规则条文,今后都要等你亲手批准;只改措辞和流程的车队文档仍由席位凭复核落地,但提交时必须声明「没有改规则」,复核记录也要确认这一点;会让现有应用报错的规范收紧,入队前同样要等你批准。
  • 为什么做:属于「评审分工」这一轮整理,把你今天上午确认的几点落成机器检查——今天改守门工具本身可以绕开所有拦截。
  • 出错会怎样:声明或复核记录缺失时,相关改动会被合并队列拦下等你批,不会误放行;本 PR 合并后有七个在途改动会先被拦下(明细见下文英文部分),补上声明或由你批准即可放行;拦错了你批准一次即可放行,整个改动可以一次撤回。
  • 要你做什么:审阅并批准本 PR(它自己就改了规则条文和守门工具)。

Source

The card's source line, the maintainer (Warren), 2026-11-19, review-split discussion thread, verbatim and untranslated:

03:16Z 「以上都同意」
03:17Z 「北极星、AGENTS.md、改车队规则的技能条文(谁能做什么、怎么定级、怎么合并)也需要fable 吧」
03:17Z 「spec:收紧作者能写的东西(会让现有应用报错),也需要fable 吧?」
04:24Z 「1+2+4」
04:30Z 「「已裁定的照抄只核对、不再审」 同意」

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.

  1. The guard instruments are register rows, Tier H, scoped to objectstack. Four exact rows join 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: readWorkflowDiff could read an edit to the guard's own workflow file as Tier S, so .github/workflows/governed-surface-guard.yml joins WORKFLOW_TIER_H_FILES (seven always-H workflow files now). .github/CODEOWNERS mirrors the four rows, which codeownersMirrorVerdict demands.
  2. .claude/** splits by declaration. The row keeps tier: S and gains ruleChange; applyRuleChangeSplit runs last in the tier chain and answers Tier H unless the PR body carries one bare line-start declaration of none (or of ruled together with one bare line-start ruling reference) and the PASS record on the current head carries Rule-change-verified: with the same value. A missing line, a yes, a quoted, fenced or doubled line, or a record that does not verify is Tier H. .claude/settings*.json and 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.
    • Path-only callers of governedTierFor and testVerdict (--test, --branch) now answer Tier H for .claude/**: a path list cannot say what a body declares.
    • At the queue the body is read on the pull read the head already costs. The declaration alone gives Tier S there, and the record leg then requires stands, PASS and the verified line (ruleChangeRecordVerdict); a record carried across a head move must not have crossed a .claude/** hunk.
    • --pr stages the record read the way the low-risk arm does (pending, read, asked again).
  3. A declared narrowing lands like Tier H. A new leg of the queue guard, merge_group only, 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, none and 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.
    • Measuring the PR template for item 6 found a defect in this leg as first pushed: the template's unfilled menu line (the metadata-protocol key followed by its four kinds joined by bars) was read as a declared narrowing, and the changeset check passes such a body when the line is moot, so a pull that left the template untouched would have been refused at the queue. Now exactly that menu, as the template spells it, declares nothing (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.
  4. The workflows row adds hotcrm, as the audit mirror: a merged hotcrm workflow change now produces a row in the sweep. objectos and mobile stay out.
  5. Prose. AGENTS.md Prime 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.md names the record's Rule-change-verified: line, and record-recognisers.mjs --template and --brief-template print it (shipped as yes, so an unedited paste lands nothing) with one duty wording both share.
  6. Authors are told to write the declaration. Two files, added on the file surface the claim was widened to:
    • The developer agent's instruction file (.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), says ruled owes a second line-start line quoting the maintainer with source and time and says a missing line lands as Tier H like yes.
    • The claim template in the pm-dispatch skill file carries no clause for it. One was added in the first patch round and taken back out at head 9a1758ee, when main began 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 as missing, 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*.json and .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:

No other open pull touches the root .claude/** tree, the four instrument files, the guard's workflow file or ui/.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:

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 has main at a457b515 merged 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; added is 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 own none it 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 since main at a457b515, with AGENTS.md at 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 at eb947a21 as A4; the second patch round changed one more (the record half holds the narrowing face), ablated at eb455747 as A5. Head 9a1758ee changes prose only and no tested behaviour. All ran through scripts/ablation-replace.mjs in wrap mode on committed code; after each, the tool printed the restored blob equal to HEAD and an empty git diff HEAD. Expected direction was red in every leg but one, noted below.

  • A1, a yes declaration no longer refused (one line in ruleChangeVerdict): register self-test exit 1 with 4 failures; queue-guard self-test exit 1, failing Rule-change-yes-is-Tier-H-refused-whatever-the-record-says.
  • A2, the guard-queue row'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's glob, which the mutation left alone, so that leg measured nothing about the prose gate.
  • A3, the human half of the narrowed leg no longer required: queue-guard self-test exit 1, failing narrowed-declaration-without-approval-is-REFUSED-on-its-own-code and three sibling pins.
  • A4, at eb947a21, the unfilled-menu exemption removed from narrowingDeclarationsIn: queue-guard self-test exit 1, 1 of 636 cases failed, the pin the-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.
  • A5, at eb455747, the hold removed from recordVerdict: queue-guard self-test exit 1, 1 of 637 cases failed, the pin the-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.

  • The record half of the narrowed leg holds the narrowing face's tier whichever line carries the declaration (the clause line's arm or the metadata-protocol line's narrowed kind), so a default-tier record does not clear it and an at-tier record does; a schema or governed path still decides first.
  • The human half of the narrowed leg also counts the maintainer's own enqueue. The card says an authorized APPROVED review; the 2026-10-26 ruling made an enqueue from an authorized account the same act for every landing the guard judges, so the leg accepts either and still requires the PASS record. Dropping the enqueue arm is a one-line change if the approver wants the approval alone; the question was put to the coordinator, who left it here for the approver.
  • Two readers do not chain the split and still read the raw row's Tier S: the relay's review-request plan and the patrol's landing row, both outside this card's file surface. Neither decides a landing; the queue guard does. Effect: a pull that declares a rule change is refused at the queue but is not auto-routed to the maintainer by the relay. CODEOWNERS routes the settings and hooks paths. A follow-up card for the two readers is filed by the card thread, not in this PR.
  • The PR template gets a note, not a fillable line. A fillable line would sit in every pull's body and be read as a declaration on pulls it does not concern; the note keeps the unfilled reading at missing.
  • The early-warning (pull_request) leg reads no body, so it names a .claude/** diff as Tier H until the body is read, and never reddens.
  • The post-merge sweep has no audit leg for the split; it lists the merge with its approver and merger as before.
  • hotcrm's own half (its instruction file listing workflows as governed) is a separate PR in that repository.
  • Not on the register: the readers the guard imports (the clause-line readers, the patrol module, the relay op table, the tier data file) and the ui/ copy of the queue guard, which belongs to its own card.
  • A near-arm spelling counts as a declared narrowing (fail closed); a narrowing nobody declared stays the contract review's finding.
  • The narrowed rule's prose home is one clause in the path-fork region; Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14 is about governed paths and was left to items 1 and 2.
  • The refusal string of the narrowed leg cites its ruling by date; the quotation lives in the script header.
  • Content deleted to stay at the ceilings (no ceiling moved; the first two rounds paid in lines, and head 9a1758ee pays in bytes). AGENTS.md feat: 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 after pr_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 in AGENTS.md merged into one. At head 9a1758ee, after the merge of main left 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 the GOVERNED_REPOS sentence 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).
  • Local narrowing of verification: pnpm check:i18n-coverage answered 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:

  1. scripts/pm/check-governed-merges.mjs: the ruleChangeVerdict function and the register rows. Risk hunk: the order of its four checks, since Tier S is returned only with zero reasons.
  2. scripts/pm/check-governed-queue-guard.mjs: ruleChangeRecordVerdict, narrowedReading and narrowingDeclarationsIn. 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.
  3. AGENTS.md Prime 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 named the dispatch gates and the contract-review tier they declare. On main the same command answers 0 hits.

Derived gate union

At head eb455747: node scripts/pm/dispatch-gates.mjs --commands derived 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. --ran reconciliation: 78 derived famil(ies) accounted for — 77 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). pnpm check:nul-bytes and pnpm check:pm-dispatch-gates are among the 77. The derivation printed a stale-tree note (12 commits behind origin/main, one derivation input changed there); the branch was not merged with origin/main at that head.

At head 9a1758ee: main at a457b515 is 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 --paths over 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 from eb455747 and left to CI on this head. node scripts/pm/overlap-check.mjs at this head: clean against origin/main and the one open pull that shares a file (#35582, AGENTS.md).

Human Minimum

  • 1. No schema touched.
  • 2. New names follow the casing of their kind.
  • 3. No formatter ran. pnpm lint is CI's run on this PR and was not run locally.
  • 4. One issue, one branch off main, one pull request.
  • 5. Nothing published is touched, so no changeset; both declaration lines are filled in above.
  • 6. packages/spec not touched.
  • 7. No hand edits to generated references, changelogs or release notes.
  • 8. Title, body and comments are in English, with the reader summary in Chinese as the template asks.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgVaDMEnj7SrgKsMrWN

…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

Green head for review · 2026-11-19T18:11Z · eb947a210475e0e4e82b72d91e82aae38f32fb68

Contract-review-claim: session_01L6bhgVaDMEnj7SrgKsMrWN · head eb947a2 · 2026-11-19T18:11Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

The brief handed to the isolated contract reviewer of this head, filled from record-recognisers.mjs --brief-template at the head (placeholders replaced, nothing else changed). Posted for the seat to read before it adopts the record.

Contract review brief — PR #35610 @ eb947a210475e0e4e82b72d91e82aae38f32fb68 (card #35321)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35321: its body and EVERY comment (rulings and earlier records included)
· PR #35610: its body, its file list, and the net diff against main at eb947a210475e0e4e82b72d91e82aae38f32fb68
· the check-runs on eb947a210475e0e4e82b72d91e82aae38f32fb68: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: .claude/agents/os-dev.md, .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/contract-review.md, AGENTS.md, scripts/pm/check-governed-merges.mjs, scripts/pm/check-governed-queue-guard.mjs, scripts/pm/record-recognisers.mjs;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — if a hits path is under skills/** or ui/skills/** and the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

Rule change — if a hits path is under .claude/**: the PR body declares Rule-change: and you verify it against the diff.
Write Rule-change-verified: none ONLY when no changed hunk alters what an agent may do without the maintainer
(merge, bypass a check, change repository settings), what gets done and in what order (grading, dispatch, scope), or
what must go to him (decisions, maintainer actions); process steps, scripts, wording, slimming and file moves are not rule
changes. Write ruled ONLY when every such hunk copies the ruling the PR body quotes on its Ruling-ref: line — check the
copy against the quoted words, do not re-rule it. Otherwise yes: the pull request then waits for the maintainer.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/1486ad0a-2b6e-503b-8c1b-bd5de32fa8c7/scratchpad/pr-35610/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:没有,改的是车队的守门规则。
    • 守门脚本本身改成要你批。
    • .claude/** 下的改动,PR 自报「不改车队规则」并经评审核实的,才由席位落地,其余要你批;权限设置和钩子一律要你批。
    • 申报为「收紧作者能写的东西」的改动,不管碰哪些路径,都要你批,还要附契约评审 PASS。
  • 出错会怎样:判错一类 PR,就会多来找你或少来找你。整个 PR 可回滚。
  • 要你做什么:这是 Tier H,要你批准。批之前,区域先在正文补上一件事:有 4 个在开的收紧型 PR 会受影响,清单见下。另外,守门脚本「用自己那份代码审自己」的老问题这次没有修,另开一张卡处理。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head eb947a210475e0e4e82b72d91e82aae38f32fb68 · 2026-11-19T18:16Z

  • 形态
    • draft, base main, 6 commits, 9 files, +1554/−147. Merge-base b65488a8, no main merge.
    • check-governed-merges.mjs --pr 35610: GOVERNED, Tier H, 1701 lines ≤ 3000.
    • The body has a line-start Rule-change: yes, skip-changeset, and Fixes #35321.
    • The file surface matches claim 7014231072 plus correction 7016779394 (os-dev.md, the claim template, PULL_REQUEST_TEMPLATE.md).
  • Item 1, guard instruments
    • Four exact rows were added, scoped to objectstack: guard-register, guard-queue, guard-records, guard-tiers.
    • governed-surface-guard.yml joins WORKFLOW_TIER_H_FILES. The card's condition was measured: 7 of 8 edits read as S.
    • CODEOWNERS mirrors the four rows and the two always-H paths. The two guard scripts moved out of the chain block, and the CODEOWNERS file itself stays as a chain row.
  • Item 2, the .claude/** split
    • The claude-tree row keeps tier: S and gains ruleChange.
    • applyRuleChangeSplit runs last in every chain that decides a landing: governedTierFor, testVerdict, pullRecordStage, and the queue guard's two tier reads.
    • The order is read in ruleChangeVerdict: the settings and hooks paths first (H by path); then no reading, which is H and NOT MEASURED; then exactly one bare body line, where yes, missing or unreadable is H and ruled also needs exactly one bare Ruling-ref:; then the record stage. That stage is pending (H) except on the queue guard's own record leg (deferred), which needs Rule-change-verified: equal to the declared value.
    • The template ships yes, so an unedited paste fails closed.
    • ui/.claude/** and every other repository's .claude/** stay H.
    • The author-side text says the same in all three places it appears (os-dev.md, the claim template, the PR template). The PR template avoids spelling the key with a colon, so its italic note is not a declaration.
  • Item 3, the narrowed leg
    • It is a fifth leg on merge_group and runs whatever the paths. I checked main(): there is no governed-only early return before runNarrowedGuard.
    • It reads the PR body and each changeset at its commit with the fleet's two line readers. It needs both halves, the human half and a standing PASS record, and refuses on 10, or 11 when a reading is unreadable.
    • The unfilled template menu is exempt exactly. A partial menu still counts as a declaration.
    • The human half accepts an authorized enqueue as well as an approval (dev open question 1). That is stated for the approver in the body.
  • Items 4 and 5
    • workflows gains hotcrm.
    • AGENTS.md feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14, the path-fork region and contract-review.md name the new rows and the split.
    • check-governed-prose.mjs on this head reads 17 surfaces named and no others. check-skill-line-ratchet.mjs passes; every ceiling holds, and none was raised.
    • The deletions that pay for the lines are listed in the body. I checked the two os-dev.md bullets: lines 88–101 do restate them. The 速读 drafting rule that left SKILL.md is still at os-dev.md:287.
  • Pins
    • Rerun on this head: check-governed-queue-guard 636 pass, record-recognisers 456 pass.
    • check-governed-merges --self-test is NOT MEASURED here (exit 3, no node_modules). The dev's reading is 957 assertions, and CI Lint & Repo Gates is green on this head.
    • Ablations A1–A4 each went red and each restore was proven (os-dev-reports 7016679857, 7017422696).
  • 落地前补正文(不动 head) — 〈Landing impact〉 lists only the .claude/** pulls. Item 3 also changes how every open pull that declares a narrowing lands. Read now over the open pulls' bodies, four declare one: fix(objectql)!: a by-id delete whose driver removes nothing answers RECORD_NOT_FOUND and runs no after-delete work #35537 (ready), fix(core)!: the value data source refuses a plain-object comparand under a $ 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 and fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 (drafts). From this merge on, each waits for an authorized approval as well as its PASS record. List them, and include their owning seats in the notice the body promises.
  • nit (accepted): readOneBareLine takes exactly one Ruling-ref: line, so a pull copying two rulings cannot declare ruled and lands H. That fails closed and is not wrong.
  • 范围外去向
  • 门禁 — on this head: 48 check-runs, 26 success, 22 skipped, 0 failure. Mergeable clean.
  • L2 — owed on this head: governed rule text plus the instruments ⇒ CONTRACT_REVIEW_TIER, with scope the whole diff. The thread's isolated sub-agent runs it, and the seat adopts it.
  • 落地条款 — Tier H: an authorized APPROVED review (or the maintainer's own merge or enqueue), the L2 PASS on eb947a21, and the body edit above. Then seat 1 lands it. The seat does not ready it, arm auto-merge, request review or enqueue it before that. A new push needs a fresh L1 only if it changes more than a main merge.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: eb947a210475e0e4e82b72d91e82aae38f32fb68
Local-runs: none
Scope: .claude/agents/os-dev.md, .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/contract-review.md, AGENTS.md, scripts/pm/check-governed-merges.mjs, scripts/pm/check-governed-queue-guard.mjs, scripts/pm/record-recognisers.mjs + .github/CODEOWNERS, .github/PULL_REQUEST_TEMPLATE.md
Security-touching: yes
Rule-change-verified: yes

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 main, the cited code in the tree at this head, and the 48 check-runs on the head (26 success, 22 skipped, none red, none pending). Nothing was run.

Why the header block reads as it does. The two .github files stand after the plus sign because both enforce the hits: the queue guard's mirror check demands the new CODEOWNERS lines, and the narrowed leg's unfilled-menu exemption is defined by, and pinned against, the template file on disk. The rule-change line agrees with the body's Rule-change: yes: the hunks in AGENTS.md, the pm-dispatch skill file and the developer agent file change what a seat may land without the maintainer and what must go to him, and they implement the card's five items instead of copying one quoted ruling word for word, so the pull request waits for the maintainer. The security line reads yes because the hunks teach who may land governed text and hold the harness permission file and the hooks to the maintainer, which is permission behaviour; no hits path sits under skills/** or ui/skills/**, so no arm reads that line on this pull request and no label follows from it.

① Derived judgments

  • Four exact register rows (guard-register, guard-queue, guard-records, guard-tiers), Tier H, objectstack only: right, card item 1. Two consequences follow from the rows and are also right: a pull request touching any of the four files now lands only by the maintainer, and reviewFace returns those files as rules-face hits, so each such pull request owes an at-tier review with item ④.
  • .github/workflows/governed-surface-guard.yml joins WORKFLOW_TIER_H_FILES: right. The workflow split could otherwise read an edit to the guard's own workflow as Tier S.
  • The root .claude/** row keeps its raw tier: S and gains ruleChange for objectstack. Its effective tier is H unless the PR body carries one bare line-start Rule-change: none (or ruled with one bare line-start Ruling-ref: line that states something) and the record on the head repeats the value on its verified line: right, card item 2. .claude/settings*.json and everything under .claude/hooks/ are Tier H by path before any body is read: right. ui/.claude/** and every other repository's .claude/** stay Tier H: right.
  • Path-only readers (--test, --branch, governedTierFor and testVerdict with no reading, classifyCommit) now answer Tier H for .claude/**: right, a path list cannot say what a body declares. Readers that take the raw row and do not chain the split still read S; see ③.
  • A PASS record written before this change carries no verified line, so a .claude/** pull request holding only such a record does not land on it until a record with the line names its head: right, the closed direction.
  • The workflows row governs hotcrm and its split still names objectstack alone, so no reading moves a hotcrm workflow to S; objectos and mobile stay out: right, card item 4.
  • Queue guard exit codes: 10 for a declared narrowing that is not cleared, 11 for a narrowed-leg input that could not be read, precedence governed, then size, then narrowed; a .claude/** entry whose body could not be read joins exit 4: right. The workflow treats every non-zero code as red, so no consumer depends on the old set.
  • The newly refused set at the queue: any queued pull request whose body, or a changeset its commits touch, carries a Metadata-protocol: narrowed line or a Clause-②: line with the (narrowing) arm on either value, near-arm spellings included, the template's exact unfilled menu excepted. added, semantic, none and a bare clause line are unchanged: right, card item 3. The tier the record half is held to is wrong in one corner: S1 under ④.
  • The record template and the brief print the verified line where a hits path sits under the split row, shipped as yes, so an unedited paste lands nothing: right.
  • CODEOWNERS gains the four guard rows and one line each for the hooks and the settings files, and the mirror check demands them: right.
  • The PR template gains a note and no fillable line, so an unfilled template still reads as no declaration, which is Tier H on a .claude/** pull request and nothing on any other: right.
  • No published package, schema, API or CLI surface changes. The three scripts export new names for fleet tooling only: right.
  • Transition, by the tree and not by the body: from the merge on, every open pull request touching the root .claude/** tree reads Tier H until it declares and a record verifies, and every open pull request that declares a narrowing is refused at the queue until both halves are on record. Right and intended.

② Semver level

No level is owed and none is taken: the nine files sit under .claude/, .github/, scripts/pm/ and at AGENTS.md, and nothing published moves. The skip-changeset label is on the pull request and both Check Changeset runs on the head are skipped, which matches. Clause-②: no is right: no published accept set or public surface widens. Metadata-protocol: none is right: nothing a metadata author can write changes.

③ Boundary flags

Open 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:

  • The post-merge sweep lists a merged .claude/** pull request as before and checks neither the declaration nor the two by-path Tier H patterns.
  • The early-warning leg reads no body. Accepted as it stands: it prints Tier H until the body is read and never reddens.
  • hotcrm's own instruction-file half is a pull request in that repository, as the card says. The ui/ copy of the guard belongs to its own card.

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:

  • The body's landing-impact list names the open pull requests under .claude/**. It names none that declares a narrowing, and the new leg refuses those from the merge on; the adopting seat reads the open pull requests for that before landing. No other pull request was read for this record.
  • pnpm check:i18n-coverage was not measured locally (exit 3, prerequisite). The head's check-runs are the gate verdict and none is red.
  • The line-ceiling deletions hold as slimming. In the developer agent file the two deleted bullets are restated by the resource rules above them (lines 88 to 105 at this head) and the two sanitizer pointers are merged into one. In AGENTS.md the deleted clauses are description, rationale or restatement; every rule sentence of Prime Directive 14 is still there.
  • SQL push-down: the diff holds no SQL, no id materialisation and no in-app join.

④ Design judgment

scripts/pm/check-governed-merges.mjs holds.

  • The split's verdict (ruleChangeVerdict) decides in the order the rule needs: a by-path Tier H file first, then a reading that was not handed in or not measured, then the body's one line, then the record stage. Tier S is returned only with zero reasons and no branch defaults to a value.
  • readOneBareLine counts every line that leads with the key, fenced, quoted and code-indented ones included, in any case and with hyphen, underscore or space between the words, and reads a value only when exactly one such line exists outside a fence and a quote, with the key outside a code span and the value exact. Tried against it: a doubled line, a fenced line, a quoted line, trailing words after the value, ruled with no reference line, a reference line that states nothing, a near-miss key, and the record's key written in a body. Each is Tier H.
  • The two by-path patterns cover the harness guardrails as the tree stands: every hook command in .claude/settings.json at this head lives under .claude/hooks/, and no hook there hands off to another .claude/** file.
  • The deferred record stage is answered only to a caller that asks for it. Only the queue leg asks; every other caller gets pending, which is Tier H, and that is pinned.
  • governedTierFor, testVerdict and pullRecordStage chain the split last, and applyGeneratedExceptions keeps the split's tier on the slice it lifts.
  • The four rows are exact paths; near names (a .bak sibling, the ui/ copy, the self-test sibling) and every other repository are pinned as not governed by them.

scripts/pm/check-governed-queue-guard.mjs holds, with S1.

  • A Tier S entry with a split row cannot skip the line: ruleChangeDeclaredOn reads the declared value off the same surface object the split wrote, and runGuard then sends the entry through ruleChangeRecordVerdict, which applies the carry rule, then recordPassVerdict, then requires the located comment's verified line to equal the declared value. A missing comment or a missing line is not-pass. The low-risk arm cannot hold on an entry that carries a .claude/** path, so the two record verdicts never compete.
  • Unreadable inputs refuse. A pull request that could not be read leaves the entry at Tier H and exits 4; an unreadable thread or recogniser set refuses; on the narrowed leg an unreadable pull request, a changeset the commit holds and git cannot show, the review list, the threads and the recognisers each exit 11, and a group that names no pull request refuses.
  • A record carried across a head move stands for the split only when the hops moved no path under the row, read with renames off; a diff that cannot be read refuses.
  • narrowingDeclarationsIn reads line by line with the fleet's two readers, so a none above a narrowed does not hide it, a near-arm spelling counts, a line that only quotes the spelling does not, and only the exact unfilled menu is exempt while a partial menu still counts. The set it refuses is a superset of what the changeset level check reads as a declared narrowing.
  • Both halves are required and each alone refuses and names the missing half; an unauthorized, dismissed or superseded approval is not the human half.

S1 (should-fix) — scripts/pm/check-governed-queue-guard.mjs, runNarrowedGuard: the record half takes its tier from reviewFace(paths, repo, { declaredOn }), and reviewFace reads only the Clause-②: arm. A narrowing declared on the Metadata-protocol: narrowed line alone, on a diff with no schema path and no governed path, therefore lands on the declaration face: the leg clears on a TIER_DEFAULT record and, because servedTierStands is exact in both directions, reads a CONTRACT_REVIEW_TIER record as below-tier and refuses it. Two bodies reach it past the changeset level check: one with no readable Clause-②: line, and one whose narrowing is declared only in a changeset, since that check reads the body alone. The leg's own main fixture, a bare Clause-②: no beside the narrowed kind, reaches it too wherever that check does not run. This contradicts the code comment at that site (never at the declaration face's cheaper tier), the leg's header, and the ruling the card quotes, under which a narrowing owes the at-tier review. The human half still holds in that corner, so nothing lands without the maintainer; what is wrong is the review the leg accepts and the correct record it turns away. The battery pins the narrowed kind only on a spec path and the runtime-only path only with the (narrowing) arm, so the combination is unpinned. Direction for the fix: once narrowedReading finds a declaration, hold the record half to the narrowing face's tier whatever the Clause-②: line reads, and add the one pin (narrowed kind, runtime-only path, a default-tier record refused, an at-tier record cleared).

N1 (nit) — --pr on a .claude/** pull request: the split's record stage (lowRiskRecordStage judged by ruleChangeRecordReasons) checks that a signed record on the head carries the verified line and reads neither its closing word nor its served tier, so --pr can print Tier S over a record that is not a clean PASS at tier. The queue's record leg refuses that record, so no landing changes, and the low-risk arm's stage has the same shape on main.

N2 (nit) — narrowed leg, a Clause-②: line with a near-arm spelling on a diff with no schema path and no governed path: reviewFace answers an unreadable face, recordVerdict reports it as below-tier, and the refusal says the record does not stand when the cause is the malformed line. It refuses, which is the right direction; the words send the reader to the record instead of the line. Same site as S1.

N3 (nit) — .claude/skills/pm-dispatch/SKILL.md, the path-fork line that begins Tier S =: it names the declaration without its value, so read literally a declared and verified yes is Tier S. The register and AGENTS.md hold yes at Tier H and the tools decide the tier, so no landing changes. Naming none or ruled on that line removes the reading.

scripts/pm/record-recognisers.mjs holds. The template and the brief decide whether to print the verified line with the register's own predicate (ruleChangeRowHit), the shipped value is yes, and the brief and the legend share one duty wording. The self-test drives the printed template through the queue guard: with the reviewer's own none it clears, pasted unedited it does not. The narrowing and declaration faces print no such line, which is right, since neither holds a governed path.

AGENTS.md holds. Prime Directive 14 names the four guard files, and its one split sentence agrees with ruleChangeVerdict clause by clause: line-start none in the body, or ruled with a reference line, repeated on the record; no line, yes, settings and hooks are Tier H. Whether the reference line really quotes the maintainer is the reviewer's check, as the brief's duty wording says.

.claude/skills/pm-dispatch/SKILL.md holds, with N3. The path-fork region names the four guard files, the guard workflow, settings and hooks as always Tier H, sends a declared narrowing to the same terminal steps as an oversized diff with no Tier S exception, and excepts the guard files from the skills lane's own-read landing. Each clause agrees with the register and the narrowed leg. The claim-template clause states the three values and the missing-line reading as the register reads them.

.claude/skills/pm-dispatch/references/contract-review.md holds: one line sends the reader to the template for the values of the independence pair and the two header lines, and the template carries them.

.claude/agents/os-dev.md holds. The three added lines give the three values with the maintainer's three heads of rule text, the second line ruled owes, the missing-line reading (Tier H), and the rule that no other line may lead with the key, which is exactly what makes readOneBareLine read a body.

.github/CODEOWNERS holds: the four rows and the two sub-path lines match codeownersMirrorVerdict, whose self-test reads this file from disk and is green on the head. .github/PULL_REQUEST_TEMPLATE.md holds: no line of the note leads with either key, so the template reads as no declaration, and the narrowed leg's exemption is pinned against the template's own menu line.

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: claude/project-thread-ndkip6
Reviewed-by: session_01L6bhgVaDMEnj7SrgKsMrWN

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

Green head for the delta reviews · 2026-11-19T19:22Z · eb455747680c32899babb3b7d9d899e4d9c5dd3e

  • Check-runs on this head: 48, of which 26 success and 22 skipped; none failed, none running. Mergeable state clean. Still draft.
  • Delta since eb947a21 (the head of L1 record 7017927999 and contract review 7018462956): two commits, scripts/pm/check-governed-queue-guard.mjs (+56 / -7: the fix for finding S1 of 7018462956 and its pin; the same change answers nit N2) and .claude/skills/pm-dispatch/SKILL.md (one line edited in place, nit N3). Nit N1 is left as an accepted deviation. Dev addendum on the card: 7019169288.
  • The L1 delta is asked of thread L1-a; the contract-review delta is read by the reviewer of 7018462956.

Contract-review-claim: session_01L6bhgVaDMEnj7SrgKsMrWN · head eb45574 · 2026-11-19T19:22Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 这一轮修了评审指出的一处漏洞:一个 PR 只在「Metadata-protocol」那一行声明了收窄时,守门脚本以前会按较低的评审档位放行,现在一律按收窄的档位要求评审记录。另外改正了技能里一行说明。
  • 要你做什么:仍是 Tier H,要你批准。批之前还要两样:原评审者在这个新 head 上的 L2 结论,以及你的批准。正文已按上次要求补上受影响的五个在途 PR。

席位核对 — ACCEPT (L1-a, delta) · repo:objectstack#1 · head eb455747680c32899babb3b7d9d899e4d9c5dd3e · 2026-11-19T19:24Z

Delta read: eb947a21..eb455747. That is 2 commits and 2 files, with no main merge. ACCEPT 7017927999's readings are carried.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: eb455747680c32899babb3b7d9d899e4d9c5dd3e
Local-runs: none
Scope: .claude/agents/os-dev.md, .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/contract-review.md, AGENTS.md, scripts/pm/check-governed-merges.mjs, scripts/pm/check-governed-queue-guard.mjs, scripts/pm/record-recognisers.mjs + .github/CODEOWNERS, .github/PULL_REQUEST_TEMPLATE.md
Security-touching: yes
Rule-change-verified: yes

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: scripts/pm/check-governed-queue-guard.mjs +56/-7 and one line of .claude/skills/pm-dispatch/SKILL.md), the tree at this head, the 48 check-runs on this head (26 success, 22 skipped, none red, none pending), and the card and PR text including the new comments (dev report 7019169288 on the card, 7019736796 and 7019790433 on the PR). Nothing was run. The other seven files of the pull request are byte-identical between the two heads, so every judgment of record 7018462956 on them is carried by reference and not repeated.

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 hits and the two enforcing files are the same. The delta changes which tier a guard leg holds a record to, which is still permission behaviour, so the security line stays yes. The body still carries exactly one line-start Rule-change: yes, and the pull request as a whole still changes fleet rule text, so the rule-change line stays yes and the pull request waits for the maintainer.

① Derived judgments

  • The record half of the narrowed leg now holds the narrowing face's tier for every pull request the leg found a declaration on. Three readings move, all on a diff with no schema path and no governed path, and each is right because a declared narrowing owes the at-tier review: a TIER_DEFAULT record no longer clears a narrowing declared on the Metadata-protocol: line alone; a CONTRACT_REVIEW_TIER record now clears it where it was turned away before; and a near-arm or malformed Clause-②: line beside a found declaration now reads the narrowing face instead of no face, so it clears on both halves like a correctly spelled one and no longer waits for ever.
  • No other entry's reading moves. A governed entry hands recordVerdict no declaration texts and takes the same two-argument reviewFace call as before; a schema or governed path still decides the face before any line is read; not-declared pull requests still cost one pull read and no record read. Right.
  • One new exported constant, NARROWING_FACE_LINE, and one new pair flag, narrowingDeclared, both internal to the guard. Right.
  • The skill line is a wording change and moves no accept set. Right.
  • Everything else under this heading in record 7018462956 stands as written there.

② Semver level

Unchanged from record 7018462956: nothing published moves in the delta, the skip-changeset label is still on the pull request, both Check Changeset runs on this head are skipped, and Clause-②: no and Metadata-protocol: none are still right.

③ Boundary flags

  • Dev report 7019169288 carries no open question. Its first deviation, that the fix hands the face reader a clause line nobody wrote instead of changing the reader itself, is answered under ④: it holds.
  • Its other deviations need no ruling here: the PR body edits leave the declaration lines as they were; the skill line was shortened to fit its line budget (judged under ④); N1 was left on purpose; pnpm check:i18n-coverage was again not measured locally, and the check-runs on this head are the gate verdict with none red.
  • The flag of record 7018462956 that the body's landing-impact list named no pull request declaring a narrowing is answered: the body now names five and says only bodies were read for the list.
  • The out-of-scope items of record 7018462956 that need a carrier before the seat's ACCEPT are unchanged by the delta and stay with the adopting seat.
  • The security item withheld from record 7018462956 stays with the owner seat; nothing in this delta touches it.
  • SQL push-down: the delta holds no SQL, no id materialisation and no in-app join.

④ Design judgment

S1: closed

Why it is closed. runNarrowedGuard builds the pair only after narrowedReading returned at least one declaration (the not-declared and empty cases leave the loop above it), and it now sets narrowingDeclared: true there. recordVerdict then puts NARROWING_FACE_LINE ahead of the declaration texts it hands reviewFace. reviewFace decides a schema path first, then a governed path, then a narrowing arm on any text, and only after that looks for a malformed line or falls to the declaration face. With the constant in front, the answer for such a pair can only be the schema, rules or narrowing face, and all three map to CONTRACT_REVIEW_TIER. That covers every shape named in S1 (no readable clause line, the narrowed kind in a changeset only, a bare clause line beside the narrowed kind) and the two malformed shapes beside them, without a case analysis that could miss one.

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. the-narrowed-kind-on-a-runtime-only-path-holds-the-narrowing-faces-tier-... drives five body shapes through the whole leg on a runtime-only path, each twice: an at-tier record must give exit 0, cleared, face narrowing; a default-tier record must give exit 10, refused, face narrowing, reason below-tier. It cannot pass on the code at the earlier head: there the first shape alone reads the declaration face, so the at-tier run is refused and the default-tier run clears, the reverse of both assertions. Its negative control is the same path and the same default-tier record under the added kind, which must stay not-declared and clear on one pull read with no record read. It also pins the constant by value and through readClause2Line, so a reordering of the reader's closed sets reds it. The battery floor moved from 23 to 24 with it.

Handing the reader a line nobody wrote opens nothing. The constant is prepended to a local array inside recordVerdict; the pair's own texts are not changed, reviewFace echoes no line on any face it can now return, and the narrowed leg's rendered words print the declarations the leg actually found, never the face's wording. The constant is built from the clause reader's own closed sets and is pinned to read as the narrowing arm.

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 none and ruled as the two values that give Tier S, which is what ruleChangeVerdict reads. The line lost the letter that said only the next line's S readings count; that next line still states when its surfaces read Tier H, so nothing is misread.

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 (scripts/pm/check-owed-reviews.mjs, which calls reviewFace with the body alone) therefore does not list the at-tier review for a narrowing declared only on the Metadata-protocol: line on a diff with no schema path and no governed path, while the queue now demands it. That list is report-only and outside this diff, the queue is the reader that decides and it is right, and its refusal says the record is below tier. A follow-up card is the place for it.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-ndkip6
Reviewed-by: session_01L6bhgVaDMEnj7SrgKsMrWN

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 eb455747. It is the delta for first-round record 7018462956, by the same reviewer, and the brief, 7017845228, came from --brief-template. The verdict is PASS: S1, N2 and N3 are closed, and there is no must-fix or should-fix item. The record's Scope: line covers every reviewFace hit this PR's nine files produce (.claude/agents/os-dev.md, .claude/skills/pm-dispatch/SKILL.md, references/contract-review.md, AGENTS.md), and it carries Security-touching: yes and Rule-change-verified: yes. L1 ACCEPTs are 7017927999 and, on this head, 7019790433. N1 is an accepted deviation; N1 and the new N4 ride follow-up #35612 (7019910195).

check-governed-merges --pr 35610 reads GOVERNED, Tier H, 1750 lines (under 3000), and the body carries Rule-change: yes. So this PR needs an authorized APPROVED review before it can land. @os-zhuang, please review head eb455747 and approve if you agree. Under ruling C, the seat then lands it: ready, arm, and the pre-landing notices to the owners of the open PRs named under Landing impact. Those notices go out now, ahead of the approval.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

Green head for the delta reviews · 2026-11-20T04:58Z · 9a1758ee415183a7e90528e22e50e3476cc25e55

  • Check-runs on this head: 52, of which 27 success and 25 skipped; none failed, none running. Mergeable state clean. Still draft.
  • Why the head moved: main at a457b515 (chore(pm): the skill ratchet counts bytes, and prose is no longer held to a 120-byte line #35712) counts the skill files in bytes with no headroom, and the merged tree stood 377 bytes over on .claude/skills/pm-dispatch/SKILL.md and 38 over on .claude/agents/os-dev.md. The approval asked in 7019977853 was for eb455747 and is asked again by the seat on this head.
  • Delta since eb455747 (the head of L1 record 7019790433 and contract review 7019888994): the merge of main, with no conflict, and one commit on those two files. No ceiling row moves and the ratchet script is not edited. In the skill file the claim-template clause for Rule-change: is taken back out, the three lines that list the governed surfaces become one, the two guard lines become one, and two short tags 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. The PR body lists each deletion under Acceptance notes.
  • The contract-review delta is read by the reviewer of 7018462956 and 7019888994, under the brief posted next; it is asked to judge line by line that the compressions removed repetition and no rule. The L1 delta is then asked of thread L1-a.

Contract-review-claim: session_01L6bhgVaDMEnj7SrgKsMrWN · head 9a1758e · 2026-11-20T04:58Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

The brief handed to the isolated contract reviewer of this head, filled from record-recognisers.mjs --brief-template at the head (placeholders replaced, nothing else changed). Posted 2026-11-20T04:59Z, before the record, for the seat to read before it adopts the record. The reviewer is the one who wrote records 7018462956 and 7019888994; this round is the delta from eb455747 (the head of 7019888994) to this head: the merge of main at a457b515 and one commit that edits .claude/skills/pm-dispatch/SKILL.md and .claude/agents/os-dev.md.

Contract review brief — PR #35610 @ 9a1758ee415183a7e90528e22e50e3476cc25e55 (card #35321)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths .claude/agents/os-dev.md .claude/skills/pm-dispatch/SKILL.md .claude/skills/pm-dispatch/references/contract-review.md AGENTS.md scripts/pm/check-governed-merges.mjs scripts/pm/check-governed-queue-guard.mjs scripts/pm/record-recognisers.mjs — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35321: its body and EVERY comment (rulings and earlier records included)
· PR #35610: its body, its file list, and the net diff against main at 9a1758ee415183a7e90528e22e50e3476cc25e55
· the check-runs on 9a1758ee415183a7e90528e22e50e3476cc25e55: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: .claude/agents/os-dev.md, .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/contract-review.md, AGENTS.md, scripts/pm/check-governed-merges.mjs, scripts/pm/check-governed-queue-guard.mjs, scripts/pm/record-recognisers.mjs;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Rule change — a hits path sits under .claude/**: the PR body declares Rule-change: and you verify it against the diff.
Write Rule-change-verified: none ONLY when no changed hunk alters what an agent may do without the maintainer
(merge, bypass a check, change repository settings), what gets done and in what order (grading, dispatch, scope), or
what must go to him (decisions, maintainer actions); process steps, scripts, wording, slimming and file moves are not rule
changes. Write ruled ONLY when every such hunk copies the ruling the PR body quotes on its Ruling-ref: line — check the
copy against the quoted words, do not re-rule it. Otherwise yes: the pull request then waits for the maintainer.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/1486ad0a-2b6e-503b-8c1b-bd5de32fa8c7/scratchpad/pr-35610/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVaDMEnj7SrgKsMrWN

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9a1758ee415183a7e90528e22e50e3476cc25e55
Local-runs: none
Scope: .claude/agents/os-dev.md, .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/contract-review.md, AGENTS.md, scripts/pm/check-governed-merges.mjs, scripts/pm/check-governed-queue-guard.mjs, scripts/pm/record-recognisers.mjs + .github/CODEOWNERS, .github/PULL_REQUEST_TEMPLATE.md
Rule-change-verified: yes

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 main at this head; the delta since the head of record 7019888994, which is the merge of main and one commit on two files; the tree at this head; the 52 check-runs on this head (27 success, 25 skipped, none red, none pending); and the card and PR text with the new PR comments 7019977853 and 7030887106. The card carries no new dev report for this round, so the round's account is comment 7030887106 and the body's acceptance notes; each claim in them was checked against the tree and none was relied on. The record's shape was printed with the brief's own template command; nothing else was run.

The header is re-judged for this head. The file list is the same nine files, so the hits are the same seven and the two enforcing files are the same two, both byte-identical to the previous head. The template for these paths prints no security line, because no hits path sits under a low-risk row; the judgment of the two earlier records that the change teaches permission behaviour is unchanged. The rule-change line is judged under ④, point 6.

① Derived judgments

  • The net diff against main is the same nine files. Six of them (the queue guard, the recognisers, AGENTS.md, the review reference, CODEOWNERS and the PR template) are byte-identical to the head of record 7019888994, and the register file differs from that head only by what main brought into it. Every accept-set judgment of the two earlier records therefore stands as written: right.
  • The one commit of this round changes no code and no reader. No tier, exit code, refusal or template line moves: right.
  • Two things change in what the prose teaches: the developer agent file no longer says that only one line may lead with the declaration key, and the claim template no longer carries the declaration clause. Neither changes what any tool reads. The first is N5 under ④; the second is repetition removed.
  • From main: the skill ratchet now counts bytes. This pull request edits no ceiling row and does not touch the ratchet script. At this head the skill file sits exactly at its ceiling (33872 of 33872 bytes) and the developer agent file two bytes under (38846 of 38848), so any later fix on these two prose faces has to pay in bytes: right as it stands, and a fact for the seat.

② Semver level

Unchanged from the earlier records: nothing published moves, the skip-changeset label is on the pull request, both Check Changeset runs on this head are skipped, and Clause-②: no and Metadata-protocol: none are still right.

③ Boundary flags

  • No open question is raised for this round. The deletions the body lists are judged line by line under ④, point 1.
  • N1 and N4 are unchanged by this delta. The seat's adoption comment 7019977853 names follow-up pm: after the .claude/** declaration split lands, the relay review plan and the patrol landing row still read the raw Tier S and never ask the maintainer #35612 as their carrier; that card was not read for this record.
  • The out-of-scope items of record 7018462956 that need a carrier before the seat's ACCEPT are unchanged and stay with the adopting seat.
  • The security item mentioned in record 7018462956 stays with the owner seat; nothing in this delta touches it.
  • The merge brought no new reader of the raw register row: the tier readers outside the register file and its guard are the same set at this head as at the previous one.
  • SQL push-down: the delta holds no SQL, no id materialisation and no in-app join.

④ Design judgment

S1: closed

N2: closed

N3: closed

All three stay closed because the code and the line that closed them did not move: scripts/pm/check-governed-queue-guard.mjs is byte-identical to the head of record 7019888994, and line 209 of the skill file reads as it did there.

1. Every line deleted, merged or shortened: did a rule go, or only repetition?

In .claude/skills/pm-dispatch/SKILL.md, since the head of record 7019888994:

  • Lines 191 and 192, three lines before. The three lines that listed the governed surfaces are one list line carrying all thirteen surfaces as code spans, and the GOVERNED_REPOS sentence stands on a line of its own, word for word. What went is two connective phrases. Repetition only.
  • Line 193, two lines before. The four guard files, the guard workflow, settings and hooks stand under one always-Tier-H lead. What went is a connective, the second "always Tier H" and the this-repository tag. The tag was a scope qualifier, not a rule: the register scopes the four rows to objectstack, the sentence without the tag can only be read as stricter in another repository, never looser, and line 192 still says a row may be scoped to a repository. No rule went.
  • Line 208, the skills-lane exception. One word went: "guard instruments excepted" now reads "guards excepted". The exception itself stays. See N6.
  • Line 320, the claim template. The declaration clause added in the first patch round is gone and the line is byte-identical to main again. Repetition only: point 3 names where the same content is still taught.

In .claude/agents/os-dev.md, since the head of record 7019888994:

  • Line 279. "One line" became "the line", and the sentence that no other line may lead with the key is gone. This is not repetition, since nothing else a developer reads says it; it is also not fleet rule text under the ruling's three heads, and it was this pull request's own addition, so against main nothing went. See point 2 and N5.
  • Line 280, two lines before. The three values, the duty to quote the maintainer's words with source and time on a line-start Ruling-ref: line, and the missing-line outcome are all still there. Only a conjunction and punctuation changed. No rule went.

Against main, the rest of the two files' diff, judged in record 7018462956 and re-read at this head because main moved under it:

  • Skill file line 190, two lines before: the path surface is taken with get_files before ready, auto-merge or enqueue and never from the report, with its prohibition mark. What went ("take it once first", "split before acting, not afterwards") is restated by the "before" that stays. Repetition.
  • Skill file line 195, the size line: over 3000 lines with generated output counted, additions plus deletions as the reading, and the no-Tier-S-exception prohibition all stay; the declared-narrowing clause is added. Two label words went. Repetition.
  • Skill file line 200, two lines before: the deleted line restated the developer's own rule for the reader summary, which is at line 286 of the developer agent file. The line that stays still gives the seat its duty. Repetition.
  • Skill file line 209: the two-tier label is description, and the "that surface alone" tag is restated by line 194 (a mixed diff is not judged by proportion) and by Prime Directive 14. Repetition.
  • Developer agent file, the two bullets deleted against main: the one-foreground-wait shape is restated at lines 88, 90 and 100, and the nothing-wakes-you rule at lines 101 and 105. Both sets are still there after the merge. Repetition.
  • Developer agent file line 400, two pointer lines before: one pointer to the body-sanitizer rule, which is itself at line 453 of AGENTS.md. Repetition.

So against main no rule went from either file. Since the previous head, one author instruction went (N5) and one term lost exactness (N6).

2. What a body with two line-start Rule-change: lines gets.

Measured in scripts/pm/check-governed-merges.mjs at this head. ruleChangeVerdict reads the body with readOneBareLine(reading.body, RULE_CHANGE_KEY, RULE_CHANGE_VALUES). That reader collects every line that leads with the key and a colon, behind a quote mark, a heading mark, a list bullet, a backtick or emphasis, in any case and inside a code fence as well. With more than one hit it returns unreadable with the reason that N such lines exist where exactly one is read, before it looks at any value. ruleChangeVerdict then takes its not-read branch, records the reason as the body's, leaves declared at null, never reaches the record stage and returns Tier H. Two lines with the same value get the same answer: the register's self-test specimen for this is two none lines, and the queue guard pins the doubled declaration as Tier H as well. So the dropped sentence guarded against an avoidable Tier H, never against an S: a body that breaks it goes to the maintainer and the tool prints why.

3. Where the declaration is still taught.

  • The developer: lines 279 and 280 of .claude/agents/os-dev.md give when the line is owed (a diff touching the root .claude/**), that it starts a line and is judged from the diff, the three values, the line-start Ruling-ref: line with the maintainer's words, source and time, and that a missing line is Tier H like yes.
  • The seat: lines 295 to 297 of AGENTS.md give all of it in one sentence (line-start none, or ruled with a Ruling-ref: line quoting the maintainer, repeated on the record; no line and yes are Tier H), and line 209 of the skill file names the two values that give Tier S and holds everything else at H.
  • Every author: lines 16 to 19 of .github/PULL_REQUEST_TEMPLATE.md give the three values and the second line ruled owes.
  • The reviewer: the brief and the template legend carry the duty wording, and line 45 of the review reference sends to the template.

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.

scripts/pm/check-governed-prose.mjs slices the region between its two anchors, takes every backtick code span in it, and requires each glob of the register rows that govern objectstack to appear verbatim as a span, and no other span shaped like a governed glob. At this head both anchors are present, the region is lines 190 to 213, and it carries all seventeen register globs as code spans: thirteen on line 191 and the four guard paths on line 193. The only glob-shaped spans in the region are register globs. The gate runs in the check-run named Lint · repo & tooling gates, which is green on this head, as is the ratchet in the same job.

5. What the merge of main changed in the three guard scripts.

Only scripts/pm/check-governed-merges.mjs moved, by 26 lines added and 2 removed, all from main: the generated-surface exception for the skill-references generator now also admits one more generated file name under skills/, with its battery floor and two pins. It touches no register row, not ruleChangeVerdict, not readOneBareLine and not the tier chain, and the path it admits lies under the skills row, so it cannot lift anything off the .claude/** split row. The queue guard and the recognisers are byte-identical to the previous head, so the fix for S1, its pin and the template's verified line are exactly what record 7019888994 judged. The record reader in scripts/pm/check-half-states.mjs and the two declaration readers in scripts/pm/clause2-line.mjs are untouched by the merge as well.

6. The rule-change line for this head.

Judged from the whole diff against main: Prime Directive 14, the path-fork region and the developer agent file change what a seat may land without the maintainer (the guard files, the declared split of .claude/**, a declared narrowing) and what must go to him. The hunks implement the card's items and do not copy one ruling quoted on a Ruling-ref: line, and the body carries exactly one line-start Rule-change: yes. The line in the header therefore reads yes, equal to the body, and the pull request waits for the maintainer.

N5 (nit) — .claude/agents/os-dev.md line 279 no longer tells the developer that only one line may lead with the declaration key. The reader holds a body with a second such line at Tier H and prints the count, so the cost is one avoidable round to the maintainer or one body edit, never an unreviewed landing. Restoring it costs bytes the file does not have spare; an accepted deviation or the follow-up card is the place for it.

N6 (nit) — .claude/skills/pm-dispatch/SKILL.md line 208: the exception now says "guards" where line 193 says "guard instruments", and the same file heads its index of every scripts/pm/ check script with that shorter word, so the exception can be read as wider than the four files. The wider reading is the stricter one, line 193 still names the four, and the tools decide the tier, so no landing changes.

N1 and N4 are unchanged and stay as the earlier records left them.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-ndkip6
Reviewed-by: session_01L6bhgVaDMEnj7SrgKsMrWN

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:用户无感。主干改成按字节给技能文件设上限之后,这张 PR 有两个文件超了。这一轮只删减了这两个文件里的措辞,把它们压回上限之内,规则的意思没变。
  • 出错会怎样:删掉的是重复的说法和一个提示句,我逐行核对过,没有丢掉规则。还有两处细微差别已经作为接受的偏差记下了。
  • 要你做什么:这张 PR 改的是守卫脚本,属于 Tier H,仍然需要 os-zhuang 的批准。L2 已经在当前 head 上 PASS。

席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head 9a1758ee415183a7e90528e22e50e3476cc25e55 · 2026-11-20T05:10Z

  • Delta from my ACCEPT 7019790433 at eb455747: a main merge af26ceea, then one commit 9a1758ee that touches only .claude/skills/pm-dispatch/SKILL.md and .claude/agents/os-dev.md.
  • Measured at this head: SKILL.md is 33872 bytes against a ceiling of 33872. os-dev.md is 38846 against 38848. contract-review.md is 6416 against 6419. AGENTS.md is 78011 against 78106. check-skill-line-ratchet.mjs is green, with 0 cross-file moves and the total unchanged.
  • Each cut, read against the text it replaces (git diff eb455747 9a1758ee, the PR's own lines only)
    1. Claim template: the Rule-change sub-clause is removed, and the Metadata-protocol line is back to main's text, byte for byte. The teaching is not lost. os-dev.md still owes the PR body the line-start Rule-change: line from the diff, and spells the three values out. The SKILL.md path fork still reads 「Tier S = Rule-change: none/ruled 记录核过的 .claude/**」. The claim never fed the line, because the dev judges it from the diff. No script reads the removed clause: a grep of scripts/ and .github/ for the removed phrases finds nothing.
    2. Path fork: 3 governed-surface lines become 1, and the 2 guard lines become 1.
      • The merged governed line lists the same 14 globs in the same order: docs/adr/** … .github/workflows/**, AGENTS.md, CLAUDE.md, and the six ui/ globs.
      • GOVERNED_REPOS keeps its own line, unchanged.
      • The 恒 H line lists the same four scripts, plus the guard workflow, settings and hooks.
      • 「(本仓)」 is dropped. That loses nothing, because the four paths are scripts/pm/…, which exist in this repo only.
      • 「守卫仪器除外」 becomes 「守卫除外」. That is the L2's N6, recorded as an accepted deviation: the line right above names the 守卫仪器 list, so the short form reads as that list.
      • check-published-list-mirrors.mjs is green at this head.
    3. os-dev.md: 3 lines become 2, and 「他行 ⛔ 不以该键起头」 is dropped. The none/yes/ruled values, the Ruling-ref: duty and "缺行同 yes:Tier H" are all kept. The dropped hint is the L2's N5, an accepted deviation: record-recognisers reads the line-start key, so a second line starting with it is a recogniser question, not an authoring rule this file must carry. Its self-test is green here (456 cases).
  • Run here (worktree, this head): check-skill-line-ratchet passes. check-published-list-mirrors exits 0. check-governed-queue-guard --self-test gives 637 cases pass. record-recognisers --self-test gives 456 cases pass. check-skill-id-lint finds 130 files clean. check-governed-merges --self-test exits 3 here, a local prerequisite failure that is a known trap of this container with no node_modules. It runs in CI, and CI is green.
  • L2 — the delta record 7031028923 is Served-tier: CONTRACT_REVIEW_TIER, Head-sha: 9a1758ee…, PASS, with no must-fix or should-fix. N5 and N6 are accepted deviations.
  • Gates — at this head: 27 success, 25 skipped, 0 failure. Mergeable clean. check-governed-merges.mjs --pr 35610: GOVERNED, Tier H (guard scripts), 1751 lines.
  • Landing terms — unchanged: Tier H. It needs os-zhuang's APPROVED, or the maintainer's merge (the only GOVERNED_APPROVERS account). Then the owning thread lands this head. A new push needs a fresh L1 unless it is a clean main merge, which a byte overage on main would again make non-clean.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 9a1758ee. It is served at CONTRACT_REVIEW_TIER (the rules face) and posted with --tier-evidence, under template brief 7030893796, which was posted before the record with its ⛔ lines kept. The new-head claim is 7030887106. The verdict is PASS, with no must-fix and no should-fix items, and Rule-change-verified: yes. S1, N2 and N3 stay closed. The record's Scope: line covers the seven reviewFace hits plus CODEOWNERS and the PR template. The reviewer judged line by line that the compressions in SKILL.md and os-dev.md removed only repetition, no rule. The dropped single-key sentence fails closed: a second line is refused to Tier H with its reason printed. New nits N5 and N6 stand as accepted deviations, and they ride #35612. L1-a delta ACCEPT on this head is 7031064132.

check-governed-merges --pr 35610 reads GOVERNED, Tier H, with 1751 changed lines, and landing-k reads K = 0. The Landing impact list in the body is current. Notices went to #35664, #35697 and #35718.

@os-zhuang, please review head 9a1758ee and approve if you agree. The seat lands it afterwards (ruling C).

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44679589220 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (2/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/colleague-lookup-over-mcp.dogfood.test.ts > a member's agent finds a colleague through the read-only sys_user over MCP (ruling B) > ⭐ the query tool's
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected 'Query records from an object with opt…' to contain 'sys_user'
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 13 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 test/colleague-lookup-over-mcp.dogfood.test.ts fails because #35682 dropped the sys_user sentence from the MCP query tool description (rollup #35752, triage 7031171589, where seat 4 is fixing it). This PR touches no product package. The head 9a1758ee is unchanged, and records 7031028923 (L2) and 7031064132 (L1) still cover it.

@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 9a1758ee? The seat will then re-enqueue it once #35682 is fixed or has left the queue. If you'd rather re-enqueue it yourself, that works too.

Merged via the queue into main with commit 509289c Nov 20, 2026
53 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-ndkip6 branch November 20, 2026 05:56
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants