Skip to content

Commit a557fa3

Browse files
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/contract-review.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
`~/.claude/projects/*/<id>.jsonl`;`verify-review-tier.mjs` 拒即重跑 ⛔ 不改档名。
3939
- ④ 设计判断欠 schema、governed 规则文本、收窄三面:逐 `hits` 文件判改动对所引代码与
4040
验收场景是否成立,ADR 另判首个消费者与执行计划;①–④ 合称完整复核,余面同形无 ④。
41-
- 实质 head 各欠一轮完整复核,发现逐条定 must-fix/should-fix/nit(无碍正确性与契约);有前两级
42-
才由同一复核者 delta 复核修复;仅 nit 即终轮,nit 记接受的偏差、转后续卡或只改散文面。
41+
- 实质 head 各欠一轮完整复核,发现逐条定 must-fix/should-fix/nit(无碍正确性与契约);有前两级才
42+
由同一复核者 delta 复核修复;仅 nit 即终轮,nit 记接受的偏差、转 PR 后续卡或只改散文面。
4343
- 另记作者:PR `user.login` 非 `objectstack-fleet[bot]` ⇒ ③ 注点名该 login(脱中继写),落地前读。
4444
- ③ 恒查(席位自读同):SQL 可下推处新增 id 物化或应用内 join 而无因由 ⇒ 记发现(AGENTS.md)。
4545
- 简报从 `record-recognisers.mjs --brief-template` 起稿:只读条款与输入集内建,⛔ 不删 ⛔ 行。
@@ -48,13 +48,13 @@
4848
- 卡线程隔离子代理照上落现 head 记录并贴简报 ⇒ 席核简报、`Scope:` 与独立性对后采纳,
4949
ACCEPT 点名其评论 id;`Scope:` 窄于 `hits` 不采纳;席的补缺记录只管缺口,⛔ 不单充 head 记录。
5050
- 轮次报告设复审清单专节,与呈裁清单同为强制审计。
51-
- 请审/求批与落地前检两条,过则 Tier S 入队、Tier H 等人批:① 现 head 同形达档 PASS 在案。
51+
- 请审/求批与落地前检两条,过则 S 入队、H 等人批:① 现 head 同形达档 PASS 在案,无前两级。
5252
- head 后移例外:纯重生成或只动散文面原记录续管,落 `Regen-provenance:` 行;余移或现 head 落 FAIL
5353
而已挂 auto-merge ⇒ 派发席读到即照 AGENTS.md disarm 句撤挂,FAIL 记录点名欠撤挂;重挂照 ①。
5454
- ② PR check 全绿,⛔ 非 required 子集;例外:merge-base 同签名的红不计、按设计而红见 SKILL.md。
5555
- 签名 = 失败步 + 首错行,读 base check runs 的 API ⛔ 不凭口述;主干红止血立单不变。
5656
- 落地时仍欠复核的 PR 在落地 head 复审,复核席或车道席按 (a)(b)(c) 接;FAIL ⛔ 不修已关 PR。
57-
- 每条 must-fix 引该记录立新卡、按发现定级;回退仅限主干红(p0,main-red 约定①)或安全边界。
57+
- 每条 must-fix 引该记录立卡、按发现定级;回退仅限主干红(p0,main-red 约定①)或安全边界。
5858

5959
## 等复核标记 `needs:contract-review`
6060

‎.claude/skills/pm-dispatch/references/filing-gate.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
- 「动手的读者」与 Acceptance notes 同一问:说得出具体 PR 或人 ⇒ 写进去,说不出 ⇒ 不立卡。
3333
- 说不出的形态:`.changeset/*`、无人在改的文档页、生成物、已扫完的批次,兜底不成立。
3434
- 配额:每 fire 不限张数,逐缺陷各立一张、各过本门;折清单卡可选、不强制;守批量写间隔。
35+
- 例外:复核后续(nit、接受偏差、同车道 diff 外发现)每 PR 一卡 `review follow-ups of PR #N`逐项勾,
36+
后轮追加 ⛔ 不另立;① 缺陷仍各立;p3 文案/文档 nit 入该区 `<area> loose ends` 卡,无则才立。
37+
- 复核立卡前搜 open 卡 `PR #N` 与文件路径,同一发现追加;技能/ADR 文本卡照 `triage-duties.md`。
3538
- 分诊席的存量清理仍走维护者确认的十张一组、只备下一组,⛔ 不因本门改批量。
3639
- 读到 `User` ⇒ 记座位贴、本 fire ⛔ 不立新卡;认领仍靠 assignee,署名仍是文本的 session ID。
3740

‎.claude/skills/pm-dispatch/references/triage-duties.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- 轮次记录按车道计欠审逾一轮的 head 数并点名车道(`check-owed-reviews.mjs`),只报 ⛔ 不接审。
1414
- 每日看板与轮次记录列「待维护者」:当前里程碑已清的专题,注小结贴否;读数非门禁。
1515
- 「待维护者」另逐张列 open `needs-user-decision` 与 `pm:awaiting-maintainer` 卡,注入态以来卡龄。
16+
- 轮次记录每 3 小时报 24h 流量:卡新建/关闭/净增、合并 PR 数、open p1、引契约复核新卡数。
1617
- 析取 ①全裸(无 `pm:*`/`needs-user-decision`/`domain:*`);② `pm:queue` 无 `domain:*`(仅多车道仓);
1718
- ③ `domain:*` 无 pm-state;④ `pm:queue`+`domain:*` 无 `priority:*`;②③④ 只取 `updated_at` 早于 ~2min。
1819
- 排除 `tracking`、`status:parked`、全部 `pm:seat` 贴、`qa-run` 记录。
@@ -70,7 +71,7 @@
7071
- 跨层功能点(≥2 层)立父单带 `area:*`+`tracking`+清单项级,逐层子单按 `Blocked-by:` 排。
7172
- 每张留一条英文审计评论(`Triage: lands in …; rationale: …`),可选带 `Size/model suggestion:` 行。
7273
- 改作者可写面(种类非 `none` 或带 `(narrowing)`)的卡,首触 done-when 写 skills + docs + eval 三项。
73-
- ADR/技能文本的携带注记 ⛔ 不挂实施卡:ADR 由落地席合并后立卡,余各立 `domain:skills` 卡。
74+
- ADR/技能文本携带注记 ⛔ 不挂实施卡:ADR 由落地席合并后立卡,余每 PR 一 `domain:skills` 卡。
7475
- 查重/shadow 检查先按文件/机制查本仓与姊妹仓 open 卡(含 `pm:dispatched`),再跟引用与关键词。
7576
- 同文件同机制 = 同一发现,不分车道即并:证据搬先卡,后卡经中继 `issue_patch` 关 `duplicate`。
7677
- 同族发现并入收口卡,不开单点卡;在飞(assignee/open PR)永不并,`Blocked-by:` 不派;完工查过期。

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,13 @@ export const CEILINGS = new Map([
14451445
// Two lines: the awaiting-maintainer list with each card's age, and the five disjunctions run by
14461446
// `scripts/pm/first-touch-sweep.mjs`; the self-repair line took `+降 p3` in place. Measured delta
14471447
// +2; landed count, headroom 0.
1448-
['.claude/skills/pm-dispatch/references/triage-duties.md', 103],
1448+
// Raised 103 → 104 by the same ruling of record as filing-gate.md's 82
1449+
// (6891082225, letter B, 「b」): the 24h flow line in the round record (issues
1450+
// created, closed and net; PRs merged; open p1; new cards citing a contract
1451+
// review), which no rule text carried. The per-PR carve-out of the
1452+
// ADR/skills-text line changed in place. Measured delta +1; landed count,
1453+
// headroom 0.
1454+
['.claude/skills/pm-dispatch/references/triage-duties.md', 104],
14491455
// execution-duties.md, raised 183 → 185 by the split-off-card ruling — an
14501456
// ORDINARY raise, ⛔ not a cross-file move (card #23579). The text is two rule
14511457
// lines beside the derived-sub-issue rules in 〈候选与批次〉: a queued card found
@@ -1550,7 +1556,14 @@ export const CEILINGS = new Map([
15501556
// Under the 120-byte line cap they take 14 lines; the old focus-raise and
15511557
// reach-cap lines fold into rules 8 and 2 and are deleted, so the measured
15521558
// delta is +12. Not a CROSS_FILE_MOVES destination. Landed count, headroom 0.
1553-
['.claude/skills/pm-dispatch/references/filing-gate.md', 79],
1559+
// 79 → 82 (#33718): an ordinary ruled raise. The ruling of record is 6891082225
1560+
// (letter B, the maintainer's 「b」): keep the review default and change only
1561+
// the form review follow-ups take. Three lines: one checklist card per
1562+
// reviewed PR that later reviews append to, p3 copy and docs nits into the
1563+
// area's loose-ends card, and the dedupe search before a review files. The
1564+
// quota line (one card per defect) is untouched. Measured delta +3.
1565+
// Not a CROSS_FILE_MOVES destination. Landed count, headroom 0.
1566+
['.claude/skills/pm-dispatch/references/filing-gate.md', 82],
15541567
// The project layer above the seats (maintainer's word: ONE project form, the
15551568
// instruction line 「pm-dispatch <席位…>」 is the summon, seats are read from the
15561569
// seat posts' 🟢 line, takeover never waits for a walled account, mailbox PRs,

0 commit comments

Comments
 (0)