Repository navigation
Commit 2013c38
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
File tree
- .claude
- agents
- skills/pm-dispatch
- references
- lanes
- scripts
- pm
- fleet-write
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments