Skip to content

Commit 49d0a25

Browse files
committed
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-<n>-<slug>-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 <noreply@anthropic.com>
1 parent e42520c commit 49d0a25

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ model: opus
100100
5. **整条流水线在前台跑。** build 与 test 都是本任务的步骤:阻塞运行、读真实输出、继续。
101101
- 宿主事实:你启动的后台作业、watcher、你请求的通知都不会唤醒你;结束一轮就是结束。
102102
- 每个可编译小步即 commit + push;有可展示内容即开 draft PR;接管只认远程分支最后 sha。
103+
- 工作分支收不下的已完成提交(会改动其上 open PR、拆分留后的一半、停在裁决或审核上)⇒ 当即推无 PR 备份分支 `claude/issue-<n>-<slug>-wip`。
104+
- 常设许可,⛔ 不问、不开决策卡;⛔ 永不从它开 PR 或合并它;其工作落地即删,删不掉(`readings-session.md`)⇒ 报告点名待删。
105+
- 例:卡线程的平台分支挂着前半的 open PR ⇒ 后半做完不问,`git push origin HEAD:refs/heads/claude/issue-<n>-<slug>-wip`。
106+
- ⛔ 一轮结束不留只在本地的工作:停下等 CI、审核、裁决或合并前,每个 commit 已在远端分支,报告点名它。
107+
- 交接、报告与记忆点名工作只用远端分支与 sha,⛔ 不用本地分支或容器路径。
103108
- 带具名缺口的 PR 是交付进行中的常态,未读到的判决写 `NOT MEASURED: <family>, reason: …`。
104109
- 平台事实:容器把前台命令钉在约 10 分钟上限,超时 SIGTERM 杀掉(`exit 143`)。
105110
6. **排队不是停摆,在轮内主动等。** 持锁的是你不拥有的进程,其完成同样不会唤醒你。

‎.claude/skills/pm-dispatch/references/area-lease.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161

6262
## 交接与换号
6363

64-
- 用量近 80% 即交接:停派任何级;在途推完,每条分支留 draft PR;余照 `seat-post-protocol.md` 清单。
64+
- 用量近 80% 即交接:停派任何级;在途推完,每条工作分支留 draft PR;余照 `seat-post-protocol.md` 清单。
6565
- 交接与各区现状落座位贴评论:所有权、open PR、下一步、待批、坑;⛔ 不只留项目或记忆。
66+
- PR 收不下的提交推 `-wip` 备份分支,交接只点名远端分支与 sha:条文住 `os-dev.md` 资源纪律 5。
6667
- 新旧账号重叠时座位贴写所有权切分:旧号持有的 PR 清单与新号可取集;新号只取后者。

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
- 线程首报带实供档(核对步住 `os-dev.md`),席位写进认领 Container & model 行;与令不符 ⇒ 席位定夺前不开工。
134134
- 席位写 assignee+`pm:dispatched`+带该 `Branch:` 的认领。
135135
- worktree 照建;线程读 `os-dev.md`、派发令、卡与全部评论,⛔ 不读 `SKILL.md`;references 按需读。
136+
- 平台分支收不下的提交推 `-wip` 备份分支、交回只点名远端分支与 sha:条文住 `os-dev.md` 资源纪律 5,派发令 ⛔ 不另写。
136137
- 交回:PR 与报告落地后给席位线程发一条消息(PR、head、报告要点);L1/L2 期线程不关,接 FAIL。
137138
- 线程每推后 10 分钟核 Actions 已起、非 `dirty`(冲突 PR 不起 CI),否则合 main 重推;等 CI 必留 `send_later` ≤30分钟兜底。
138139
- 席每轮读在飞卡 PR `pr-state.mjs`:推后 30 分钟零 Actions、`dirty`、2h 无推无报 ⇒ 当轮叫醒线程,⛔ 互等。

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

Lines changed: 3 additions & 3 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', 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)
85-
['.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
85+
['.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
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', 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([
105105
['.claude/skills/pm-dispatch/references/true-green.md', 2068],
106106
['.claude/skills/pm-dispatch/references/compile-surfaces.md', 2488],
107107
['.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
108-
['.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
108+
['.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
109109
['.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
110110
['.claude/skills/pm-dispatch/references/untrusted-text.md', 3280],
111111
['.claude/skills/pm-dispatch/references/security-findings.md', 3934],
@@ -136,7 +136,7 @@ export const CEILINGS = new Map([
136136
['.claude/skills/pm-dispatch/references/lanes/queue.md', 2003],
137137
['.claude/skills/pm-dispatch/references/lanes/cloud.md', 1232],
138138
['.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
139-
['.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
139+
['.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
140140
['.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)
141141
['.claude/skills/checklist-test/references/closure.md', 4553], // new row, landed size, headroom 0
142142
['.claude/skills/checklist-test/references/standing-regression.md', 1261], // new row, landed size, headroom 0

0 commit comments

Comments
 (0)