Skip to content

Commit 724b810

Browse files
committed
Merge branch 'claude/issue-7341-pm-skill-batch-a' into claude/issue-7341-pm-skill-batch-b
2 parents c187173 + 89e57ad commit 724b810

1 file changed

Lines changed: 31 additions & 17 deletions

File tree

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

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ genuinely requires their call.
3636
| `epic:#<n>` | 队列 = 父 issue #n 的子树(open 未认领 sub-issue,每轮重读)— 见「Epic 子树车道」 ||
3737
| `batch:<n>` | max developer agents in flight at once | `3` |
3838
| `rounds:<n>` | stop after N rounds | until queue empty |
39-
| `mode:subagent` \| `mode:cloud` | dispatch backend — see "Dispatch backends" | `subagent` |
39+
| `mode:subagent` \| `mode:cloud` | dispatch backend — see "Dispatch backends" | 按卡分流:M+ ⇒ `cloud`,S 级机械 ⇒ `subagent`(维护者 2026-08-10 裁定) |
4040
| `#12 #34 …` | explicit issue list — overrides the label query entirely ||
4141

4242
## State model — all state lives in GitHub, none locally
@@ -1985,17 +1985,26 @@ regression passes) drop to `batch:2`, or dispatch that issue via
19851985
`mode:cloud` so it gets its own container. If an agent dies with a
19861986
heap/OOM signature, redispatch it alone rather than into a full batch.
19871987

1988-
**单容器化任务在选择期单独派卡片(维护者 2026-08-07 拍板)。** 上一段的
1989-
「重活走 `mode:cloud`」不是事后救火,而是**批次选择时的分类动作**:每轮选单时
1990-
PM 先给每张候选卡判定验证重量,命中任一判据即**单独派一张 `mode:cloud`**
1991-
(独享容器),⛔ 不混进共享容器批次:
1992-
1993-
- **判据(任一命中即单容器)**:`size/l` / `size/xl`;全量重生成类(动 tracked
1994-
生成物需整套 regen,#5837 分片即此形);验证半径跨 3 个以上包的全量测试;
1995-
dogfood / 浏览器验证;依赖族升级、全量回归;预计持 heavy-verify 锁超过
1996-
~10 分钟的验证管线。
1997-
- **轻卡不升舱**:S/M 级(文档、JSDoc、单文件面)留 `mode:subagent` 共享容器
1998-
—— 为轻卡单开容器是纯开销,规则的两个方向同等硬。
1988+
**M 及以上默认云卡(维护者 2026-08-10 裁定,#7341 item 10 —— 取代 2026-08-07 的
1989+
「重卡例外单容器」制)。** 原话逐字引用、未翻译:
1990+
1991+
> 确认,M 及以上默认云卡,并进 #7341
1992+
1993+
派发后端因此是**批次选择时按尺寸分流**,不再是「验证重量命中判据才例外升舱」:
1994+
1995+
- **M 及以上 ⇒ 默认 `mode:cloud` 单独派卡**(独享容器),⛔ 不混进共享容器批次。
1996+
裁决理由(维护者同日讨论留档):全程可见、可直接对话干预,价值高于逐卡容器
1997+
启动的开销 —— 对任何非琐碎的卡这笔账都成立。旧判据清单(`size/l` / `size/xl`;
1998+
全量重生成类,#5837 分片即此形;验证半径跨 3 个以上包的全量测试;dogfood /
1999+
浏览器验证;依赖族升级、全量回归;预计持 heavy-verify 锁超过 ~10 分钟)自此是
2000+
**M+ 类的示例**,不再是触发清单 —— 一条都不命中的 M 卡照样走云卡。
2001+
- **只有 S 级机械卡留 `mode:subagent` 共享容器** —— 为琐碎卡单开容器是纯开销,
2002+
规则的两个方向同等硬。**S 级但不机械**的卡(判断面在设计上,不在门禁上)按
2003+
M 待遇走云卡 —— 与 Model tiering「尺寸不是档位的充分判据」同款读法。
2004+
- **三条随行纪律与新默认同段生效**(均为既有条款,点名以防散落):云卡创建即对
2005+
其 PR 挂 `subscribe_pr_activity`(入队与落地 B);dev 报告的权威通道是 issue
2006+
评论(`<!-- os-dev-report -->`,报告通道统一 —— step 6);卡到终局即
2007+
`archive_session`(入队与落地 B 的归档动作)。
19992008
- **判定写进认领评论,并带上模型档位**(step 5「Model tiering」)。这一行现在同时
20002009
承载两个决定 —— 尺寸/容器 与 档位 —— 因为两者用的是同一次判读,分开写只会漂移:
20012010
「容器判定:S 级机械卡,`mode:subagent` 共享容器,`model: sonnet`」/
@@ -2011,16 +2020,21 @@ PM 先给每张候选卡判定验证重量,命中任一判据即**单独派一
20112020

20122021
#### Dispatch backends
20132022

2014-
**`mode:subagent` (default).** The `Agent` tool, as described above. The devs
2023+
**`mode:subagent` — the S-grade mechanical lane.** The `Agent` tool, as
2024+
described above. The devs
20152025
run inside the PM's own session container — which in Claude Code on the web is
20162026
already a cloud container, so the whole loop runs server-side and survives the
20172027
browser tab closing. Reports come back directly as the subagent's final
2018-
message. Prefer this mode: it is simpler, and the report channel is lossless.
2028+
message — the accelerator beside the authoritative issue comment (step 6).
2029+
Since the 2026-08-10 ruling (「M 及以上默认云卡」, the sizing section above)
2030+
this mode is for S-grade mechanical cards, not the default for everything.
20192031

2020-
**`mode:cloud`.** Each issue becomes an **independent cloud session** in the
2032+
**`mode:cloud` — the default for M and above** (same ruling). Each issue
2033+
becomes an **independent cloud session** in the
20212034
same environment — its own container and fresh clone, decoupled from the PM
2022-
session's lifetime. Use it when devs need resources/lifetime beyond one
2023-
container, or the maintainer asks for it. Requires the `Claude_Code_Remote`
2035+
session's lifetime. Also the fallback for any card that needs
2036+
resources/lifetime beyond one container, whatever its size. Requires the
2037+
`Claude_Code_Remote`
20242038
MCP tools (available in remote/web sessions; if absent, say so and fall back
20252039
to `mode:subagent`).
20262040

0 commit comments

Comments
 (0)