From c142bb23e0d3f9f98d398a09ff897e81a8a332e7 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 10:30:14 +0000 Subject: [PATCH 1/2] docs(pm-dispatch): the human-review line is counted per card, across 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 --- .claude/skills/pm-dispatch/SKILL.md | 2 +- .claude/skills/pm-dispatch/references/area-lease.md | 2 +- .claude/skills/pm-dispatch/references/landing-operations.md | 5 ++++- .claude/skills/pm-dispatch/references/lanes/queue.md | 4 ++-- scripts/pm/check-skill-line-ratchet.mjs | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.claude/skills/pm-dispatch/SKILL.md b/.claude/skills/pm-dispatch/SKILL.md index 18567e2a07f..76e1e7bad73 100644 --- a/.claude/skills/pm-dispatch/SKILL.md +++ b/.claude/skills/pm-dispatch/SKILL.md @@ -193,7 +193,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 → - `GOVERNED_REPOS` 同治理、行可限仓,执行席恒随落地仓车道。 - 恒 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。 - 定档 Tier H ⇒ ACCEPT 换终局四件套,混合 diff ⛔ 不按比例判;要拆让 dev 单独开 PR。 -- >3000 行(含生成物,additions+deletions)或申报收窄同换终局四件套含③请审,⛔ 无 Tier S 例外。 +- 按卡合计 >3000 行(见 `landing-operations.md`)或申报收窄同换终局四件套含③请审,⛔ 无 Tier S 例外。 - ① 席位记录落 PR 先于 `pr_ready`/入队且钉 head:速读四行+席位意见,其下 `## 席位核对`。 - ② PR 悬着等人批,同笔挂 `pm:awaiting-merge`;人工直合即审核记录,授权批准 ⇒ 席位落地。 - 指针 `ACCEPT → PR #n comment `;受管/spec 面欠 ①–④,席只达档补审现 head 记录未盖处。 diff --git a/.claude/skills/pm-dispatch/references/area-lease.md b/.claude/skills/pm-dispatch/references/area-lease.md index cd3922d65e3..3ad1cd8cd7c 100644 --- a/.claude/skills/pm-dispatch/references/area-lease.md +++ b/.claude/skills/pm-dispatch/references/area-lease.md @@ -49,7 +49,7 @@ - 契约记录只欠 `contract-review.md` 四面,head 移动照其例外;同 patch-id 干净合 main 只保 ACCEPT。 - 落地:区先读 `check-governed-merges.mjs --pr N`;非受管 PR 照 `landing-operations.md` 自落,受拒报原文。 - PASS 且全绿的非受管 PR 10 分钟内落地;挂前先查 PR 上已有落地评论,有即 ⛔ 不再挂。 -- 受管面与超 3,000 行 PR 区 ⛔ 不落,交席位;席位照 SKILL.md〈路径分叉〉①–④ 一笔交棒。 +- 受管面与过线卡的 PR 区 ⛔ 不落,交席位;席位照 SKILL.md〈路径分叉〉①–④ 一笔交棒。 - 席位每轮照 `execution-duties.md` 四件套行复查全部已 PASS 受管 PR,各区转来的一并在内。 - 性能卡与 PR 的提速数字只引已过 L1 的 bench PR 读数;⛔ 不引估算或未过 L1 的本地测量。 - 席只裁路由(拆并延、归区);改可见行为或解读 ADR 照 SKILL.md〈升级与决策〉呈维护者。 diff --git a/.claude/skills/pm-dispatch/references/landing-operations.md b/.claude/skills/pm-dispatch/references/landing-operations.md index ca014676685..11fd0175023 100644 --- a/.claude/skills/pm-dispatch/references/landing-operations.md +++ b/.claude/skills/pm-dispatch/references/landing-operations.md @@ -32,7 +32,7 @@ (`Blocked-by`/串行行),该线经维护者或账户主人定为最高优先;(c) 账户主人点名要它插队。 - 送出前先在 PR 贴审计评论点名字母与依据;一笔一 PR,同仓同时至多一个插队者在队。 - 中继另拒 draft、head 已移、受管面与发版 PR;读回非队首即 FAILED,⛔ 不重发,报维护者。 -- 逾 3,000 行须授权批准在现 head,或维护者非席位签名评论点名现 head 承接(`approval_comment`)。 +- 过线卡的 PR 须授权批准在现 head,或维护者非席位签名评论点名现 head 承接(`approval_comment`)。 - 出队(中继 `pr_dequeue`)限三因:(a) 与基座冲突;(b) 自身改动致队列构建红,三事实判非 flake; (c) PR 正文签名尾行之席以签名评论自请。审计评论在先,回读离队且仍开未合才落地。 - 该 op 实测离队见 `readings-queue.md`;在队受管面 PR 亦由落地席发(Prime Directive #14)。 @@ -66,6 +66,9 @@ - 落地评论 = 两个读数的探针表 + 一行状态变更(摘标/关卡/收口),⛔ 不复述 `## 席位核对`。 - 转 ready/入队前跑 `check-governed-merges.mjs --pr N`,判定读全文 ⛔ 不 tail/head;四件套照 SKILL.md。 - ⛔ 两层不由席位批准;清标即落地同受此闸,漏判会被队列守卫在 merge group 里拒收。 +- 行数线按卡计:该卡全部 PR(含拆出的后续与已合并)additions+deletions(含生成物)之和 >3000 即过线卡, + 每张 PR 皆 Tier H。例:一卡拆两张各 2,000 行 PR,两张皆 Tier H。 +- 拆分仍交维护者,派发令 ⛔ 不写「停下提拆分」;`--pr N`、队列守卫与中继只读单 PR,卡合计席位自加。 - 挂 auto-merge 的同一动作里重测生成物漂移,⛔ 不复用更早的零;非零 ⇒ 按 A 的固定序。 - 零 `enqueued` 事件按序查三条:① `mergeable_state` 是否 `dirty`。 - ② enable-auto-merge 调用根本没落地,重发与效果验证序列见 `readings-queue.md`。 diff --git a/.claude/skills/pm-dispatch/references/lanes/queue.md b/.claude/skills/pm-dispatch/references/lanes/queue.md index 7ba32be6c2e..43ab7ad8194 100644 --- a/.claude/skills/pm-dispatch/references/lanes/queue.md +++ b/.claude/skills/pm-dispatch/references/lanes/queue.md @@ -18,13 +18,13 @@ - 例外:该 flake 在 `main` 上也红 ⇒ 照 main-red 约定①立 p0 锚卡, 敲分诊 `Request: main-red`、锚卡车道 `Notify: main-red`(project-forms.md 立锚卡者行)。 - flake 受害者(head 未变):照 landing-operations.md 四分支与三事实重投一次,同签名再弹即停。 -- 插队只用中继 `pr_enqueue_front`:ACCEPT 后、无受管面,余照该文插队各条(三因至逾 3,000 行)。 +- 插队只用中继 `pr_enqueue_front`:ACCEPT 后、无受管面,余照该文插队各条(三因至过线卡)。 - 出队只用中继 `pr_dequeue`:落地席离线时本席代办 (a)(b);(c) 中继只认正文签名尾行之席。 - 中继自贴审计评论并回读,仍在队或已合即 FAILED,⛔ 不重发,报维护者;落地席经订阅得知。 ## 归维护者 -- 逾 3,000 行 PR 的批准、受管面 PR、Version Packages 合并、队列配置与 App 权限。 +- 过线卡各 PR 的批准、受管面 PR、Version Packages 合并、队列配置与 App 权限。 ## 边界 diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index e631b688716..07f90bc4421 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -99,7 +99,7 @@ export const CEILINGS = new Map([ ['.claude/skills/pm-dispatch/references/rest-channel.md', 7698], ['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 6875], ['.claude/skills/pm-dispatch/references/review-checklist.md', 79], - ['.claude/skills/pm-dispatch/references/landing-operations.md', 10717], + ['.claude/skills/pm-dispatch/references/landing-operations.md', 11021], // raised 10717 → 11021 (+304) by the ruled text (the human-review line is counted per card, summed over every PR the card produces): the maintainer's ruling of 2026-11-24 08:28Z, as relayed in comment 7126265251 ['.claude/skills/pm-dispatch/references/release-aftercare.md', 3526], ['.claude/skills/pm-dispatch/references/seat-post-protocol.md', 7720], ['.claude/skills/pm-dispatch/references/true-green.md', 2068], From b21a235f64b1bafd5a1c408f772b20fbd72ae26c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 11:49:21 +0000 Subject: [PATCH 2/2] docs(pm-dispatch): pay for the per-card review-line text by deletion, 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 --- .../pm-dispatch/references/landing-operations.md | 16 ++++++++-------- scripts/pm/check-skill-line-ratchet.mjs | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.claude/skills/pm-dispatch/references/landing-operations.md b/.claude/skills/pm-dispatch/references/landing-operations.md index 11fd0175023..2e0ec64f578 100644 --- a/.claude/skills/pm-dispatch/references/landing-operations.md +++ b/.claude/skills/pm-dispatch/references/landing-operations.md @@ -2,12 +2,12 @@ ## 入队与落地 -- 条款②入队闸门:翻 ready / 入队前先取 PR 实际 diff;diff 是事实,卡片语义是预测。 +- 条款②入队闸门:翻 ready / 入队前先取 PR 实际 diff。 - `--tier` 嫌疑行是提示非裁定;双肢命中任一 ⇒ 无达档 L2(条款②)PASS 在案 ⛔ 禁止入队。 - 路径肢 = diff 触及契约面 `packages/spec/src/**` 非测试,含 error-code-ledger、`*.zod.ts` 契约 schema。 - 声明肢 = 认领评论声明 `Clause-②: yes`,与路径无关;错误的 `no` 是可审计的假申报。 - 子代理起不来 ⇒ L2 缺席,PR 带 `needs:contract-review` 留 draft 队列外;旁路仅维护者逐次亲审 -- PASS ⇒ Tier S ready、auto-merge;Tier H 经 SKILL.md ③ 交棒;FAIL ⇒ 撤挂,补丁轮;⛔ 免 L2 不放行。 +- L2 FAIL ⇒ 撤挂,补丁轮。 - DELIBERATE CORRECTION 红(`check-empty-changeset`)⛔ 不等维护者;确认件皆须点名每个被改 note: - diff 只改 release 文字或注释者:派发席 ACCEPT 确认,逐句引改前与改后,免第二次同 head L2。 - 其余(含改代码)照全套:同 head 达档 L2 PASS 记录即确认,记录逐句判改写句。 @@ -17,7 +17,7 @@ - 验证层 = 部署以 CI 为闸、发布后探测线上面、失败自动回滚并立卡。 - 该类仓的落地判据是已发布且探测通过,⛔ 不是 MERGED;跟到发布为止。 - 合并后工作流不在 PR 检查清单上,读 PR 检查的规则对它全盲;按独立检查类登记分开读。 -- 人闸不是验证层的替代:答不了会不会坏的人闸只买延迟,⛔ 不以人闸代替探测。 +- 答不了会不会坏的人闸只买延迟,⛔ 不以人闸代替探测。 - 落地记账:座位贴落地清单即账本,逐轮即时记;确需全仓核对时首选 `head:claude/` 精确过滤。 - 红/踢出处置在同一落地窗口内做:机器输入是 merge-queue triage workflow 的分诊评论。 - 判据唯一来源是签名台账(锚点 issue),优先于现场判断;只有人工能升级台账。 @@ -36,7 +36,7 @@ - 出队(中继 `pr_dequeue`)限三因:(a) 与基座冲突;(b) 自身改动致队列构建红,三事实判非 flake; (c) PR 正文签名尾行之席以签名评论自请。审计评论在先,回读离队且仍开未合才落地。 - 该 op 实测离队见 `readings-queue.md`;在队受管面 PR 亦由落地席发(Prime Directive #14)。 -- 谁入队谁看护:冲突或自因被踢 ⇒ 一轮巡查内出队修复再入队;他人 flake 照四分支重投。 +- 谁入队谁看护:冲突或自因被踢 ⇒ 一轮巡查内出队修复再入队。 - PR 侧红(非队列)同在本窗口处置:义务与三步只住 `readings-ci.md`「红检查先读日志」。 - 挂 auto-merge/入队前读 K(PRBASE 至 origin/main 首父提交数)与任何 K 两腿,读 `landing-k.mjs --pr N`。 - PRBASE = 末次绿 PR 跑 Test Core 所印 `Affected-set diff base`,⛔ 不取该跑起始时刻。 @@ -49,7 +49,7 @@ - `merge=os-regen` 路径清单当场读 `grep os-regen .gitattributes`,那是唯一权威清单。 - ⛔ 不把该清单抄进派发令当常量;文档产物同在清单、同样会被吞。 -- 四步序已机械化 `bash scripts/pm/os-regen-merge.sh`,步骤以脚本为权威;⛔ 禁 rebase 与 force-push。 +- 四步序已机械化 `bash scripts/pm/os-regen-merge.sh`,步骤以脚本为权威。 - 重生成后断言所有兄弟单的条目都还在。 - 更硬的旁证是查上一单的实现体完好:`git grep` 带引号精确名对 `origin/main` 与实现文件。 @@ -65,7 +65,7 @@ - 落地遭分类器拒 ⇒ 停手、报维护者、卡上记命令与拒因;⛔ 不换拼法、不退回 ccr 绕过。 - 落地评论 = 两个读数的探针表 + 一行状态变更(摘标/关卡/收口),⛔ 不复述 `## 席位核对`。 - 转 ready/入队前跑 `check-governed-merges.mjs --pr N`,判定读全文 ⛔ 不 tail/head;四件套照 SKILL.md。 -- ⛔ 两层不由席位批准;清标即落地同受此闸,漏判会被队列守卫在 merge group 里拒收。 +- ⛔ 两层不由席位批准;清标即落地同受此闸。 - 行数线按卡计:该卡全部 PR(含拆出的后续与已合并)additions+deletions(含生成物)之和 >3000 即过线卡, 每张 PR 皆 Tier H。例:一卡拆两张各 2,000 行 PR,两张皆 Tier H。 - 拆分仍交维护者,派发令 ⛔ 不写「停下提拆分」;`--pr N`、队列守卫与中继只读单 PR,卡合计席位自加。 @@ -88,7 +88,7 @@ - 触发条件是卡终局且报告已过 L1;⛔ 合并前不归档,误归档可 unarchive 但容器现场已失。 - 暂停或交接时把在挂订阅清点进座位贴,⛔ 不留孤儿订阅。 - main-red 约定①:见主干/队列全量红的席位先找锚卡,无则立 p0 锚卡(门类 ①),域随失败面。 -- 认领并派止血,⛔ 不等分诊首触、不等维护者;首触事后补,可改域、⛔ 不改动作。 +- 认领并派止血,⛔ 不等分诊首触、不等维护者。 - 首道止血 = 回退引入红的提交(主干末绿与首红之间找),根因另立卡。 - p0 fix-forward 止血跳队,限机械、根因已核实;维护者可按 governed 例外人工直合一行修复。 - 止血非机械 ⇒ 锚卡点名归属车道、敲其信箱 `Notify: main-red`;根因卡恒归该车道。 @@ -108,7 +108,7 @@ ## D. 串行接力:多个已实现 PR 全碰生成物时,一次只放行一个 - 每一棒都是一整圈:merge main + A 的四步 + AGENTS.md §10 所划受影响门禁 + 兄弟单断言复核。 -- 然后 PM L1 审核回报 → 转 ready → 挂 auto-merge 或入队;每棒都重走。 +- 然后 PM L1 审核回报 → 转 ready → 挂 auto-merge 或入队。 - 相邻两棒同碰一个文件时,交接的是语义不是文本。 - 前棒在回报里写明它对共享文件改动的性质:改名、提取变量、增补断言,还是纯追加。 - PM 原样转告下一棒,并要求两个 PR 的意图叠加,⛔ 禁止机械取一边。 diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index 07f90bc4421..e631b688716 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -99,7 +99,7 @@ export const CEILINGS = new Map([ ['.claude/skills/pm-dispatch/references/rest-channel.md', 7698], ['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 6875], ['.claude/skills/pm-dispatch/references/review-checklist.md', 79], - ['.claude/skills/pm-dispatch/references/landing-operations.md', 11021], // raised 10717 → 11021 (+304) by the ruled text (the human-review line is counted per card, summed over every PR the card produces): the maintainer's ruling of 2026-11-24 08:28Z, as relayed in comment 7126265251 + ['.claude/skills/pm-dispatch/references/landing-operations.md', 10717], ['.claude/skills/pm-dispatch/references/release-aftercare.md', 3526], ['.claude/skills/pm-dispatch/references/seat-post-protocol.md', 7720], ['.claude/skills/pm-dispatch/references/true-green.md', 2068],