Repository navigation
Commit d55ee70
fix(pm): dispatch-gates reads a row's chain links, judges a lost spread row by its spreaders, and rows the residue pins and the value-set census (#38574)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
Part of #38362
Clause-②: no
Metadata-protocol: none
PR 2 of the card (claim amendment 7253820258): the residue PR #38474
left on it. Every scoped item is fixed with a self-test case, and the
value-set census is measured by a run and rowed. `Part of`, not `Fixes`:
card members outside this PR's scope are still unrowed (Acceptance
notes, "Left on the card").
## 维护者速读
- 用户无感:只改仓库自己的派发检查工具。改了规格里某个字段清单或取值清单的开发者,现在会在本地清单里看到更多该跑的测试,少一轮白跑的 CI。
- 为什么做:派发门禁的「整套钉子」收尾工作,上一个 PR 留下的八条小问题和一次取值清单普查。
- 出错会怎样:最坏是给开发者多列或漏列几条测试命令,CI 仍会兜底;可以直接撤回。
- 要你做什么:这是受管的检查工具文件,需要你审批后由席位落地。
## What changes
- **N1, a chain link after a rowed literal.** The engine reads the CHAIN
a row's literal sits in beside the literal (`declaredChainLinks`): every
link before or after the row's call that can move the set, each by its
name and its literal's members, and the root name. Key-neutral links
(describe, refine, superRefine, the unknown-key policy, optionality,
`overwrite`) are skipped; a name nobody classified is read, so it reads
wide. A row's reading is now its members plus its chain
(`declaredRowReading`).
- **N2, a lost place on a spread row.** A spread row the reader cannot
read (renamed, file deleted) is judged like a moved spread row: it
derives the pins whose declarations spread it at either side, and any
pin whose spreader cannot be read. Before: all 32 `throughSpreads` pins.
Now: 3 for the protection fields, 2 for the nav base.
- **N4, the list view entry's own keys.** `ListViewPageProps` (the
`list-view` entry of ComponentPropsMap) has its own row on the
registry-inputs pin. The list view shape is now a spread row
(`ListViewSchema.shape`, read from `ListViewShapeSchema`'s literal) that
the entry reaches through its spread.
- **N5, the regen driver table.** `scripts/regen-artifacts.mjs` derives
`os-regen-merge.sh --self-test` on any edit. The self-test imports that
module and holds three things off it: it loads, its `mixed:` rows equal
`OS_REGEN_CLASSES` both ways, and one `NOT_DRIVER_MANAGED` row is
present. The run takes seconds and needs no build, so this reads wide on
purpose.
- **N7, bare LIVE spellings.** The nine bare-name spellings now each
match the test's whole-set assertion. A new case refuses any spelling
that names no call or member read.
- **N8, the separator arm.** `SeparatorNavItemSchema` (strictObject,
argument 1) is rowed on the nav target pin.
- **N9, a reorder of the union's arms.** The declarations docblock now
says this is a miss and not a quiet green: the doc arm's test holds the
discriminators in order, and `declaredKeySet` sorts every row.
Documentation only, as the card says.
- **N10, the translation groups.** A row `{ declares:
'appTranslationDataShape', call: '=> ', argument: 0 }` reads the 19
per-app groups. A new pin, `translation-groups-key-set`, derives
`TranslationPreview.categories-11765.test.tsx`. The self-test has a
fixture branch for the arrow row, and the old "no literal a row can
address" reason is reworded.
- **Value-set census.** Measured by search and then by run (Acceptance
notes). Eleven more holders went red on a value added, and each is rowed
as a pin: six package tests and five ui tests.
The pin table goes from 33 to 45 pins: one for the translation groups
and eleven from the census.
## Tests
All readings below are against this repository. The self-test and probe
runs are at `a4af31ab3f` (the head this PR opens with), except where a
line names `d64541cf51` (origin/main, PR 1's merge).
<details><summary>Self-test, fast tier: 2686 of 2686 pass</summary>
`OS_VERIFY_LOCK_SLOT=… bash scripts/pm/os-verify-lock.sh -c 'node
scripts/pm/dispatch-gates.mjs --self-test --fast'` at `a4af31ab3f`:
```
✓ dispatch-gates self-test (fast tier): 2686 cases pass; 9 slow section(s) deferred.
os-verify-lock: VERDICT command-exit 0 · held the lock 429s
```
The nine slow sections are not run locally. CI's `Lint · PM
dispatch-gates` runs both tiers. No new case is inside a `slow(` block.
</details>
<details><summary>Red before, green after: each item's predicate, probed
on main and on the head</summary>
The probe imports the engine and the data through their injectable
readers and makes one edit to each live file. It reads which pins fire.
A new self-test case asserts each of these answers.
| Item | Edit | `d64541cf51` (main) | head |
|:---|:---|:---|:---|
| N1 | `.omit({ from: true })` appended to `EmailServiceConfigSchema` |
no pin | `email-config-key-set` |
| N1 | `.pick({ name: true })` appended to the manifest chain | not
probed on main | `template-manifest-key-set` |
| N2 | `MetadataProtectionFields` declaration renamed | 32 pins | 3
(field, object reference, served type) |
| N2 | `BaseNavItemSchema` declaration renamed | 32 pins | 2 (both nav
pins) |
| N4 | a key added to `ListViewPageProps`' own literal | no pin |
`registry-inputs-key-set` |
| N5 | a `mixed:` field added to a `REGEN_ARTIFACTS` row | not derived |
derived |
| N8 | a key added to `SeparatorNavItemSchema` | no pin |
`nav-target-key-set` |
| N10 | a group added to `appTranslationDataShape` | no pin |
`translation-groups-key-set` |
| N7 | the bare-spelling census | 9 bare | 0 bare |
Controls at the head, all fire no pin: a comment appended to the email
config; a `.refine()` appended to it; a `.superRefine()` appended to
`ListViewPageProps`; a `describe()` reworded in the separator arm, in
the list view entry and in the translation groups; two union arms
swapped (N9, documented). A key added to `ListViewShapeSchema` still
fires `registry-inputs-key-set`, now through the spread row. The arrow
re-spaced reads wide (`translation-groups-key-set`), as stated. On main
the N7 census would list the nine bare spellings, so its new case fails
there.
</details>
## Acceptance notes
**Value-set census (the card's last scoped item), measured.** All
readings are at `d64541cf51` plus this branch's rows, which no test
reads.
- **Search.** Over the 14698 tracked test files outside `packages/spec`,
I searched for every file that enumerates one of the nine enums with a
row: `.options`, `enumOptions(…)`, or `Object.keys` / `Object.values` /
`Object.entries` of the enum, under any import alias. That finds 81
files: FieldType 49 (30 under `packages/`), ChartTypeSchema 18,
ExplainOperationSchema 5, ColumnSummarySchema 3,
ChartAggregateFunctionSchema 2, NotificationPositionSchema 2,
NotificationTypeSchema 2, ReportType 1, BulkActionOperationSchema 1.
Some files hold more than one enum.
- **Run.** The five explain-verb files are set aside: three are rowed,
and two are dogfood tests, which run only in the queue's dogfood shards.
The 76 others ran under the verify lock after the closure build: 32
package files, run per package, and 44 ui files. On the unchanged tree
all 76 passed. I then added one value each to FieldType,
ChartTypeSchema, ChartAggregateFunctionSchema, NotificationTypeSchema
and ColumnSummarySchema, rebuilt the spec dist and ran them again: 22
failed. 11 of the 22 were already rowed. The other **11 are new holders
and each is now a pin**:
- packages: `cli` generate-string-family-width.pin; `lint`
validate-react-page-props, which holds the aggregate list in order;
`objectql` record-validator.single-value-blank; `plugin-audit`
audit-seal-chain-field-34164 and audit-seal-rules; `service-analytics`
aggregate-nontemporal-measure-refusal.
- ui: object-chart-declared-families-11513 and
object-chart-spectype-routing-11520 (plugin-charts);
inlineEditTypeCoverage (plugin-detail); notification-surfaces
(components); AddWidgetPicker.oneRegistry-26745 (app-shell).
- **Stayed green: 54.** Two of them, the bulk-operation and
toaster-position pins, are rowed holders of enums the run did not touch.
Those enums, and ReportType, are enumerated only by files that are
already rowed. The other 52 go through the values without holding the
set: the code handles the probe value by default.
- **Not run:** the two dogfood explain tests (named above).
The spec source was restored with `git checkout HEAD --` on the four
files, and the dist rebuilt. `git status --porcelain` read empty
afterwards.
**Left on the card** (outside this PR's scope; why the PR says `Part
of`):
- the rest of ComponentPropsMap's props schemas the registry-inputs
parity walks (three are rowed: the list view entry with the shape it
spreads, the record picker and the text input);
- `page-nav-misc` and `report-chart-query`, whose suite reads the spec's
declaration files (not measured);
- the two dogfood tests that hold the explain verbs (no gate binding
here names the dogfood shards).
**Boundaries, stated in the docblocks:**
- A row reads a set, so a reorder derives nothing. That covers the
union's arms (N9), the pool block and the translation groups (the
preview's card order also reds on a reorder).
- An arrow re-spaced so that `=> (` no longer matches reads null and
derives the pin wide, never quiet.
- The census probe added one value per enum. Green means green for that
value. A value of another shape (one a code default does not cover) can
still red an unrowed file.
## Verification
<details><summary>Local gates: 61 of 63 derived families run, 60 exit 0,
1 NOT MEASURED, 1 narrowed to its fast tier</summary>
`node scripts/pm/dispatch-gates.mjs --commands` derived 63 families for
this diff at `a4af31ab3f`. I ran each one, exit code captured before any
pipe, except `pnpm check:pm-dispatch-gates`. The `--ran` reconciliation
reads:
```
Run reconciliation — 63 derived, 61 run, 1 NOT-MEASURED, 1 UNRUN.
⛔ UNRUN (1) — pnpm check:pm-dispatch-gates [absent from the run record]
NOT-MEASURED · DERIVED (1) — pnpm check:i18n-coverage [recorded exit 3 — PREREQUISITE NOT MET]
```
- **Declared narrowing:** `pnpm check:pm-dispatch-gates` runs both
tiers, which takes longer than the container's foreground cap. Locally
it is replaced by `--self-test --fast` (2686 pass, above). The nine slow
sections are CI's verdict, in `Lint · PM dispatch-gates`.
- `pnpm check:i18n-coverage` exited 3 (prerequisite not met: it needs
every linted config's workspace closure built). NOT MEASURED locally.
CI's `Lint & Repo Gates` runs it.
- The other 60 exited 0.
</details>
Changed lines: 657 (+588 / -69), under the 3000 human-merge threshold.
**Files to read first (by risk):**
1. `scripts/pm/dispatch-gates.mjs`: `declaredChainLinks` and the
`changesServedKeySet` loop (the lost-place branch on a spread row).
2. `scripts/pm/dispatch-gates.data.mjs`: the `ListViewSchema.shape`
spread row (it replaces the `ListViewShapeSchema` schema row) and the
eleven census rows' `why` texts.
3. `scripts/pm/dispatch-gates.self-test.mjs`: the new residue cases
after the navigation census.
**Two-minute check:** `node scripts/pm/dispatch-gates.mjs --self-test
--fast`. Expect `✓ dispatch-gates self-test (fast tier): N cases pass`,
with the residue cases among them (search for `lost place`,
`EmailServiceConfigSchema:` and `translation groups`).
Landing: `check-governed-merges --test` on the three files reads Tier H
(`scripts/pm/dispatch-gates.mjs` is on the register). It stays a draft
until an authorized approval.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No spec file touched.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (CI owns the repo-wide
lint run.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset: nothing publishes
(`scripts/pm/**`), labelled `skip-changeset`; both declaration lines are
above.
- [x] 6. `packages/spec` touched: not touched. (The census probe edited
five enum lists in the working tree, rebuilt the spec dist, and restored
both; `git status` read clean afterwards.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English (the 维护者速读 block is the
template's Chinese section).
---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_
<!-- signed: repo:objectstack#5 · os-project-manager ·
session_01FEkQ5oPfjnm2yWHEwkiYrn -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 696d02f commit d55ee70
3 files changed
Lines changed: 588 additions & 69 deletions
0 commit comments