Repository navigation
Commit 8dd8192
pm-dispatch: point same-file queueing at area-lease.md's overlap check (#34568)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi94ScD5RMFUJoZsYf2GZvDnw)_
Fixes #34527
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:pm-dispatch 里仍写「同文件默认串行 / 拿不准就串行 / 相交即串行」的 15 处改成指针,指向
`area-lease.md` 的重叠检查(含 `area:*` 同轴在飞与 `Notify: serial`
的触发);座位贴的「热文件串行队」段名不变,定义改成「重叠检查排后的卡 + 车道章程点名的串行链」。
- 为什么改:#34512 已把规则换成 merge-tree
重叠检查,但别处还留着旧的默认串行,席位读到哪处就按哪处做,同一情形会有两种答案。
- 风险与回滚:只改 `.claude/**` 文本,不动脚本、门禁与上限;语义耦合类(同引擎
seam、版本族、生成物、合并队列)的串行规则原样保留。回滚即 revert 本 PR。
- 先看:`references/execution-duties.md` 第 26、32–35 行(fold-or-serial
与并行纪律),`references/seat-post-protocol.md` 第 19–20 行,`SKILL.md` 第 128
行(`area:*`)。
- 两分钟验证:`git grep -nE '串行|热文件|同文件' --
.claude/skills/pm-dispatch`,剩余命中都在下表「不改」一栏且各有理由。
- 需要你做的:无,席位落地(Tier S,达档 L2 PASS 后由区落地)。
## What changes
PR #34512 moved same-file queueing to one rule: the overlap check in
`references/area-lease.md` (claim time and before every push; only exit
1 queues behind the listed PR). Several pm-dispatch passages still
stated the old same-file serial default. Each is now a pointer to that
rule's single home; `area-lease.md` itself is untouched and its
exit-code table is not restated anywhere.
Two classes are kept apart:
- **Textual same-file** (two cards editing one file): the old default
becomes a pointer to the overlap check.
- **Semantic coupling** (one engine seam, a version family, generated
artifacts, the merge queue as a serial resource): merge-tree cannot see
it, so those rules stay as they are.
The seat post's `热文件串行队` section keeps its name (existing seat posts
carry it; the L2 record chose to keep it). Its definition now admits two
kinds of entry: the cards the overlap check queues behind a PR, and the
serial chains a lane charter still names (the version-family chain in
`lanes/server.md`, the generated-artifact relay), so those chains keep
their place on the post and in the handover. Region-level declaration is
unchanged (`execution-duties.md` 35). The fold-or-serial five-gate fold
judgment is kept; only the non-fold branch changes, and its answer lives
in the chain-head claim. The overlap check's exit-code arm is not
restated outside `area-lease.md`.
### Every done-when grep hit (`git grep -nE '串行|serial|热文件|同文件|hot
file'` over `.claude/skills/pm-dispatch/`, `area-lease.md` excluded as
the rule's home)
Changed (line numbers at `origin/main` 107d2e8):
| File:line | Before | After |
|:--|:--|:--|
| `SKILL.md:128` (`area:*` row; review round) | 同轴至多一个在飞,除非文件面不相交 |
同轴可多卡在飞,排队照重叠检查 (paid inside the row: 338 B → 332 B, pin 341) |
| `SKILL.md:127` (p0 row) | 不豁免同文件串行与认领协议 |
不豁免重叠检查(`references/area-lease.md`)与认领协议 |
| `SKILL.md:162` | 只决定文件归属:锚定、热文件串行、单认领路径 | 只决定文件归属:锚定、单认领路径 (a domain
no longer decides same-file queueing) |
| `SKILL.md:184` | 相交 ⇒ 排该 PR 之后串行或让行 | 相交 ⇒ 照重叠检查排队或让行 |
| `SKILL.md:327` (claim template) | 点名同文件/同包的前驱 PR 与在飞认领 | 点名同包的前驱 PR
与在飞认领(同文件照 references/area-lease.md 重叠检查) |
| `execution-duties.md:24` | p0 无槽或低级在飞同文件挡住 | p0 无槽或低级在飞 PR 重叠挡住 |
| `execution-duties.md:26` | 同区域单跨轮硬串行 | 同区域单照重叠检查排队 |
| `execution-duties.md:32` | 显式答折叠或串行 | 显式答折叠与否 (five gates kept) |
| `execution-duties.md:33` | 答题处是串行队条目或链首认领,不答默认串行即漏答;串行后卡待前卡 MERGED
才开线程 | 答题处是链首认领(排后的卡另记串行队);不折叠则排队与否照 `area-lease.md` 重叠检查 |
| `execution-duties.md:35` | 认领申报文件面到区域级,拿不准就串行 | 认领申报文件面到区域级,排队与否照重叠检查
|
| `execution-duties.md:45` | 在飞求交加读 `domain:ui` 的 `pm:dispatched`
认领文件面;相交 ⇒ 串行或让行 | 在飞求交加读 `domain:ui` 认领文件面;相交 ⇒ 照重叠检查排队或让行
(`pm:dispatched` cut: SKILL.md:182 defines 在飞检查 as reading
`pm:dispatched` claims, which survives) |
| `seat-post-protocol.md:19` | 热文件串行队是跨轮跨班次的常设事实:文件 → 有序卡片清单 → 每张卡认领的区域
| 热文件串行队收重叠检查(`area-lease.md`)排后的卡与车道章程点名的串行链,跨轮跨班次常设: / 文件或链 → 有序卡片清单 →
每张卡认领的区域 (two lines) |
| `seat-lifecycle.md:31` | 热文件串行队是正文具名段:区域写不清就只能整文件串行 | 热文件串行队是正文具名段:收
`area-lease.md` 重叠检查排后的卡与车道章程点名的串行链 |
| `project-forms.md:45` (review round) | 席→兄弟席或他车道:认领文件面相交或须先落 `Notify:
serial` | 席→兄弟席或他车道:重叠检查令排后或须先落 `Notify: serial` |
| `lanes/objectstack.md:15` | `domain:*` 只定文件归属与串行 | `domain:*` 只定文件归属
(mirrors SKILL.md:162) |
Not changed, with the reason:
| File:line | Why it stays |
|:--|:--|
| `SKILL.md:186` | The merge queue is a serial resource: semantic, not
textual. |
| `lanes/server.md:56`, `:58` | Version-family upgrade and a shared
engine/datasource seam: semantic coupling merge-tree cannot see. |
| `landing-operations.md:104` (and `:32`'s `Blocked-by`/serial-line
form) | Generated-artifact serial relay: semantic; `:32` names a
dependency line form, not a default. |
| `platform-readings.md:80` | Measured merge-queue throughput reading. |
| `lanes/objectstack.md:28` | Already states the merge-tree answer
(queue only on a real overlap); consistent, one answer. |
| `seat-post-protocol.md:16`, `:17`, `:52` (`:53` after this diff);
`seat-lifecycle.md:22`; `execution-duties.md:48` | Name the `热文件串行队`
section only; its meaning is redefined at `seat-post-protocol.md:19` and
`seat-lifecycle.md:31`, and the handover at `:53` carries both kinds of
entry. Section name kept (see Acceptance notes). |
| `execution-duties.md:32` (`fold-or-serial` label, 热文件 trigger), `:86`;
`lanes/skills.md:35`; `dispatch-runbook.md:33` | The fold question and
the claim's serial-constraints field: the fold judgment is kept, and the
field is a reading slot, not a default. |
| `dispatch-runbook.md:90`; `triage-duties.md:77`, `:79`, `:98` |
Unrelated senses (a control word in the same file; same-file
same-mechanism dedupe; a count of serial cards as a maintenance signal).
|
## Tests
Text-only change under `.claude/**`; no behaviour is pinned, so no
ablation. Line ratchet (`scripts/pm/check-skill-line-ratchet.mjs`) green
on every touched file: SKILL.md 329/329 and widest table row 341/341
(untouched row 118; the p0 row is 264 B, the `area:*` row 332 B);
execution-duties 190/190; seat-lifecycle 100/100; seat-post-protocol
88/88 (+1, inside the ceiling's existing headroom); project-forms 59/59;
lanes/objectstack 35/35. Every added prose line is at most 120 bytes. No
ceiling or pin moved; no line was bought by a re-wrap.
## Acceptance notes
- Section name `热文件串行队` and the `fold-or-serial` label kept, as the L2
record decided: a rename changes no behaviour and makes every live seat
post stale.
- Follow-up, outside this card's surface: the English `when` text of
`notify:serial` in `scripts/pm/record-recognisers.mjs` still reads
"claimed file surfaces overlap, or one card must land first"; it should
follow `project-forms.md` 45.
- Accepted deviation (review nit): for a p0, `execution-duties.md` 24
pauses the lower-grade dev rather than queueing the p0 behind its PR,
while `SKILL.md` 127 says the p0 is not exempt from the check; the pair
predates this PR, and the cross-reference belongs in the rule's home, a
follow-up card.
- Accepted deviation (review nit): `execution-duties.md` 23
("同批独立按文件面不相交判") is about the lock-width cap, not queueing; left as is.
- `scripts/pm/overlap-check.mjs` before the first push: `VERDICT clean
exit 0` on b28bd17 (origin/main 107d2e8), bef4232 (after merging
origin/main 7b3e955) and bafc4d8 (origin/main 1e4656d) — 0 PR heads
sharing a file each time.
## Verification
Head bafc4d8 (review round on bef4232; bef4232 = b28bd17 plus a
merge of origin/main 7b3e955, which touches no pm-dispatch file). `node
scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 23 families; each was run with stdin
closed and its exit captured before any pipe; `--ran` reconciliation: 23
derived, 23 run, 0 NOT-MEASURED.
<details><summary>Gate readings</summary>
```text
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-governed-prose :: exit 0
pnpm check:pm-label-write :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
</details>
<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmSXPDB46NVRepWVrL3 -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 646b13e commit 8dd8192
6 files changed
Lines changed: 16 additions & 15 deletions
File tree
- .claude/skills/pm-dispatch
- references
- lanes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments