Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .claude/agents/os-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ model: opus
- 框架唯一副本在 pm-dispatch SKILL.md 〈升级与决策〉;派发词逐字粘贴,dev ⛔ 不留副本。
- 每个方案逐轴分析,推荐也按那些轴给理由;派发词没带,停下向 PM 索取,⛔ 不自拟一套轴。
- 线程或区:派发令缺档位/effort 推导 ⇒ 退回席位不开工;取值照 `execution-duties.md`,⛔ 不凭记忆。
- 卡线程首步:读实供档(pm-dispatch `readings-session.md`)对派发令,不符(高或低)⇒ 开工前报席位;首报带实供档。
- `main` 碎了、依赖未合并、CI 基础设施故障 ⇒ 报 `blocked` 附证据,重试到排除你的改动。
- 报 `blocked` 须写明卡的哪部分不等阻塞可先做;只挡一部分 ⇒ 席位把等待部分拆成单卡。

Expand Down
6 changes: 3 additions & 3 deletions .claude/skills/pm-dispatch/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
- 四维分析从业务角度写;四棱是四轴的卡面序列化,一一对应,是人工裁决的输入。
- 卡先于弹窗:需裁决(简单问题除外)先落 `needs-user-decision` 卡;列选项等答的聊天即弹窗;⛔ 不 assign 推送。
- 决策卡带选项、推荐、证据、四棱块与工作量列;受阻执行卡同笔挂 `pm:blocked`+`Blocked-by:`。
- 需人工裁先过决策线程:卡入决策箱、放认领,席位请协调者开线程,裁决由席位录卡。
- ⛔ 席位、分诊与 dev 不在自己会话直接问维护者;简单问题可免卡直问,细则见 `references/decision-analysis.md`。
- 需人工裁(简单问题除外)先过决策线程:卡入决策箱、放认领,席位请协调者开线程,裁决由席位录卡。
- ⛔ 席位、分诊与 dev 不在自己会话直接问维护者;席位与分诊的简单问题可免卡直问,细则见 `references/decision-analysis.md`。
- 推送维护者:受管 PR 待批合、决策卡待字、发版、仅其可解之阻 ⇒ 另发 `PushNotification`。
- 一行 ≤200 字,先写动作与编号;每项恰一次,例行进展、刚问刚答与在场即见的不推。
- 总监席档位每场记入摘要台账。
- 呈裁(简单问题除外)只经总监席与决策线程,恒由维护者人工裁;⛔ 无代裁无自裁无子代理。
- 呈裁只经总监席与决策线程(简单问题除外),恒由维护者人工裁;⛔ 无代裁无自裁无子代理。

## 报告契约

Expand Down
1 change: 1 addition & 0 deletions .claude/skills/pm-dispatch/references/coordinator.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
## 四、档位与 effort 照派发令(coordinator 开线程时读;席位请线程时读)

- 档位与 effort 的取值只住 `execution-duties.md` 定档节;coordinator 照派发令所写开线程,⛔ 不另定。
- 开卡线程前查令:`model:` 写上限而同行既无 `--tier` MANDATORY 行、又无点名裁决的 `reason:`(评论 id,或常设档位令的 id 与时刻)⇒ 退回席位,⛔ 不开线程。
- 隔离子代理照 `--brief-template` L2 审核。

## 五、卡线程的 `needs_decision`(coordinator 收到时读;席位请裁时读)
Expand Down
1 change: 1 addition & 0 deletions .claude/skills/pm-dispatch/references/dispatch-runbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
- 线程 ⛔ 不做 harness 开 PR 后指派/请审。
- 派发令由 coordinator 写进线程开场消息,`Writes:` 行逐字在内,⛔ 不落共享目录;卡上留指针。
- coordinator 开线程即读线程分支交席位(读不到则线程自报);⛔ 线程不认领、不写卡 assignee。
- 线程首报带实供档(核对步住 `os-dev.md`),席位写进认领 Container & model 行;与令不符 ⇒ 席位定夺前不开工。
- 席位写 assignee+`pm:dispatched`+带该 `Branch:` 的认领。
- worktree 照建;线程读 `os-dev.md`、派发令、卡与全部评论,⛔ 不读 `SKILL.md`;references 按需读。
- 交回:PR 与报告落地后给席位线程发一条消息(PR、head、报告要点);L1/L2 期线程不关,接 FAIL。
Expand Down
6 changes: 4 additions & 2 deletions .claude/skills/pm-dispatch/references/execution-duties.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@
- 档位写法:引当次 `--tier` 输出,⛔ 不凭记忆、不抄模型名;取上限同行引 MANDATORY 路径行或 `reason:`(裁决评论 id,或常设档位令的 id 与时刻)。
- 审核档:L2 审核的档随面定,只住 `contract-review.md`;L2 自审仅申报面由车道席作 `TIER_DEFAULT` 记录,余面未达档 ⛔ 不自审,起隔离子代理。
- 席位会话(执行席、分诊席、L2 席):默认判断档,effort `high`;坐席时低于即登记行注明,请账号主人以 `high` 重开。契约审核档只经隔离子代理或卡线程按卡取。
- 总监席:档位由维护者按项目人工定;⛔ 无档位硬门、无免档整理态。
- 总监席:档位由维护者按项目人工定,effort `high`;⛔ 无档位硬门、无免档整理态。
- 协调者会话:默认判断档,effort `high`。
- 决策线程:契约审核档,effort `high`;⛔ 无席位档退路。
- 卡线程:按施工档开(开时即定),effort 按卡;区线程 effort `high`。
- 卡线程:按施工档开(开时即定),effort 按卡。
- 区线程:默认判断档,effort `high`;MANDATORY 卡起隔离契约审核档子代理施工,或另开卡线程。
- 子代理的档:分诊子代理默认判断档;前提核实与长线程摘录的只读子代理下限档;范围评审、呈维护者前的选项组评审与分析复核用隔离契约审核档 agent。
- effort 按卡难度定(难度读数只推 effort,⛔ 不推档位),与档位、降档理由写进 Container & model 行与派发令,显式传参,⛔ 不留空。
- S 机械/评审 nit 跟进与返工/同族合并的边角卡/纯文案或 changeset 小改 `medium`;M、L、XL `high`;下列点名行优先。
Expand Down
10 changes: 5 additions & 5 deletions scripts/pm/check-skill-line-ratchet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ const REPO_ROOT = new URL('../../', import.meta.url);
// moves a row later says why in its body; the row carries a one-line comment
// only when a reader needs the ruling at the row.
export const CEILINGS = new Map([
['.claude/skills/pm-dispatch/SKILL.md', 33881], // lowered 33934 → 33872 by the re-basing PR's own edit; raised 33872 → 33881 (+9) by ruling record 7076338827, the addendum to 7076315104 (the simple-question exception is said on each of the three lines of 升级与决策 it qualifies: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」)
['.claude/skills/pm-dispatch/references/dispatch-runbook.md', 20344], // 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; lowered 20354 → 20344 by the PR that moved the tier and effort values to the one home
['.claude/skills/pm-dispatch/SKILL.md', 33919], // lowered 33934 → 33872 by the re-basing PR's own edit; raised 33872 → 33881 (+9) by ruling record 7076338827, the addendum to 7076315104 (the simple-question exception is said on each of the three lines of 升级与决策 it qualifies: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」); raised 33881 → 33919 (+38) by ruling record 7076338827 (the simple-question exception on the decision-thread line; that it names seats and triage only is the seat's reading, the ruling's words do not say who asks)
['.claude/skills/pm-dispatch/references/dispatch-runbook.md', 20483], // 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; lowered 20354 → 20344 by the PR that moved the tier and effort values to the one home; raised 20344 → 20483 (+139) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): the thread's first report carries the served tier and the seat writes it into the claim
['.claude/skills/pm-dispatch/references/state-machine.md', 4189],
['.claude/skills/pm-dispatch/references/contract-review.md', 6419],
['.claude/skills/pm-dispatch/references/decision-analysis.md', 5023], // raised 4892 → 5023 (+131) by ruling record 7076338827, the addendum to 7076315104 (a simple question goes to the maintainer in chat after the at-tier analysis: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」)
Expand All @@ -106,14 +106,14 @@ export const CEILINGS = new Map([
['.claude/skills/pm-dispatch/references/compile-surfaces.md', 2488],
['.claude/skills/pm-dispatch/references/seat-lifecycle.md', 9070], // raised 9070 → 9076 (+6) by ruling record 7075909669 (#36203 items 1-5: 「同意五条都改」): card-pick --why every patrol round; lowered 9076 → 9070 by the PR that moved the tier and effort values to the one home
['.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
['.claude/skills/pm-dispatch/references/coordinator.md', 4230], // 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; lowered 4265 → 4230 by the PR that moved the tier and effort values to the one home
['.claude/skills/pm-dispatch/references/coordinator.md', 4427], // 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; lowered 4265 → 4230 by the PR that moved the tier and effort values to the one home; raised 4230 → 4427 (+197) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): the coordinator returns an underived ceiling order before a thread opens
['.claude/skills/pm-dispatch/references/untrusted-text.md', 3280],
['.claude/skills/pm-dispatch/references/security-findings.md', 3934],
['.claude/skills/pm-dispatch/references/external-contributions.md', 2006],
['.claude/skills/pm-dispatch/references/reading-discipline.md', 3822],
['.claude/skills/pm-dispatch/references/cross-repo-coordination.md', 4959],
['.claude/skills/pm-dispatch/references/triage-duties.md', 13544], // 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; lowered 13559 → 13544 by the PR that moved the tier and effort values to the one home
['.claude/skills/pm-dispatch/references/execution-duties.md', 22158], // 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; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」)
['.claude/skills/pm-dispatch/references/execution-duties.md', 22316], // 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; 20277 → 22158 (+1881) by ruling record 7076315104 (the one home for tier and effort, the 定档 section: 「要把规则文字同统一整理一下,避免散落在各处,避免ai犯错」); raised 22158 → 22316 (+158) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」) (the coordinator session, the area thread and the director's effort)
['.claude/skills/pm-dispatch/references/filing-gate.md', 9089], // 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; lowered 9101 → 9089 by the PR that moved the tier and effort values to the one home
['.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
['.claude/skills/pm-dispatch/references/app-platform-boundary.md', 3928],
Expand All @@ -134,7 +134,7 @@ export const CEILINGS = new Map([
['.claude/skills/pm-dispatch/references/lanes/queue.md', 2003],
['.claude/skills/pm-dispatch/references/lanes/cloud.md', 1232],
['.claude/skills/pm-dispatch/references/lanes/objectstack.md', 2540], // raised 2270 → 2540 by the ruled text (one seat per lane by default; a new `area:*` is a partition of that seat), ruling record 7030459053
['.claude/agents/os-dev.md', 38848], // lowered 39008 → 38848 by the re-basing PR's own edit
['.claude/agents/os-dev.md', 38986], // lowered 39008 → 38848 by the re-basing PR's own edit; raised 38848 → 38986 (+138) by ruling record 7076315104 (Q13, the decision card 「定一下:五条新增规则要不要写进技能」: 「五条都写」): a card thread's first step reads the tier it is served and compares it with the order
['.claude/skills/checklist-test/SKILL.md', 19558],
['.claude/skills/checklist-author/SKILL.md', 3574],
['.claude/skills/dogfood-verification/SKILL.md', 9526],
Expand Down
2 changes: 1 addition & 1 deletion scripts/pm/dispatch-gates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13270,7 +13270,7 @@ export function tierLines(result) {
if (!mandatory) {
return [
`Model tier — no path-derived mandate: the surface hits none of the ${declared} declared glob(s), derived here, not recalled.`,
` The tier stays the PM's per-card judgment call (floor ${TIER_FLOOR} · default ${TIER_DEFAULT} · ceiling ${TIER_CEILING}).`,
` The tier stays below the ceiling: with no mandate the PM picks floor or default per card, and a ceiling build takes a path-derived mandate or the maintainer's explicit order (floor ${TIER_FLOOR} · default ${TIER_DEFAULT} · ceiling ${TIER_CEILING}).`,
clause2,
...suspicion,
];
Expand Down
Loading