Skip to content

Commit a9ff6df

Browse files
chore(pm-dispatch): open card threads whenever a slot is free, a regrade alone dispatches nothing, a grade written on the maintainer's word is his (#35335)
<!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ89VF6XAv3WmbiDeGV2WP8Gs)_ Fixes #35333 Clause-②: no Metadata-protocol: none Ruling-ref: the maintainer, 2026-11-19, project thread, verbatim: 「同意」 (04:56:06Z), 「用 fable先评审你这个意见」 (04:56:19Z), decision card 「派发规则按 fable 评审怎么改?」 → 「加两行,并修代改级漏洞」 (05:05:52Z); quoted in full in the body of #35333, claim comment 7000373266. ## 维护者速读 - 改了什么:协调者有空位就开卡线程,先后只按卡上写明的阻塞排,不再一张等一张;您只说改级时只改级、不借机开工;车队按您原话代落的级(评论里写明落的是哪一级并引您原话)算您亲手定的,改标签工具会拒绝分诊或各席再改它(您自己再下令改仍然可以);车道自己分诊的记录、认领评论里的引用不算,分诊照常可改判。 - 为什么改:协调者把能同时做的卡串行派发;您同意加规则,fable 评审后您选了「加两行,并修代改级漏洞」。 - 风险与回滚:只动规则文本和改标签工具里「谁定的级」这一个判断,不碰产品代码;回滚即 revert 本 PR。 - 需要你做的:这是照抄您裁决的规则 PR,核对文字与裁决一致后合并即可。 ## What changes 1. `.claude/skills/pm-dispatch/references/coordinator.md` (+2 lines) - Section 二: `维护者只说改级 ⇒ 只落级,评论照 filing-gate.md 引原话;⛔ 不借此开线程,照取卡全序。` — p0 still dispatches the same round and p1 still jumps the order, because the pick order is unchanged. - Section 三, beside the batch-open line: `有空槽即开;先后只认卡上 Blocked-by: 与席位串行队,⛔ 不自排、不逐张等。` 2. `.claude/skills/pm-dispatch/references/filing-gate.md` (+1 line), beside the `labeled`-event line: `代维护者落的级:同笔评论行首 Ruling-ref: priority:pN 引原话才算人定;⛔ 不凭 bot 判车队。` The marker names the grade written, so a `Ruling-ref:` that cites something else is not his grade. 3. `scripts/pm/label-write.mjs`: the hand-set grade check now also refuses a grade whose newest `labeled` event is the fleet's when the FLEET's own comment (same app/bot allow-list as the event) within `RULING_COMMENT_WINDOW_MS` (2 min) of it has a line opening `Ruling-ref:` followed by that event's grade (`GRADE_RULING_MARK`, `Ruling-ref: priority:pN`) — the fold of a write made on the maintainer's word. Any other `Ruling-ref:` reads as nothing: a lane seat's self-triage record citing the standing exception, a claim citing a ruling comment id, a line naming another grade, or one a person typed — so triage's 改判 of a self-triaged grade still lands. One extra comments read, only when a carried grade reads as the fleet's; an unanswered read refuses, never passes (same rule as the events read). A write that itself folds a `Ruling-ref:` naming every grade it sets still passes with no reads, so the maintainer can always regrade; the marker is read past backticks and a quote set tight after the grade. A folded `Ruling-ref:` that names no grade the write sets is asked as if absent: over a person's (or his) grade it is refused at step ② with the exact line to write (`Ruling-ref: priority:pX 「his words」`), and over a fleet grade it passes with a step ② line saying the new grade will read as the fleet's own — so the write door and the grade read agree. 19 new cases in the hand-set battery, whose pinned floor is raised 23 → 42 (the registered count). 4. `scripts/pm/check-skill-line-ratchet.mjs`: ordinary ruled raises under the ruling above (record: claim comment 7000373266 on #35333). coordinator.md 49 → 51, measured delta +2; filing-gate.md 82 → 83, measured delta +1. Rules 1 and 2 of the coordinator's original proposal (batch by default; sequence only on a real dependency) are NOT added: the fable review found them already written (`coordinator.md` 「一批开完…满即排队」, `execution-duties.md` 「同批独立按文件面不相交判」) and that adding them as worded would regress the overlap rule; the maintainer chose the two-line form. ## Verification - `node scripts/pm/label-write.mjs --self-test` → `319 cases pass across 18 batteries` (head 210c64f). - `node scripts/pm/check-skill-line-ratchet.mjs` → green; `--self-test` 164 cases pass. - `pnpm check:pm-skill-id-lint`, `check:pm-governed-prose`, `check:pm-half-states` → green. - Every added skill line ≤ 120 bytes (116, 101, 118). - `node scripts/pm/overlap-check.mjs` → clean against origin/main and the one open PR sharing a file (#34110). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JQwxbYcNzR2Gtyq79H7GLB <!-- signed: repo:objectstack#5 · os-bill · session_01Utp6CaAqjP52wVTzs99H5G --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3e7feed commit a9ff6df

4 files changed

Lines changed: 153 additions & 13 deletions

File tree

‎.claude/skills/pm-dispatch/references/coordinator.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
## 二、跨车道取卡(coordinator 每次唤醒读)
1616

1717
- 取卡面 = 各车道 open 卡:p0/p1 先,再点名 area 或子专题的下一张;判据照 `execution-duties.md`。
18+
- 维护者只说改级 ⇒ 只落级,评论照 `filing-gate.md` 引原话;⛔ 不借此开线程,照取卡全序。
1819
- 每张卡交其车道的席位线程;车道无席位线程而座位贴空着 ⇒ 先开席位线程再交卡。
1920
- 维护者 ⛔ 不逐卡点名车道:车道读卡的 `domain:*`;S/M 分流见 `dispatch-runbook.md` 卡线程节。
2021

@@ -24,6 +25,7 @@
2425
- 席位攒批交候选,一线程一行:卡/PR、标题、级别、effort、汇报区、要读文件、续做分支。
2526
- 派发令全文随行;⛔ 不等自己的槽位;区与卡线程 ⛔ 不直找 coordinator,经席位。
2627
- coordinator 一批开完、一次回全部 id:p0/p1 先,余照点名次序;满即排队,交回或合入即释放。
28+
- 有空槽即开;先后只认卡上 `Blocked-by:` 与席位串行队,⛔ 不自排、不逐张等。
2729
- 槽位只算在建的线程:等人(授权批准、决策卡)或等席位 L1/L2 审核的卡线程不占槽。
2830
- S 卡的席内子代理只计该席 `batch`,不计本上限。
2931

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
- 车队立的卡(席位、代立发现、清单、分诊)建卡带 area、type、级与正文定级行,缺一拒收。
3333
- 维护者或外部人立的卡由分诊首触补齐 area 与 type;人定的级 ⛔ 不改,分诊与各席同此。
3434
- 改级前读现级末次 `labeled` 事件:带 `performed_via_github_app` 或 bot actor 才算车队,余人定。
35+
- 代维护者落的级:同笔评论行首 `Ruling-ref: priority:pN` 引原话才算人定;⛔ 不凭 bot 判车队。
3536
- 对人定的级有异议 ⇒ 只在卡上评论一行理由;级与卡的状态 ⛔ 不动。
3637
- 业务理由:谁受益、什么场景、不做会怎样;③ 以原话代,④ 承父单;分诊 ⛔ 不代写。
3738
- 清楚且合北极星方向 ⇒ 照常定级入队;与「What gets built」不符或无受益者 = 站不住。

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,14 @@ export const CEILINGS = new Map([
14421442
// It is beside seat-lifecycle.md because the coordinator is not a
14431443
// `domain:*` seat. A NEW file, so this is not a raise and funds nothing —
14441444
// set at the landed line count, headroom 0, same convention as above.
1445-
['.claude/skills/pm-dispatch/references/coordinator.md', 49],
1445+
// 49 → 51: an ordinary ruled raise. The ruling of record is the maintainer's
1446+
// 2026-11-19 word, verbatim: 「同意」 on the coordinator's three dispatch rules,
1447+
// 「用 fable先评审你这个意见」, then his decision-card choice 「加两行,并修代改级漏洞」;
1448+
// quoted in the body of the card it ordered, claim comment 7000373266. Two
1449+
// lines: open whenever a slot is free, ordering only by `Blocked-by:` and the
1450+
// seat's serial queue; a grade-only word writes the grade and opens nothing.
1451+
// Measured delta +2. Landed count, headroom 0.
1452+
['.claude/skills/pm-dispatch/references/coordinator.md', 51],
14461453
// The external-text reference (whose text instructs, whose is data) and the
14471454
// fork-PR flow it amends. Both are NEW to this map, so neither is a raise —
14481455
// set at the landed line count, headroom 0, same convention as above.
@@ -1652,7 +1659,11 @@ export const CEILINGS = new Map([
16521659
// area's loose-ends card, and the dedupe search before a review files. The
16531660
// quota line (one card per defect) is untouched. Measured delta +3.
16541661
// Not a CROSS_FILE_MOVES destination. Landed count, headroom 0.
1655-
['.claude/skills/pm-dispatch/references/filing-gate.md', 82],
1662+
// 82 → 83: an ordinary ruled raise by the same ruling of record as
1663+
// coordinator.md's 51 (claim comment 7000373266): a grade the fleet wrote on
1664+
// the maintainer's word, its comment opening `Ruling-ref: priority:pN`, reads
1665+
// as his. Measured delta +1. Landed count, headroom 0.
1666+
['.claude/skills/pm-dispatch/references/filing-gate.md', 83],
16561667
// The project layer above the seats (maintainer's word: ONE project form, the
16571668
// instruction line 「pm-dispatch <席位…>」 is the summon, seats are read from the
16581669
// seat posts' 🟢 line, takeover never waits for a walled account, mailbox PRs,

0 commit comments

Comments
 (0)