Skip to content

Commit cfcba53

Browse files
docs(pm-dispatch): L1 review refuses a committed one-off codemod and asks for growth beyond a pure move to be accounted for (#34356)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbBePzY6g11h3hyWk5ud4vWy)_ Fixes #34343 Clause-②: no Metadata-protocol: none Related (no closing relation): the same rule as recorded for the remaining splits, #33949 (comment) ## 维护者速读 - 改了什么:L1 审核清单新增两条规则,共 4 行。一是一次性 codegen/codemod/迁移脚本不入仓;二是以移动或拆分呈现的重构若净增远超纯移动,须逐文件点清,否则 REWORK。清单行数上限由 76 抬到 80。 - 为什么改:落实你 2026-11-16 在项目对话里的指令(本卡正文逐字引用)。一次拆分 PR 提交了 3,073 行一次性脚本,净增 +5.7k 行,却没有任何人追问。 - 风险与回滚:只改规则文本和一个上限数字,不改任何代码行为;回滚 = revert 本 PR。 - 先看:① `.claude/skills/pm-dispatch/references/l1-review-checklist.md` 第 31–34 行;② `scripts/pm/check-skill-line-ratchet.mjs` 里 `l1-review-checklist.md` 的上限行及其注释。 - 两分钟验证:运行 `pnpm check:pm-skill-ratchet`,应退出 0,并打印 `l1-review-checklist.md is 80 lines (ceiling 80; headroom 0)`。 - 需要你做的:无。`check-governed-merges --pr 34356` 判 Tier S(受管路径只有 `.claude/**` 一处),按 AGENTS.md 第 14 条由座位在达档 L2 PASS 与 L1 ACCEPT 之后入队落地,不等你批准;上限抬升 +4 凭本卡正文所引你的原话。 ## What changes - Surface note: #34052 renamed the checklist, so the claim's path `references/review-checklist.md` is now a one-line pointer stub. The two rules go into `references/l1-review-checklist.md`, the file that stub points to. The stub and `execution-duties.md` are unchanged. - **`.claude/skills/pm-dispatch/references/l1-review-checklist.md`**: four lines are added under the scope section, in the checklist's own verdict words. REWORK is used where the card says FAIL, and ACCEPT where it says PASS. 1. **Never committed.** A one-off codegen, codemod or migration script whose output is the PR's own diff stays off the repo. If the head diff contains one, the verdict is REWORK. The script lives in the PR branch history or as an attachment, and the reviewer runs it. Its proof readings, such as byte-identity and exports-equality, go in the PR body. Out of scope: tools that run again after merge, such as gates, regen steps, and codemods that customers run from a migration guide. 2. **Growth accounted for.** A refactor presented as a move or split can show net growth far beyond a pure move. For such a PR, the reviewer accounts per file for what each extra block is for, and records the account in the ACCEPT comment. If the reviewer can't account for it, the verdict is REWORK. - **`scripts/pm/check-skill-line-ratchet.mjs`**: the `CEILINGS` row for `l1-review-checklist.md` goes from 76 to 80, and one comment block cites the ruling. The file was at headroom 0. - The ruling of record is the #34343 card body. It quotes the maintainer verbatim, 「这种代码就是垃圾啊,我为什么要合并,以及如何避免类似的问题」 and then 「yes」 to the proposal, and it names the review checklist and both rules. This follows the precedent of the rows raised for #29160 and #29420. - The raise equals the measured delta exactly: 76 → 80 lines, +4. The rules were first drafted as 5 lines and then tightened to 4. - No pointer line was added to `SKILL.md` or `contract-review.md`. `execution-duties.md` 〈L1 审核〉 already sends every L1 reviewer to `l1-review-checklist.md`. The L1 review is owed on every dispatched PR, and the L2 review never replaces it, per `SKILL.md` 〈审核两级〉. - No changeset is needed. `.claude/**` and `scripts/pm/**` publish nothing, so this PR carries `skip-changeset`. | FROM | TO | |:---|:---| | Claim path `references/review-checklist.md` (now a 1-line pointer stub) | `references/l1-review-checklist.md` (the stub's target) | | `CEILINGS` row `l1-review-checklist.md`: 76 | 80 (+4, the measured delta) | ## Tests These were run at head `83479c1d76`, after the merge of `origin/main` `7d06248d92`. Exit codes were captured before any pipe. Re-read at head `7fcc9d0373` (S1 of record 6913331084: line 31 reworded, then a clean merge of `origin/main` `f84dc192`): `pnpm check:pm-skill-ratchet`, `check:pm-skill-id-lint`, `check:pm-governed-prose`, `check:nul-bytes`, `check:doc-authoring`, `check:skill-frame-sync` and `check-skills-token-ratchet.mjs` → 0; the checklist is still 80 lines and line 31 measures 119 bytes (dev report 6917433734 on #34343). - `pnpm check:pm-skill-ratchet` → 0, which includes its `--self-test`. It prints `l1-review-checklist.md is 80 lines (ceiling 80; headroom 0)`. Before the row was raised, the same gate exited 1 on e91d783 with `is 81 lines; the ratchet ceiling is 76`, which was the first 5-line draft. That red reading is the evidence that the row raise is load-bearing. - `pnpm check:pm-skill-id-lint` → 0. `pnpm exec eslint --no-inline-config scripts/pm/check-skill-line-ratchet.mjs` → 0. - No line over 120 bytes in the touched checklist. ## Verification <details><summary>Derived gate families (dispatch-gates --commands, two-file diff) and the check-skill gates</summary> These ran on `4217bb13fc`, the same diff before the main merge. Exit 0: every derived command below, plus `check:skill-links`, `check:skill-identifier-liveness`, `check:skill-top-level-keys`, `check:skill-compatibility`, `check:skill-frame-freshness`, `check:skill-frame-sync`, `check:pm-governed-prose`, `check:pm-governed-merges`, `check:pm-skill-id-lint`, `check:pm-skill-ratchet`, `check-skills-token-ratchet`, `check-published-list-mirrors`, `check:doc-authoring`, `check:nul-bytes` and the remaining 30 derived commands. Not measured: - `pnpm --filter @objectstack/lint run check:doc-formula-expressions` exited 3 with `PREREQUISITE NOT MET` (formula and lint not built). The build was queued behind the shared verify lock, so this is left to CI. - `check-single-claim-paths` exited 2 because it needs PR context (CI's `pr-body-guards`). - `check:pm-dispatch-gates` was still running when this PR opened, so it is left to CI. Merge-tree is clean against `origin/main` and against the one open PR that touches the ratchet script (#34110, a different `CEILINGS` row). </details> Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3dfd867 commit cfcba53

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎.claude/skills/pm-dispatch/references/l1-review-checklist.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
- 本轮令其变假或触碰的已发布缺陷必修;只注意到、未触碰的立卡不修,记明已发布面。
2929
- 每个被触及的包,`private: false` 即已发布 ⇒ 读 `package.json` 核 changeset 在不在。
3030
- ⛔ 判据不是改动大小,也不是用户可见的感觉判断;⛔ 缺了不入队。
31+
- 一次性 codegen/codemod/迁移脚本,产物即本 PR 自身 diff ⇒ ⛔ 不入仓,head diff 含它即判 REWORK。
32+
- 它住 PR 分支历史或附件,审核人亲跑;证明读数(逐字节相同、导出相等)写进 PR 正文。
33+
- 不在此列:合并后还会再跑的工具,如门禁、regen 步骤、客户照迁移指南跑的 codemod。
34+
- 移动/拆分重构净增远超纯移动:逐文件点清多出各块用途,记进 ACCEPT 评论;点不清判 REWORK。
3135

3236
## 测试与门禁证据
3337

‎scripts/pm/check-skill-line-ratchet.mjs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,11 @@ export const CEILINGS = new Map([
12571257
// 77 → 76 (#25753): lines that named objectui as a sibling repo retired; landed count.
12581258
// Renamed from `references/review-checklist.md` by the two review levels (ruling record
12591259
// 6897685514): the L1 checklist, same 76 lines, the key moved with the file.
1260-
['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 76],
1260+
// 76 → 80 (#34343): four lines, two review rules — a one-off codemod is never committed, and a move's growth is
1261+
// accounted per file. The ruling of record is that card's body, which quotes the maintainer verbatim —
1262+
// 「这种代码就是垃圾啊,我为什么要合并,以及如何避免类似的问题」 and 「yes」 to the proposal — and names the review
1263+
// checklist and both rules. Measured delta +4 (76 → 80 lines); landed count, headroom 0.
1264+
['.claude/skills/pm-dispatch/references/l1-review-checklist.md', 80],
12611265
// The old path's stub: one pointer line to the file above, so a link, a record or a
12621266
// running thread that still names it lands somewhere (same ruling record). A NEW row at
12631267
// its landed count; the stub is deleted with the alias, never grown.

0 commit comments

Comments
 (0)