From e91d783b49ee1c601f5792763905c2438e52e387 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 08:36:41 +0000 Subject: [PATCH 1/3] docs(pm-dispatch): L1 checklist refuses a committed one-off codemod and asks for growth beyond a pure move to be accounted for MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two rules under the scope section of the L1 review checklist: - a one-off code generator, codemod or migration script whose output is the PR's own diff stays off the repo; the reviewer runs it from the branch history or an attachment, and its proof readings go in the PR body - a refactor presented as a move or split whose net growth exceeds a pure move is accounted per file before ACCEPT, or it is REWORK Clause-②: no Metadata-protocol: none Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12 --- .claude/skills/pm-dispatch/references/l1-review-checklist.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.claude/skills/pm-dispatch/references/l1-review-checklist.md b/.claude/skills/pm-dispatch/references/l1-review-checklist.md index bad8b986499..427a4ecb185 100644 --- a/.claude/skills/pm-dispatch/references/l1-review-checklist.md +++ b/.claude/skills/pm-dispatch/references/l1-review-checklist.md @@ -28,6 +28,11 @@ - 本轮令其变假或触碰的已发布缺陷必修;只注意到、未触碰的立卡不修,记明已发布面。 - 每个被触及的包,`private: false` 即已发布 ⇒ 读 `package.json` 核 changeset 在不在。 - ⛔ 判据不是改动大小,也不是用户可见的感觉判断;⛔ 缺了不入队。 +- 一次性 codegen、codemod 或迁移脚本,其产物即本 PR 自身 diff ⇒ ⛔ 不入仓,提交了即判 REWORK。 +- 它住 PR 分支历史或附件,审核人亲跑;证明读数(逐字节相同、导出相等一类)写进 PR 正文。 +- 不在此列:合并后还会再跑的工具,如门禁、regen 步骤、客户照迁移指南跑的 codemod。 +- 以移动或拆分呈现的重构,净增远超纯移动 ⇒ ACCEPT 前逐文件点清多出的行与每块用途。 +- 点不清即判 REWORK;这份清点写进 ACCEPT 评论 `## 席位核对`。 ## 测试与门禁证据 From 4217bb13fc3452e3b90350ba1b4663e7fb803b5f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 08:37:53 +0000 Subject: [PATCH 2/3] docs(pm-dispatch): fold the two L1 rules into four lines and raise the checklist ceiling by the measured delta The checklist was at headroom 0. The raise is the measured +4 (76 to 80 lines), ordered by the ruling of record named in the CEILINGS row comment. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12 --- .../skills/pm-dispatch/references/l1-review-checklist.md | 7 +++---- scripts/pm/check-skill-line-ratchet.mjs | 6 +++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.claude/skills/pm-dispatch/references/l1-review-checklist.md b/.claude/skills/pm-dispatch/references/l1-review-checklist.md index 427a4ecb185..2e180512a77 100644 --- a/.claude/skills/pm-dispatch/references/l1-review-checklist.md +++ b/.claude/skills/pm-dispatch/references/l1-review-checklist.md @@ -28,11 +28,10 @@ - 本轮令其变假或触碰的已发布缺陷必修;只注意到、未触碰的立卡不修,记明已发布面。 - 每个被触及的包,`private: false` 即已发布 ⇒ 读 `package.json` 核 changeset 在不在。 - ⛔ 判据不是改动大小,也不是用户可见的感觉判断;⛔ 缺了不入队。 -- 一次性 codegen、codemod 或迁移脚本,其产物即本 PR 自身 diff ⇒ ⛔ 不入仓,提交了即判 REWORK。 -- 它住 PR 分支历史或附件,审核人亲跑;证明读数(逐字节相同、导出相等一类)写进 PR 正文。 +- 一次性 codegen/codemod/迁移脚本,产物即本 PR 自身 diff ⇒ ⛔ 不入仓,提交即判 REWORK。 +- 它住 PR 分支历史或附件,审核人亲跑;证明读数(逐字节相同、导出相等)写进 PR 正文。 - 不在此列:合并后还会再跑的工具,如门禁、regen 步骤、客户照迁移指南跑的 codemod。 -- 以移动或拆分呈现的重构,净增远超纯移动 ⇒ ACCEPT 前逐文件点清多出的行与每块用途。 -- 点不清即判 REWORK;这份清点写进 ACCEPT 评论 `## 席位核对`。 +- 移动/拆分重构净增远超纯移动:逐文件点清多出各块用途,记进 ACCEPT 评论;点不清判 REWORK。 ## 测试与门禁证据 diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index 059ffc6827f..5135954f974 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -1257,7 +1257,11 @@ export const CEILINGS = new Map([ // 77 → 76 (#25753): lines that named objectui as a sibling repo retired; landed count. // Renamed from `references/review-checklist.md` by the two review levels (ruling record // 6897685514): the L1 checklist, same 76 lines, the key moved with the file. - ['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 76], + // 76 → 80 (#34343): four lines, two review rules — a one-off codemod is never committed, and a move's growth is + // accounted per file. The ruling of record is that card's body, which quotes the maintainer verbatim — + // 「这种代码就是垃圾啊,我为什么要合并,以及如何避免类似的问题」 and 「yes」 to the proposal — and names the review + // checklist and both rules. Measured delta +4 (76 → 80 lines); landed count, headroom 0. + ['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 80], // The old path's stub: one pointer line to the file above, so a link, a record or a // running thread that still names it lands somewhere (same ruling record). A NEW row at // its landed count; the stub is deleted with the alias, never grown. From d5291e64e906fcd70f0409d3a91dc436060a71ce Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 12:58:09 +0000 Subject: [PATCH 3/3] docs(pm-dispatch): name the head diff as the one-off script REWORK trigger Line 31 of the L1 review checklist said a committed one-off script is REWORK, while line 32 sends the script to the PR branch history, which a script reaches only by being committed. The trigger now reads the head diff, the tree that merges. Same line count, line stays within 120 bytes. Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft Co-Authored-By: Claude --- .claude/skills/pm-dispatch/references/l1-review-checklist.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/skills/pm-dispatch/references/l1-review-checklist.md b/.claude/skills/pm-dispatch/references/l1-review-checklist.md index 2e180512a77..76a2b907950 100644 --- a/.claude/skills/pm-dispatch/references/l1-review-checklist.md +++ b/.claude/skills/pm-dispatch/references/l1-review-checklist.md @@ -28,7 +28,7 @@ - 本轮令其变假或触碰的已发布缺陷必修;只注意到、未触碰的立卡不修,记明已发布面。 - 每个被触及的包,`private: false` 即已发布 ⇒ 读 `package.json` 核 changeset 在不在。 - ⛔ 判据不是改动大小,也不是用户可见的感觉判断;⛔ 缺了不入队。 -- 一次性 codegen/codemod/迁移脚本,产物即本 PR 自身 diff ⇒ ⛔ 不入仓,提交即判 REWORK。 +- 一次性 codegen/codemod/迁移脚本,产物即本 PR 自身 diff ⇒ ⛔ 不入仓,head diff 含它即判 REWORK。 - 它住 PR 分支历史或附件,审核人亲跑;证明读数(逐字节相同、导出相等)写进 PR 正文。 - 不在此列:合并后还会再跑的工具,如门禁、regen 步骤、客户照迁移指南跑的 codemod。 - 移动/拆分重构净增远超纯移动:逐文件点清多出各块用途,记进 ACCEPT 评论;点不清判 REWORK。