Repository navigation
Commit a557fa3
pm-dispatch: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line (#33731)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XSd2LdkGDq79ihifNMPq7ZQ)_
domain:skills#1 · os-project-manager · session_01FEkQ5nz1BoBSawC99X5UqM
Fixes #33718
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:复审的后续事项改成每个 PR 一张清单卡(标题 `review follow-ups of PR #N`,后来的 delta
或追溯复审往里追加);p3 文案和文档小问题并进该区已有的 loose ends 卡;复审立卡前先按 PR
号和文件路径查重,同一发现就追加;代码 PR 欠的 skills/ADR 文本改成每个 PR 一张卡;分诊轮次记录每 3 小时报一次 24
小时的开卡、关卡、净变、合并 PR 数、open p1 和引契约复审的新卡数。
- 为什么改:维护者 2026-11-15 选了 B(「b」,记录 6891082225):复审默认做法不变,只改后续事项变成卡的形态,减少一个
PR 拆出多张卡和重复卡。
- 风险与回滚:只动三份 pm-dispatch 参考文件和行数棘轮的两行上限;「仅 nit
即终轮」的默认、每个缺陷一张卡的配额行、队列守卫都没动。回滚即还原本 PR。
- 先看:`.claude/skills/pm-dispatch/references/filing-gate.md`
新增的三行(配额行之后);`references/triage-duties.md` 第 16 行和第 74
行;`references/contract-review.md` 第 41-42 行和第 57 行。
- 两分钟验证:`node scripts/pm/check-skill-line-ratchet.mjs`,预期全部
✓,filing-gate.md 82 行(上限 82)、triage-duties.md 104 行(上限 104)。
- 需要你做的:无,席位落地(Tier S)。
## What changes
All four items of the card's "What lands", under ruling B (record
6891082225, the maintainer's 「b」, 2026-11-15). The review default is
unchanged.
- **`references/filing-gate.md`, three lines after the quota line (one
home for items 1 to 3).**
- Item 1: review follow-ups (nits, accepted deviations, same-lane
findings outside the diff) go into one card per reviewed PR, titled
`review follow-ups of PR #N`, ticked item by item; a later review of the
same PR appends and files nothing new.
- Item 2: a p3 copy or docs nit goes into the area's `AREA loose ends`
card, and one is opened only when none exists.
- Item 3: before a review files, it searches open cards for `PR #N` and
the file path, and appends a repeat of the same finding.
- The quota line (one card per defect, #25687) is untouched, and the
exception says so in place (「① 缺陷仍各立」): a real gate ① defect found
outside the diff keeps its own card and is not a tick item. The dedupe
step merges only repeats of the same finding.
- **`references/contract-review.md`, two in-place edits (0 lines).** The
nit clause now sends nits to the PR's follow-up card (「转 PR 后续卡」), which
points to the filing rule. The landed-head must-fix line says 「立卡」
instead of 「立新卡」, so a search hit on the same finding is appended rather
than filed again. One character (「才」) moved from L42 to L41 to keep both
lines within 120 bytes.
- **`references/contract-review.md` L51, carried for #33604 (PR #33736),
in place (0 lines):** the landing pre-check's ① now reads 「现 head 同形达档
PASS 在案,无前两级」, matching #33736's queue guard, which refuses a same-head
PASS that still lists an open must-fix or should-fix. To fit 120 bytes,
「过则 Tier S 入队、Tier H 等人批」 became 「过则 S 入队、H 等人批」 (the tier letters in
the same sentence).
- **`references/triage-duties.md`.**
- L74, the 11-11 carve-out (ruling 6797014134), changed in place:
skills/ADR text owed by a code PR is now one `domain:skills` card per
PR, not one per finding.
- L16, new: the round record states the 24h flow every 3 hours (issues
created, closed, net; PRs merged; open p1; new cards citing a contract
review). The card says the triage patrol prompt already carries this. No
rule text did, and a patrol routine is deleted when its seat goes off
duty (`seat-lifecycle.md`), so the rule text is the durable home.
- **`scripts/pm/check-skill-line-ratchet.mjs`, two CEILINGS rows.** An
ordinary ruled raise under the ratchet header's rule (ruling
6184799323): the ruling of record that orders this text is
**6891082225**. Measured deltas: `filing-gate.md` **79 → 82 (+3)**,
`triage-duties.md` **103 → 104 (+1)**. Each row moves by exactly its
delta, with a comment that names the ruling. Neither file has a whole
line that restates another file, so paying by deletion would have
dropped a live rule. The dispatch order first said not to raise. The
seat then ruled raise A for both files, citing this ruling.
## Tests
No test file changes. The ratchet script's own self-test was run because
the diff edits its CEILINGS map (results under Verification).
## Acceptance notes
- **Review round 1 (at-tier PASS with S1):** S1 fixed at `afffd197`:
filing-gate.md L35-36 now states that a ① defect keeps its own card,
with no new line (「接受的偏差」 to 「接受偏差」, 「合一卡」 to 「一卡」, 「后轮复核」 to 「后轮」 paid
the bytes). N2 (point contract-review.md L42 at filing-gate.md) was not
taken: L41 and L42 both sit at 120 bytes, and the pointer would cost
about 7 bytes of rule content. N3 and N4 were accepted as they are. The
L51 carry for #33604 landed at `51787fa6` and is part of the same delta
review.
- **Out of surface, carried elsewhere:**
`references/landing-operations.md` L13 (a retro review's findings 「立新卡」
to 「发现照立卡门入卡」) is in PR #33732's diff (#33647 PR 2). #33732 also edits
`check-skill-line-ratchet.mjs` on other rows; whichever lands second
merges `origin/main`.
- **Reading chosen:** the per-PR checklist card carries what the card's
item 1 lists (nits, accepted deviations, same-lane findings outside the
diff). A must-fix on a landed head stays one card per finding, graded by
finding (contract-review.md L57), and is deduped by the same search.
That keeps item 3's 「the per-defect rule still holds for real defects」.
- **Not added:** the card mentions spec wording next to skills/ADR in
the carve-out. The 11-11 ruling covers ADR and skills text only, so L74
names those two. Adding spec would widen that ruling.
- **Execution-time carve-out untouched:** `execution-duties.md` L110 (an
implementation card's file surface excludes ADR/skills paths, 「各立
`domain:skills` 卡」) is the dispatch-time split, not a review follow-up,
and stays as is.
- **No gate or recogniser checks the follow-up filing shape:** `grep`
over `scripts/` and `.github/` for 「转后续卡」, 「立新卡」, 「折清单卡」, 「携带注记」,
`follow-ups of PR` and `loose ends` finds no hit, so no recogniser or
lint pins the old text and no gate was added.
- Serial note: #33716 (contract-review.md) waits for this PR.
## Verification
On head `afffd197` (the full derived list; `51787fa6` changes only
contract-review.md L51, and its re-run subset is listed at the end of
this section) (branch `claude/project-thread-7lnz38`, merge base
`origin/main` `48e69596`), each exit code captured before any pipe:
- `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0.
`filing-gate.md` 82 lines (ceiling 82), `triage-duties.md` 104 (ceiling
104), `contract-review.md` 63 (ceiling 63); no line over 120 bytes.
- `node scripts/pm/check-skill-line-ratchet.mjs --self-test`: exit 0,
「164 cases pass」.
- `node scripts/pm/dispatch-gates.mjs --tier`: **no path-derived
mandate** (the surface hits none of the 4 declared globs); 29 changed
lines, under the 3000 threshold.
- `node scripts/pm/check-governed-merges.mjs --branch HEAD`: **GOVERNED,
Tier S** (`.claude/**` x3; `scripts/pm/check-skill-line-ratchet.mjs` not
on the register). The owning seat lands it after an at-tier contract
review PASS on the current head.
- Derived gates (`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack`, 40 families, after `pnpm --filter
"@objectstack/lint..." build` under the lock, exit 0): all 40 exit 0.
`--ran`: 「40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED」.
<details><summary>Derived gate run (40 of 40 exit 0)</summary>
```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-label-write :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
</details>
Re-run on `51787fa6` (contract-review.md L51 only; ratchet still 63/63,
no line over 120 bytes), all exit 0:
```text
pnpm check:pm-skill-ratchet :: exit 0
node scripts/pm/check-skill-line-ratchet.mjs --self-test :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:skill-frame-sync :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
```
Label: `skip-changeset` (only `.claude/**` and `scripts/pm/**` change;
neither ships).
<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5nz1BoBSawC99X5UqM -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 1e358cc commit a557fa3
4 files changed
Lines changed: 24 additions & 7 deletions
File tree
- .claude/skills/pm-dispatch/references
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1445 | 1445 | | |
1446 | 1446 | | |
1447 | 1447 | | |
1448 | | - | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
1449 | 1455 | | |
1450 | 1456 | | |
1451 | 1457 | | |
| |||
1550 | 1556 | | |
1551 | 1557 | | |
1552 | 1558 | | |
1553 | | - | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
1554 | 1567 | | |
1555 | 1568 | | |
1556 | 1569 | | |
| |||
0 commit comments