From 49d0a25e48adc96e90e5845e713428cff5ec5191 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 10:22:21 +0000 Subject: [PATCH 1/3] docs(os-dev): finished work the work branch cannot take goes to a no-PR backup branch os-dev.md states three rules next to the commit-and-push rule: finished commits the work branch cannot take are pushed at once to claude/issue---wip (standing permission, never a PR from it, never merged, deleted when its work lands), no local-only work when a turn ends on a wait, and hand-offs name a remote branch and sha. area-lease.md (hand-off) and dispatch-runbook.md (card threads) each point to that rule. The byte ratchet rows of the three files rise by the measured size of the ruled text: os-dev.md +746, area-lease.md +128, dispatch-runbook.md +157. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude --- .claude/agents/os-dev.md | 5 +++++ .claude/skills/pm-dispatch/references/area-lease.md | 3 ++- .claude/skills/pm-dispatch/references/dispatch-runbook.md | 1 + scripts/pm/check-skill-line-ratchet.mjs | 6 +++--- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.claude/agents/os-dev.md b/.claude/agents/os-dev.md index 18ca7bbe1ac..2d9bb450064 100644 --- a/.claude/agents/os-dev.md +++ b/.claude/agents/os-dev.md @@ -100,6 +100,11 @@ model: opus 5. **整条流水线在前台跑。** build 与 test 都是本任务的步骤:阻塞运行、读真实输出、继续。 - 宿主事实:你启动的后台作业、watcher、你请求的通知都不会唤醒你;结束一轮就是结束。 - 每个可编译小步即 commit + push;有可展示内容即开 draft PR;接管只认远程分支最后 sha。 + - 工作分支收不下的已完成提交(会改动其上 open PR、拆分留后的一半、停在裁决或审核上)⇒ 当即推无 PR 备份分支 `claude/issue---wip`。 + - 常设许可,⛔ 不问、不开决策卡;⛔ 永不从它开 PR 或合并它;其工作落地即删,删不掉(`readings-session.md`)⇒ 报告点名待删。 + - 例:卡线程的平台分支挂着前半的 open PR ⇒ 后半做完不问,`git push origin HEAD:refs/heads/claude/issue---wip`。 + - ⛔ 一轮结束不留只在本地的工作:停下等 CI、审核、裁决或合并前,每个 commit 已在远端分支,报告点名它。 + - 交接、报告与记忆点名工作只用远端分支与 sha,⛔ 不用本地分支或容器路径。 - 带具名缺口的 PR 是交付进行中的常态,未读到的判决写 `NOT MEASURED: , reason: …`。 - 平台事实:容器把前台命令钉在约 10 分钟上限,超时 SIGTERM 杀掉(`exit 143`)。 6. **排队不是停摆,在轮内主动等。** 持锁的是你不拥有的进程,其完成同样不会唤醒你。 diff --git a/.claude/skills/pm-dispatch/references/area-lease.md b/.claude/skills/pm-dispatch/references/area-lease.md index cd3922d65e3..d2899d645be 100644 --- a/.claude/skills/pm-dispatch/references/area-lease.md +++ b/.claude/skills/pm-dispatch/references/area-lease.md @@ -61,6 +61,7 @@ ## 交接与换号 -- 用量近 80% 即交接:停派任何级;在途推完,每条分支留 draft PR;余照 `seat-post-protocol.md` 清单。 +- 用量近 80% 即交接:停派任何级;在途推完,每条工作分支留 draft PR;余照 `seat-post-protocol.md` 清单。 - 交接与各区现状落座位贴评论:所有权、open PR、下一步、待批、坑;⛔ 不只留项目或记忆。 +- PR 收不下的提交推 `-wip` 备份分支,交接只点名远端分支与 sha:条文住 `os-dev.md` 资源纪律 5。 - 新旧账号重叠时座位贴写所有权切分:旧号持有的 PR 清单与新号可取集;新号只取后者。 diff --git a/.claude/skills/pm-dispatch/references/dispatch-runbook.md b/.claude/skills/pm-dispatch/references/dispatch-runbook.md index 54446b7e769..3cf9326b765 100644 --- a/.claude/skills/pm-dispatch/references/dispatch-runbook.md +++ b/.claude/skills/pm-dispatch/references/dispatch-runbook.md @@ -133,6 +133,7 @@ - 线程首报带实供档(核对步住 `os-dev.md`),席位写进认领 Container & model 行;与令不符 ⇒ 席位定夺前不开工。 - 席位写 assignee+`pm:dispatched`+带该 `Branch:` 的认领。 - worktree 照建;线程读 `os-dev.md`、派发令、卡与全部评论,⛔ 不读 `SKILL.md`;references 按需读。 +- 平台分支收不下的提交推 `-wip` 备份分支、交回只点名远端分支与 sha:条文住 `os-dev.md` 资源纪律 5,派发令 ⛔ 不另写。 - 交回:PR 与报告落地后给席位线程发一条消息(PR、head、报告要点);L1/L2 期线程不关,接 FAIL。 - 线程每推后 10 分钟核 Actions 已起、非 `dirty`(冲突 PR 不起 CI),否则合 main 重推;等 CI 必留 `send_later` ≤30分钟兜底。 - 席每轮读在飞卡 PR `pr-state.mjs`:推后 30 分钟零 Actions、`dirty`、2h 无推无报 ⇒ 当轮叫醒线程,⛔ 互等。 diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index e631b688716..f7b45a2ccf7 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -82,7 +82,7 @@ const REPO_ROOT = new URL('../../', import.meta.url); // only when a reader needs the ruling at the row. export const CEILINGS = new Map([ ['.claude/skills/pm-dispatch/SKILL.md', 33351], // lowered 33919 → 33351 by the entry-file slimming PR: five recommendation-order lines moved to references/decision-analysis.md (the declared cross-file move below); before that: 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/dispatch-runbook.md', 20640], // raised 20483 → 20640 (+157) by the ruled text (a card thread pushes what its platform branch cannot take to a no-PR backup branch; one pointer line to os-dev.md), the maintainer's words of 2026-11-24 08:49Z and 08:50Z, recorded in the body of card #36920 and in comment 7126641707; before that: 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: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」) @@ -105,7 +105,7 @@ 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', 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/area-lease.md', 6714], // raised 6586 → 6714 (+128) by the ruled text (a hand-off names a remote branch and sha; one pointer line to os-dev.md), the maintainer's words of 2026-11-24 08:49Z and 08:50Z, recorded in the body of card #36920 and in comment 7126641707; 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 ['.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], @@ -136,7 +136,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', 33500], // lowered 33504 → 33500 by the #35237 slice-10 entry-pointers PR (the file's landed size, headroom 0); before that: lowered 38986 → 33504 by the entry-file slimming PR (four one-path blocks moved verbatim to references/dev-traps.md and references/dev-ablation.md, one pointer line left for each); before that: 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/agents/os-dev.md', 34246], // raised 33500 → 34246 (+746) by the ruled text (finished commits the work branch cannot take go to a no-PR backup branch by default; no local-only work when a turn ends; hand-offs name a remote branch and sha), the maintainer's words of 2026-11-24 08:49Z and 08:50Z, recorded in the body of card #36920 and in comment 7126641707; before that: lowered 33504 → 33500 by the #35237 slice-10 entry-pointers PR (the file's landed size, headroom 0); before that: lowered 38986 → 33504 by the entry-file slimming PR (four one-path blocks moved verbatim to references/dev-traps.md and references/dev-ablation.md, one pointer line left for each); before that: 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', 14209], // lowered 19558 → 14209 by the entry-file slimming PR (the bodies of §5 and §6 moved verbatim to the two reference files below, one pointer line left in each section) ['.claude/skills/checklist-test/references/closure.md', 4553], // new row, landed size, headroom 0 ['.claude/skills/checklist-test/references/standing-regression.md', 1261], // new row, landed size, headroom 0 From f067818e5984c403617fdc20fea236fd33630b1a Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 11:27:34 +0000 Subject: [PATCH 2/3] docs(os-dev): the backup-branch example pushes in the one shape the settings allow The worked example created the backup branch with a refspec push, which matches no allow row in .claude/settings.json. It now creates the local branch of that name and pushes it with `git push -u origin `, the allowed shape. The file's size is unchanged, so no ratchet row moves. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude --- .claude/agents/os-dev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/agents/os-dev.md b/.claude/agents/os-dev.md index 2d9bb450064..d68d1a8ad5c 100644 --- a/.claude/agents/os-dev.md +++ b/.claude/agents/os-dev.md @@ -102,7 +102,7 @@ model: opus - 每个可编译小步即 commit + push;有可展示内容即开 draft PR;接管只认远程分支最后 sha。 - 工作分支收不下的已完成提交(会改动其上 open PR、拆分留后的一半、停在裁决或审核上)⇒ 当即推无 PR 备份分支 `claude/issue---wip`。 - 常设许可,⛔ 不问、不开决策卡;⛔ 永不从它开 PR 或合并它;其工作落地即删,删不掉(`readings-session.md`)⇒ 报告点名待删。 - - 例:卡线程的平台分支挂着前半的 open PR ⇒ 后半做完不问,`git push origin HEAD:refs/heads/claude/issue---wip`。 + - 例:卡线程平台分支有前半的 open PR ⇒ 后半做完不问,本地建此分支,`git push -u origin claude/issue---wip`。 - ⛔ 一轮结束不留只在本地的工作:停下等 CI、审核、裁决或合并前,每个 commit 已在远端分支,报告点名它。 - 交接、报告与记忆点名工作只用远端分支与 sha,⛔ 不用本地分支或容器路径。 - 带具名缺口的 PR 是交付进行中的常态,未读到的判决写 `NOT MEASURED: , reason: …`。 From 2776b5029984e9c207f6b2cef58b823a875eb5b7 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Nov 2026 11:49:11 +0000 Subject: [PATCH 3/3] docs(os-dev): pay for the backup-branch rule by deletion; no ratchet row moves The three ceiling rows return to their values on main, and the new text is paid for in the same three files by removing text that is stated elsewhere: - os-dev.md: the attribution-footer block that mirrors AGENTS.md, the worktree shared-state list that restates AGENTS.md, and five lines or clauses that repeat the line beside them (the lock slot explanation, the exit-code-after-tail example, the two-report self-check sentence, the in_progress clause, the queueing clause). - area-lease.md: the pointer moves into the hand-off line; the clause that restates os-dev's local verification scope goes. - dispatch-runbook.md: the pointer shrinks to one short line; the line that restates state-machine.md's label rule goes. The backup-branch rule itself is unchanged. Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW Co-authored-by: Claude --- .claude/agents/os-dev.md | 20 ++++--------------- .../pm-dispatch/references/area-lease.md | 5 ++--- .../references/dispatch-runbook.md | 3 +-- scripts/pm/check-skill-line-ratchet.mjs | 6 +++--- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/.claude/agents/os-dev.md b/.claude/agents/os-dev.md index d68d1a8ad5c..59148e5a309 100644 --- a/.claude/agents/os-dev.md +++ b/.claude/agents/os-dev.md @@ -89,7 +89,7 @@ model: opus - 它不保证机器空闲:`check:*` 门禁、install、dev server 不走它,与持锁同核并跑。 - 超前台上限者(`check:pm-dispatch-gates`、全量 dogfood):`nohup … > LOG 2>&1 &` 后 `tail --pid`。 - 锁下墙钟绝对值是共享盒读数;只包命令本身,不包你的阅读与判断。 - - 结论读它印的 `VERDICT command-exit` 行,⛔ 不读裸 `$?`;按到达序授予,排队是常态,不是挂死。 + - 结论读它印的 `VERDICT command-exit` 行,⛔ 不读裸 `$?`;按到达序授予。 2. **压住堆**:重命令前缀 `NODE_OPTIONS=--max-old-space-size=4096`,要抬需给理由。 3. **定向,不扫全**:只 build/test 受影响的包,turbo 用 `--concurrency=2`。 - 单文件跑法 `pnpm --filter exec vitest run --maxWorkers=2 `。 @@ -110,7 +110,6 @@ model: opus 6. **排队不是停摆,在轮内主动等。** 持锁的是你不拥有的进程,其完成同样不会唤醒你。 - 99 专指没排到,读作 NOT MEASURED;把间隔花在无锁工作上(写测试、changeset、PR 正文)。 - 再取以同名续位,⛔ 不从队尾重排:`OS_VERIFY_LOCK_SLOT=<稳定名>` 在第一次尝试前就设好。 - - 没排到的调用把排位寄存,同名再来续原到达戳;不设它,每次离开都从队尾重排。 - 排队约 20 分钟无进展 ⇒ 先看这次检查能否收窄到不必持锁(收窄要申报,见干净收尾)。 - 收窄不了就停下报 `blocked` 并点名持锁者:`os-verify-lock.sh --status` 打印持锁者与队列。 - 一动不动的持锁者本身就是真发现;沉默是唯一错误答案。 @@ -161,7 +160,6 @@ model: opus - 仓根包不在 `turbo ls` 里,根级套件整个在图外;故只称「不在图上」,永不称「动不了」。 - 门禁结果的读法:退出码在任何管道之前捕获,报告里引门禁自己印的判定行。 - 免疫写法只有一种,先重定向再捕获:`cmd > /tmp/out 2>&1; EXIT=$?; tail -40 /tmp/out`。 -- `EXIT=$?` 跟在 `cmd 2>&1 | tail -40` 之后读到的是 `tail` 的状态。 - `set -o pipefail` 与 `${PIPESTATUS[0]}` 仅当下游读到 EOF 才安全。 - `| head -N` 读满即关读端,生产者吃 SIGPIPE 以 0 退出:是管道改了生产者的退出码。 - 此陷阱不限于门禁:任何 `cmd | head` 之后读退出码都中招(`git grep`、`node` 皆然)。 @@ -191,8 +189,7 @@ model: opus - `baseRev` 允许滞后,一行信息不是错误;普通构建下该文件动了是 finding,不是产物。 - ⛔ 永不在 MERGE 态跑 `gen:schema`:HEAD 还是 merge 前的 tip,锚点会静默回滚到旧分叉点。 - 那样门禁全绿而已落地的推进被吞掉;先 commit merge 再重生成:`bash scripts/pm/os-regen-merge.sh`。 -- `git worktree` 只隔离工作树与 HEAD;`.git/` 下其余一切全 worktree 共享。 -- 共享的含 refs(含 `refs/remotes/*`)、stash 栈、config、hooks;配方不点名共享态才 worktree-safe。 +- worktree 共享什么住 AGENTS.md;配方不点名共享态才 worktree-safe。 - `git reset --soft origin/main` 会把你分支点之后他人已合并的文件整批 stage 成你的。 - 起点在哪的 reset/diff/log/rebase 一律锚基本规则 1 记录的 `"$BASE"`。 - `log -S/--follow/blame` 判日期或先后前,先 `git rev-parse --is-shallow-repository`,true 就加深申报。 @@ -262,7 +259,7 @@ model: opus - 被拒 ⇒ 报端点与状态码、席位代挂,⛔ 不报 `blocked`、不走 MCP;收尾再读一次。 - 分类器拒外部写 ⇒ 停手,`deviations` 记命令与拒因,席位只转维护者定夺;⛔ 不换路重发。 - 报告在本地验证走完时交付,CI 收敛等待归 PM 不归你:⛔ 不为等 CI 结论推迟报告。 -- 门禁状态如实记录,`in_progress` 是诚实值;PR 开出后 ⛔ 永不 sleep、定时等待或空转轮询 CI。 +- PR 开出后 ⛔ 永不 sleep、定时等待或空转轮询 CI。 - 你报告之后才转红的门禁,会作为同一认领上的补丁轮回来。 - 逐卡例外:派发词明示本单等 CI 只为那一张卡恢复等待,以前台轮询,永不用后台 watcher。 - 本派发契约压过平台注入的 PR 订阅姿态:云会话被自动订阅到自己的 PR。 @@ -294,7 +291,6 @@ model: opus - 或者收窄这次检查的范围并在报告里申报:已申报的收窄是被接受的偏差,CI 跑满农场。 - PM L1 审核的是 CI 收敛,不是你本地的覆盖面;未申报的收窄不在此列,那是漏跑。 - 比回合长的门禁在写报告那一刻读日志(重定向目标);未完成的记 NOT MEASURED 并写原因。 - - 自检是机械的,不看你怎么形容这次等待:终消息只能是报告 JSON 或 `blocked` 报告。 - 结束一轮之前自检:最后一条消息是否在描述你不拥有的进程给你的唤醒? ## 何时停手不写码 @@ -350,12 +346,4 @@ model: opus - 不是 NUL 的控制字节也不是把门禁命中读成误报的理由。 - 危害的论证在 `scripts/check-nul-bytes.mjs` 头部,引用它,别重推;push 前跑它。 - 改动只要提到控制字符,就在门禁之外自扫:`grep -naP '[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]' `。 -- GitHub 正文 sanitizer 的作者纪律归 AGENTS.md 的 GitHub mutates body BYTES 条;署名页脚两形如下。 - -```text ---- ← 规则线,前留一空行;平台只认整块 -_Generated by [Claude Code](https://claude.ai/code)_ ← bare:评论用 -_Generated by [Claude Code](https://claude.ai/code/session_)_ ← session-URL:创建 PR 正文用 -``` - -- 完整读数住 AGENTS.md 同条。 +- GitHub 正文 sanitizer 的作者纪律归 AGENTS.md 的 GitHub mutates body BYTES 条,署名页脚两形与读数归同文 attribution footer 条。 diff --git a/.claude/skills/pm-dispatch/references/area-lease.md b/.claude/skills/pm-dispatch/references/area-lease.md index d2899d645be..f1b95bbb491 100644 --- a/.claude/skills/pm-dispatch/references/area-lease.md +++ b/.claude/skills/pm-dispatch/references/area-lease.md @@ -56,12 +56,11 @@ - 仅呈维护者选项组过独立评审,多卡一批;席自裁 ⛔ 不起评审,自读码。均带 `Prior rulings read:` 行,开工前呈 ⛔ 不在施工中途。 - 席信箱只收:待裁、待落地受管 PR、跨区冲突、阻塞、交接完成;安全照 `security-findings.md`。 - 线程约 150k 即在干净点轮换,⛔ 不在 L1/L2 中途;交接写 `/mnt/project-files/<席>/handover-<区>.md`。 -- 省耗:dev 推前照 os-dev.md〈本地验证范围〉;跨线程只传指针;⛔ 不减 dev。 +- 省耗:跨线程只传指针;⛔ 不减 dev。 - 每读一次用量,在座位贴评论记一行:用量 %、关卡数、合并 PR 数。 ## 交接与换号 -- 用量近 80% 即交接:停派任何级;在途推完,每条工作分支留 draft PR;余照 `seat-post-protocol.md` 清单。 +- 用量近 80% 即交接:停派任何级;在途照 `os-dev.md` 资源纪律 5 推完并点名,每条工作分支留 draft PR;余照 `seat-post-protocol.md` 清单。 - 交接与各区现状落座位贴评论:所有权、open PR、下一步、待批、坑;⛔ 不只留项目或记忆。 -- PR 收不下的提交推 `-wip` 备份分支,交接只点名远端分支与 sha:条文住 `os-dev.md` 资源纪律 5。 - 新旧账号重叠时座位贴写所有权切分:旧号持有的 PR 清单与新号可取集;新号只取后者。 diff --git a/.claude/skills/pm-dispatch/references/dispatch-runbook.md b/.claude/skills/pm-dispatch/references/dispatch-runbook.md index 3cf9326b765..7f54d813518 100644 --- a/.claude/skills/pm-dispatch/references/dispatch-runbook.md +++ b/.claude/skills/pm-dispatch/references/dispatch-runbook.md @@ -92,7 +92,6 @@ - 结论产生的那一轮就执行它:得出结论而不在同轮完成关闭或换标写入,本身就是半状态。 - ⛔ 禁止记录后离场;结论表同规,表不是交付物,落账才是。 - 无权执行 ⇒ 点名有权者,并当轮换标把状态搬进对方的收件箱视图或决策箱。 -- ⛔ 不许只留一条评论等人路过:评论不是任何人的收件箱,标签才是。 ## 云卡(`mode:cloud`)五课 @@ -133,7 +132,7 @@ - 线程首报带实供档(核对步住 `os-dev.md`),席位写进认领 Container & model 行;与令不符 ⇒ 席位定夺前不开工。 - 席位写 assignee+`pm:dispatched`+带该 `Branch:` 的认领。 - worktree 照建;线程读 `os-dev.md`、派发令、卡与全部评论,⛔ 不读 `SKILL.md`;references 按需读。 -- 平台分支收不下的提交推 `-wip` 备份分支、交回只点名远端分支与 sha:条文住 `os-dev.md` 资源纪律 5,派发令 ⛔ 不另写。 +- 平台分支收不下的提交推 `-wip` 备份分支:照 `os-dev.md` 资源纪律 5。 - 交回:PR 与报告落地后给席位线程发一条消息(PR、head、报告要点);L1/L2 期线程不关,接 FAIL。 - 线程每推后 10 分钟核 Actions 已起、非 `dirty`(冲突 PR 不起 CI),否则合 main 重推;等 CI 必留 `send_later` ≤30分钟兜底。 - 席每轮读在飞卡 PR `pr-state.mjs`:推后 30 分钟零 Actions、`dirty`、2h 无推无报 ⇒ 当轮叫醒线程,⛔ 互等。 diff --git a/scripts/pm/check-skill-line-ratchet.mjs b/scripts/pm/check-skill-line-ratchet.mjs index f7b45a2ccf7..e631b688716 100644 --- a/scripts/pm/check-skill-line-ratchet.mjs +++ b/scripts/pm/check-skill-line-ratchet.mjs @@ -82,7 +82,7 @@ const REPO_ROOT = new URL('../../', import.meta.url); // only when a reader needs the ruling at the row. export const CEILINGS = new Map([ ['.claude/skills/pm-dispatch/SKILL.md', 33351], // lowered 33919 → 33351 by the entry-file slimming PR: five recommendation-order lines moved to references/decision-analysis.md (the declared cross-file move below); before that: 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', 20640], // raised 20483 → 20640 (+157) by the ruled text (a card thread pushes what its platform branch cannot take to a no-PR backup branch; one pointer line to os-dev.md), the maintainer's words of 2026-11-24 08:49Z and 08:50Z, recorded in the body of card #36920 and in comment 7126641707; before that: 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/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: 「不一定要写成文件吧?简单的问题是不是直接和我沟通就可以」) @@ -105,7 +105,7 @@ 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', 6714], // raised 6586 → 6714 (+128) by the ruled text (a hand-off names a remote branch and sha; one pointer line to os-dev.md), the maintainer's words of 2026-11-24 08:49Z and 08:50Z, recorded in the body of card #36920 and in comment 7126641707; 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 + ['.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', 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], @@ -136,7 +136,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', 34246], // raised 33500 → 34246 (+746) by the ruled text (finished commits the work branch cannot take go to a no-PR backup branch by default; no local-only work when a turn ends; hand-offs name a remote branch and sha), the maintainer's words of 2026-11-24 08:49Z and 08:50Z, recorded in the body of card #36920 and in comment 7126641707; before that: lowered 33504 → 33500 by the #35237 slice-10 entry-pointers PR (the file's landed size, headroom 0); before that: lowered 38986 → 33504 by the entry-file slimming PR (four one-path blocks moved verbatim to references/dev-traps.md and references/dev-ablation.md, one pointer line left for each); before that: 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/agents/os-dev.md', 33500], // lowered 33504 → 33500 by the #35237 slice-10 entry-pointers PR (the file's landed size, headroom 0); before that: lowered 38986 → 33504 by the entry-file slimming PR (four one-path blocks moved verbatim to references/dev-traps.md and references/dev-ablation.md, one pointer line left for each); before that: 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', 14209], // lowered 19558 → 14209 by the entry-file slimming PR (the bodies of §5 and §6 moved verbatim to the two reference files below, one pointer line left in each section) ['.claude/skills/checklist-test/references/closure.md', 4553], // new row, landed size, headroom 0 ['.claude/skills/checklist-test/references/standing-regression.md', 1261], // new row, landed size, headroom 0