Skip to content

docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces - #38280

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-36914-review-line-per-card
Nov 28, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-36914-review-line-per-card

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Part of #36914

This pull request carries the rule text, card items 1 to 3. The guard half, card item 4 and acceptance bullet 3, is #38296. That card also carries the question of what counts as "the card's pull requests". The card stays open until this pull request and #38296 have both landed.

Clause-②: no
Metadata-protocol: none
Rule-change: yes

Context for the declaration: the maintainer spoke on 2026-11-24 at 08:28Z about #36860. Seat repo:objectstack#3 relayed it in mailbox comment 7126265251 as "splitting an over-the-line change so each half stays under it gets around human review, and that is not acceptable". That sentence is a seat's English relay, not a quotation. The per-card sum, the counting of merged pull requests and "every pull request is Tier H" are the seats' proposed remedy, so this text is the maintainer's to approve here.

维护者速读

  • 用户无感;车队内部规则变了:一张卡的改动行数改为把它产出的所有 PR 加在一起算,合计超过三千行,这张卡的每一个 PR 都要你亲自审,拆成几个小 PR 也一样;为给新规则腾出篇幅,同一份文件里删掉了八处与别处重复的话,没有删任何仍在生效的规则。
  • 属于「车队自己的规则和权限」这条线:此前行数按单个 PR 算,一个大改动拆成两半就能只靠 AI 审核合并,绕开人工审核,你在 11 月 24 日裁定这不可接受。
  • 现有的自动守卫仍然只看单个 PR,合计要靠席位自己加,漏算时机器不会拦;这只是规则文字,可以直接撤回,不影响产品。
  • 要你做的:这份规则文字由你在这个 PR 上批准;按整张卡加总、已合并的也算、每个 PR 都归你审,是席位提出的落实办法,不是你的原话。

What changes

The rule. The 3,000-line human-review line is read per card. The count is additions plus deletions, summed over every pull request the card produces. Follow-up pull requests split off the same change count, merged ones count, and generated files count as before. A card over the line is Tier H in each of its pull requests, including the ones that are under the line by themselves. A split still goes to the maintainer, and a seat's order no longer says "stop and propose a split".

The rule's one home is references/landing-operations.md, beside the pre-landing check a seat already runs:

- 行数线按卡计:该卡全部 PR(含拆出的后续与已合并)additions+deletions(含生成物)之和 >3000 即过线卡,
  每张 PR 皆 Tier H。例:一卡拆两张各 2,000 行 PR,两张皆 Tier H。
- 拆分仍交维护者,派发令 ⛔ 不写「停下提拆分」;`--pr N`、队列守卫与中继只读单 PR,卡合计席位自加。

The other places keep one short statement or a pointer, with no number of their own:

File Before After
SKILL.md 〈路径分叉〉 >3000 行(含生成物,additions+deletions)或申报收窄同换… 按卡合计 >3000 行(见 landing-operations.md)或申报收窄同换…
references/area-lease.md 受管面与超 3,000 行 PR 区 ⛔ 不落 受管面与过线卡的 PR 区 ⛔ 不落
references/landing-operations.md (front-of-queue list) 逾 3,000 行须授权批准在现 head 过线卡的 PR 须授权批准在现 head
references/lanes/queue.md (two lines) 三因至逾 3,000 行 · 逾 3,000 行 PR 的批准 三因至过线卡 · 过线卡各 PR 的批准

Why the home is landing-operations.md and not SKILL.md. The card's dispatch preferred SKILL.md plus pointers. SKILL.md cannot take the text. It had 9 bytes of headroom, and the full rule is about 270 bytes. Its ceiling cannot rise either: SKILL.md is the source of the declared cross-file move into decision-analysis.md, and raising a source re-opens the move. Measured on this branch with the row at 33614: check-skill-line-ratchet answered red, "raises its ceiling 5023→5589 (+566) against a net source decrease of 305". So SKILL.md keeps the one-line statement and the pointer, and the rule lives in the reference that the landing window reads.

Bytes. No volatile count is added.

File Before After Ceiling
SKILL.md 33342 33350 33351, not moved
references/area-lease.md 6565 6564 6586, not moved
references/landing-operations.md 10673 10696 10717, not moved
references/lanes/queue.md 2003 1998 2003, not moved

No ceiling moves: the new text is paid for by deletion. Seat ruling 7238709377 on this pull request: a seat's relay is not a ruling of record, so the raise this pull request first carried (10717 → 11021, +304) was not authorized. This head takes route (a) of that ruling. The rule text adds 348 bytes to references/landing-operations.md, eight deletions in the same file remove 325 bytes, and the file lands at 10696 bytes, 23 above where it started and 21 under its ceiling. The CEILINGS row is back at 10717, so scripts/pm/check-skill-line-ratchet.mjs is no longer in the diff.

Each deletion is a duplicate of another line, a restatement of a rule whose home is elsewhere, or a sentence the new rule made untrue. No rule is removed.

# Deleted from landing-operations.md Bytes Why it is safe
1 ;diff 是事实,卡片语义是预测 (the clause ② gate line) 37 A reason, not a rule. The instruction on that line stays (take the real diff before ready or the queue). The same point is a rule in SKILL.md 〈路径分叉〉 (⛔ 不看报告自述) and in contract-review.md (⛔ 不读席位自述).
2 PASS ⇒ Tier S ready、auto-merge;Tier H 经 SKILL.md ③ 交棒; and ;⛔ 免 L2 不放行, leaving L2 FAIL ⇒ 撤挂,补丁轮 84 The PASS routing restates SKILL.md 〈路径分叉〉 (达档 PASS 后 ready→入队, and ③ 请审 = 交棒) and contract-review.md (过则 S 入队、H 等人批). The last clause repeats the line four above it in the same file (无达档 L2(条款②)PASS 在案 ⛔ 禁止入队). The FAIL clause is kept because the patch round after an L2 FAIL is stated nowhere else.
3 人闸不是验证层的替代: 31 The same line says it again as its rule: ⛔ 不以人闸代替探测.
4 ;他人 flake 照四分支重投 (the 谁入队谁看护 line) 32 The four branches are stated fourteen lines above in the same file, for every flake kick with an unchanged head, and lanes/queue.md repeats the pointer for the queue seat.
5 ;⛔ 禁 rebase 与 force-push (section A, the four-step line) 30 The line names scripts/pm/os-regen-merge.sh as the authority for the steps, and the script's header states step 1 as git merge origin/main (⛔ never rebase / force-push). AGENTS.md, Multi-agent working discipline, items 3 and 6, carries the rule for every branch.
6 ,漏判会被队列守卫在 merge group 里拒收 (the line before the new rule) 50 A consequence, not a rule, and this pull request makes it untrue for a split: the queue guard reads one pull request, so it does not refuse a pull request that is under the line by itself. The new text says so (队列守卫与中继只读单 PR). The measured fact for the cases the guard does catch stays in readings-queue.md (缺批准 ⇒ 治理守卫 merge_group 腿 CI_FAILURE).
7 ;首触事后补,可改域、⛔ 不改动作 (main-red 约定①) 45 Stated in the home of the first-touch rules, triage-duties.md: main-red 锚卡由席位先立先派,首触事后补作记录级:可改域,⛔ 不改动作,在飞照补.
8 ;每棒都重走 (section D) 16 The line above it already says 每一棒都是一整圈.

Guard scripts are not changed (card item 4). The size limb is one predicate, sizeVerdict in scripts/pm/check-governed-merges.mjs, and every reader hands it the numbers of one pull request:

  • check-governed-merges.mjs --pr N reads additions and deletions off that pull request. --branch reads one git range. The post-merge sweep reads each landed commit by itself.
  • check-governed-queue-guard.mjs reads each queued pull request by itself (sizeReading).
  • dispatch-gates.mjs reads the worktree diff (changedLineLines).
  • The relay's pr_enqueue_front rule in fleet-write/ops.mjs reads the pull request it is asked to move.
  • label-write.mjs --handoff takes its tier from --pr N.
  • landing-k.mjs does not read the line.

Following the per-card total is not a cheap change, for three reasons:

  1. No reader can list a card's other pull requests today. That needs new network reads (the card's timeline, then one read per sibling pull request). One of the readers is the required merge-queue check, where a read that fails must refuse the queue entry.
  2. The mechanical definition is not ruled. A script must decide what "the card's pull requests" are when a pull request names several cards, when many pull requests name one tracker card with Part of, and when a pull request was closed without merging. It must also decide whether a sibling that already merged under the line is listed by the audit once the total crosses it.
  3. Three of the files are guard instruments that are Tier H by themselves, each with a pinned self-test roster.

The follow-up card is #38296. Its scope is the readers listed above, with the split case as a test in each (two 2,000-line pull requests on one card are both Tier H; one 2,000-line pull request alone is not). It asks the maintainer the mechanical definition before any script is written. The rule text added here says plainly that the scripts read one pull request and the seat adds the card total.

Tests

No tested behaviour changes. The diff is rule text only (four files under .claude/skills/pm-dispatch/, +16 −13), so there is no ablation.

Local gates ran on head b21a235f64, after its commit. Check-runs for that head had not concluded when this body was written. Contract review 7238652086 (FAIL on M1, the ceiling raise) and L1 REWORK 7238659343 were given at the earlier head c142bb23e0; this head answers M1 by route (a) of seat ruling 7238709377, and a new contract review is owed at this head.

Derived gate list: 25 families, all run, all exit 0
  • node scripts/pm/dispatch-gates.mjs --commands derived 25 families from the branch's own change set at b21a235f64. The list is shorter than the 45 of the earlier head because the ratchet script left the diff. Each ran once, with its exit code recorded before any pipe.
  • node scripts/pm/dispatch-gates.mjs --ran on that record, exit 0: Run reconciliation — 25 derived, 25 run, 0 NOT-MEASURED, 0 UNRUN.
  • pnpm check:pm-skill-ratchet exit 0: landing-operations.md is 10696 bytes (ceiling 10717; headroom 21), SKILL.md is 33350 bytes (ceiling 33351; headroom 1), declared cross-file moves: 1, total ceilings down 2 bytes. Its self-test: 116 cases pass.
  • The self-tests that pin phrases of landing-operations.md all exit 0: pnpm check:pm-expected-skips (it runs the landing-k.mjs, pr-state.mjs and sweep-closed-cards.mjs self-tests), pnpm check:pm-label-write, pnpm check:pm-governed-prose, pnpm check:pm-record-recognisers.
  • pnpm check:pm-skill-id-lint, pnpm check:pm-governed-merges, pnpm check:pm-settings-deny-roster, pnpm check:nul-bytes: exit 0.
  • Outside the derived list, run once more because the earlier head carried it: pnpm check:pm-dispatch-gates exit 0, dispatch-gates self-test (fast tier): 2369 cases pass; 9 slow section(s) deferred.
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions exit 0, after pnpm exec turbo run build --filter=@objectstack/lint --concurrency=2 under the verify lock (VERDICT command-exit 0).
Overlap check before the push

node scripts/pm/overlap-check.mjs --branch=claude/issue-36914-review-line-per-card at b21a235f64, exit 0: VERDICT clean. It merged cleanly with origin/main (73ec085afa) and with the two open pull requests that share a file, #38271 (area-lease.md) and #38243 (SKILL.md, landing-operations.md). #38243 makes landing-operations.md 12 bytes smaller, so the two together stay under the ceiling.

Acceptance notes

Verification

Read first, by risk:

  1. .claude/skills/pm-dispatch/references/landing-operations.md, the three added lines after the check-governed-merges.mjs --pr N line. This is the rule itself.
  2. The same file, the eight shortened lines, against the table above. The riskiest is row 2, the L2 outcome line: check that nothing it said is now stated nowhere.
  3. .claude/skills/pm-dispatch/SKILL.md, the one changed line in 〈路径分叉〉.

Two-minute check: run git grep -n "3,000\|3000" .claude/skills/pm-dispatch/. It prints three lines: the SKILL.md line (按卡合计), the landing-operations.md line (行数线按卡计), and dispatch-runbook.md (≤3000 字符, a different rule). No line counts per pull request. A second check: git diff --stat origin/main...HEAD lists four files, all under .claude/skills/pm-dispatch/, and no script.

…every PR the card produces

The 3,000-line line was read per pull request, so a change cut into
pull requests that each stay under it never reached the maintainer.
The line is now a card's total: additions plus deletions summed over
every pull request the card produces, follow-up splits and merged ones
included, generated files included. A card over the line is Tier H in
each of its pull requests, a split still goes to the maintainer, and
the rule says that the guard scripts read one pull request only.

The rule's one home is references/landing-operations.md; SKILL.md keeps
the one-line statement and the pointer, because SKILL.md is the source
of a declared cross-file move and its ceiling cannot take a raise. The
landing-operations.md ceiling rises 10717 -> 11021 (+304) for the ruled
text.

Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · c142bb2 · 2026-11-28T11:28Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c142bb23e0d3f9f98d398a09ff897e81a8a332e7
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/area-lease.md, .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/lanes/queue.md + scripts/pm/check-skill-line-ratchet.mjs
Security-touching: no
Rule-change-verified: yes

Inputs read: card #36914 (body and its three comments: triage 7126372032, claim 7237773544, dev report 7238331230), PR #38280 (body, five-file list, net diff of the head against merge base e42520c67bcef027552f8db83655ff9b54d32cef), the 49 check-runs on the head, and mailbox comment 7126265251 named by the Ruling-ref: line. Cited code was read in the head tree with git show; nothing was built or run.

① Derived judgments

  • Accept-set of "may land without the maintainer" narrows, and that is the intended direction: a pull request that is under 3,000 changed lines by itself but belongs to a card whose pull requests sum to over 3,000 leaves the seat-landable set and becomes Tier H. Right against card items 1 and 2. No pull request that was Tier H before becomes landable: a single pull request over the line always puts its card over the line.
  • The rule text is silent on a pull request that names no card. AGENTS.md section 7(c) and the unchanged sizeVerdict still catch such a pull request by its own size, so no accept-set widens. Right, and it is one reason 7(c) must not simply be deleted later (see ③).
  • The guards' accept-set is unchanged and is now wider than the rule: sizeVerdict (check-governed-merges.mjs:3572, threshold constant at :1392) is handed one pull request by every caller, and the queue guard, the relay front-enqueue rule and label-write.mjs --handoff follow it. The new text says so in its own words. Named, and judged in ④.
  • Ratchet accept-set: one row moves, landing-operations.md 10717 to 11021. No other row moves; the three other edited files stay under their unchanged ceilings (33350 of 33351, 6564 of 6586, 1998 of 2003). The raise itself is judged in ④.
  • No published package surface, schema, export or generated artifact is touched.
  • Check-runs on the head: every run concluded success or skipped, none failed, none pending. Lint and Repo Gates, TypeScript Type Check, Test Core, Test UI, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, Check PR Size and the PR-body guards are success.

② Semver level

The diff publishes nothing: four files under .claude/skills/pm-dispatch/ and one number in a repo-internal script under scripts/pm/. The skip-changeset label is right and Check Changeset is success. Clause-②: no is right: no accept-set of a published contract moves.

③ Boundary flags

  • Rule change. Every changed hunk in the four hits files alters what must go to the maintainer, so the ruled test applies to all of them. It is not met, on two independent grounds, and the line above reads yes.
    • Ground 1, the form of the reference. AGENTS.md (Prime Directive 14, Tier S paragraph) admits ruled only "with a Ruling-ref: line quoting the maintainer". The line here quotes seat repo:objectstack#3. Comment 7126265251 is a seat-to-triage filing request posted by the fleet account; it reports the maintainer in indirect speech, in English, without quotation marks. The PR body and the dev report both state that his own words are in a project thread and not on GitHub. The corpus is consistent that a ruling reference carries the original words: dispatch-runbook.md:148 says 原话逐字, filing-gate.md:37 says 引原话才算人定 and ⛔ 不凭 bot 判车队, and every other raised row in the ratchet map cites a "ruling record" id with the maintainer's words verbatim and untranslated. A seat's English rendering is a seat's sentence. It cannot be checked as a copy, which is the only check this line is allowed to make.
    • Ground 2, the reach of the words. Taken at face value, the relayed sentence rules one thing: splitting an over-the-line change so each half stays under the line gets around human review and is not acceptable. The remedy is not his in any text available here. In 7126265251 it begins "Please file a card to change the rule so", which is the seat's proposal; in the card it is the triage seat's Change items 1 to 3. So the per-card denominator, the sum over every pull request with merged ones counted, "every pull request is Tier H including those under the line", and the order-template sentence are seat design that implements the ruling. They are a reasonable implementation, but the hunks do not copy the ruling. The definition also decides unruled questions that enlarge what reaches the maintainer (a long-running card named with Part of, a pull request naming several cards, a closed and unmerged pull request, all of which the letter 全部 PR counts). The dev report's open question 3 reaches the same result for the guard-fact clause.
    • Consequence: the declared ruled and this record's yes do not match, so the pull request waits for the maintainer. That agrees with the card, which says the maintainer reviews it.
  • Dev open question 1 (AGENTS.md section 7(c) still per pull request). Answered: a follow-up, not a contradiction this pull request must repair. The card rule is a strict superset of 7(c): every pull request 7(c) catches is caught by the card rule, and 7(c) forbids nothing the new text orders. The card's file surface and its acceptance grep name the pm-dispatch files only, AGENTS.md is its own governed Tier H surface with 3 bytes of headroom, and its amendment needs the same ruling record that M1 below asks for. Option C is rejected: AGENTS.md calls itself the single source of truth, and a seat that reads 7(c) and the --pr N verdict gets two per-pull-request answers against one skill line, which keeps the split arguable. Escalated to the seat: file the card for 7(c) now, citing the ruling record once it exists; since M1 moves the head anyway, folding the one sentence into the patch round (option A) is the seat's choice, with the widened claim surface.
  • Dev open question 2 (what "the card's pull requests" are mechanically). Not answerable by a reviewer or a seat: it changes who reviews a large share of pull requests. Escalated to the maintainer on the guards follow-up card, before any script is written. Until then the letter of the text (every pull request of the card) stands and over-routes, which fails safe.
  • Dev open question 3 (is the relay enough for ruled). Answered no, option A: see the rule-change entry above and M1.
  • Dev out-of-scope finding, guards read one pull request. Card item 4 allows "the PR states why it cannot and files the follow-up". The reasons given hold against the code read. The second half is not done: the PR body says the seat should file the card, and a REST issue search for its title words returns only pm-dispatch: the 3,000-line human-review line is counted per PR, so splitting a change dodges it — count per card, across every PR it produces #36914. Escalated to the seat: the follow-up card is filed and named on pm-dispatch: the 3,000-line human-review line is counted per PR, so splitting a change dodges it — count per card, across every PR it produces #36914 before this pull request lands. Card acceptance bullet 3 (a split-case test in every guard that reads the line) is unmet by this diff, so Fixes #36914 closes the card with one bullet open; the seat records that bullet as moved to the follow-up card, or changes the keyword to Part of.
  • Dev out-of-scope finding, the SKILL.md ceiling cannot take a ruled raise while it is the source of a declared cross-file move. Accepted as the reason the rule's home is landing-operations.md. It is a ratchet defect for its own card; not reviewed here.
  • PR acceptance note, two shrunken files keep their rows. Accepted: lowering is allowed, not required.
  • Security-touching: no: the hunks teach review routing for the fleet's own landings. No hunk teaches permission, sharing, credential, token or authentication behaviour of the product, and the low-risk skills arm that reads the line does not apply to these paths.
  • Author: the PR's user.login is objectstack-fleet[bot]; no off-relay note is owed.
  • SQL push-down: no query, id materialisation or join in the diff.

④ Design judgment

scripts/pm/check-skill-line-ratchet.mjs (implementing file)

M1 (must-fix) — the landing-operations.md row is raised 10717 to 11021 on a relay, not on a ruling of record. The script's own header grants an ordinary raise only to "the RULING OF RECORD that orders text into the file", requires that "the raising PR quotes that ruling comment's id", says "a raise quoting no ruling id stays RED", and hands the check of the quote to this record. Comment 7126265251 is a seat's filing request, not a ruling comment, and it carries no words of the maintainer's own (③, ground 1). Every other raised row in the map names a ruling record id with his words verbatim; this row alone reads "as relayed in comment". The check this record owes therefore answers red. Fix, either arm: (a) a ruling record on card #36914 carrying the maintainer's original words, untranslated, that order this text, with the row comment and the PR body citing that record's id; or (b) no raise, the added bytes paid by deletion in landing-operations.md. Under arm (a) the raise is at most the bytes that record orders: the measured file delta is +348 (10673 to 11021), of which 69 bytes are the clause on what --pr N, the queue guard and the relay read, which the dev report itself calls its own statement of fact and not ruled text. The 44 bytes of prior headroom absorb part of that clause; the other 25 ride the raise, so unless the record covers the clause the row tops out at 10996.

Arithmetic, checked against the tree: 10673 before, 11021 after, three added lines of 128, 81 and 136 bytes plus 3 bytes on the front-of-queue line, total +348; the raise of +304 lands the row at the file's exact size, headroom 0, and is under the measured delta. The number is right if the ruling is on record; the authority is what is missing.

.claude/skills/pm-dispatch/references/landing-operations.md

Holds against card items 1 to 3 and the acceptance text. The denominator (per card), the reading (additions plus deletions, generated files included, merged and split-off pull requests counted), the consequence (every pull request of an over-line card is Tier H) and the worked example (two 2,000-line pull requests, both Tier H) are all present in one place. The acceptance grep over .claude/skills/pm-dispatch/ at the head returns three lines, none per pull request: SKILL.md:196, landing-operations.md:69, and dispatch-runbook.md:45, which is a character budget. The front-of-queue line at :35 now reads on the card, and the sentence that follows the new lines' neighbour at :68 (a miss is refused by the queue guard in the merge group) is correctly qualified by the new :71, which says the tools read one pull request.

Enforceability, as asked: the rule is prose only. No guard, relay rule or tool reads a card total; a seat that omits the sum is stopped by nothing, and the incident on #36860 was itself a seat's judgment. Nothing in the text requires the sum to be written anywhere, so a miss is also invisible afterwards. That is acceptable for this head only as the interim state card item 4 allows, on the conditions escalated in ③ (follow-up card filed first; the mechanical definition ruled there). The text is honest about the gap, which is the minimum for an interim rule.

  • N1 (nit) — attempt to break it by order of landing: pull request A of 2,000 lines merges on seat review, then pull request B of 1,500 lines opens on the same card. The card is now over the line, B is Tier H, and A has already landed unreviewed; the text says 已合并 pull requests count but not what is owed for A. The rule closes the declared split and leaves the incremental one. Carry to the guards follow-up card with open question 2.
  • N2 (nit) — attempt to break it through the mandated tool: SKILL.md:205 orders the hand-off as one label-write.mjs --handoff stroke, and that tool answers "nobody is owed a hand-off" (label-write.mjs:2072) for a pull request that is ungoverned and under the line by itself, which is exactly the split case the new rule sends to the maintainer. The text does not say what the seat does on that refusal. The PR body notes it; the skill does not. Carry to the guards follow-up card as its first reader.
  • N3 (nit) — 拆分仍交维护者 names no object. Read beside area-lease.md:56 (席只裁路由(拆并延、归区)) it can be taken to move every routing split to the maintainer, or only the split of an over-line change. It copies card item 3, which has the same looseness, and 仍 points at no earlier sentence. No order template in the tree contains the forbidden phrase, so the second half binds ad hoc orders only. Accepted deviation, or tightened when the ruling record fixes the wording.
  • N4 (nit) — 卡合计席位自加 puts the sum on the seat, while area-lease.md:50 has the area read --pr N first and self-land an ungoverned pull request. An area that follows :50 literally gets a clear verdict in the split case. Line :52 forbids the landing but nothing tells the area to add. Accepted deviation, or one word when the file is next edited.

.claude/skills/pm-dispatch/SKILL.md

The one changed line at :196 holds: it states the per-card total, points at the one home, keeps the narrowing limb, the terminal set with its ③, and ⛔ 无 Tier S 例外. The reading detail it dropped (generated files, additions plus deletions) is restated at the home, so nothing is lost. The comment in label-write.mjs that cites the line after the Tier H line stays true. Moving the rule's home out of SKILL.md deviates from the dispatch preference; the stated reason (9 bytes of headroom, a source of a declared move cannot rise) is consistent with the map and the declared move in the script, and is accepted. No finding beyond N2.

.claude/skills/pm-dispatch/references/area-lease.md

Line :52 now withholds the pull requests of an over-line card from area landing and sends them to the seat, with no number of its own. Holds against card item 1. No finding beyond N4.

.claude/skills/pm-dispatch/references/lanes/queue.md

Both lines hold: :21 points at the front-of-queue items by their new last item, and :27 keeps the approval of each pull request of an over-line card with the maintainer. No number of its own. No finding.

Implemented-by: claude/issue-36914-review-line-per-card
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): REWORK at head c142bb23e0d3f9f98d398a09ff897e81a8a332e7 (Fixes #36914).

Review summary

The rule text holds against card items 1 to 3. Contract record 7238652086 is FAIL at this head, with its tier verified and Rule-change-verified: yes.

Owed before landing:

  1. M1 of 7238652086: the ceiling raise has no ruling of record. The ratchet header (check-skill-line-ratchet.mjs, the shrink-only section) authorizes a raise only by "the RULING OF RECORD that orders text into the file", quoted by id. The row cites comment 7126265251. I read that comment: it is a seat's filing request to triage, written by the fleet bot in indirect English speech, not the maintainer's words. Fix either way:
  2. Rule-change: ruled should read yes. The relayed sentence rules only that splitting to dodge review is unacceptable. The per-card sum, the counting of merged PRs, and "every part is Tier H" are the seat's proposed remedy, so this text is the maintainer's to approve on this PR. This is a body edit.
  3. The card should not close on this PR. Card acceptance bullet 3 (a split-case test in each guard) is unmet, and the guards card is not filed yet. File the guards card, name it on pm-dispatch: the 3,000-line human-review line is counted per PR, so splitting a change dodges it — count per card, across every PR it produces #36914, and change Fixes to Part of.

Follow-ups, not blocking:

  • AGENTS.md section 7(c) still counts per PR. The card rule is a strict superset, so this is a follow-up. Fold it into this round only if the seat chooses.
  • Nits N1 to N4 of the record: an earlier sibling already landed under the line; --handoff in the split case; the object of 拆分仍交维护者; and who sums the card total.

Next: the head move for M1 earns a delta contract review and a delta L1. After that it goes to seat 1 as Tier H, for the maintainer.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Seat ruling · 2026-11-28T11:39Z · ratchet raise authority, for #38280 and #38271 (one ruling, both PRs)

Question (L1-a): does a relay or a card body count as the line ratchet's "ruling of record", or does the maintainer's approval of the Tier H PR settle the raise?

Neither does. The ruling of record is a Ruling: comment recording the maintainer's answer (letter and verbatim words) on the card it binds, the form of 6184799323 and 6513306068. 6184799323 item 1 makes that comment's id the raise authority. Item 2 keeps every other line on 「新增以删减付账」.

  1. A seat's relay or filing request (7126265251, 7126641707) is not a ruling comment. A card body that restates it is not one either. A mailbox comment is never authorization.
  2. The maintainer's APPROVED on the PR does not stand in for it. The ratchet asks for the ruling id in the body, read by the contract record and the queue guard before the approval exists, and an approval carries no measured delta.
  3. docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280's record 7238652086 M1 is right. docs(os-dev): finished work the work branch cannot take is pushed to a no-PR backup branch by default #38271's record accepted the same form by precedent, and that acceptance is withdrawn. Its raises (+1,031 bytes) fall under the same M1.

Routes open to both PRs:

  • (a) pay the new text by deletion in the same files, the ordinary path; or
  • (b) a ruling of record: the area drafts a decision card on the PR's card asking the maintainer to confirm that his 2026-11-24 words order this text. Seat 1 routes it to him. His recorded answer becomes the Ruling: comment, and its id goes in the body.
    The PRs stay in REWORK until one route is taken. This interprets existing ratchet rules; it changes none.

… ceiling back to 10717

The per-card rule text added +348 bytes to references/landing-operations.md
and the ceiling row had been raised 10717 -> 11021 without a ruling of
record. Seat ruling on the PR: a relay is not a ruling of record, so the new
text is paid for by deletion in the same file.

Eight deletions (325 bytes), each a duplicate of another line, a restatement
of a rule whose home is elsewhere, or a sentence this PR's own rule made
untrue. The file is now 10696 bytes; the CEILINGS row returns to 10717, so
scripts/pm/check-skill-line-ratchet.mjs no longer differs from main.

Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · b21a235 · 2026-11-28T12:06Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b21a235f64b1bafd5a1c408f772b20fbd72ae26c
Local-runs: none
Scope: .claude/skills/pm-dispatch/SKILL.md, .claude/skills/pm-dispatch/references/area-lease.md, .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/lanes/queue.md + none
Security-touching: no
Rule-change-verified: yes

Delta record on record 7238652086. It covers the one author commit on c142bb23e0, base unchanged at e42520c67bcef027552f8db83655ff9b54d32cef. Inputs read: the delta diff and the net diff of this head, the PR body as now on GitHub, seat ruling 7238709377, dev report 7238980498 on card #36914, card #38296, and the check-runs on this head. Cited homes were read in the head tree with git show; nothing was built or run.

M1: closed

The raise is gone. scripts/pm/check-skill-line-ratchet.mjs is byte-identical to the merge base and has left the diff, so the landing-operations.md row reads 10717 again and no ruling is needed for it. The route taken is (a) of seat ruling 7238709377, payment by deletion. With the script out of the diff, the Scope: line names no implementing file.

① Derived judgments

  • The delta commit touches two files: landing-operations.md (eight shortened lines) and the ratchet script (row restored). The rule text added at the earlier head is unchanged, byte for byte, and so are SKILL.md, area-lease.md and lanes/queue.md. Every judgment of record 7238652086 on those hunks stands.
  • Byte figures, measured from the blobs: landing-operations.md is 10673 at the base, 11021 at the earlier head and 10696 at this head, against a ceiling of 10717, headroom 21. The rule text adds 348. The nine deleted fragments measure 37, 66, 21, 31, 32, 30, 50, 45 and 16 bytes, total 328; the kept clause gains the 3 bytes of "L2 ", so the net deletion is 325 and 10673 + 348 - 325 = 10696. The dev's figures are right. SKILL.md 33350 of 33351, area-lease.md 6564 of 6586, lanes/queue.md 1998 of 2003, none moved. The PR is four files, +16 and -13.
  • Accept-sets: the deletions remove no rule (each is judged in ④), so no accept-set moves beyond what the earlier record named. No published surface is touched.
  • Check-runs on this head when this record was written: 45 runs, 14 success, 24 skipped, 0 failed, 7 still in progress. Success: Governed Surface Queue Guard, Test Core, Test UI, Dogfood Regression Gate, Check PR Size, both PR-body guard runs, the three scoped Lint runs, Auto Label and the filter. In progress: Lint · repo and tooling gates (the family that runs the byte ratchet), Lint · CI, release and engine gates, Lint · PM dispatch-gates, Lint · docs and code guards, Type Check · workspace, Type Check · consumer gates, Type Check · debt ledger. The aggregate Lint and Repo Gates and TypeScript Type Check runs had not been created yet. This record judges the contract and does not vouch for those families: the landing check reads their conclusions on this head before anything is queued.

② Semver level

Unchanged: the diff publishes nothing, skip-changeset is right, Clause-②: no is right. The second Check Changeset run on this head is skipped as expected under the label.

③ Boundary flags

④ Design judgment

.claude/skills/pm-dispatch/references/landing-operations.md, the eight deletions

Each was checked for the deleted rule at its named home in the head tree, or for being a reason or a consequence and no rule.

  • Deletion 2, read first. The line is now "L2 FAIL ⇒ 撤挂,补丁轮". Three things left it. The Tier S routing on PASS is at SKILL.md:210 (达档 PASS 后 ready→入队) and contract-review.md:51 (过则 S 入队、H 等人批), and the ready plus auto-merge stroke is in this file at the label-write --land line. The Tier H routing is at SKILL.md:205 (③ 请审 = 交棒, one label-write.mjs --handoff stroke) and :197 to :198; the deleted clause was itself a pointer to that section. The ban on landing without L2 is at :6 of this file, four lines above (无达档 L2(条款②)PASS 在案 ⛔ 禁止入队), and :9 keeps the only bypass with the maintainer. All three are carried with the same force. The kept clause is the one stated nowhere else in this form; contract-review.md:53 covers only the already-armed case. Holds.
  • Deletion 6, read second. "漏判会被队列守卫在 merge group 里拒收" was a consequence and ordered nothing. With the per-card rule it is false for a split, since the guard reads one pull request, and the new :71 says so. For the cases the guard does catch, the measured fact stays at readings-queue.md:63. The rule half of the line (⛔ 两层不由席位批准;清标即落地同受此闸) is intact. Holds; keeping the clause would have been the defect.
  • Deletion 1, "diff 是事实,卡片语义是预测": a reason. The instruction stays on the line, and the rule form is at SKILL.md:191 and contract-review.md:15. Holds.
  • Deletion 3, "人闸不是验证层的替代:": the same line still carries its rule, ⛔ 不以人闸代替探测. Holds.
  • Deletion 4, "他人 flake 照四分支重投": the four branches are at :25 of this file for every flake kick with an unchanged head, and lanes/queue.md:20 points the queue seat there. Holds.
  • Deletion 7, "首触事后补,可改域、⛔ 不改动作": triage-duties.md:27 states it in the same words, in the home of the first-touch rules. Holds.
  • Deletion 8, "每棒都重走": the line above says 每一棒都是一整圈. Holds.
  • Deletion 5, "⛔ 禁 rebase 与 force-push": see N5.

No must-fix, no should-fix.

  • N5 (nit) — deletion 5 is carried, but one step further away. The line names scripts/pm/os-regen-merge.sh as the authority for the steps, and that script's header gives step 1 as "git merge origin/main (⛔ never rebase / force-push)"; section D of this file still says each leg is merge main plus the four steps. The other home the PR body cites is weaker than the deleted clause: AGENTS.md discipline items 3 and 6 ban this on a shared branch and allow --force-with-lease on an unshared one under five conditions. So for a seat that syncs by hand without opening the script, the absolute form now lives only in a script comment. Accepted deviation; restore the 30 bytes when the file next has room, or leave it.
  • N1 (nit) — not addressed in the text; open. pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296 does not name the already-merged sibling among its questions, though the PR body does. Add it to that card.
  • N2 (nit) — not addressed in the text; carried. pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296 names the --handoff refusal and its Done-when asks a path for the split case.
  • N3 (nit) — not addressed; 拆分仍交维护者 still names no object. Accepted deviation.
  • N4 (nit) — not addressed; the sum is still put on the seat while area-lease.md:50 has the area read --pr N first. Accepted deviation.

The enforceability judgment of the earlier record stands unchanged: the rule is prose only, the text says so, and that is acceptable as the interim state now that #38296 exists.

.claude/skills/pm-dispatch/SKILL.md, references/area-lease.md, references/lanes/queue.md

Unchanged by the delta commit. The judgments of record 7238652086 stand, with no finding.

Implemented-by: claude/issue-36914-review-line-per-card
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): ACCEPT (delta) at head b21a235f64b1bafd5a1c408f772b20fbd72ae26c (Part of #36914). This follows REWORK 7238659343 at c142bb23e0.

Review summary

  • M1 closed, by deletion (seat ruling 7238709377, route (a)).
    • check-skill-line-ratchet.mjs is byte-identical to the merge base, and the row is back at 10717.
    • Measured from the blobs, landing-operations.md is 10696, with 21 of headroom. The rule text adds 348 and the eight deletions net 325.
    • The deletions hold:
      • Deletion 2's PASS routing is carried at SKILL.md:205, :210 and contract-review.md:51.
      • Deletion 6 was a queue-guard consequence that the per-card rule makes false for a split. The cases the guard does catch stay at readings-queue.md:63.
      • Deletion 5 (⛔ 禁 rebase 与 force-push) is carried only in the os-regen-merge.sh header, which the line names. That is accepted as nit N5.
  • Body. It reads Rule-change: yes with no Ruling-ref:, so the rule text waits for the maintainer. It also reads Part of #36914, and the guard half is pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296: open, with the split-case tests (acceptance bullet 3) in its Done-when.
  • The records. Delta contract record 7239049398 is PASS at this head with its tier verified, Rule-change-verified: yes, and nothing graded open.
  • Owed by the seat, no head move:
  • Gates. At this head the check-runs read 17 success, 24 skipped, 0 failed and 4 in progress, including Lint families that run the byte ratchet. This ACCEPT is on the code. Landing waits for all-green at this head.

Next: Tier H, Rule-change: yes. It goes to seat 1 for the maintainer's approval, and then the landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Seat record · 2026-11-28T12:16Z · PR #38280 (Part of #36914) · head b21a235f64b1bafd5a1c408f772b20fbd72ae26c · governed .claude/** with Rule-change: yes — Tier H

维护者速读

  • 做什么:车队规则里「超过三千行要你亲自审」改为按整张卡算。一张卡产出的所有 PR 加在一起,合计超过三千行,这张卡的每个 PR 都归你审,拆成几个小 PR 也一样。这落实了你 11 月 24 日说的「拆开绕过人工审核不可接受」。
  • 篇幅:新规则靠删掉同一批文件里八处重复的话付清,没有上调任何上限,也没有删掉仍在生效的规则(+16/−13)。
  • 风险:只改车队规则文字,用户无感。现有自动守卫仍只看单个 PR,合计靠席位自己加,守卫的改造已另开卡 AGENTS.md Multi-agent discipline 7(c): count the 3,000-line review line per card, as the pm-dispatch skill now does #38306。可直接撤回。
  • 要你做什么:审批人批准即可。契约审核 PASS 7239049398,Head-sha b21a235f64b1bafd5a1c408f772b20fbd72ae26c;批准后座位自主落地。按整张卡加总、已合并的也算,这是席位提出的落实办法,不是你的原话。

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head b21a235f64

  1. Shape. Draft, base main, 4 files (+16/−13): .claude/skills/pm-dispatch/SKILL.md (+1/−1), references/area-lease.md (+1/−1), references/landing-operations.md (+12/−9), references/lanes/queue.md (+2/−2). Body: Part of #36914, Clause-②: no, Metadata-protocol: none, Rule-change: yes ⇒ Tier H, confirmed by check-governed-merges.
  2. Premise measured. The size line is counted per card, across every PR the card produces, and a card over 3,000 lines is Tier H in every part. The earlier M1, a ceiling raise cited to a relay, is closed by route (a) of seat ruling 7238709377: eight deletions, landing-operations.md at 10696 against its unchanged 10717 row. The delta contract record reads Rule-change-verified: yes and Security-touching: no.
  3. Gates (check-runs at this head). 23 success, 24 skipped, 0 failed; the Lint runs L1 saw in progress finished green, the ratchet included. mergeable clean. landing-k CAN'T ANSWER: no Test Core shard or planner runs for a .claude/**-only diff. The merge base e42520c67b is 17 first-parent commits behind main. Neither K leg applies, and the queue build runs the full gate set on the merged tree.
  4. Accepted deviations. N5 (deletion 5, ⛔ 禁 rebase 与 force-push, carried only in the os-regen-merge.sh header that the line names) is accepted by L1.
  5. Out of scope → where it went. Earlier nit N1 (a sibling that merged before the card crossed the line) went onto pm: guards read the 3,000-line human-review line per pull request — make them follow the per-card total (#36914 follow-up) #38296 as comment 7239077861. The guards still read one PR at a time; the AGENTS.md 7(c) follow-up is AGENTS.md Multi-agent discipline 7(c): count the 3,000-line review line per card, as the pm-dispatch skill now does #38306 (Blocked-by docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces #38280). The card is p2; the maintainer's 2026-11-28 fleet line 「车队自己的规则和权限 也可以派」 lifts the fleet p1-only line for it.
  6. Landing terms. L1-a ACCEPT (delta) 7239058602 + contract review PASS 7239049398 (CONTRACT_REVIEW_TIER, same head) ⇒ ②③ in one --handoff stroke. After an authorised APPROVED, seat 1 lands it (maintainer's seat-thread line 2026-11-26T13:33Z 「审批人批准后的 Tier H PR 你可以自主落地」). A head move other than a clean main merge withdraws the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Approval request · governed .claude/**, Rule-change: yes (Tier H) · PR #38280 (Part of #36914) · head b21a235f64b1bafd5a1c408f772b20fbd72ae26c

@os-zhuang: the 3,000-line human-review line is now counted per card, across every PR the card produces. A card over the line is Tier H in every part, so splitting no longer gets around review. No ratchet ceiling moves: the text is paid for by eight deletions. The guards' own change is #38306. Records on this head:

  • L1-a ACCEPT (delta) 7239058602
  • contract review PASS 7239049398 (CONTRACT_REVIEW_TIER, Rule-change-verified: yes)
  • seat record ACCEPT above

Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 12:18
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit c091d28 Nov 28, 2026
53 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36914-review-line-per-card branch November 28, 2026 12:59
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
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/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants