Skip to content

Commit 7a3967c

Browse files
committed
docs(pm-dispatch): the maintainer brief is four business lines, on PRs and on decision cards
A PR's brief says what the user sees change, why, what goes wrong and the one thing asked; a decision card's says the problem, one sentence per option, the recommendation with one reason, and what happens if nobody decides. Code names, paths, commands, ruling letters and bare card numbers stay out of it. The files to read first, the two-minute verification, the four axes, the facet block and the self-check line stay in the English part. The decision reference carries a worked example. The four-axis analysis leaves the list of Chinese channels. The decision-facet self-test sample and the patrol's comments and fixtures follow the new shape; no script reads more than the heading. Two ceiling rows move with the text. Claude-Session: https://claude.ai/code/session_01Utp6CaAqjP52wVTzs99H5G Co-authored-by: Claude <noreply@anthropic.com>
1 parent de68afd commit 7a3967c

9 files changed

Lines changed: 51 additions & 24 deletions

File tree

‎.claude/agents/os-dev.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,14 @@ model: opus
281281
- 关键词是 `fix/fixes/fixed/close/closes/closed` 与 `resolve/resolves/resolved`;让它们远离其它卡号。
282282
- 卡片关系只在 PR 正文声明一次:commit ⛔ 不带卡片 trailer,其 trailer pair 一律 model-free。
283283
- harness 归属提醒凭其优先级句让位本文件;harness 自写含模型名 trailer 只报,⛔ 不仿不改史。
284-
- 声明行后 `## 维护者速读` 六行,受管与否都带,中文、业务角度,不写席位意见。
285-
- 六行固定:改了什么/为什么改/风险与回滚/先看/两分钟验证/需要你做的。
286-
- 先看 ≤3 文件按风险排,点名风险 hunk;两分钟验证 = 一条命令或一次点击,写预期所见。
287-
- 需要你做的恰一个动作,非受管面写「无,席位落地」;席位定稿成评论。
284+
- 声明行后 `## 维护者速读` 至多四行,每行一句中文业务话,受管与否都带,不写席位意见。
285+
- 四行固定:用户能看到什么变化/为什么做/出错会怎样/要你做什么。
286+
- 首行写谁、在哪、前后,内部工具写「用户无感」;次行写所属 epic 中文名或替谁解决。
287+
- 三行写谁碰到什么、能否直接撤回;末行恰一件事或「无」;席位定稿成评论。
288+
- ⛔ 速读不写代码名、文件路径、命令、裁决字母、裸卡号;点到的卡配一句中文说明。
288289
- 英文节序:What changes/Tests/Acceptance notes/Verification;日志读数每子题折进 details/summary 块。
290+
- 先读文件与两分钟验证归英文部分,⛔ 不删:先读 ≤3 个按风险排,点名风险 hunk。
291+
- 两分钟验证 = 一条命令或一次点击,写预期所见。
289292
- 触 `skills/**`(对外发布的技能包)的 diff:PR 正文报两个读数,并默认拒绝小功能大扩写。
290293
- 两个读数缺一不可:被改文件的整文件 before/after,与整包 before/after(全部 SKILL.md 之和)。
291294
- 行数为准,姊妹门禁定义 token 计数后同报 token。

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
103103
- 内容写只走 REST 代理,⛔ 无 MCP 写;CI 红单次重跑亦经中继 `rerun-failed.mjs`,先核 head。
104104
- 写侧恒为 `objectstack-fleet[bot]`;`user.login` 记令牌不记席位,归属 = 文本里的 session ID。
105105
- 席位及其子代理 ⛔ 永不打印环境变量的值;判存在只用不印值的形式 `[ -n "${X+x}" ]`。
106-
- GitHub 上一切新内容用英文;中文只留四通道(维护者速读、轮报、裁决引文、四维分析)。
107-
- 裁决引文照抄不译;四维中文只管新记录,存量英文块 ⛔ 不迁移;存量中文 ⛔ 不追溯改写。
106+
- GitHub 上一切新内容用英文;中文只留三通道(维护者速读、轮报、裁决引文)。
107+
- 裁决引文照抄不译;四维分析写英文、归分析段,只管新记录;存量中文 ⛔ 不追溯改写。
108108

109109
## 状态模型
110110

@@ -195,18 +195,18 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
195195
- 另含 `ui/docs/adr/**`+`ui/.claude/**`+`ui/skills/**`+`ui/AGENTS.md`+`ui/CLAUDE.md`+`ui/.github/workflows/**`。
196196
- 定档 Tier H ⇒ ACCEPT 换终局四件套,混合 diff ⛔ 不按比例判;要拆让 dev 单独开 PR。
197197
- 改动 >3000 行(含生成物)同换终局四件套含③请审,⛔ 无 Tier S 例外;读数=PR additions+deletions。
198-
- ① 席位记录落 PR 先于 `pr_ready`/入队且钉 head:速读六行+席位意见,其下 `## 席位核对`。
198+
- ① 席位记录落 PR 先于 `pr_ready`/入队且钉 head:速读四行+席位意见,其下 `## 席位核对`。
199199
- ② PR 悬着等人批,同笔挂 `pm:awaiting-merge`;人工直合即审核记录,授权批准 ⇒ 席位落地。
200200
- 指针 `ACCEPT → PR #n comment <id>`;受管/spec 面欠 ①–④,席只达档补审现 head 记录未盖处。
201201
- 核对六项:形态/前提实测/门禁 check-runs/接受的偏差/范围外去向+`Skills-docs:`/落地条款。
202-
- 草稿归 dev:PR 正文带 `## 维护者速读` 六行(见 os-dev.md),中文、业务角度,不写席位意见。
203-
- 终稿 = 席位对照自己读的 diff 校正六行、加席位意见行,置顶席位记录;维护者只读评论。
202+
- 草稿归 dev:PR 正文带 `## 维护者速读` 四行(见 os-dev.md),中文业务话,不写席位意见。
203+
- 终稿 = 席位对照自己读的 diff 校正四行、加席位意见行,置顶席位记录;维护者只读评论。
204204
- `pm:awaiting-merge` 只挂 PR、不入六态,与请审同为等人批清单,随获批或撤回判决离开。
205205
- 批准后再推亦不过期;席位落地 = 过落地前检、清标、ready、auto-merge,踢出/变基同法。
206206
- ③ 请审 = 席位交棒:ACCEPT 与现 head 同形 PASS 俱在案,同轮中继 `pr_request_reviewers` 请审批人。
207207
- 作者是审批人 ⇒ `assign` 它、请其余(请它必 422);⛔ 永不请席位自身账号;Tier S 不交人。
208208
- `pr_create` 派不请;`pr_ready` 只补交棒漏;非例外 head 移 ⇒ 撤挂回等;脱中继 PR 自读请/派。
209-
- 速读「需要你做的」求批点名 PASS 评论 id+`Head-sha`;无 PASS ⇒ 写 contract review owed 不求批。
209+
- 速读「要你做什么」求批点名 PASS 评论 id+`Head-sha`;无 PASS ⇒ 写 contract review owed 不求批。
210210
- ④ 轮报单列 awaiting a human merge 并现读请审人;⛔ 未请审不在 chat 报「等你批」,先补请。
211211
- skills 车道自有 PR:纯代码面如 `scripts/pm/` 由本席自读(清单不减)后落地。
212212
- 受管面两层:Tier S = `.claude/**`+下行 S 面(该面独占),余皆 Tier H;S 经达档 PASS 后 ready→入队。

‎.claude/skills/pm-dispatch/references/decision-analysis.md‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@
1414

1515
## 落卡分析模板
1616

17-
段落骨架:背景 / Governing text(引文 + grep,或 none found + 检索式)/ 协议声明、是否改协议 /
17+
- 卡面最上 `## 维护者速读` 至多四行,每行一句中文业务话;其下英文分析段给评审与 agent。
18+
- 四行固定:问题/每个选项一句/推荐与一个理由/不定会怎样。
19+
- 问题写客户看到的症状、谁碰到、多频繁;选项句写选了客户看到什么、约几个 PR。
20+
- ⛔ 速读不写代码名、文件路径、命令、裁决字母、裸卡号;点到的卡配一句中文说明。
21+
- 四轴、四棱块、自检行、置信缺口、工作量先例归英文分析段,⛔ 不删。
22+
- 例(新应用的菜单名被存成译文):
23+
- 问题:在中文界面下新建或编辑应用,菜单里自动生成的名字被存成中文;换成英文界面,
24+
菜单还是中文。
25+
- 选项:A 存原文,切换语言时菜单名跟着变,一个小 PR;B 维持现状。
26+
- 推荐 A:应用要给不同语言的人用。
27+
- 不定会怎样:中文用户建的应用,在其他语言下菜单一直是中文。
28+
29+
分析段骨架:背景 / Governing text(引文 + grep,或 none found + 检索式)/ 协议声明、是否改协议 /
1830
带 re-check 命令的前提 / 具体问题 / 选项 / 推荐 / 相关单与 PR。正文六项:
1931

2032
- 一句话问题:开头一句话说清冲突是什么,⛔ 不带实现名词,写客户看得见的症状。
@@ -35,7 +47,7 @@
3547
## 四棱卡面块固定形状
3648

3749
- 落卡即带,四棱各一行;首行标记 `os-decision-facets`:纯文本单行与其 HTML 注释形等价。
38-
- 写后回读,提取按字面 grep;⛔ 注释形读不到永不读作无四棱块。
50+
- 块在英文分析段;写后回读,提取按字面 grep;⛔ 注释形读不到永不读作无四棱块。
3951
- ① 项目长远合理性:本方案缩小还是扩大特例与契约增生;为内存/Mongo 对齐拖慢 SQL 记负。
4052
- ② 实际业务拉动:今天谁撞上;零拉动默认 defer 或 remove。
4153
- ③ 防 AI 犯错:闭合枚举优于自由结构,响亮拒绝优于静默容忍。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- `reach:` 二选一:公开入口(HTTP/界面/`os validate`/保存)实测一次错误结果;或具名真实生产者。
1616
- 两种例外照立,要点首条「先测可达性」:发版固化的错误文字;维护者直派。
1717
- ⛔ 不经本门:安全发现(含可能泄露数据),不论多确凿;去向只照 `security-findings.md`。
18-
- ② 只有维护者能做的决定,落卡带「维护者速读」与四棱块;车队 `Feature` 归此,免决策箱。
18+
- ② 只有维护者能做的决定,落卡带四行速读与四棱块;车队 `Feature` 归此,免决策箱。
1919
- ③ 维护者直派的任务,正文引其原话;④ 跨仓/跨层协调父单(`tracking`,非 `pm:epic`)及子单。
2020
- 增改 pm 规则的卡只在维护者点名时立(归 ③,正文引点名原话);⛔ 席位自提不立。
2121
- 新接口/协议键/元数据类型/审计种类/新能力另立 `Feature` 卡,⛔ 不作 `Bug` 选项,分诊拆。

‎.claude/skills/pm-dispatch/references/lanes/mobile.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
- `eas-submit.yml` 与版本切割按发布动作对待(AGENTS.md 发布条),⛔ 不由席位触发。
4141
- 本席落地(裁决评论 6578710331)非受管、不改 `.github/workflows/**`、ACCEPT 且现 head 全绿的 PR。
4242
- 落地前读 `main` 最新 EAS Build/Update 运行:有 build/publish 步骤真跑即停落,升决策箱求新裁定。
43-
- 设备验证无 CI 载体:需真机的验收项写进 PR `## 维护者速读` 的「需要你做的」。
43+
- 设备验证无 CI 载体:需真机的验收项写进 PR `## 维护者速读` 的「要你做什么」。
4444
- ⛔ 未上真机的项不报已验;落地不等于已上真机。
4545
- 本仓有 `.changeset/` 而无 changeset 门禁:用户可见变更随 PR 带 changeset,席位 L1 审核时核对。
4646
- 不扩散需求:创业阶段聚焦原则全额适用;原生能力卡第一问恒为 Web 是否真做不到。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- `needs-user-decision` = 设计卡、契约形状提案、需要 appetite 的多周程序;只挂 issue。
4747
- 先例已定新键/值/导出名非契约形状提案;分诊审计 ⛔ 不自加门,唯语义/形状真分歧呈人。
4848
- 碰迁移形状或删已发布能力也进决策箱;说明书脱节不进:有裁定出处才是 (b),否则改文档。
49-
- 决策卡速读居四棱块之上、同题,用业务语言先讲事情与选项,末句只问一字:A/B/C 或是否。
49+
- 决策卡速读居四棱块之上、同题,至多四行业务话;写法与例见 `decision-analysis.md`。
5050
- 首行写立卡门类别 ①–④;四类定义、⛔ 清单、四答、理由判据与配额见 `filing-gate.md`。
5151
- `finding` = 三类内待定级:(a) 可复现缺陷(复现或失败探针);(b) 违背已声明契约(引契约文);
5252
- (c) AI 写元数据会被运行时拒收或静默丢弃的陷阱;其余进 PR `## Acceptance notes`,⛔ 不立卡。

‎scripts/pm/check-half-states.mjs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11670,7 +11670,7 @@ export function h47ReleaseRecordDesync(issue, commentRows) {
1167011670
// BRIEF an issue-comment on the PR whose line begins `## 维护者速读`.
1167111671
//
1167211672
// ⚠️ The BRIEF is a COMMENT and never the body. A dev's PR body carries a
11673-
// `## 维护者速读` section of its own — the six-line DRAFT, written before the
11673+
// `## 维护者速读` section of its own — the four-line DRAFT, written before the
1167411674
// review happened, under the SAME heading — and reading it as the brief would
1167511675
// let the half this row exists to find satisfy itself. So this row reads
1167611676
// comment threads and nothing else, and the sentence says so where a reader
@@ -11861,7 +11861,7 @@ export function h48GovernedVerdictWithoutBrief(pr, governed, commentRows) {
1186111861
//
1186211862
// ## The rule this row patrols
1186311863
//
11864-
// The seat's record on a governed PR — the six-line 维护者速读 with 席位意见
11864+
// The seat's record on a governed PR — the four-line 维护者速读 with 席位意见
1186511865
// filled, then `## 席位核对` with the six-item check — is a PRECONDITION of
1186611866
// the maintainer being asked to look: before `pr_ready` on Tier H and before
1186711867
// a Tier S PR is queued, that record exists on the PR for the head the
@@ -34509,7 +34509,7 @@ Doubles as the fire's **write self-check** (step 0). \`201\` is not the reading.
3450934509
const BRIEF48 = '## 维护者速读\n\n一句话:巡查行,报告态,不写标签。';
3451034510
const LABEL48 = GOVERNED_PR_AWAITING_MERGE_LABEL;
3451134511
const cm48 = (body, at = '2026-09-05T14:30:00Z') => ({ body, created_at: at });
34512-
// ⚠️ The fixture BODY always carries the dev's six-line draft under the SAME
34512+
// ⚠️ The fixture BODY always carries the dev's four-line draft under the SAME
3451334513
// `## 维护者速读` heading the comment marker reads, so every case below that
3451434514
// fires with no brief COMMENT is simultaneously the "a draft in the body does
3451534515
// not satisfy the brief half" case.
@@ -34518,7 +34518,7 @@ Doubles as the fire's **write self-check** (step 0). \`201\` is not the reading.
3451834518
state: 'open',
3451934519
draft: true,
3452034520
labels: labels.map((name) => ({ name })),
34521-
body: '## 维护者速读\n改了什么:dev 的六行草稿,不是评审后的最终速读。',
34521+
body: '## 维护者速读\n用户能看到什么变化:dev 的四行草稿,不是评审后的最终速读。',
3452234522
...extra,
3452334523
});
3452434524
const h48row = (...args) => String(h48GovernedVerdictWithoutBrief(...args) ?? '');
@@ -34656,7 +34656,7 @@ Doubles as the fire's **write self-check** (step 0). \`201\` is not the reading.
3465634656
user: { login: 'objectstack-fleet[bot]' },
3465734657
requested_reviewers: (extra.requested ?? ['hotlong']).map((login) => ({ login })),
3465834658
assignees: (extra.assigned ?? []).map((login) => ({ login })),
34659-
body: '## 维护者速读\n改了什么:dev 的六行草稿。',
34659+
body: '## 维护者速读\n用户能看到什么变化:dev 的四行草稿。',
3466034660
...(extra.fields ?? {}),
3466134661
});
3466234662
const RECORD69 = '## 席位核对\n\nACCEPT · domain:skills seat 2 · head `7cc88889`';

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,14 @@ export const CEILINGS = new Map([
662662
// seat-tier fallback line is removed) and 6999656302 (that thread runs at effort `xhigh`, `max`
663663
// only when he names it). The one fallback line becomes two rule lines. Measured delta +1.
664664
// Not a CROSS_FILE_MOVES destination. Landed count, headroom 0.
665-
['.claude/skills/pm-dispatch/references/decision-analysis.md', 50],
665+
// Raised 50 → 62 by the four-line maintainer brief (#35298): an ORDINARY ruled raise. The ruling
666+
// of record is that card's body, which quotes the maintainer verbatim, 2026-11-19:
667+
// 「目前的维护者速读,写的其实不是很好,感觉很多废话,应该从业务的角度写。」, then 「同意」 to the four-line
668+
// shape. It orders the decision brief and its worked example into this file: the brief on top and its four
669+
// lines (+3), the words it never carries (+1), what stays in the English analysis part (+1), the
670+
// worked example (+6) and the blank line that closes its list (+1). Measured delta +12.
671+
// Not a CROSS_FILE_MOVES destination. Landed count, headroom 0.
672+
['.claude/skills/pm-dispatch/references/decision-analysis.md', 62],
666673
// 134 → 133: whole-text restructuring round, PR-2 (maintainer ruling
667674
// 2026-08-23) — the three write-side sanitizer rows consolidated to one
668675
// author rule + one measured-behaviour row per surface (body / comment).
@@ -2035,7 +2042,12 @@ export const CEILINGS = new Map([
20352042
// dev run never asks the maintainer directly: it reports `needs_decision` and the seat takes it
20362043
// to the decision thread, +1) and the card body (item 8 — a `blocked` report names the part that
20372044
// can go first, +1). Measured delta +2. Not a CROSS_FILE_MOVES destination. Landed count, headroom 0.
2038-
['.claude/agents/os-dev.md', 407],
2045+
// 407 → 410 (#35298): an ordinary ruled raise. The ruling of record is that card's body (the
2046+
// maintainer, 2026-11-19, verbatim 「同意」 to the four-line brief). The six-line definition (4
2047+
// lines) becomes the four-line one with what each line says (4), the words it never carries (+1)
2048+
// and the two readings that move to the English part (+2). Measured delta +3.
2049+
// Not a CROSS_FILE_MOVES destination. Landed count, headroom 0.
2050+
['.claude/agents/os-dev.md', 410],
20392051
// #9473: the other four `.claude/skills/` are read in full by the sessions
20402052
// that use them too — the erosion mechanism the ratchet exists to stop
20412053
// isn't specific to the pm-dispatch surface. Set at current counts on

‎scripts/pm/post-stamped.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5607,8 +5607,8 @@ export function selfTest() {
56075607
].join('\n');
56085608
t('⭐ a round record is untouched: its option items, its `### Decision box` heading and its nested `recommends C` sit in three sections, and signals count only inside the span their frame governs', facets(ROUND).length === 0);
56095609
t('…while the SAME lines inside one decision section are one analysis — the span rule, not the words, is what spared it', facets(['### Decision box', '- **A:** two objectui cards → p1.', '- **C:** the follow-up list.', 'The seat recommends C, fallback B.'].join('\n')).length === 1);
5610-
const TRIAGE = ['## Triage: decision-box entry check, with one completion. Graded `priority:p2`', '', '### 维护者速读', '| 选项 | 做法 | 工作量 |', '|:--|:--|:--|', '| **A** | 同一条规则 | 1 个 PR |', '| **B** | 维持现状 | 无 |', '', '立卡席位推荐 A,本席同意。'].join('\n');
5611-
t('⛔ the stated recall limit, pinned: a triage record under its `## Triage:` heading opens no frame — `decision-box` mid-heading is not an opener', facets(TRIAGE).length === 0 && decisionAnalysisSignals(TRIAGE).frame === null);
5610+
const TRIAGE = ['## Triage: decision-box entry check, with one completion. Graded `priority:p2`', '', '### 维护者速读', '- 问题:换成英文界面,菜单名还是中文。', '- 选项:A 存原文,一个小 PR;B 维持现状。', '- 推荐 A:应用要给不同语言的人用。', '- 不定会怎样:其他语言下菜单一直是中文。', '', '### Options', '| Option | What it does | Effort |', '|:--|:--|:--|', '| **A** | one rule | 1 PR |', '| **B** | as today | none |'].join('\n');
5611+
t('⛔ the stated recall limit, pinned: a triage record under its `## Triage:` heading opens no frame — `decision-box` mid-heading is not an opener — though its four-line brief recommends a letter and its English part lays the options out', facets(TRIAGE).length === 0 && decisionAnalysisSignals(TRIAGE).frame === null && decisionAnalysisSignals(TRIAGE).table !== null && decisionAnalysisSignals(TRIAGE).recommendation !== null);
56125612
t('⛔ two signals are not an analysis: a frame and a recommendation with no options, a frame and options with no recommendation, options and a recommendation with no frame', facets('## 决策:x\n\n**推荐 A。**').length === 0 && facets('## 决策:x\n\n| 选项 | 做法 |\n|--|--|\n| A | y |').length === 0 && facets('## Note\n\n- **A**: x\n- **B**: y\n\nThis seat recommends **A**.').length === 0);
56135613
t('⛔ an article, a hypothesis and a finding list are not option labels — `**A crash…**`, `**H1:**`, `**F1, F2:**`', decisionAnalysisSignals('## 决策:x\n\n- **A crash between the two:** y\n- **B narrowing.** z\n- **H1:** w\n- **F1, F2:** v\n\n推荐 A').labels.length === 0);
56145614
t('⛔ an INDENTED option item is a digest\'s, not an analysis\'s, and `不推荐` is no recommendation', decisionAnalysisSignals('## 决策:x\n\n- #1:\n - **A**: y\n - **B**: z').labels.length === 0 && decisionAnalysisSignals('## 决策:x\n\nB 不推荐 C').recommendation === null);

0 commit comments

Comments
 (0)