Skip to content

Commit 3788440

Browse files
committed
docs(pm-dispatch): the project coordinator's interface with the seat threads, as a reference beside seat-lifecycle.md
A project's instructions name only the lanes it manages; the coordinator's rules (lane ownership on the seat post, cross-lane p1-first intake, one project-wide card-thread cap, effort and tier by difficulty, ruling threads, quota pause, language and reporting) live in the repository as references/coordinator.md, each section naming its reader and pointing at the rule's single source. SKILL.md gains one coordinator row in the entry table, paid by deleting the director summons line that lanes/director.md already carries; the runbook's project-wide cap line now points at the maintainer-set number instead of a sum. Claude-Session: https://claude.ai/code/session_01QbWZBrA43um6tADsbopAAA Co-authored-by: Claude <noreply@anthropic.com>
1 parent e58bd0e commit 3788440

4 files changed

Lines changed: 63 additions & 2 deletions

File tree

‎.claude/skills/pm-dispatch/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
5454
| `<domain>`(如 `spec`、`skills`) | 以该 `domain:*` 车道的执行座位身份运行 | — |
5555
| `epic:#<n>` | 以父单 #n 的 epic PM 身份运行(见 `references/seat-lifecycle.md` 〈Epic 子树车道〉) | — |
5656
| `director` | 以项目总监席身份运行(人工召唤;三职与章程见 `references/lanes/director.md`) | — |
57+
| `coordinator` | 以项目协调者身份运行(项目会话:开席位线程与卡线程、跨车道调度;接口见 `references/coordinator.md`) | — |
5758
| `label:<name>` | backlog 过滤标签;`label:all` = 全部 open 未认领 | `pm:queue` |
5859
| `repo:<owner/name>` | 扫哪个仓的 backlog(单 issue 的落地仓看它自己的 `repo:*` 标签) | `objectstack-ai/objectstack` |
5960
| `batch:<n>` | 席位同时在飞的子代理总上限,按 `Agent` 调用、`create_session` 与卡线程计:dev、复核、普查皆计,⛔ 只读不豁免 | 默认 `3`;`n` 的维护者天花板 `5` |
@@ -271,7 +272,6 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
271272
- 每问必带推荐项,被 Skip 或长挂即转卡通道,⛔ 不重弹。
272273
- 推送维护者:受管 PR 待批合、决策卡待字、发版、仅其可解之阻 ⇒ 另发 `PushNotification`。
273274
- 一行 ≤200 字,先写动作与编号;每项恰一次,例行进展、刚问刚答与在场即见的不推。
274-
- 项目总监席:维护者在所在仓召唤 `/pm-dispatch director`;⛔ 无 Routine/cron;未回字 = 不在 = 停。
275275
- 总监席档位由维护者按项目人工定,每场记入摘要台账;⛔ 无档位硬门、无免档整理态。
276276
- 总监席是唯一裁决者:决策箱、代裁与一类自裁只出自本席,⛔ 无子代理无自述。
277277

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# 项目协调者(Project Coordinator)
2+
3+
项目会话里开席位线程与卡线程、跨车道调度的那一席读本文。
4+
它不是 `domain:*` 席:不坐座位贴、不认领卡;席位线程照 SKILL.md 与 `execution-duties.md` 跑循环。
5+
项目指令只写「按仓库规则执行;管 X、Y 车道」;规则住本仓,⛔ 不在项目指令里转贴。
6+
本文只写 coordinator 与席位线程之间的接口,七节各注明读者。
7+
8+
## 一、车道归属登记在座位贴(coordinator 开席位线程前读;席位线程坐席时读)
9+
10+
- 项目管哪些车道只由项目指令声明;每条车道开一个席位线程,坐该车道空着的座位贴。
11+
- 席位线程在贴的说明段写「由 X 账户的项目负责」;贴协议与互斥照 `seat-lifecycle.md`。
12+
- 一条车道恒归一个项目:车道任一座位贴 🟢 标着另一项目 ⇒ 车道已有主,⛔ 不坐别席。
13+
- 仲裁者是座位贴,⛔ 不是项目记忆;另一项目在飞卡由其席跟完,其收班简报在即可坐。
14+
15+
## 二、跨车道取卡(coordinator 每次唤醒读)
16+
17+
- 取卡面 = 本项目各车道 open 的 `priority:p1`/`priority:p2` 卡;候选判据照 `execution-duties.md`。
18+
- 每张卡交其车道的席位线程;车道无席位线程而座位贴空着 ⇒ 先开席位线程再交卡。
19+
- 维护者 ⛔ 不逐卡点名车道:车道读卡的 `domain:*`;S/M 分流见 `dispatch-runbook.md` 卡线程节。
20+
21+
## 三、全项目一个上限,p1 先(coordinator 调度读;席位交候选时读)
22+
23+
- 卡线程上限全项目一个数,由维护者按项目言明;未言明取各席 `batch` 之和。
24+
- 席位随时交候选:卡号、优先级、派发令文件、建议 effort;⛔ 不等自己的槽位。
25+
- coordinator 排队开线程:p1 先于 p2,同级先到先开;满即排队,线程交回或 PR 合入即释放。
26+
- 槽位只算在建的线程:等人(授权批准、决策卡)或等席位复核的卡线程不占槽。
27+
- S 卡的席内子代理只计该席 `batch`,不计本上限。
28+
29+
## 四、effort 与档位按难度(coordinator 开线程时读;席位请线程时读)
30+
31+
- 档位与 effort 的定法住 `execution-duties.md` 派发节:档位引 `dispatch-gates --tier`,effort 按卡难度。
32+
- 改技能(协议语义面)的卡恒契约复审档 `CONTRACT_REVIEW_TIER`;⛔ 不抄模型名。
33+
- 席位请线程附维护者原话,coordinator 开线程那一笔同设 model 与 effort(`dispatch-runbook.md`)。
34+
35+
## 五、裁决线程(coordinator 收到卡线程 `needs_decision` 时读)
36+
37+
- 规则一处:`lanes/director.md` 项目内代裁通道;本文只指不抄。裁决线程档位同上节。
38+
- 裁决线程不占卡线程槽位。
39+
- 代裁台账在 GitHub:卡上裁决评论是记录,总监摘要台账照 `lanes/director.md`;⛔ 不落项目文件。
40+
41+
## 六、额度压力(coordinator 每次开线程前读)
42+
43+
- 账号用量墙将近(墙信号与重置读法见 `seat-lifecycle.md`)⇒ 停开新卡线程,在飞的跑完。
44+
- 向维护者说一次即可,⛔ 不逐线程重复;墙过后照常。
45+
46+
## 七、语言与汇报(coordinator 与席位线程皆读)
47+
48+
- 项目内对维护者用维护者的语言;GitHub 内容英文,照 SKILL.md 全体座位不变量。
49+
- 只在结果、阻塞或待裁决时向维护者汇报,与席位同规;例行进展进线程清单。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
- 披露纪律卡(私密细节不得离开席位会话)也留席内,认领写明;卡线程照计 `batch`。
134134
- 项目的 coordinator 跨席位统一调度卡线程;每席一个线程跑 PM 循环,卡线程即 dev。
135135
- 席位随时把候选卡交 coordinator,附优先级、派发令文件与建议 effort,⛔ 不等自己的槽位。
136-
- coordinator 按优先级开线程,p1 先;全项目上限 = 各席 `batch` 之和,满即排队。
136+
- coordinator 按优先级开线程,p1 先;全项目上限由维护者按项目定(`coordinator.md`),满即排队。
137137
- 卡线程交回或其 PR 合入,席位当即告知 coordinator 释放槽位。
138138
- 请 coordinator 开线程附维护者原话消息:它只凭维护者明言设线程的 model 与 effort。
139139
- 席位留认领文本、派发令、契约复核、ACCEPT 与落地;线程实施、开 draft PR、驱动 CI。

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,17 @@ export const CEILINGS = new Map([
12381238
// own counts (headroom 0, same convention as every entry above); added rows,
12391239
// paid for by the SKILL.md decrease — the map's total goes down.
12401240
['.claude/skills/pm-dispatch/references/seat-lifecycle.md', 96],
1241+
// The project coordinator's interface with the seat threads (maintainer's
1242+
// word, 2026-10-22, verbatim and untranslated: 「刚才你让我转帖的项目指令规则,为
1243+
// 什么不定义在仓库中呢,我只要穿到具体的车道就行。」): lane ownership on the seat
1244+
// post, cross-lane p1-first intake, one project-wide card-thread cap with
1245+
// waiting threads not counting, effort and tier by difficulty, ruling
1246+
// threads, quota pause, language and reporting — each section naming its
1247+
// reader and pointing at the rule's single source instead of restating it.
1248+
// It is beside seat-lifecycle.md because the coordinator is not a
1249+
// `domain:*` seat. A NEW file, so this is not a raise and funds nothing —
1250+
// set at the landed line count, headroom 0, same convention as above.
1251+
['.claude/skills/pm-dispatch/references/coordinator.md', 49],
12411252
['.claude/skills/pm-dispatch/references/reading-discipline.md', 37],
12421253
['.claude/skills/pm-dispatch/references/cross-repo-coordination.md', 51],
12431254
['.claude/skills/pm-dispatch/references/triage-duties.md', 120],
@@ -2095,6 +2106,7 @@ export const MAX_TABLE_ROW_BYTES = new Map([
20952106
// The five per-phase references of the principle-only cut carry no table
20962107
// row (their tables stayed in SKILL.md), so each pin is the measurement 0.
20972108
['.claude/skills/pm-dispatch/references/seat-lifecycle.md', 0],
2109+
['.claude/skills/pm-dispatch/references/coordinator.md', 0],
20982110
['.claude/skills/pm-dispatch/references/reading-discipline.md', 0],
20992111
['.claude/skills/pm-dispatch/references/cross-repo-coordination.md', 0],
21002112
['.claude/skills/pm-dispatch/references/triage-duties.md', 0],

0 commit comments

Comments
 (0)