Skip to content

Commit 2d56684

Browse files
docs(pm-dispatch): count the 3,000-line review line per single PR on the seat side (#38897)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBAaFqBXVHz1V3gDNV3Gped3)_ Refs #38296 Clause-②: no Metadata-protocol: none Rule-change: ruled Ruling-ref: 「也撤,全部只按单个 PR 算」 (the maintainer's choice on the seat's decision card, 2026-12-01 10:19:48Z, recorded on #38296 in comment 7308037857, to the question 「「按单个 PR 算」是否也撤掉席位那边的「按卡合计」?」) ## 维护者速读 - 用户无感:席位技能里 3,000 行人审线从「按卡合计」改成「按单个 PR 算」,和守卫脚本、开发指令一致。 - 是你 10:19 选的「也撤,全部只按单个 PR 算」;只改四份席位文字(两处按卡合计,加四行「过线卡」改回原来的按 PR 写法),不碰脚本和守卫。 - 「不为压线拆卡」只在开发指令里(#38878 那一行),席位文字不另加;「拆分仍交维护者」原文保留;撤回本 PR 即恢复按卡合计的文字。 - 无。 ## What changes The seat skill counted the 3,000-line human-review line per card in two places, and four more lines named an over-line card (「过线卡」, a term those two places defined). All of them now count per single PR: - `.claude/skills/pm-dispatch/references/landing-operations.md`, in the landing bullets: - The 「行数线按卡计」 bullet and its example (two 2,000-line PRs of one card are both Tier H) become: the line is counted per single PR; a PR over 3,000 changed lines (additions + deletions, generated files included) is Tier H, and every other PR of the same card is tiered on its own size. - The next bullet loses 「卡合计席位自加」 (the seat adding up the card total) and now says `--pr N`, the queue guard and the relay all read the single PR. It keeps 「拆分仍交维护者」 and 「派发令 ⛔ 不写「停下提拆分」」 as written. - In the front-of-queue bullets, 「过线卡的 PR 须授权批准…」 goes back to its wording before #38280: 「逾 3,000 行须授权批准…」. - `.claude/skills/pm-dispatch/references/area-lease.md`: 「受管面与过线卡的 PR 区 ⛔ 不落」 becomes 「受管面与超 3000 行 PR 区 ⛔ 不落」. That is its wording before #38280, with the thousands comma dropped to fit the file's byte ceiling. - `.claude/skills/pm-dispatch/references/lanes/queue.md`: 「三因至过线卡」 and 「过线卡各 PR 的批准」 go back to 「三因至逾 3,000 行」 and 「逾 3,000 行 PR 的批准」, as before #38280. - `.claude/skills/pm-dispatch/SKILL.md`, in 路径分叉: 「按卡合计 >3000 行」 becomes 「单个 PR >3000 行」. The rest of the line (the four-part hand-off, no Tier S exception) is unchanged. No script, guard, workflow or other rule file is touched. The guards already count per single PR. ## Why The maintainer ruled at 08:14Z that the guards count per single PR (#38296 comment 7305111979), and #38878 forbade a dev from splitting a card to dodge the line. The seat skill still told seats to add up a card's PRs. Asked whether that sum goes too, he chose 「也撤,全部只按单个 PR 算」 (comment 7308037857). This PR makes the seat text agree. ## Tests Text only. No code changed and no test applies. ## Acceptance notes - **Round-1 contract review (comment 7308587752), each finding:** - S1 (should-fix), the seat-side no-split clause went beyond the ruling: dropped. The no-split rule lives only in the dev instructions, as his card choice 「只在开发指令加一行」 said. - S2 (should-fix), 「过线卡」 still appeared in `landing-operations.md`, `area-lease.md` and `lanes/queue.md` after its definition was removed: all four lines go back to their per-PR wording from before #38280. - N1 (nit), the byte figures in this body were stale: corrected below. - The ratchet ceilings are not raised; every file holds under its row: - `SKILL.md`: 33,324 of 33,327 bytes. - `landing-operations.md`: 10,592 of 10,705 bytes. - `area-lease.md`: 7,220 of 7,220 bytes. - `lanes/queue.md`: 1,992 of 1,992 bytes. - The widest-row pins are unchanged. - No other `.claude/**`, `AGENTS.md` or `skills/**` text sums PRs per card or names an over-line card. A search for 按卡计, 按卡合计, 卡合计, 过线卡, per-card and card total finds nothing else. - #38296 may already be closed by #38878, so this pull says `Refs`. - Changeset: none. `.claude/**` is not published (fast path), so `skip-changeset` rides on this create. **Read first:** `.claude/skills/pm-dispatch/references/landing-operations.md`, the two rewritten bullets after 「⛔ 两层不由席位批准」. ## Verification **Two-minute check:** run `pnpm check:pm-skill-ratchet`. You should see `SKILL.md is 33324 bytes (ceiling 33327; headroom 3)`, `landing-operations.md is 10592 bytes (ceiling 10705; headroom 113)`, `area-lease.md is 7220 bytes (ceiling 7220; headroom 0)` and `lanes/queue.md is 1992 bytes (ceiling 1992; headroom 0)`. <details><summary>dispatch-gates command list</summary> `node scripts/pm/dispatch-gates.mjs --commands` for these four paths derived 25 commands, all run locally on a fresh install at head `050a5efd`: - 24 passed (exit 0), among them `check:pm-skill-ratchet`, `check:pm-governed-merges`, `check:pm-expected-skips` and `check:doc-authoring`. - 1 PREREQUISITE NOT MET (exit 3): `pnpm --filter @objectstack/lint run check:doc-formula-expressions` needs the lint and formula packages built. Nothing was measured, and this diff touches no doc formula. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (Not touched.) - [x] 2. Every name I added uses the casing for its kind. (None added.) - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Nothing publishes.) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (Not touched.) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (Except the quoted rule text and the 维护者速读, as the fleet rules allow.) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufziVTGyPT8jQDhRuAu5 <!-- signed: repo:objectstack@os-support-ai · os-support-ai · session_01WGufziVTGyPT8jQDhRuAu5 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 472d3c5 commit 2d56684

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
193193
- `GOVERNED_REPOS` 同治理、行可限仓,执行席恒随落地仓车道。
194194
- 恒 H:守卫仪器 `scripts/pm/check-governed-merges.mjs`+`scripts/pm/check-governed-queue-guard.mjs`+`scripts/pm/record-recognisers.mjs`+`scripts/pm/dispatch-gates.mjs`+守卫 workflow+settings+hooks。
195195
- 定档 Tier H ⇒ ACCEPT 换终局四件套,混合 diff ⛔ 不按比例判;要拆让 dev 单独开 PR。
196-
- 按卡合计 >3000 行(见 `landing-operations.md`)或申报收窄同换终局四件套含③请审,⛔ 无 Tier S 例外。
196+
- 单个 PR >3000 行(见 `landing-operations.md`)或申报收窄同换终局四件套含③请审,⛔ 无 Tier S 例外。
197197
- ① 席位记录落 PR 先于 `pr_ready`/入队且钉 head:速读四行+席位意见,其下 `## 席位核对`。
198198
- ② PR 悬着等人批,同笔挂 `pm:awaiting-merge`;人工直合即审核记录,授权批准 ⇒ 席位落地。
199199
- 指针 `ACCEPT → PR #n comment <id>`;受管/spec 面欠 ①–④,席只达档补审现 head 记录未盖处。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
- 契约记录只欠 `contract-review.md` 四面,head 移动照其例外;同 patch-id 干净合 main 只保 ACCEPT。
4949
- 落地:区先读 `check-governed-merges.mjs --pr N`;非受管 PR 照 `landing-operations.md` 自落,受拒报原文。
5050
- PASS 且全绿的非受管 PR 10 分钟内落地;挂前先查已有落地评论,有即 ⛔ 不再挂。
51-
- 受管面与过线卡的 PR 区 ⛔ 不落,交席位;席位照 SKILL.md〈路径分叉〉①–④ 一笔交棒。
51+
- 受管面与超 3000 行 PR 区 ⛔ 不落,交席位;席位照 SKILL.md〈路径分叉〉①–④ 一笔交棒。
5252
- 席位每轮照 `execution-duties.md` 四件套行复查全部已 PASS 受管 PR,各区转来的一并在内。
5353
- 性能卡与 PR 的提速数字只引已过 L1 的 bench PR 读数;⛔ 不引估算或未过 L1 的本地测量。
5454
- 席只裁路由(拆并延、归区;区边界扩、缩、并、释放,重写租约表为记);改可见行为或解读 ADR 照 SKILL.md〈升级与决策〉呈维护者。

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
(`Blocked-by`/串行行),该线经维护者或账户主人定为最高优先;(c) 账户主人点名要它插队。
3333
- 送出前先在 PR 贴审计评论点名字母与依据;一笔一 PR,同仓同时至多一个插队者在队。
3434
- 中继另拒 draft、head 已移、受管面与发版 PR;读回非队首即 FAILED,⛔ 不重发,报维护者。
35-
- 过线卡的 PR 须授权批准在现 head,或维护者非席位签名评论点名现 head 承接(`approval_comment`)。
35+
- 逾 3,000 行须授权批准在现 head,或维护者非席位签名评论点名现 head 承接(`approval_comment`)。
3636
- 出队(中继 `pr_dequeue`)限三因:(a) 与基座冲突;(b) 自身改动致队列构建红,三事实判非 flake;
3737
(c) PR 正文签名尾行之席以签名评论自请。审计评论在先,回读离队且仍开未合才落地。
3838
- 该 op 实测离队见 `readings-queue.md`;在队受管面 PR 亦由落地席发(Prime Directive #14)。
@@ -66,9 +66,8 @@
6666
- 落地评论 = 两个读数的探针表 + 一行状态变更(摘标/关卡/收口),⛔ 不复述 `## 席位核对`。
6767
- 转 ready/入队前跑 `check-governed-merges.mjs --pr N`,判定读全文 ⛔ 不 tail/head;四件套照 SKILL.md。
6868
- ⛔ 两层不由席位批准;清标即落地同受此闸。
69-
- 行数线按卡计:该卡全部 PR(含拆出的后续与已合并)additions+deletions(含生成物)之和 >3000 即过线卡,
70-
每张 PR 皆 Tier H。例:一卡拆两张各 2,000 行 PR,两张皆 Tier H。
71-
- 拆分仍交维护者,派发令 ⛔ 不写「停下提拆分」;`--pr N`、队列守卫与中继只读单 PR,卡合计席位自加。
69+
- 行数线按单个 PR 计:该 PR additions+deletions(含生成物)>3000 即 Tier H;同卡别的 PR 各按自身定档。
70+
- 拆分仍交维护者,派发令 ⛔ 不写「停下提拆分」;`--pr N`、队列守卫与中继同按单 PR 读。
7271
- 挂 auto-merge 的同一动作里重测生成物漂移,⛔ 不复用更早的零;非零 ⇒ 按 A 的固定序。
7372
- 零 `enqueued` 事件按序查三条:① `mergeable_state` 是否 `dirty`。
7473
- ② enable-auto-merge 调用根本没落地,重发与效果验证序列见 `readings-queue.md`。

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
- 例外:该 flake 在 `main` 上也红 ⇒ 照 main-red 约定①立 p0 锚卡,
1919
敲分诊 `Request: main-red`、锚卡车道 `Notify: main-red`(project-forms.md 立锚卡者行)。
2020
- flake 受害者(head 未变):照 landing-operations.md 四分支与三事实重投一次,同签名再弹即停。
21-
- 插队只用中继 `pr_enqueue_front`:ACCEPT 后、无受管面,余照该文插队各条(三因至过线卡)。
21+
- 插队只用中继 `pr_enqueue_front`:ACCEPT 后、无受管面,余照该文插队各条(三因至逾 3,000 行)。
2222
- 出队只用中继 `pr_dequeue`:落地席离线时本席代办 (a)(b);(c) 中继只认正文签名尾行之席。
2323
- 中继自贴审计评论并回读,仍在队或已合即 FAILED,⛔ 不重发,报维护者;落地席经订阅得知。
2424

2525
## 归维护者
2626

27-
- 过线卡各 PR 的批准、受管面 PR、Version Packages 合并、队列配置与 App 权限。
27+
- 逾 3,000 行 PR 的批准、受管面 PR、Version Packages 合并、队列配置与 App 权限。
2828

2929
## 边界
3030

0 commit comments

Comments
 (0)