Skip to content

Commit 495a79c

Browse files
docs(pm-dispatch): large cards leave areas for their own card thread; 2 devs per container (#34482)
Fixes #34424 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么(终版 head `50e2ffe1`):pm-dispatch 规则三处。①大卡(L/XL、契约改动、欠全量验证)一律单开卡线程,分区里只留小卡;分区认领前遇大卡即交席位。②每区 dev 从 3 改为 2,`SKILL.md` 的 `batch:<n>` 行同写「一容器 dev ≤2」。③`SKILL.md` 的 `mode:*` 行指向大卡判据。 - 为什么改:一个容器只有一把验证锁,3 个 dev 加大卡长时间持锁,导致修复轮排队(实测一次等锁 63 分钟)。 - 风险与回滚:只改 `.claude/` 下三份规则文本,不发布、不碰代码;回滚即 revert 本 PR。 - 先看:`dispatch-runbook.md` 卡线程节(大卡三条判据);`area-lease.md` 认领前一行与 `⛔ 不入区` 行;`SKILL.md` 的 `batch:` 与 `mode:*` 两行。 - 两分钟验证:`pnpm check:pm-skill-ratchet`,预期 `✓ check-skill-line-ratchet`,三文件行数不变、表格行宽不超钉。 - 评审:L1-b R1 已收(6930815255),l2-review#3 PASS 6931182613 于 `50e2ffe1`。 - 需要你做的:无,席位落地(Tier S)。 ## What changes - `dispatch-runbook.md`, card-thread section: a new rule names the three large-card triggers in one place. A card is large when it is L/XL, owes full-suite validation (such as the narrowing arm's dogfood battery), or changes a contract (`Clause-②: yes`, a `Metadata-protocol` other than `none`, or a non-test path under `packages/spec/src/**`). A large card gets its own card thread in area-lease mode too, the rule takes precedence over the S-card line below it, and its fix rounds stay in that thread. - `area-lease.md`: an area runs 2 devs (was 3). The area-splitting line now says that no container raises its 2-dev concurrent-validation cap. Large cards and queue watch are the two things never dispatched inside an area. Large cards point to the runbook's card-thread section, and the triggers are not copied. - `coordinator.md` is untouched because it cites no per-area slot count. ### Line budget (both files at their ratchet ceiling, net 0 lines each) - `area-lease.md` 71 to 71: the large-card intake line shares the queue-watch line's "not dispatched here" (`⛔ 不入区`). The splitting line drops `拆并即改租约表`, because the next line already rewrites the lease table whenever any column changes. Its `不抬每区 dev 数` becomes the container cap. - `dispatch-runbook.md` 246 to 246: the two new trigger lines are paid for by folding three coordinator lines into one. The deleted text is already held by `coordinator.md` section 3, which the merged line now points to: the candidate hand-off with its priority, order text and suggested effort, slot release on return, L1/L2 not holding a slot, and the single project-wide scheduler. The merged line keeps the thread-is-the-dev clause, notifying the coordinator on return, and REWORK taking a slot again. ## Acceptance notes - `SKILL.md` (round 2, `3958845e`, answering L1-b R1 6930815255): the `batch:<n>` row now caps in-container devs at 2 under the default of 3, and the `mode:*` row points to the large-card triggers in `dispatch-runbook.md`. The row width stays under its pin (328 of 341 bytes), paid by shortening wording in the same row. `check-skill-line-ratchet` passes. ## Verification <details><summary>Derived gates at bf89c09 (18 derived, 18 run, 0 NOT-MEASURED)</summary> All 18 commands from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` exited 0. Among them: `check:pm-skill-ratchet` (`✓ check-skill-line-ratchet`), `check:pm-skill-id-lint` (118 files clean), `check:skill-frame-sync`, `check:nul-bytes`, `check:pm-governed-merges` and `check:doc-authoring`. `check:doc-formula-expressions` first exited 3 because its build prerequisite was missing. It passed after the formula and lint packages were built under the verify lock. Outside the derived set, `check:pm-settings-deny-roster` and `check-skills-token-ratchet` also exited 0. `--ran` reconciliation: 18 derived, 18 run, 0 NOT-MEASURED (a derived zero). </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5pmEYLVFDcQ1Z1CS8H)_ <!-- signed: repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 614b9b5 commit 495a79c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
6464
| `coordinator` | 以协调者身份运行(项目会话:开席位线程与卡线程、跨车道调度;接口见 `references/coordinator.md`) | — |
6565
| `label:<name>` | backlog 过滤标签;`label:all` = 全部 open 未认领 | `pm:queue` |
6666
| `repo:<owner/name>` | 扫哪个仓的 backlog(单 issue 的落地仓看它自己的 `repo:*` 标签) | `objectstack-ai/objectstack` |
67-
| `batch:<n>` | 运行中槽位的上限:一槽 = 一个正在运行的子代理(`Agent`、`create_session`)或卡线程,报告落地即释放;等人批、在合并队列、等 CI、等裁决四态不占槽;dev、L1/L2 审核、普查皆计,⛔ 只读不豁免;p0 见 `priority:p0` 行 | 默认 `3`;`n` 的维护者天花板 `5` |
67+
| `batch:<n>` | 运行中槽位的上限:一槽 = 一个在跑的子代理(`Agent`、`create_session`)或卡线程,报告落地即释放;等人批、入队、等 CI、等裁决不占槽;dev、L1/L2 审核、普查皆计,⛔ 只读不豁免;p0 见 `priority:p0` 行 | 默认 `3`,一容器 dev ≤2;`n` 的维护者天花板 `5` |
6868
| `rounds:<n>` | 跑 N 轮后停 | 队列清空为止 |
69-
| `mode:subagent` \| `mode:cloud` \| `mode:thread` | 派发后端 | 按卡分流:S+M ⇒ `subagent`,`cloud` 只留 L/XL 等保留面;席位是项目线程时 M 及以上、p1、`security` 一律 `thread` |
69+
| `mode:subagent` \| `mode:cloud` \| `mode:thread` | 派发后端 | 按卡分流:S+M ⇒ `subagent`,`cloud` 只留 L/XL 等保留面;席位是项目线程时 M 及以上、p1、`security` 一律 `thread`;大卡判据照 `dispatch-runbook.md` 卡线程节 |
7070
| `#12 #34 …` | 显式 issue 清单,整体覆盖标签查询 | — |
7171

7272
- 无角色参数按执行姿态运行,车道由座位贴认定;角色参数令召唤词收敛为一行调用。

‎.claude/skills/pm-dispatch/references/area-lease.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
- 坐席、每次交接或换班时席位重判三件:分不分、分几区、边界;⛔ 不沿用上一班的表。
99
- 分区阈值(经验):可认领 p1/p2 ≥15 张且跨 ≥3 个互不相干的模块簇;不足即照常按卡认领。
1010
- 边界按卡触及的文件与包聚类,让两区极少改同一函数;⛔ 不按卡标题或词汇分。
11-
- 排空的区并入邻区,积压即再拆(「比如增加分区」),⛔ 不抬每区 dev 数;拆并即改租约表。
11+
- 排空的区并入邻区,积压即再拆(「比如增加分区」),⛔ 不抬一容器 2 dev 的并行验证上限。
1212
- 租约表(区→路径→线程会话)住座位贴,任一列变或线程轮换即重写,为唯一记录。
1313
- L1 线程每 3 活跃区一条,新开名 `L1-a`、`L1-b`…,在跑留原名;`lanes/l2-review.md` 席规不及它。
14-
- 队列值守只照 `lanes/queue.md`(含其无席时的兜底),⛔ 不在此另派。
14+
- ⛔ 不入区:大卡(`dispatch-runbook.md` 卡线程节)与队列值守(只照 `lanes/queue.md`,含其无席兜底)。
1515

1616
## 开席
1717

@@ -29,7 +29,7 @@
2929

3030
- 区会话署本席签名,签名第三位与 `Session:` 皆填区会话 ID;开轮互斥读法照 `seat-lifecycle.md`。
3131
- 认领前重读标签、assignee 与末条评论:他人 assignee、他人 `Claim:` 或他区 `lease:*` ⇒ 不碰。
32-
- 认领前三查必过,各写认领评论一行;任一不过 ⇒ 不认领、不派 dev,当即交席位作决策:
32+
- 认领前三查必过,各写认领评论一行;任一不过或遇大卡 ⇒ 不认领、不派 dev,当即交席位:
3333
- `Pre-claim lane:` 修复所改路径属哪条车道,点名依据路径(碰他道路径照下文留道行)。
3434
- `Pre-claim deps:` 卡点名的 `Blocked-by:`、「after #N」与热文件,逐个已合或空闲。
3535
- `Prior rulings read:` 照 `decision-analysis.md`;grep `docs/adr/**`、链卡(⛔ 行在内)与反向 pin
@@ -40,7 +40,7 @@
4040
- dev 开 PR 前自查申报:os-dev.md〈Definition of done〉,BREAKING/ADR-0087 照 AGENTS.md Post-Task 第 3 条。
4141
- 席线程只协调,⛔ 不读 diff 与日志;ACCEPT 欠的自读(`contract-review.md`、〈路径分叉〉)除外。
4242
所落 PR 欠的红检查读日志(`platform-readings.md`)派子代理读,一读兼守本条与该文。
43-
- 每区恒 3 dev,空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
43+
- 每区恒 2 dev,空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
4444
- 席每轮逐区查;⛔ 不单做 p3:只搭同文件 p1/p2 PR(每 PR ≤5 卡);转制时已领未动的 p3 释放。
4545
- 同函数互相牵连的卡合一 PR,准入照 `execution-duties.md` 折叠五门,额度墙亦照该文。
4646
- 留道:修法已清的卡碰 `ui/**`、`packages/spec/**` 仍在本道开发、本席 L1/L2;他道席在线只通知

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@
127127
## 卡线程(`mode:thread`)
128128

129129
- 席位会话是项目线程(载 coordinator 通道工具)⇒ M 及以上、p1、`security` 卡一卡一线程。
130+
- 大卡同上,先于下行,分区亦然,修复轮随卡;大卡 = L/XL,或欠全量验证(`!` 标题或 narrowing 臂),
131+
或改契约:`Clause-②: yes`、`Metadata-protocol` 非 `none`、非测试的 `packages/spec/src/**` 路径。
130132
- S 级机械卡留席内 `mode:subagent`:开线程要重新克隆、重读 `os-dev.md`,起步成本不值。
131133
- 披露纪律卡(私密细节不得离开席位会话)也留席内,认领写明;卡线程照计 `batch`。
132-
- 项目的 coordinator 跨席位统一调度卡线程;每席一个线程跑 PM 循环,卡线程即 dev。
133-
- 席位随时把候选卡交 coordinator,附优先级、派发令全文与建议 effort,⛔ 不等自己的槽位。
134-
- 卡线程交回即释放槽位,席位当即告知 coordinator;L1/L2 期开着不占槽,REWORK 补丁轮再占一槽。
134+
- coordinator 调度卡线程(即 dev),候选与槽位照 `coordinator.md` 三;交回即告知它,REWORK 再占槽。
135135
- 档位与 effort 席位自推导 ⛔ 不等维护者原话:`--tier` 过路径,MANDATORY 即绑;effort 按难度。
136136
- 派发令写两者与推导(`--tier` 行或难度读数),协调者照令开线程;常设原话有则作 `reason:`。
137137
- 席位留认领/派发令/ACCEPT/落地/L2 采纳或补缺;线程实施、开 draft PR、驱动 CI 与可合并。

0 commit comments

Comments
 (0)