Skip to content

Commit 2013c38

Browse files
docs(pm-dispatch): split the platform readings by subject; platform-readings.md becomes their index (#35337)
<!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Warren, Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgXFRsfSS1tQB1kBxAZ86579)_ Fixes #35236 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感——只改车队内部的工作手册,产品和对客户发布的内容一行没动。 - 为什么做:车队查一条平台实测事实,要翻一整份四百多行的大表;现在按主题拆成九份小表加一页目录,每次只读手头那一份,读得少、找得准。这是此前同意的技能评审改进顺序的第五步。 - 出错会怎样:最坏是某个席位顺着旧指路多翻一页目录;每条事实原样搬过去、一条没删,已逐条比对。整体撤回即完全复原。 - 要你做什么:无(可能已过时的几条读数,另附保留/删除清单单独请你定,不在本次)。 ## What changes `.claude/skills/pm-dispatch/references/platform-readings.md` (458 lines) is split by subject. Every reading moves **verbatim** into nine files beside it; the old file keeps its discipline line and becomes a 14-line index: | File | Lines | Subject (old line ranges) | |:--|--:|:--| | `readings-queue.md` | 89 | queue membership, auto-merge, dequeue, landing (7–89, 359–361, 416) | | `readings-channels.md` | 76 | quota, REST/MCP/GraphQL channels, token classes, suspension (93–162, 210–213) | | `readings-page.md` | 21 | zero-quota public page reads (163–181) | | `readings-search.md` | 43 | dedupe search false zeros, list union and truncation, pagination (182–209, 214–218, 253, 258–264) | | `readings-issue-fields.md` | 27 | labels, assignees, comment counts, issue type (219–239, 250–252, 254) | | `readings-write-shapes.md` | 84 | body read artefacts, write-side sanitizer, footers, closing keywords (240–249, 307–358, 402–408, 426–437) | | `readings-ci.md` | 48 | red checks, the required-check set, gate readings (285–306, 388–401, 410–415, 417–418, 420–421) | | `readings-shell.md` | 25 | shell and git traps, permission classifier, tooling (265–284, 409, 419, 422) | | `readings-session.md` | 51 | container restart, probe branches, served tier, harness limits, 5-hour wall (362–387, 423–424, 439–458) | Pointers: every pointer that named a section of the old file now names the subject file: `SKILL.md` (one line), `os-dev.md`, `AGENTS.md`, `area-lease.md`, `landing-operations.md` (3), `reading-discipline.md`, `rest-channel.md` (6), `triage-duties.md`, `lanes/director.md`, `lanes/server.md`, and the script comments and messages in `post-stamped.mjs`, `label-write.mjs`, `rerun-failed.mjs`, `fleet-write/ops.mjs`, `fleet-write/dispatch.mjs`, `check-half-states.mjs` (comment, message and its H64 pin) and `check-governed-queue-guard.mjs` (two remedy texts and the pull-back pin). The old file still exists as the index, so a pointer to the file itself still resolves. Gate wiring that had to follow the content: - `scripts/check-required-contexts.mjs`: the `statesTheSet` surface and its self-test `LEDGER_SURFACE` now read `readings-ci.md`, where the eleven required-check names went. - `scripts/pm/check-skill-line-ratchet.mjs`: `platform-readings.md` ceiling 458 → 14 (a lowering); nine new rows at their landed counts, headroom 0; nine `MAX_TABLE_ROW_BYTES` pins at 0 (no file has a table). Round 2 (head `803f13aafd`): `rest-channel.md`:64 said "see the quota section" without a file name; that section of the old file is now `readings-channels.md`, and `rest-channel.md` has no section of that name, so the pointer resolved nowhere. It now names `readings-channels.md`, inside the 120-byte line cap (119 bytes) and the file's line ceiling (82, unchanged). **Look first** (by risk): 1. `scripts/check-required-contexts.mjs`: the two path swaps, which move the required-check enrolment from the old file to `readings-ci.md`. 2. `scripts/pm/check-skill-line-ratchet.mjs`: the ten `CEILINGS` rows and nine `MAX_TABLE_ROW_BYTES` pins. 3. `.claude/skills/pm-dispatch/references/triage-duties.md`:105: the ceiling-raise exception 例外一 now names `readings-*.md` instead of the one old file. **Two-minute check:** `node scripts/pm/check-skill-line-ratchet.mjs` — expect every `readings-*.md` row and the index green at headroom 0, and the cross-file move into `platform-readings.md` reported as paid down (ceiling 14, below the 314 it moved from). ## Possibly stale readings (for the maintainer, not dropped) All kept verbatim in this PR. They go to the maintainer with the keep/delete list of the current-values card, as one question; nothing here decides them. 1. `readings-shell.md`:14 and `readings-channels.md`:47 say the container has no `gh`. Measured in this cloud container: `command -v gh` answers `/usr/local/bin/gh`. 2. `readings-queue.md`:43–44 and `readings-channels.md`:63 are readings of the ccr route for undraft and arming; line 43 itself says that route is retired (已退役) and undraft and arming go through relay ops. 3. `readings-queue.md`:40 and `readings-write-shapes.md`:42 describe the MCP `update_pull_request` channel, which the lines themselves say lock 1 refuses (「读作历史」). 4. `readings-channels.md`:34–38 and 40 (token classes `claude[bot]` vs user, two dated account flips): fleet writes now land through the relay as the fleet bot, so the signature readings no longer describe the seat write path. 5. `readings-write-shapes.md`:65–66: footers under MCP `issue_write` create and update; seats and devs make no MCP writes now. 6. `readings-channels.md`:29: REST `rerun-failed-jobs` 403 vs MCP 201; re-runs go through the relay's `run_rerun_failed` (`readings-ci.md`:5). 7. `readings-session.md`:37–38: Routine sessions and the `connectors` parameter; line 39 marks it unmeasured (⛔ 未实测). ## Tests Local gate subset on head `803f13aafd`, derived by `node scripts/pm/dispatch-gates.mjs --commands` (no paths; change set from merge base `81c094779`), plus `check-published-list-mirrors` (AGENTS.md is touched) and `check-nul-bytes`: 82 commands, exit codes captured before any pipe. - 79 of 82 exit 0, among them `pnpm check:pm-skill-ratchet` (self-test + run), `pnpm check:pm-skill-id-lint` (129 files clean), `pnpm check:required-contexts` (self-test 190 assertions; 11 contexts pinned, 5 instruction surfaces scanned), `node scripts/check-published-list-mirrors.mjs` and its `--self-test` (37 cases), `pnpm check:pm-half-states`, `pnpm check:pm-post-stamped`, `pnpm check:pm-label-write`, `pnpm check:pm-fleet-write-dispatch` (dispatch + rerun-failed self-tests), `pnpm check:pm-fleet-write-execute`, `node scripts/pm/check-governed-queue-guard.mjs --self-test`, `pnpm check:skill-frame-sync`. - `pnpm check:pm-dispatch-gates`, run detached: `✓ dispatch-gates self-test (fast tier): 2249 cases pass; 9 slow section(s) deferred`, 494.4 s, exit 0. - NOT MEASURED, exit 3 PREREQUISITE NOT MET (no build in this worktree; CI builds first): `check:doc-formula-expressions` (`@objectstack/formula`, `@objectstack/lint` unbuilt) and `check:i18n-coverage` (CLI unbuilt). Neither reads a file this PR changes. - Exit 1, not from this diff: `check:platform-checklist` — `platform-core.seed-mode-matrix: VARIANTS STALE — SeedMode ... now has 0 members`, a reading of an unbuilt `packages/spec`. This PR touches no spec or checklist file, and CI's `Platform checklist gate sweep` and `Lint & Repo Gates` are green on this head. CI on `803f13aafd` at the time of writing: `Lint & Repo Gates`, `TypeScript Type Check`, `Governed Surface Queue Guard`, `Test UI`, `Dogfood Regression Gate`, `Platform checklist gate sweep`, `PR-body guards` success; `Test Core` in progress; Build Core and the UI build lanes skipped by the selector. ## Acceptance notes - **Corpus size:** 458 lines before, 478 after (+20): one title and one blank per new file, plus the index. A run now reads one file of at most 89 lines instead of the 458-line table. The existing cross-file move into `platform-readings.md` reads "paid down" because its destination fell to 14. - **Ruled-raise exception:** `triage-duties.md`:105 (例外一) now names `readings-*.md`. Its `ruledRaises` record still sits on the `platform-readings.md` move entry in the ratchet; where a future raise on a subject file is booked is left to the byte-ratchet card, which edits the same script. - **Overlap** (`node scripts/pm/overlap-check.mjs`, head `803f13aafd`): merges cleanly into `origin/main` and with #35335; #34110 conflicts on `triage-duties.md` (its own edit near line 105). The byte-ratchet card (#35229) edits `check-skill-line-ratchet.mjs` and queues behind this PR by design; whichever lands second re-applies its rows. - **Ratchet booking deferred to the byte-ratchet card:** the missing per-file `CROSS_FILE_MOVES` declarations for the readings split and the stale 444-line paid-down credit on the `platform-readings.md` declaration (contract review S2) are recorded as owed by #35229 when it re-measures after this PR lands — comment 7001508654. - **Left unchanged on purpose:** literal paths of the old file in `check-governed-merges.mjs`:7001 and `check-governed-queue-guard.mjs`:3696 (records of a past PR's file list) and :5436 (a Tier S path fixture); the historical ruling quotations and ceiling records in `check-skill-line-ratchet.mjs`; and its comment at :1219 ("the policy lives in platform-readings.md's quota section"), which reaches the policy through the index. The file still exists, so these stay true. ## Verification <details><summary>Verbatim move — every reading byte-identical</summary> Sorted multiset of non-blank lines, old file (at merge base `81c094779`; unchanged on `origin/main` since) against the nine files plus the index: 447 old, 463 new. Only in old: the title and the three section headings (`## 队列成员资格与 auto-merge`, `## API 配额`, `## 读数陷阱`). Only in new: the nine file titles, the index title, and the index's lead line and nine list rows. Every other line matches byte for byte. Item-level check (a bullet with its continuation lines as one unit): 439 old items, 0 missing, 0 changed; the 10 extra are the index's own lines. </details> <details><summary>Pointers resolve</summary> `git grep platform-readings` after the round-2 fix: the index's own line in `reading-discipline.md`, the historical records and fixtures listed under Acceptance notes, and the ratchet's ceiling rows and ruling quotations. No hit names a section the index no longer holds except the ratchet comment at :1219 (left, see above). `git grep` for the old section names (`配额段`, `队列段`, `读数陷阱`, `队列成员资格与 auto-merge`) outside verbatim ruling quotations: none after the fix. Every `readings-*.md` name a pointer uses is one of the nine files, and each swapped pointer was read against the file it now names (dequeue and arming readings in `readings-queue.md`, token classes and the red window in `readings-channels.md`, the bare `#N` expansion and footer shapes in `readings-write-shapes.md`, the log-first rule and re-runs in `readings-ci.md`, served tier in `readings-session.md`, the payload tier in `readings-page.md`). </details> ## Human Minimum - [x] 1. Schemas start as Zod — no schema touched. - [x] 2. No new names beyond the file names. - [x] 3. No formatter ran. - [x] 4. One issue, one branch, one pull request. - [x] 5. Nothing published (`.claude/**`, root scripts, `AGENTS.md`) ⇒ `skip-changeset`; both declaration lines filled. - [x] 6. `packages/spec` untouched. - [x] 7. No hand edits to generated docs, changelogs or release pages. - [x] 8. English, apart from the maintainer brief and verbatim quotes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Utp6CaAqjP52wVTzs99H5G <!-- signed: repo:objectstack#5 · os-bill · session_01Utp6CaAqjP52wVTzs99H5G --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2e9e1ac commit 2013c38

29 files changed

Lines changed: 540 additions & 495 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ model: opus
6161
- 拼法不限于 `env`、`printenv`、`set`、`export -p`、`echo $VAR`、`cat /proc/*/environ`。
6262
- 判存在只用不印值形式 `[ -n "${X+x}" ] && echo set`;已印出 ⇒ `deviations` 只点名变量名。
6363
- 写预算三笔:`git push`、`pr_create`(draft,含 labels/assignees)、`os-dev-report`;卡线程另改正文。
64-
- 卡与线程只走 payload 档(公开仓单卡网页内嵌 JSON,拼写住 platform-readings)或单卡 REST 读。
64+
- 卡与线程只走 payload 档(公开仓单卡网页内嵌 JSON,拼写住 readings-page)或单卡 REST 读。
6565
- 三类发现进报告交席位代立,不 `POST /issues`、⛔ 不静默弃报;PM 去重读数当既有事实用。
6666
- PR 正文子代理只在 `pr_create` 写、⛔ 不 PATCH 由席代写;卡线程照 `dispatch-runbook.md` 自改。
6767
- 报告记 `api_writes`(次数 + 端点清单)与 `mcp_calls`;越界真写了的照列注明缘由,⛔ 不漏记。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
154154
- 标签写恒四步:取现集 → 只增删目标 → 写合并集 → 回读 diff 对 union(现集, 增删)。
155155
- union 有而回读缺 = 被并发剥掉,重挂并报告。
156156
- PM 写进 GitHub 的文本 ⛔ 不用尖括号路径占位符,改写成后跟显式路径的说法。
157-
- 携带易损片段的评论(派发令与裁决)post 后读回;写侧形状见 `references/platform-readings.md`。
157+
- 携带易损片段的评论(派发令与裁决)post 后读回;写侧形状见 `references/readings-write-shapes.md`。
158158

159159
## 域车道
160160

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
- 同系列卡可从前卡分支起步(AGENTS.md §2 主干形,⛔ 不叠 PR);新测试建按卡命名的新文件,
4242
AGENTS.md 共享 harness 规则适用时除外,由重叠检查定排队。
4343
- 席线程只协调,⛔ 不读 diff 与日志;ACCEPT 欠的自读(`contract-review.md`、〈路径分叉〉)除外。
44-
所落 PR 欠的红检查读日志(`platform-readings.md`)派子代理读,一读兼守本条与该文。
44+
所落 PR 欠的红检查读日志(`readings-ci.md`)派子代理读,一读兼守本条与该文。
4545
- 每区恒 2 dev,空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
4646
- 席每轮逐区查;取卡照点名范围次序,p0/p1 插队;p3 留收口或搭同文件 PR 成批(每 PR ≤5 卡)。
4747
- 同函数互相牵连的卡合一 PR,准入照 `execution-duties.md` 折叠五门,额度墙亦照该文。

‎.claude/skills/pm-dispatch/references/landing-operations.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
- 逾 3,000 行须授权批准在现 head,或维护者非席位签名评论点名现 head 承接(`approval_comment`)。
3636
- 出队(中继 `pr_dequeue`)限三因:(a) 与基座冲突;(b) 自身改动致队列构建红,三事实判非 flake;
3737
(c) PR 正文签名尾行之席以签名评论自请。审计评论在先,回读离队且仍开未合才落地。
38-
- 该 op 实测离队见 `platform-readings.md`;在队受管面 PR 亦由落地席发(Prime Directive #14)。
38+
- 该 op 实测离队见 `readings-queue.md`;在队受管面 PR 亦由落地席发(Prime Directive #14)。
3939
- 谁入队谁看护:冲突或自因被踢 ⇒ 一轮巡查内出队修复再入队;他人 flake 照四分支重投。
40-
- PR 侧红(非队列)同在本窗口处置:义务与三步只住 `platform-readings.md`「红检查先读日志」。
40+
- PR 侧红(非队列)同在本窗口处置:义务与三步只住 `readings-ci.md`「红检查先读日志」。
4141
- 挂 auto-merge/入队前读 K = `git rev-list --count --first-parent PRBASE..origin/main`。
4242
- PRBASE = 末次绿 PR 跑 Test Core 所印 `Affected-set diff base`,⛔ 不取该跑起始时刻。
4343
- K ≥ 15 ⇒ 先 merge main 等重跑绿,`behind` 例外;任何 K 同:标签 PR 的 PRBASE 后 main 落新语种包;
@@ -68,7 +68,7 @@
6868
- ⛔ 两层不由席位批准;清标即落地同受此闸,漏判会被队列守卫在 merge group 里拒收。
6969
- 挂 auto-merge 的同一动作里重测生成物漂移,⛔ 不复用更早的零;非零 ⇒ 按 A 的固定序。
7070
- 零 `enqueued` 事件按序查三条:① `mergeable_state` 是否 `dirty`。
71-
- ② enable-auto-merge 调用根本没落地,重发与效果验证序列见 `platform-readings.md`。
71+
- ② enable-auto-merge 调用根本没落地,重发与效果验证序列见 `readings-queue.md`。
7272
- ③ PR 碰 `.github/workflows/**`:令牌常驻 `workflows: write`(裁决评论 6104822731),仍拒即授权漂移。
7373
- MERGED 同笔收口:`Fixes` 卡代关亦摘标;`Part of` 卡剩余物落其车道一态并清 assignee。
7474
- 一态 = `pm:queue`+其车道 `domain:*`(归他车道即改域)/`pm:blocked`+`Blocked-by:`/hold+`Restart-when:`。

‎.claude/skills/pm-dispatch/references/lanes/director.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- 入口:维护者说处理决裁或处理 contract-review,或 `/pm-dispatch director`;接分诊交来的降级释放。
1717
- 未回字 = 不在 = 停,⛔ 无巡检、审计、快照、聊天、卡评论。
1818
- 回来后先补跑审计与重挂复位一次,再只发一行「批 #N 待字;箱内另有 K 张新到未呈」。
19-
- 开场读一次服役档记入会话审计行,读法见 `../platform-readings.md`;⛔ 不因档位拒裁停三职。
19+
- 开场读一次服役档记入会话审计行,读法见 `../readings-session.md`;⛔ 不因档位拒裁停三职。
2020
- 双射 carve-out:一张 `pm:seat` 座位贴,四段照旧;状态块逐场一行,各记己锚,⛔ 无占席人。
2121
- 不占 `domain:*` 车道,范围按职责标签跨车道跨仓;永不认领 backlog、永不写码。
2222
- 改 skill、指令或治理文本归 skills 席;出裁决、清 L2 标、清点待人工清单归本席。

‎.claude/skills/pm-dispatch/references/lanes/server.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
### 常设承诺
7373

74-
- PR 侧绿不等于队列侧绿;队列分支条目名、队序重建与出队滞留住 `../platform-readings.md`。
74+
- PR 侧绿不等于队列侧绿;队列分支条目名、队序重建与出队滞留住 `../readings-queue.md`。
7575
- `dispatch-gates.mjs` 只报路径推导的地板;条款②从卡内容判,只定 L2 档不定施工档。
7676
- 已知盲区:它不点名 `pnpm lint` 族 ⇒ 本车道派发令恒补一句跑 `pnpm lint`。
7777
- ⛔ 永不削弱门禁:棘轮上跳是门禁在报你的改动有缺陷。

0 commit comments

Comments
 (0)