Repository navigation
Commit 495a79c
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments