Skip to content

Commit d3a16fd

Browse files
docs(pm-dispatch): coordinator opens a review seat on an L2 backlog; route reviews by ownership, thread first (#34485)
Fixes #34474 Clause-②: no Metadata-protocol: none ## 维护者速读 - **改了什么:** pm-dispatch 技能四个参考文件的文字:L2 审核排队时协调者自己加开审核席;同项目内请审走线程消息;请审先找本账号自己的审核席,不按席号。 - **为什么改:** 您说「你应该自主决定增加审核席位啊,是技能的问题嘛」「但是用信箱沟通没有的 theads 快和省心」「每个 agent 都可能开 review 席位,这个编号是动态的,你应该首先找自己的」。 - **风险与回滚:** 只改 `.claude/**` 文字,不动代码、不发布;每个文件行数不变(删掉别处已有的重复句来付账)。回滚即 revert 本 PR。 - **先看:** `references/lanes/l2-review.md` 路由节(请谁、怎么请);`references/coordinator.md` 第一节新增三行(触发、动作、收席);`references/project-forms.md` 信箱键那一行。 - **两分钟验证:** `node scripts/pm/check-skill-line-ratchet.mjs`,预期退出 0,四个文件行数等于上限。 - **需要你做的:** 无,席位落地(Tier S)。 ## What changes Skills text only, under `.claude/skills/pm-dispatch/references/`: - `coordinator.md` § 一: an L2 backlog (a ready head waits more than about 30 minutes for its L2 record, or more than about 3 heads are queued per seated reviewer) makes the coordinator open another `l2-review` seat thread itself, without asking the maintainer, and say so in the project chat afterwards. The new seat sits a free seat post, opens its mailbox and splits rows by claim; when the queue drains the extra seat signs off (no idle seats); the usage-wall section (§ 六) still applies. - `lanes/l2-review.md` § 路由: when to send a review stays in `contract-review.md`; who to ask and how now lives here, never by seat number. A seat asks first the review seats its own account opened (threads of its own project, found from the project's thread list and the `seat-online` posts), and overflows to another account's seats only when every own seat is busy. Inside one project, review requests, deltas and replies to L1/L2 seats go by direct thread message, not a mailbox knock; mailboxes stay for cross-account or cross-project traffic. One line names the split-by-claim rule for N seats. The existing delta line (a delta stays with the reviewer whose record it follows) is unchanged. - `contract-review.md`: the routing line asks an L2 seat and points at `lanes/l2-review.md` for who and how, instead of "knock a seated L2 seat". - `project-forms.md`: the `Request: contract-review` mailbox key is scoped to cross-account or cross-project traffic. Line-neutral in every file (ratchet headroom 0 before and after), paid by deleting restatements whose home is another reference: - `coordinator.md`: the project-instruction line (home: `project-forms.md` § 指令行即召唤, which also spells the current one-line form); the file-scope meta line (each heading already names its reader); the § 五 analysis line (stated in `lanes/director.md` lines 23-24, and § 五 says it only points). - `lanes/l2-review.md`: the legacy-spelling line (home: `lanes/review.md`, `SKILL.md` line 52, `project-forms.md` line 13); the security line (home: `security-findings.md` line 46). Not touched, by the same-file rule (PR #34482 was open when this was written; it has since merged as 495a79c, and the cited line numbers below were re-read on head 0f5619d and still hold): `SKILL.md`, `references/area-lease.md`, `references/dispatch-runbook.md`. None of their sentences tells a seat to knock a mailbox for a review or routes by seat number; `SKILL.md` line 51-52, `dispatch-runbook.md` line 220 and `area-lease.md` line 13 (L1 threads) mention review seats neutrally and are named in the report for a follow-up read. Ruling-ref (verbatim, card #34474 and its two Addition comments 6930630340, 6930675424): 「你应该自主决定增加审核席位啊,是技能的问题嘛」 (2026-11-16T21:37Z), 「但是用信箱沟通没有的 theads 快和省心」 (21:57Z), 「比如 你今天很多审核为什么派给另外一个账户的 review#1,你自己有席位啊」 and 「每个 agent 都可能开 review 席位,这个编号是动态的,你应该首先找自己的」 (21:59Z). ## Tests No code changed, so no test suite applies. Gates below. ## Acceptance notes - The card names `review#N` for the new seat's post; the text says `l2-review` because `lanes/l2-review.md` already directs new seats to that spelling. - No changeset: the diff is `.claude/**` only, which publishes nothing; `skip-changeset` rides the create. - **Carried, not built here (contract record 6931499577):** - S1: `dispatch-runbook.md` line 44 told a seat's patrol to drop its own account's PRs from the TAKE rows, which contradicted the own-seats-first route. Carried by PR #34393 (#34376), which merged as a0056d8: its line-44 rewrite ("take only the rows that name this seat") is on main and in this head. - S2: the L1 half of the thread-message rule needs a line in `area-lease.md`, where the L1 threads live. Carried by #34487, to be built on a main that holds #34482. - S3 (merge delta 6932339829): with #34393 on main, its hand-off-names-one-seat rule (`dispatch-runbook.md` line 44, `contract-review.md` line 25, `takerOf`) and this PR's split-by-first-claim rule need one sentence saying which governs. Carried by #34508. ## Verification Head 0f5619d: a merge commit of `origin/main` bdd5176 into 3dd459f (no rebase, no force), taken after the queue ejected 3dd459f on a conflict with #34393. The PR's delta against main is unchanged: the same 4 files, +9 / -9. <details><summary>Merge resolution: lanes/l2-review.md (the only conflict; contract-review.md auto-merged)</summary> Main's two #34393 lines are kept as main wrote them (the session-effort line, and the "本席只兜底" owed-list line, which replaces the old "欠审表 ... 先给 L2 席" line). This PR's routing lines are kept as written (who and how to ask lives here, never by seat number; own account's seats first, overflow to other accounts; thread messages inside one project, mailboxes only across accounts or projects; N seats split by claim; the existing delta line). This PR's deletion of the legacy-spelling line stands. ``` ## 路由 - 何时送审只住 contract-review.md 送审路由行;请谁、怎么请只住本节,⛔ 不按席号路由。 - 先请本账号开的审核席(本项目线程,从线程清单与 `seat-online` 帖找);皆忙才溢至他账号席。 - 同项目向 L1/L2 席请审、delta 与回告发线程消息,⛔ 不敲信箱;信箱只留跨账号或跨项目。 - N 席按认领分行:欠审表每个 head 先贴 `Contract-review-claim:` 者持有;后者撤回弃产出。 - 本席只兜底:接哪些 head 只住 contract-review.md 欠审接审行,欠审表 `check-owed-reviews.mjs` 同读 - delta 归原 L2 审核者;L2 席下班留下旧记录 ⇒ 下一 L2 席接 delta,交接行点名它。 ``` The merged `contract-review.md` routing line still defers whom and how to ask to `lanes/l2-review.md` ("同笔请 L2 席(请谁照 `lanes/l2-review.md`)"), and #34393's owed-review lines there ("车道达档自审或交接", "L2 席只接 (a) 所点、自记录 delta、他席皆禁之 head") decide which heads an L2 seat takes. The two texts answer different questions (whom a lane asks, versus which heads the fallback seat picks up), so they overlap without contradicting. </details> <details><summary>check-skill-line-ratchet on head 0f5619d (exit 0)</summary> ``` contract-review.md is 63 lines (ceiling 63; headroom 0). coordinator.md is 49 lines (ceiling 49; headroom 0). project-forms.md is 59 lines (ceiling 59; headroom 0). lanes/l2-review.md is 22 lines (ceiling 22; headroom 0). ``` </details> <details><summary>dispatch-gates --commands, then --ran, on head 0f5619d (19 derived, 19 run, all exit 0)</summary> Families: check-closing-keyword-parity (+ self-test), check-comment-mask-corpus, check-harness-current self-test, lint check:doc-formula-expressions (after building the formula and lint closures under the verify lock), check:adr-anchors, check:agent-test-spelling, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-governed-merges, check:pm-record-recognisers, check:pm-skill-id-lint, check:pm-skill-ratchet, check:refd-timer-probe, check:skill-frame-sync, check:watch-hint-literal. ``` Run reconciliation: 19 derived, 19 run, 0 NOT-MEASURED, 0 UNRUN. dispatch-gates --ran: 19 derived families accounted for (a DERIVED zero: all 19 recorded an exit code and none of them is 3). ``` </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kgF3mo9f7LXuv5hac)_ <!-- signed: repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac --> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0e2ead3 commit d3a16fd

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎.claude/skills/pm-dispatch/references/contract-review.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
出货字节,⛔ 不是已发布接受集,改它不触发 `Clause-②: yes`;legacy node10 深引用在契约之外。
1818
- 四面皆不碰 ⇒ CI 加席位自读 ⛔ 不起第二个 agent;谁跑 = 派发席,档经子代理或卡线程取。
1919
- 送审路由只住此处:车道能取 `CONTRACT_REVIEW_TIER` 才自审;取不到(账号够不到、配额拒 429、
20-
维护者限配)⇒ ⛔ 不降档 ⛔ 非分诊,落交接行并同笔敲在座 L2 席 `Request: contract-review`;
20+
维护者限配)⇒ ⛔ 不降档 ⛔ 非分诊,落交接行并同笔请 L2 席(请谁照 `lanes/l2-review.md`);
2121
无 L2 席在座改点能取该档的兄弟席,皆无则挂等 L2 标记留欠审表待 (a)(b)(c)。交接行:
2222
- `Contract-review-handoff: <l2-review#N|domain:<lane>#N> — CONTRACT_REVIEW_TIER unavailable (<HTTP status / error>, <UTC time>) · head <sha>`
2323
- 「立 skills 卡,把契约复审的路由直接改成 review 座位」「没有 fable 时,找 review 座位」(卡33157)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
项目会话里开席位线程与卡线程、跨车道调度的那一席读本文;项目席见 `seat-lifecycle.md`。
44
它不是 `domain:*` 席:不坐座位贴、不认领卡;席位线程照 SKILL.md 与 `execution-duties.md` 跑循环。
5-
项目指令只写「按仓库规则执行;管 X、Y 车道」;规则住本仓,⛔ 不在项目指令里转贴。
6-
本文只写 coordinator 与席位线程之间的接口,七节各注明读者。
75

86
## 一、车道归属登记在座位贴(coordinator 开席位线程前读;席位线程坐席时读)
97

108
- 项目管哪些车道只由项目指令声明;每条车道开一个席位线程,坐该车道空着的座位贴。
119
- 席位线程在贴的说明段写「由 X 账户的项目负责」;贴协议与互斥照 `seat-lifecycle.md`。
1210
- 一车道归一项目:座位贴 🟢 写他账号 ⇒ 车道已有主;仲裁者是座位贴,⛔ 不是项目记忆。
1311
- ⛔ 不坐别席,另一项目在飞卡由其席跟完;维护者指令行改写 ⇒ 按 `project-forms.md` 接管。
12+
- L2 积压 ⇒ 自开一条 `l2-review` 席位线程,⛔ 不先问维护者,开后在项目聊天说一句。
13+
- 积压 = 就绪 head 等 L2 记录逾约 30 分钟,或在座审核席人均排队逾约 3 个 head。
14+
- 新席坐空座、开信箱、按认领分行;队列排空即签退加开席,⛔ 不留闲席;用量墙照第六节。
1415

1516
## 二、跨车道取卡(coordinator 每次唤醒读)
1617

@@ -34,7 +35,6 @@
3435
## 五、卡线程的 `needs_decision`(coordinator 收到时读;席位写分析时读)
3536

3637
- 规则一处:`lanes/director.md` 与 `dispatch-runbook.md` 卡线程节;本文只指不抄。
37-
- 席位写四维分析加推荐,卡并入决裁批次由维护者人工裁;⛔ 无裁决线程、无代裁。
3838
- 等裁的卡线程不占槽(见第三节);裁决记录 = 卡上裁决评论,⛔ 不落项目文件或记忆。
3939

4040
## 六、额度压力(coordinator 每次开线程前读)

‎.claude/skills/pm-dispatch/references/lanes/l2-review.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
## 座位
55

66
- 席位 `l2-review#N`,一席一座位贴;坐席者 = 能达 `CONTRACT_REVIEW_TIER` 的账号的会话。
7-
- 旧拼 `review#N`、`review`、「复核」照读;在座席签名、致它的行仍写原名,新席用 `l2-review`。
87
- 会话 effort `high`;L2 子代理恒契约审核档。
98
- 每席开一个 `pm:mailbox` PR(`mailbox-open.mjs --seat l2-review#N`);签名、坐席与收班同他席。
109

1110
## 路由
1211

13-
- 车道何时送审、敲谁只住 contract-review.md 送审路由行;敲任一 L2 席信箱,空闲者接
14-
- 互斥 = 既有 `Contract-review-claim:` 行:同 head 先贴者持有,L2 席之间同此;后者撤回弃产出。
12+
- 何时送审只住 contract-review.md 送审路由行;请谁、怎么请只住本节,⛔ 不按席号路由。
13+
- 先请本账号开的审核席(本项目线程,从线程清单与 `seat-online` 帖找);皆忙才溢至他账号席。
14+
- 同项目向 L1/L2 席请审、delta 与回告发线程消息,⛔ 不敲信箱;信箱只留跨账号或跨项目。
15+
- N 席按认领分行:欠审表每个 head 先贴 `Contract-review-claim:` 者持有;后者撤回弃产出。
1516
- 本席只兜底:接哪些 head 只住 contract-review.md 欠审接审行,欠审表 `check-owed-reviews.mjs` 同读
1617
- delta 归原 L2 审核者;L2 席下班留下旧记录 ⇒ 下一 L2 席接 delta,交接行点名它。
1718

1819
## 独立性与边界
1920

2021
- 记录恒带 `Implemented-by:`/`Reviewed-by:` 对,两会话相异;⛔ 不限账号,派发账号亦可坐。
2122
- ⛔ 不 merge、不 ready、不派发、不定级、不做人工地板动作;只写 L2 记录、认领行与门铃
22-
- 安全发现照 `security-findings.md`:记录只停在规则层,机制只进本席本地笔记。

‎.claude/skills/pm-dispatch/references/project-forms.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- 正文首行 `Mailbox-of: <席位> · <login>`;坐席即开(`mailbox-open.mjs`)并订阅,存根记 `Mailbox:`。
3535
- 永不合并,不欠 CI,落地与台账查询排除它;移交或换账号关旧开新;评论首行 `To: <席位>`。
3636
- 次行恒为一键,下列事件必敲;一事一行 ≤200 字节,只写键与编号;表外即半态。
37-
- 车道→L2 席或兄弟席同交接行 `Request: contract-review`;反向随记录 `Notify: contract-review`。
37+
- 跨账号或跨项目:车道→L2 或兄弟席 `Request: contract-review`;反向随记录 `Notify: contract-review`。
3838
- 任一席→分诊:p0 嫌疑、main 红、确定性队列红 `Request: urgent-triage`。
3939
- 立锚卡者→分诊(缺则总监)`Request: main-red`,→破坏 PR 的席与锚卡车道 `Notify: main-red`。
4040
- 锚卡关闭:分诊(缺则总监)→正文带 `Waits-on: main-red #n` 的每张 open PR 之席 `Notify: main-green`。

0 commit comments

Comments
 (0)