Skip to content

Commit 3faabd2

Browse files
fix(pm-dispatch): a hold is a Blocked-by line on the card, every patrol picks per card, and a card thread confirms CI started (#36203) (#36205)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu6w5evzMUfxv4RcRXpJou7e)_ repo:objectstack#1 · os-sales · session_01L6bhgXU3aQQzivgaDDU82c Part of #36203 (items 1-5, the skill text; items 6-7, the scripts, stay on the card) Clause-②: no Metadata-protocol: none Rule-change: ruled Ruling-ref: 「同意五条都改」 — the maintainer's choice on the decision card 「同意按卡 #36203 的五条修改技能文字吗?」, 2026-11-22T07:25Z, ruling record 7075909669 on #36203 ## 维护者速读 - 以后席位决定"这张卡等 #N 之后再做"时,要在卡上写 `Blocked-by: #N` 并挂 `pm:blocked`,不能只记在记忆里。#N 一合入,现有的解锁扫描就会把卡放回可派。 - 每轮巡查都要把手上车道和专题的卡逐张过一遍(`card-pick --why`),不再只在"报队列空"时才做。没有挡路理由的子卡当轮派出。 - 卡线程每次推送后 10 分钟内要核对 CI 真的开跑了、PR 没冲突;冲突的 PR 根本不跑 CI,所以先合 main 再推。等 CI 必须设兜底提醒。席位每轮读每个在飞卡 PR 的状态,遇到 0 检查、冲突、2 小时无动静就叫醒线程。 - 你 07:25Z 选了「同意五条都改」(裁决记录 7075909669),四个技能文件的字节上限按实测增量放宽。 ## What changes - `references/filing-gate.md`: the order between same-epic fleet cards is the later card's `Blocked-by:` line, not a preference listed on the epic card. This removes the contradiction with `seat-lifecycle.md` 56. - `references/execution-duties.md`: deciding "this waits for #N" writes `Blocked-by: #N` + `pm:blocked` on the card in the same stroke, never only in memory or a comment. The ③ status probe covers card threads as well as devs. - `references/seat-lifecycle.md`: `card-pick.mjs --order <序> --why` runs every patrol round over the lanes and epics the seat holds, not only when the seat reports an empty queue. A card with no hold reason is dispatched that round. - Item 3's second arm (a card that is not dispatched gets its reason written on the card) is not repeated in `seat-lifecycle.md` 90: it is `execution-duties.md` 49 (a hold is a `Blocked-by:` line + `pm:blocked` on the card, which then shows as a hold point in `card-pick --why`), and restating it would need bytes the ruled ceiling does not have. - `references/dispatch-runbook.md` (card-thread section), two lines: (1) within 10 min after a push, the thread confirms that Actions started and the PR is not `dirty` (a conflicting PR starts no `pull_request` workflow), else it merges `origin/main` and pushes again; a CI wait sets a `send_later` fallback of at most 30 min. (2) Each round, the seat reads `pr-state.mjs` for every in-flight card PR and wakes the thread that round on zero Actions 30 min after the push, `dirty`, or 2 h with no push and no report. ## Why The two misses on 2026-11-21, read in #36203: #35890 / #35892 sat undispatched for 3 h and 8 h after their blockers closed, because the hold lived only in memory. PR #35923 waited 15.5 h on a head with zero Actions runs (it was already `dirty`), and its thread and the seat each waited for the other. ## Verification - `node scripts/pm/check-skill-line-ratchet.mjs`: green, 0 ✗. Ruling record 7075909669 orders the text; `CEILINGS` rows move by exactly the ruled deltas (dispatch-runbook 20070 → 20354, +284, the text itself +286 over main's 20068 because main sat 2 bytes under its old ceiling; execution-duties 20154 → 20277, +123 (main's own +6 raise, ruling 7073679594, landed first); seat-lifecycle 9070 → 9076, +6; filing-gate 9096 → 9101, +5), each row quoting the id. `--self-test`: 116 cases pass. Merging main (7971a71) took one byte of dispatch-runbook headroom that main had used (20067 → 20068), so one space in the new CI line is dropped to stay at the ruled 20354. - The only script touched is the ratchet's `CEILINGS` table. No workflow or published file changes. No changeset (nothing publishes; `skip-changeset`). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No `packages/spec` change.) - [x] 2. Every name I added uses the casing for its kind. (None added.) - [x] 3. No formatter ran; `pnpm lint` passes. (Markdown only.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset. (Nothing publishes.) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (Not touched.) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (The 维护者速读 section is the maintainer's Chinese summary.) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgXU3aQQzivgaDDU82c <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgXU3aQQzivgaDDU82c --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent cc05e60 commit 3faabd2

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@
134134
- 席位写 assignee+`pm:dispatched`+带该 `Branch:` 的认领。
135135
- worktree 照建;线程读 `os-dev.md`、派发令、卡与全部评论,⛔ 不读 `SKILL.md`;references 按需读。
136136
- 交回:PR 与报告落地后给席位线程发一条消息(PR、head、报告要点);L1/L2 期线程不关,接 FAIL。
137+
- 线程每推后 10 分钟核 Actions 已起、非 `dirty`(冲突 PR 不起 CI),否则合 main 重推;等 CI 必留 `send_later` ≤30分钟兜底。
138+
- 席每轮读在飞卡 PR `pr-state.mjs`:推后 30 分钟零 Actions、`dirty`、2h 无推无报 ⇒ 当轮叫醒线程,⛔ 互等。
137139
- PR 正文由线程自改(中继 `issue_patch`)再报要点,⛔ 不请席或区代发;线程已关才代改。
138140

139141
## 派发前置:前提核实,再把本地检出钉到 main

‎.claude/skills/pm-dispatch/references/execution-duties.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
- 分诊预见的后续工作是一张卡,触发条件落地时立卡;⛔ 分诊一句话永不授权无卡编辑。
4747
- 阻塞项无主 ⇒ 被挡席认领做掉,不限大小;在该卡走完整认领、尊重其热文件串行队。
4848
- 阻塞项在飞 ⇒ 等;卡 PR 叠未合 PR 或 `Blocked-by:` 未合的,合前 ⛔ 不开线程(维护者令除外)。
49+
- 定「等 #N」即同笔写卡 `Blocked-by: #N`+`pm:blocked`;⛔ 只记记忆或评论,无读者即漏派。
4950
- 标签序 = NORTH-STAR「Priority」第 3 条(无级殿后),本车道开放卡现读 `card-pick.mjs --order <序>`。
5051
- 开放 = 未派发(无 `pm:dispatched`、无 assignee);在飞的 P0/P1 不挡任何候选,只余取卡全序。
5152
- 取卡全序:维护者直派插队卡(出处三件)> 契约面卡(判据见 `references/lanes/spec.md`)> 标签序。
@@ -173,7 +174,7 @@
173174
- ① Routine 席巡检首动作 `list_triggers` 确认 Routine 启用;项目席由事件与巡查 routine 唤醒。
174175
- ② 在飞期巡检 ≤45 分钟;待命期靠信箱与 PR 事件唤醒,兜底巡查每 4–6 小时跑待命五项。
175176
- 待命 = 无在飞卡/PR、未读信、候选;事件唤醒空手即收工,有活即复原;⛔ 不取 60–70 分钟。
176-
- ③ 已派发未回报的 dev 逐个发状态询问;派发后 ~45 分钟无远程产出即到门槛。
177+
- ③ 已派发未回报的 dev 与卡线程逐个发状态询问;派发后 ~45 分钟无远程产出即到门槛。
177178
- 已有远程分支/PR 不豁免探针。
178179
- ④ 活着 ⇒ 进度与阻塞点;回 no active task; resumed from transcript ⇒ 生前已死,询问即复活。
179180
- ⑤ 判据永远取正向证据:分支、PR、报告、探活回包。

‎.claude/skills/pm-dispatch/references/filing-gate.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- 增改 pm 规则的卡只在维护者点名时立(归 ③,正文引点名原话);⛔ 席位自提不立。
1818
- 新接口/协议键/元数据类型/审计种类/新能力另立 `Feature` 卡,⛔ 不作 `Bug` 选项,分诊拆。
1919
- ⛔ 不是卡:在建功能(码未合并)的问题,在该功能的卡与 PR 里修;合并后发现的才立 `Bug`。
20-
- 车队立的同专题卡只在改同一文件时互挡(判据同区租约重叠检查);次序偏好列在专题卡。
20+
- 车队立的同专题卡只在改同一文件时互挡(判据同区租约重叠检查);先后只写后卡 `Blocked-by:`。
2121
- 挡路卡只挡本卡一部分 ⇒ 把要等的部分拆成单卡挂 `Blocked-by:`,其余照常排队。
2222
- ⛔ 当前值(冻结、暂停、重点、只做 p1、并发)不进技能,只住座位贴与项目记忆;
2323
单卡裁决只住该卡;唯常设规则进技能,须维护者明言长期有效或由他合并该规则 PR。

‎.claude/skills/pm-dispatch/references/seat-lifecycle.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
- 停:队列空或 `rounds` 用尽(仅一次性调用适用);一轮 ≥ 半数派发失败或升级;维护者打断。
8989
- 队列空是待命非退场(按需席除外):巡查跑到收班,只维护者令停;⛔ 不按 N 次无变化即停。
90-
- 队列空是逐卡表:报无卡可派即贴 `card-pick.mjs --order <序> --why`;无卡点即候选,⛔ 不得报空。
90+
- 每轮对所接车道与专题跑 `card-pick.mjs --order <序> --why`,报空即贴;无卡点即当轮派,⛔ 不得报空。
9191
- 卡点一份词表:候选定义反面,open `Blocked-by:`、`outside --order`、无分诊审计、他席 `Claim:`。
9292
- 单车道仓 `repo:*` 席:每轮首触 sweep 清空再认领,先于待命五项;cloud 细则见 `lanes/cloud.md`。
9393
- 巡查每轮探针后读信箱、认领满 `batch`,跑待命五项;间隔按 `execution-duties.md` 收集节②。

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const REPO_ROOT = new URL('../../', import.meta.url);
8282
// only when a reader needs the ruling at the row.
8383
export const CEILINGS = new Map([
8484
['.claude/skills/pm-dispatch/SKILL.md', 33872], // lowered 33934 → 33872 by the re-basing PR's own edit
85-
['.claude/skills/pm-dispatch/references/dispatch-runbook.md', 20070],
85+
['.claude/skills/pm-dispatch/references/dispatch-runbook.md', 20354], // raised 20070 → 20354 (+284) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a card thread confirms Actions started after each push; the seat reads pr-state of every in-flight card PR
8686
['.claude/skills/pm-dispatch/references/state-machine.md', 4189],
8787
['.claude/skills/pm-dispatch/references/contract-review.md', 6419],
8888
['.claude/skills/pm-dispatch/references/decision-analysis.md', 4892],
@@ -104,7 +104,7 @@ export const CEILINGS = new Map([
104104
['.claude/skills/pm-dispatch/references/seat-post-protocol.md', 7720],
105105
['.claude/skills/pm-dispatch/references/true-green.md', 2068],
106106
['.claude/skills/pm-dispatch/references/compile-surfaces.md', 2488],
107-
['.claude/skills/pm-dispatch/references/seat-lifecycle.md', 9070],
107+
['.claude/skills/pm-dispatch/references/seat-lifecycle.md', 9076], // raised 9070 → 9076 (+6) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): card-pick --why every patrol round
108108
['.claude/skills/pm-dispatch/references/area-lease.md', 6586], // raised 6401 → 6586 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053
109109
['.claude/skills/pm-dispatch/references/coordinator.md', 4265], // raised 3781 → 4265 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053
110110
['.claude/skills/pm-dispatch/references/untrusted-text.md', 3280],
@@ -113,8 +113,8 @@ export const CEILINGS = new Map([
113113
['.claude/skills/pm-dispatch/references/reading-discipline.md', 3822],
114114
['.claude/skills/pm-dispatch/references/cross-repo-coordination.md', 4959],
115115
['.claude/skills/pm-dispatch/references/triage-duties.md', 13559], // edited byte-neutral by the re-basing PR (12399 → 12399); raised 12399 → 13559 (+1160, the landed bytes) by the rulings whose rows are written in it: ruling records 7031931263 (rows 2–5: 「adr接受你的建议」, 「只考虑合并没人认领的,没开始开发的,你负责处理」, 「影响评测的卡不能关,这个会影响到AI的开发效果」, 「adr和skills修改相对是重要的」), 7032145340 (row 6: 「同意」) and 7032418455 (row 7: 「你分诊的时候是不是应该同时评估大概的卡大小作为参考」); review record 7038100802 triggered the part of rows 2, 3 and 6 added in fix round 1 (one close reason, the sweep roll-over, the never-fold list of standing exclusions) and is a trigger, not a ruling
116-
['.claude/skills/pm-dispatch/references/execution-duties.md', 20154], // raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4)
117-
['.claude/skills/pm-dispatch/references/filing-gate.md', 9096], // raised 8386 → 9096 (+710, the landed bytes) by the rulings whose rows are written in it: the rule card's body ruling (row 1, a dedupe hit on an open same-mechanism card ends in a comment: 「感觉你的第二种方案也很好啊」) and ruling record 7032145340 (row 6, the weekly sweep card entry rule and triage's move at first touch: 「同意」); review record 7038100802 triggered the quota line's pointer to row 1 (fix round 1) and is a trigger, not a ruling
116+
['.claude/skills/pm-dispatch/references/execution-duties.md', 20277], // raised 19810 → 20148 (+338) by ruling records 7031931263 (row 2, the weekly ADR card: 「adr接受你的建议」) and 7032145340 (row 6, the lane seat claims the weekly sweep card: 「同意」); 20148 → 20154 (+6) by ruling record 7073679594 (the L2 review effort line moves to `high` on the review sweep's readings: 「C」, under ruling 7073045669 point 4); 20154 → 20277 (+123) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): a hold is Blocked-by + pm:blocked on the card, the probe covers card threads
117+
['.claude/skills/pm-dispatch/references/filing-gate.md', 9101], // raised 9096 → 9101 (+5) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): same-epic order is the later card's Blocked-by; raised 8386 → 9096 (+710, the landed bytes) by the rulings whose rows are written in it: the rule card's body ruling (row 1, a dedupe hit on an open same-mechanism card ends in a comment: 「感觉你的第二种方案也很好啊」) and ruling record 7032145340 (row 6, the weekly sweep card entry rule and triage's move at first touch: 「同意」); review record 7038100802 triggered the quota line's pointer to row 1 (fix round 1) and is a trigger, not a ruling
118118
['.claude/skills/pm-dispatch/references/project-forms.md', 4889], // raised 4669 → 4889 (+220 B, the two project-memory lines less 48 B of restatement cuts) by ruling record 7046610679 「同意,立卡派发」 under ruling record 6184799323, letter B
119119
['.claude/skills/pm-dispatch/references/app-platform-boundary.md', 3928],
120120
['.claude/skills/pm-dispatch/references/lanes/server.md', 4832],

0 commit comments

Comments
 (0)