diff --git a/.claude/skills/pm-dispatch/references/area-lease.md b/.claude/skills/pm-dispatch/references/area-lease.md index 7f377f135e3..e98470de580 100644 --- a/.claude/skills/pm-dispatch/references/area-lease.md +++ b/.claude/skills/pm-dispatch/references/area-lease.md @@ -40,7 +40,7 @@ - 认领前照 `dispatch-runbook.md` 派发前置核前提;开线程请求交席位攒批(`coordinator.md` 三)。 - 写码与开发期读码全经 `os-dev` 等子代理(一卡或一组耦合卡,文件面不相交)。 - 同系列卡可从前卡分支起步(AGENTS.md §2 主干形,⛔ 不叠 PR);新测试建按卡命名的新文件,AGENTS.md 共享 harness 规则适用时除外,由重叠检查定排队。 -- 席线程只协调,⛔ 不读 diff 与日志;ACCEPT 欠的自读(`contract-review.md`、〈路径分叉〉)除外。所落 PR 欠的红检查读日志(`readings-ci.md`)派子代理读,一读兼守本条与该文。 +- 席线程只协调,⛔ 不读 diff 与日志;ACCEPT 欠的自读(`contract-review.md`、〈路径分叉〉)除外。所落 PR 欠的红检查日志派子代理读(`readings-ci.md`)。 - 每区 dev 位空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。 - 席每轮逐区查,核认领 Container & model 行;取卡照点名范围次序,p0/p1 插队;p3 留收口或搭同文件 PR 成批(每 PR ≤5 卡)。 - 认领必答:同区卡过 `execution-duties.md` 折叠五门即默认合一 PR,否则串行;额度墙亦照该文。 @@ -48,14 +48,14 @@ - 送审:≤50 行、只改文本或测试、`Clause-②: no` 且无他契约面 PR 由区照 `l1-review-checklist.md` 自审落地,ACCEPT 点名自审;余者由 L1 线程 ACCEPT 读,先于 `contract-review.md` 不起第二个 agent。 - 契约记录只欠 `contract-review.md` 四面,head 移动照其例外;同 patch-id 干净合 main 只保 ACCEPT。 - 落地:区先读 `check-governed-merges.mjs --pr N`;非受管 PR 照 `landing-operations.md` 自落,受拒报原文。 -- PASS 且全绿的非受管 PR 10 分钟内落地;挂前先查 PR 上已有落地评论,有即 ⛔ 不再挂。 +- PASS 且全绿的非受管 PR 10 分钟内落地;挂前先查已有落地评论,有即 ⛔ 不再挂。 - 受管面与过线卡的 PR 区 ⛔ 不落,交席位;席位照 SKILL.md〈路径分叉〉①–④ 一笔交棒。 - 席位每轮照 `execution-duties.md` 四件套行复查全部已 PASS 受管 PR,各区转来的一并在内。 - 性能卡与 PR 的提速数字只引已过 L1 的 bench PR 读数;⛔ 不引估算或未过 L1 的本地测量。 - 席只裁路由(拆并延、归区;区边界扩、缩、并、释放,重写租约表为记);改可见行为或解读 ADR 照 SKILL.md〈升级与决策〉呈维护者。 - 卡碰租约外文件 ⇒ 区交席位,⛔ 不留卡等维护者;席三选一:扩区;该区只认领此卡(文件级 `File surface:`,`check-handover.mjs --inflight` 复查);转他席。⛔ 不呈维护者、不起评审,只留否决窗口。 - 租约外是共享热文件(如 `packages/core`)⇒ 默认逐卡认领、租约路径不动:租约罩热文件即挡他席。 -- 仅呈维护者选项组过独立评审,多卡一批;席自裁 ⛔ 不起评审,自读码。均带 `Prior rulings read:` 行,开工前呈 ⛔ 不在施工中途。 +- 仅呈维护者选项组过独立评审(档位照 `decision-analysis.md`),多卡一批;席自裁 ⛔ 不起评审,自读码。均带 `Prior rulings read:` 行,开工前呈 ⛔ 不在施工中途。 - 席信箱只收:待裁、待落地受管 PR、跨区冲突、阻塞、交接完成;安全照 `security-findings.md`。 - 线程约 150k 即在干净点轮换,⛔ 不在 L1/L2 中途;交接写 `/mnt/project-files/<席>/handover-<区>.md`。 - 省耗:跨线程只传指针;⛔ 不减 dev。 diff --git a/.claude/skills/pm-dispatch/references/decision-analysis.md b/.claude/skills/pm-dispatch/references/decision-analysis.md index 295dab0276a..b43eae04a99 100644 --- a/.claude/skills/pm-dispatch/references/decision-analysis.md +++ b/.claude/skills/pm-dispatch/references/decision-analysis.md @@ -19,12 +19,8 @@ - 问题写客户看到的症状、谁碰到、多频繁;选项句写选了客户看到什么、约几个 PR。 - ⛔ 速读不写代码名、文件路径、命令、裁决字母、裸卡号;点到的卡配一句中文说明。 - 四轴、四棱块、自检行、置信缺口、工作量先例归英文分析段,⛔ 不删。 -- 例(新应用的菜单名被存成译文): - - 问题:在中文界面下新建或编辑应用,菜单里自动生成的名字被存成中文;换成英文界面, - 菜单还是中文。 - - 选项:A 存原文,切换语言时菜单名跟着变,一个小 PR;B 维持现状。 - - 推荐 A:应用要给不同语言的人用。 - - 不定会怎样:中文用户建的应用,在其他语言下菜单一直是中文。 +- 英文段首两行 `Served-tier: `、`Analysed-by: `(执笔会话或子代理),⛔ 不写模型 id;标 `CONTRACT_REVIEW_TIER` 须执笔转录过 `verify-review-tier.mjs`(`--tier-evidence=` 只判 L2 记录)。 +- 呈维护者前读该行:缺或未达档 ⇒ 达档重跑,贴带两行的 delta 评论(逐棱同异)再呈;⛔ 永不呈读不出档的分析。 分析段骨架:背景 / Governing text(引文 + grep,或 none found + 检索式)/ 协议声明、是否改协议 / 带 re-check 命令的前提 / 具体问题 / 选项 / 推荐 / 相关单与 PR。正文六项: diff --git a/.claude/skills/pm-dispatch/references/triage-duties.md b/.claude/skills/pm-dispatch/references/triage-duties.md index d6ad96e3d33..302b78d715f 100644 --- a/.claude/skills/pm-dispatch/references/triage-duties.md +++ b/.claude/skills/pm-dispatch/references/triage-duties.md @@ -46,7 +46,7 @@ - `needs-user-decision` = 设计卡、契约形状提案、需要 appetite 的多周程序;只挂 issue。 - 先例已定新键/值/导出名非契约形状提案;分诊审计 ⛔ 不自加门,唯语义/形状真分歧呈人。 - 碰迁移形状或删已发布能力也进决策箱;说明书脱节不进:有裁定出处才是 (b),否则改文档。 -- 决策卡速读居四棱块之上、同题,至多四行业务话;写法与例见 `decision-analysis.md`。 +- 决策卡速读居四棱块之上、同题,至多四行业务话;写法见 `decision-analysis.md`。 - 首行写立卡门类别 ①–④;四类定义、⛔ 清单、四答、理由判据与配额见 `filing-gate.md`。 - `finding` = 三类内待定级:(a) 可复现缺陷(复现或失败探针);(b) 违背已声明契约(引契约文); - (c) AI 写元数据会被运行时拒收或静默丢弃的陷阱;其余进 PR `## Acceptance notes`,⛔ 不立卡。 diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index d3fa0e80c53..97aac7c9cad 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -85,7 +85,7 @@ export const CEILINGS = new Map([ ['.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', 5589], // raised 5023 → 5589 (+566) by the declared cross-file move from SKILL.md (CROSS_FILE_MOVES below); before that: 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: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」) + ['.claude/skills/pm-dispatch/references/decision-analysis.md', 5580], // lowered 5589 → 5580 by the decision-analysis tier-line PR (its worked 速读 example deleted to pay for the `Served-tier:` / `Analysed-by:` lines); before that: raised 5023 → 5589 (+566) by the declared cross-file move from SKILL.md (CROSS_FILE_MOVES below); before that: 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: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」) ['.claude/skills/pm-dispatch/references/platform-readings.md', 1082], ['.claude/skills/pm-dispatch/references/readings-queue.md', 9074], ['.claude/skills/pm-dispatch/references/readings-channels.md', 7138], @@ -105,14 +105,14 @@ export const CEILINGS = new Map([ ['.claude/skills/pm-dispatch/references/true-green.md', 2068], ['.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', 6990], // 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; raised 6586 → 6990 (+404, the landed bytes) by the ruled text (a zone boundary change is the seat's routing call, and a card outside the lease goes to the seat, which picks one of three routes), the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7247665159 (「座位可以自己决定,立卡更新skills」) + ['.claude/skills/pm-dispatch/references/area-lease.md', 6986], // lowered 6990 → 6986 by the decision-analysis tier-line PR (its pointer paid by two deletions in the same file); before that: 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; raised 6586 → 6990 (+404, the landed bytes) by the ruled text (a zone boundary change is the seat's routing call, and a card outside the lease goes to the seat, which picks one of three routes), the maintainer's ruling quoted in the body of the rule card and recorded by triage record 7247665159 (「座位可以自己决定,立卡更新skills」) ['.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', 4920], - ['.claude/skills/pm-dispatch/references/triage-duties.md', 13709], // 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; raised 13544 → 13709 (+165, the landed bytes) by ruling record 7135874506 (items B4, B7 and C1: 「照推荐:采纳 5 条」) + ['.claude/skills/pm-dispatch/references/triage-duties.md', 13692], // lowered 13709 → 13692 by the decision-analysis tier-line PR (its pointer to the deleted worked 速读 example dropped); before that: 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; raised 13544 → 13709 (+165, the landed bytes) by ruling record 7135874506 (items B4, B7 and C1: 「照推荐:采纳 5 条」) ['.claude/skills/pm-dispatch/references/execution-duties.md', 22249], // 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); lowered 22316 → 22307 by the PR that drops the triage suggestion line (item C1 of ruling record 7135874506); lowered 22307 → 22249 to its landed size by the #35237 slice-12 pointer PR ['.claude/skills/pm-dispatch/references/filing-gate.md', 9124], // 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; raised 9089 → 9124 (+35, the landed bytes) by ruling record 7135874506 (item A1: 「照推荐:采纳 5 条」) ['.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