Skip to content

Commit 6e8056c

Browse files
docs(fleet): entry-file pointers for in-flight and containment readings (#35237 slice 10) (#38222)
<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_ Part of #35237 (slice 10: carrier items 4, 12, 13, 15; the card keeps its other items) Clause-②: no Metadata-protocol: none Rule-change: none ## 维护者速读 - 用户无感:车队代理读的三份入口规则里,两处补上了「该用哪个现成工具」的指名,一处上限收紧到实际大小。 - 属于车队入口文件收口那张总卡的第十片,替派发席和开发代理省去自己摸索在飞检查与祖先判定的步骤。 - 只是规则文字与一个上限数字,出错时代理会读到旧指引,随时可以直接撤回。 - 无。 ## What changes - Item 4 — `.claude/skills/pm-dispatch/SKILL.md` 〈车道与域〉: the in-flight line now names its reader, `node scripts/pm/check-handover.mjs --inflight` (usage verified in that script's header and usage text: `--inflight --paths=PATH[,PATH…] [--card=N] [--repo=OWNER/NAME]`). Paid for in the same file by prose tightening on seven other lines; no rule, gate name or command removed. - Item 12 — `AGENTS.md`: the `git-history.mjs` paragraph now names the containment reading, `git-history.mjs ancestor` (usage verified: `ancestor --commit=SHA [--ref=origin/main] [--control=SHA]`). Paid for in the same file by trimming filler words in four nearby sentences ("actually", "simply", "really exists", "Better still, don't stage it at all"). - Item 13 — `scripts/pm/check-skill-line-ratchet.mjs`: the `.claude/agents/os-dev.md` CEILINGS row is LOWERED 33504 → 33500, the file's size at this head (headroom 0); row comment prepended in the file's own "lowered A → B by …; before that: …" style. No row is raised. - Item 15 — verified, no edit: `.claude/agents/os-dev.md` line 194 points at `references/dev-traps.md`〈浅检出上的祖先读数〉, and that block's line 24 ends 「现读 `git-history.mjs ancestor`」, so a reader following the pointer reaches the subcommand. `os-dev.md` is untouched. ## Byte table (ratcheted files, vs origin/main 9609c13) | File | before | after | net | ceiling | |---|---|---|---|---| | `.claude/skills/pm-dispatch/SKILL.md` | 33345 | 33342 | -3 | 33351 (unchanged) | | `AGENTS.md` | 78712 | 78709 | -3 | 78712 (unchanged) | | `.claude/agents/os-dev.md` | 33500 | 33500 | 0 | 33504 → 33500 (lowered) | Line counts of `AGENTS.md` and `SKILL.md` are unchanged. No volatile count is introduced. ## Tests No tested behaviour changed (a ceiling lowered to the measured size, and prose), so no ablation. The ratchet's own self-test runs inside `pnpm check:pm-skill-ratchet`. ## Acceptance notes - Not touched, left on the card: items 7-option-B, 8, 9, 14, 20, 21. - The ratchet prints tightening hints outside this slice's fence, left as they are: `SKILL.md` ceiling headroom 9 after this PR, the `AGENTS.md` table-row pin headroom 17 (pin 768, widest 751), and the `spec-property-retirement` pins. - No changeset: every path is on the fast track (`.claude/**`, `scripts/pm/**`, root instruction file); none ships in any package's `files[]`. `skip-changeset` is applied with the create. ## Verification <details><summary>Local gates at ed7e4f4</summary> - `node scripts/pm/overlap-check.mjs --branch=claude/issue-35237-slice10-entry-pointers`: `VERDICT clean exit 0` (merges cleanly onto origin/main). - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`: 46 commands derived; all 46 run, each exit 0 captured before any pipe. `pnpm --filter @objectstack/lint run check:doc-formula-expressions` first exited 3 (PREREQUISITE NOT MET, formula and lint unbuilt); after `turbo run build --filter=@objectstack/formula --filter=@objectstack/lint` under the verify lock (`VERDICT command-exit 0`) it exited 0. - `pnpm check:pm-skill-ratchet`: exit 0; `os-dev.md is 33500 bytes (ceiling 33500; headroom 0)`, `SKILL.md is 33342 bytes (ceiling 33351; headroom 9)`, `AGENTS.md is 78709 bytes (ceiling 78712; headroom 3)`. - `pnpm check:pm-dispatch-gates`: exit 0, `dispatch-gates self-test (fast tier): 2369 cases pass`. - `--ran` reconciliation: `46 derived famil(ies) accounted for — 46 run, 0 NOT-MEASURED`. </details> Read first: the `AGENTS.md` git-history paragraph (the only bold-rule wording change), then the SKILL.md in-flight line. Two-minute check: `pnpm check:pm-skill-ratchet` prints `.claude/agents/os-dev.md is 33500 bytes (ceiling 33500; headroom 0)`. --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 23fa361 commit 6e8056c

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
137137
- declared≠enforced 观察类 ⇒ 转 enforce-or-remove 通道;真 won't-fix 候选 ⇒ 逐卡进决策箱。
138138
- 派发与折叠检查时读半状态巡查锚的 H17 触发文件索引,与本次派发文件面求交。
139139
- 相交 ⇒ 按该 hold 评论的 rider/restart 条款处置:点名该单,顺手活列为申报过的增项。
140-
- 关闭即在同一笔摘掉 `pm:*` 状态标;`domain:*`、`area:*` 与 issue type 留下,归属不是状态。
140+
- 关闭即同笔摘掉 `pm:*` 状态标;`domain:*`、`area:*` 与 issue type 留下,归属非状态。
141141
- `state_reason` 与关闭理由一致:撤单/不做 ⇒ `not_planned`,重复 ⇒ `duplicate` + `duplicate_of`。
142142
- `Blocked-by:` 行是机器可 grep 的反向索引,一遍读喂三个职责,⛔ 只做第一件。
143143
- 三职责:上游关单放回解锁卡;按解锁扇出排序;在合并后的 ref 上重验回队卡文件面。
@@ -149,7 +149,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
149149
- 状态变更不过夜:标签无评论、assignee 无认领评论、结论只在 chat,都是半状态。
150150
- 半状态在结束会话(含限流悬挂)前补齐成对或回滚半边;report-only 巡查见守卫索引。
151151
- 等待他座位也是状态,写在卡上才存在(等谁、自何时),⛔ 不留在会话记忆。
152-
- P0 嫌疑的等待走紧急直接分诊通道,是义务不是选项。
152+
- P0 嫌疑的等待走紧急直接分诊通道,是义务非选项。
153153
- 代执行他人指令的关闭、摘标、回收认领,评论带出处三件:谁的指令、原话、在哪说。
154154
- 标签写恒四步:取现集 → 只增删目标 → 写合并集 → 回读 diff 对 union(现集, 增删)。
155155
- union 有而回读缺 = 被并发剥掉,重挂并报告。
@@ -177,13 +177,13 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
177177
| `repo:objectstack`(全仓调度,无 `domain:*` 标签) | 跨各域按座位贴点名的专题认领本仓卡;cloud 与安全公告除外;见 `references/lanes/objectstack.md` |
178178
| (无固定归属,按落点分诊) | `packages/apps/*`、`examples/*`(归它演练的子系统,测试基建见 devx 行)、`docs/audits/**` |
179179

180-
- 表未覆盖的包首次分诊时归类并走 PR 更新本表;新增或退役 `domain:*` 必须同批改本表。
180+
- 表未覆盖的包首次分诊时归类并走 PR 更新本表;新增或退役 `domain:*` 须同批改本表。
181181
- 退役 `domain:*` 只退流通,对象保留;`domain:engine`/`domain:services`/`domain:cli` 读作 `domain:server`。
182182
- `domain:*` 与队列只由分诊落笔;两例外:sub-issue 承父卡域、main-red 锚卡,免审计评论。
183-
- 无分诊审计评论 ⛔ 不得认领;车道席自分诊是上行规则的第三例外,住 `triage-duties.md`。
184-
- 派发前在飞检查:读 `pm:dispatched` 卡认领评论申报的文件面,本地求交、不另发查询。
183+
- 无分诊审计评论 ⛔ 不得认领;车道席自分诊是上行第三例外,住 `triage-duties.md`。
184+
- 派发前在飞检查 `node scripts/pm/check-handover.mjs --inflight`:读 `pm:dispatched` 卡认领申报的文件面,本地求交、不另发查询。
185185
- 越界只四通道:跟到底的越界面、无主阻塞项、main-red 锚卡、spec.md 搭车。
186-
- 合并队列是共享串行资源:车道买到的是并行编写,不是并行落地。
186+
- 合并队列是共享串行资源:车道买到并行编写,非并行落地。
187187
- 谁发现 flake 谁修或立单,⛔ 不绕行。
188188

189189
## 路径分叉
@@ -231,9 +231,9 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
231231
- ③ 显式禁令:前提不成立就报 fork,⛔ 不许硬做,也不许悄悄退回另一个选项。
232232
- 两条元判据,同族近似单默认不进决策箱。
233233
- ① 静默丢弃的声明并入既有拒收集;新支复用母单裁决直接入队,真实语义差异才重开。
234-
- 继承的是裁决连同理由;母单理由被实测为分支特有时本条不适用。
234+
- 继承裁决连同理由;母单理由被实测为分支特有时本条不适用。
235235
- ② 一个操作两个实现且行为不一致 ⇒ 带治理的一侧(权限闸、同意、去重、审计)胜出。
236-
- 另一侧改绑并删除,不是对齐也不是双写;反向裁只在产品语义明确要求时成立。
236+
- 另一侧改绑并删除,非对齐亦非双写;反向裁只在产品语义明确要求时成立。
237237
- 落卡/升级流程 ①:先刷新卡片前提,隔夜没动的卡默认按前提未经验证处理。
238238
- 卡上每条前提行自带一条 re-check 命令,复升级时逐条跑,零命中/变形的就地改写或撤卡。
239239
- ②:决策默认锚所属 issue(评论:速读中文、分析英文;挂 `needs-user-decision`、退出活动队列)。

‎AGENTS.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,25 +374,25 @@ touched, unrepaired by a plain rebuild because that rebuild is a cache **HIT**
374374
that package. Ablating a build tool is a sanctioned producer; `--force` writes the whole closure.
375375

376376
**Doing reverse verification ("revert the fix, watch the diagnostics")? Commit the fix
377-
FIRST.** Committed, restoring is `git checkout <your-branch> -- <path>`, out of a commit
378-
that really exists ([why](docs/agents/multi-agent-discipline.md#reverse-verification-against-an-uncommitted-edit)).
377+
FIRST.** Committed, restoring is `git checkout <your-branch> -- <path>`, out of a real
378+
commit ([why](docs/agents/multi-agent-discipline.md#reverse-verification-against-an-uncommitted-edit)).
379379
Prove any retyped change identical
380380
with `git diff` against a saved patch or `git hash-object <path>` (a matching `--stat`
381381
insertion count is **not** byte-identity), then re-run from the committed state so your
382-
red/green numbers are trustworthy.
382+
red/green numbers hold.
383383

384384
**⛔ And `git checkout <ref> -- <path>` STAGES what it retrieves — putting the file back
385385
with `cp` undoes only half of it**
386386
([why](docs/agents/multi-agent-discipline.md#what-a-checkout-from-a-ref-does-to-the-index)).
387387
Restore with `git checkout HEAD -- <path>` or
388388
`git restore --source=HEAD --staged --worktree <path>` — both reset index *and* tree —
389389
read `git status --porcelain` before you commit, and ⛔ never trust `git diff HEAD` alone
390-
after a checkout-from-ref. Better still, don't stage it at all:
390+
after a checkout-from-ref. Better, stage nothing:
391391
`git restore --source=<ref> -- <path>` (no `--staged`) writes the tree only, a lone
392392
unstaged `M`.
393393

394-
**A windowed history question ("how many commits on `<ref>` in `<window>`") goes through
395-
`scripts/pm/git-history.mjs` — answer, or REFUSE**
394+
**A windowed history question ("how many commits on `<ref>` in `<window>`"), or a containment
395+
one (`git-history.mjs ancestor`), goes through `scripts/pm/git-history.mjs` — answer, or REFUSE**
396396
([why](docs/agents/multi-agent-discipline.md#windowed-history-on-a-shallow-clone)). `historyHorizon()` is the
397397
read-only predicate for tools that answer their own question.
398398

@@ -806,7 +806,7 @@ skipping a check it could not run) is worse than no verifier, because it reports
806806
success. Prefer failing to falling back.
807807

808808
**4. Machine-readable surfaces must not lie.** `/discovery` and friends are read by
809-
SDKs, codegen and AI clients. Advertise only what is actually mounted, and mount
809+
SDKs, codegen and AI clients. Advertise only what is mounted, and mount
810810
everything advertised (ADR-0076 D12) — a wrong answer here propagates into everything
811811
built on top of it.
812812

@@ -946,7 +946,7 @@ no baseline and no verdict.
946946
## Startup registry reads — never record a verdict the boot can still contradict
947947

948948
A boot fills its registries incrementally. Asking a registry "is X there?" while it is
949-
still filling is fine — the answer is simply not final yet. Turning that not-yet into a
949+
still filling is fine — the answer is not final yet. Turning that not-yet into a
950950
**verdict and recording the verdict** is the defect, because the provider registers a
951951
moment later and nothing goes back to undo the record.
952952

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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', 33504], // 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', 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
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)