Repository navigation
Commit cfcba53
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
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
1260 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1261 | 1265 | | |
1262 | 1266 | | |
1263 | 1267 | | |
| |||
0 commit comments