Repository navigation
Commit c091d28
docs(pm-dispatch): the 3,000-line human-review line is counted per card, across every PR the card produces (#38280)
<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} -->
_Requested by **Elon** · [project
thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_
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:
```text
- 行数线按卡计:该卡全部 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.
<details><summary>Derived gate list: 25 families, all run, all exit
0</summary>
- `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`).
</details>
<details><summary>Overlap check before the push</summary>
`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.
</details>
## Acceptance notes
- **`AGENTS.md` still states the line per pull request.** Multi-agent
discipline §7 (c) reads "a PR whose changed lines exceed 3,000". The
card lists only the pm-dispatch files, and `AGENTS.md` is outside the
claim's file surface, so it is not touched here. Adding it would also
add two gate families to this pull request (`check:docs-audit-scope`,
`check:required-contexts`), and the file has 3 bytes of headroom. It
stays a follow-up and is not folded into this pull request.
- **`label-write.mjs --handoff` refuses the hand-off this rule orders in
the split case.** For a pull request that is under the line by itself
and touches no governed path, it answers "nobody is owed a hand-off",
because it reads `--pr N`. Until #38296 lands, a seat that hands over
such a pull request does it by hand. #38296 carries it.
- **The declaration reads `yes`, not `ruled`.** The maintainer's own
words were said in a project thread and are not on GitHub. Comment
7126265251 and the card body carry a seat's English relay, and the relay
rules only that splitting to get around review is not acceptable.
- **Tracker cards.** By the letter of the rule, every pull request that
names one long-running card with `Part of` counts toward that card's
total. The text does not carve them out, because the ruling does not. It
is the question #38296 puts to the maintainer before a script enforces
the total.
- **No ceiling row is lowered either.** `area-lease.md` is 1 byte
smaller and `lanes/queue.md` 5 bytes smaller, and
`landing-operations.md` keeps 21 of its 44 bytes of headroom. #38271 is
moving rows in the ratchet script, so this pull request leaves the
script untouched.
- **The comment in `label-write.mjs` that cites "〈路径分叉〉 Tier H and the
line after it" stays true.** The size line is still the line after the
Tier H line.
## 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.
<!-- signed: repo:objectstack#1 · os-elon-musk ·
session_016WV4cxRDKprCtjpEdtiPFW -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent d085e6c commit c091d28
4 files changed
Lines changed: 16 additions & 13 deletions
File tree
- .claude/skills/pm-dispatch
- references
- lanes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
88 | | - | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | | - | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments