Repository navigation
fix(pm): dispatch-gates derives the pins that hold nested served key sets - #38361
Conversation
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn Co-authored-by: Claude <noreply@anthropic.com>
…sted-keyset-derive
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Final green head · 2026-11-28T15:50Z · area o5-fleet
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对L1 (thread L1-a, area o5-fleet) · read 2026-11-28T16:02Z · Head-sha: One item to fix, in the PR body only (no new push needed):
Once the body carries #38362, I re-read the body at this same head and turn this into ACCEPT. Everything below already holds at 652b1c8. Checklist (l1-face
Spot readings (mine, in a detached worktree at 652b1c8; tree restored,
Accepted deviations
Out of scope: dev findings 1–2 → #38362 (filed by the area, |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对L1 (thread L1-a, area o5-fleet) · read 2026-11-28T16:05Z · Head-sha:
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr 维护者速读
席位意见:同意合并。机制单一(嵌套键集读法与类型行同构),同族遗漏已立卡 #38362 承接,不在本 PR 扩写。 席位核对 — ACCEPT · repo:objectstack#5 · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Contract reviewServed-tier: PR #38361 for card #37884. Read: the card body and its six comments (scope notes 7214316940 and 7222990290, triage 7214456259, the unblock note, claim 7240023959, dev report 7241556901), the PR body, the three-file list, the net diff against ① Derived judgmentsNo published package path is in the diff, so no public accept-set moves. What the diff changes is the instrument's own derivation, each item judged:
② Semver level
③ Boundary flags
④ Design judgmentGraded: S1 (should-fix); N1, N2, N3 (nit).
S1 (should-fix) — the population statement on
Implemented-by: VERDICT: PASS |
…sted-keyset-derive
…tion docblock names the rest Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Final green head (rework 1) · 2026-11-28T16:55Z · area o5-fleet
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对L1 delta (thread L1-a, area o5-fleet) · read 2026-11-28T17:03Z · Head-sha: Delta read:
Spot readings (mine, detached worktree at 1a5158d; tree restored,
Checklist: l1-face Accepted deviation (new): the index LIVE check holds only that the pin enumerates Correction to my earlier record (7241933532): I read "no L2 owed". The seat's contract-tier record 7242162643 is right that the governed guard-instrument path owes L2. Its delta on S1 at this head is the seat's, and landing stays the seat's hand-off (Tier H, 712 lines ≤ 3,000). |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Contract reviewServed-tier: Delta review of PR #38361 for card #37884, on the head after rework 1. The round-1 record is 7242162643 on Result: S1: open (should-fix), narrowed; S2 (should-fix), new in the delta; N1, N2, N3 closed; N4, N5 (nit), new. No must-fix. ① Derived judgmentsStill no published package path in the diff, so no public accept-set moves. What the delta changes in the instrument's own derivation, each judged:
② Semver level
③ Boundary flags
④ Design judgmentGraded: S1 (should-fix, open), S2 (should-fix, new); N4, N5 (nit, new). Closed: N1, N2, N3.
S2 (should-fix) — the S1: open (should-fix) — the three pins round 1 named are answered; the population statement is still not what the search it describes returns. Answered:
Implemented-by: VERDICT: PASS |
…sted-keyset-derive
…t axis key; population docblock says what was read Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn Final green head (rework 2) · 2026-11-28T17:45Z · area o5-fleet
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对L1 delta (thread L1-a, area o5-fleet) · read 2026-11-28T17:50Z · Head-sha: Delta read:
Spot readings (mine, detached worktree at 6001cc2; tree restored,
Checklist: l1-face Accepted (nit, no action):
L2: the seat's contract-tier delta on this head stays owed. Landing stays the seat's hand-off (Tier H). |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Contract reviewServed-tier: Delta review 2 of PR #38361 for card #37884, on the head after rework 2. Earlier records: 7242162643 on Result: S1: closed. S2: closed. N4: closed. N5 (nit) stands, unchanged in the tree. N6 (nit), new. No must-fix, no should-fix. ① Derived judgmentsStill no published package path in the diff, so no public accept-set moves. What the delta changes in the instrument's own derivation:
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. Closed: S1, S2, N4. Standing: N5 (nit). New: N6 (nit). S2: closed — S1: closed — the population docblock on
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr 维护者速读
席位意见:同意合并。契约档审核三轮(7242162643 → 7242763992 → 7243349977),两条须修均已闭;未普查的 ui 余量由 #38362 承接。本记录取代 7241987288(那条写的"L2 不欠"有误)。 席位核对 — ACCEPT · repo:objectstack#5 · Head-sha
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr Approval requested (Tier H, guard instrument
|
…ta types, the enum value sets and the os-regen self-test (objectstack-ai#38474) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_ Part of objectstack-ai#38362 Clause-②: no Metadata-protocol: none Round 2 (head 1d29ce8): answers the contract review's S1 and S2, plus N3 and N6. The nav target editor's shared base and the navigation union's arm list are rowed, and the translation preview census is named as unreadable. Four value-set holders outside the spec-parity files are rowed, and every other value-set holder is stated as unmeasured, `packages/` included. N1, N2, N4, N5 and N7 stay on the card (Acceptance notes). ## 维护者速读 - 用户能看到什么变化:用户无感;开发 agent 改动发布清单、邮件配置、流程复制请求、引擎查询选项、权限解释动词、导航条目类型或若干界面与字段类型枚举时,派发工具现在会点名会因此变红的那条测试,改动生成产物的合并路由时也会点名合并脚本的自检。 - 为什么做:属于派发工具的门禁推导收口工作,替开发 agent 省掉"本地全绿、CI 才红"的一轮返工。 - 出错会怎样:最坏是多点名或漏点名一条测试,CI 仍是兜底;改动只在内部工具里,可以直接撤回。 - 要你做什么:这是受管的派发工具文件,需要你按人合档审核后合并。 ## What changes `scripts/pm/dispatch-gates.mjs` now derives, from the diff, the whole-set pins the card lists that derived nothing, using the `schema` / `schemas` / `within` rows objectstack-ai#38361 added (no path match anywhere): - **Non-metadata key sets.** New `SERVED_KEY_SET_DECLARATIONS` rows and one `SERVED_KEY_SET_PINS` entry per pinning test: the template manifest (three rows: the create-package request literal, the `.omit()` literal whose keys are the dropped keys, the `.extend()` literal) to the cli publish partition; the email service config to plugin-email's config parity; the clone request to the runtime clone route test; the base engine options plus the five `.extend()` bags to objectql's engine option drift pin. - **Enum value sets.** `declaredKeySet` reads a bracket-opened literal through the new `arrayLiteralElements`, so a `call: 'z.enum'` row answers the VALUE set: the explain operation enum to the three plugin-security tests that hold it to a table each, and nine ui value-set holders (bulk operations, column summaries, field types, chart types on three tests, report types, chart aggregates, notification positions on two tests, notification types). - **ui spec-parity battery, by measurement.** One key or value added to each of 43 spec schemas the 37 `*spec-parity*` files (and the two app-shell censuses scope note 2 names) import, spec dist rebuilt, those files run. Rows for every file that went red: the console registry-inputs parity (list view, record picker, text input props), the navigation mirror's doc arm (DocNavItemSchema plus a spread row for the BaseNavItemSchema it spreads, which the unwatched-spread census requires), and the nine value-set holders above. - **Round 2: the nav union's arm list and the nav target editor.** A new declaration row reads the navigation item union's arm list (`z.discriminatedUnion`, argument 1, through `arrayLiteralElements`: each arm, or a chained arm's whole text, is one element). The doc arm's pin now holds it as well, because `navigation-spec-parity` holds the spec discriminators equal to a triaged list. A new pin `nav-target-key-set` derives `nav-target.navEntryTypes-11790`, which holds the editor's entry types equal to the union's arms and needs a carried value for every key the non-separator arms share. It holds the union row and the doc arm, so a key added to the base derives it through the doc arm's spread. A key added to the doc arm's own members derives it too, which is wide (the shared set does not move) but never quiet. The arm list is read as a set, so a reorder derives nothing. - **Round 2: value-set holders outside the spec-parity files.** These four rows were read from each test's assertion. Each test compares the enum's options whole; the three ui ones were also measured red below. They are the analytics `measure-result-type` table (FieldType), the cli `generate-field-type-vocabulary.pin` (FieldType), the types `object-chart-families-11513` mirror (ChartTypeSchema) and the plugin-grid `spec-symbol-batch7` probe (ColumnSummarySchema). Every other value-set holder is unmeasured, and the data docblock now says so; FieldType's options alone are enumerated by some 46 test files outside the spec package. - **Round 2: docblock and kinds.** The pins docblock no longer says the spec-parity battery and the non-metadata pins are unrowed (N3). It names the translation preview census as unreadable: its set is `TranslationDataSchema.shape`, which `appTranslationDataShape()` returns, and a row has no literal to address. The three explain rows carry distinct `kind` strings, so the self-test binds each to its own pin (N6). - **Folded row.** New change-kind row `os-regen-merge-input`: `scripts/pm/os-regen-merge.sh` on any edit, or `.gitattributes` when its `merge=os-regen` patterns differ between merge base and working tree, derives `bash scripts/pm/os-regen-merge.sh --self-test`. It binds through the existing `ciJob`/`ciRunner` mechanism to the `Lint · repo & tooling gates` step (the family discovery reads only `node … .mjs --self-test`, so no family carried it). ## Tests <details><summary>Probe table: measured before (e4a02be) and after, one probe per member</summary> Each probe adds one key (or one enum value) to the literal the row reads, runs `node scripts/pm/dispatch-gates.mjs --commands` (no paths, off the merge base), and counts the pinning test's lines. The edit was in the working tree, never committed or pushed, and was reverted after each probe. | Member (probe) | Pinning test | Before | After | |---|---|---|---| | TemplateManifestSchema `.extend()` key | cli `package-publish-uncarried-manifest-keys` | 0 of 72 | 1 | | TemplateManifestSchema `.omit()` key | same | not probed separately (no predicate on the file) | 1 | | CreatePackageRequestSchema key | same | 0 of 72 | 1 | | EmailServiceConfigSchema key | plugin-email `capability-arg.config-parity.contract` | 0 of 71 | 1 | | CloneFlowRequestSchema key | runtime `automation-flow-clone-custom-package` | 0 of 73 | 1 | | BaseEngineOptionsSchema key | objectql `engine-unknown-option` | 0 of 75 | 1 | | EngineQueryOptionsSchema `.extend()` key | same | 0 of 75 | 1 | | ExplainOperationSchema value | plugin-security: three tests | 0 of 75 | 3 | | 43 ui schemas at once (combined probe) | any ui spec-parity file | 0 of 83 | per-member rows below | | ListViewShapeSchema / ElementRecordPickerPropsSchema / ElementTextInputPropsSchema key | console `registry-inputs-spec-parity` | 0 (combined) | 1 each | | DocNavItemSchema key / BaseNavItemSchema key | types `navigation-spec-parity`; round 2 also app-shell `nav-target.navEntryTypes-11790` | 0 (combined) / not probed | round 1: 1 / 1; round 2: 2 / 2 | | Round 2: an arm added to the navigation union | `navigation-spec-parity` and `nav-target.navEntryTypes-11790` | 0 (review's measurement at 6dae2e6) | 2 | | Round 2: a describe() reworded inside a chained arm's text | same | n/a | 2 (wide, never quiet: the arm's text moved) | | Round 2 CONTROL: a describe() reworded in BaseNavItemSchema | any pin | n/a | 0 | | Round 2: a group added to the translation shape builder | app-shell `TranslationPreview.categories-11765` | 0 | 0 (no row can read it; named in the docblock and below) | | BulkActionOperationSchema value | types `bulk-action-spec-parity` | 0 (combined) | 1 | | ColumnSummarySchema value | plugin-grid `summary-spec-parity`; round 2 also plugin-grid `spec-symbol-batch7` | 0 (combined) | round 1: 1; round 2: 2 | | FieldType value | app-shell `field-types.spec-parity-11909`; round 2 also service-analytics `measure-result-type` and cli `generate-field-type-vocabulary.pin` | 0 (combined) | round 1: 1; round 2: 3 | | ChartTypeSchema value | widget-dispatch, chart-type, report spec-parity; round 2 also types `object-chart-families-11513` | 0 (combined) | round 1: 3; round 2: 4 | | ChartAggregateFunctionSchema value | plugin-dashboard `pivot-aggregation-spec-parity` | 0 (combined) | 1 | | ReportType value | plugin-report `report-spec-parity` | 0 (combined) | 1 | | NotificationPositionSchema value | toaster-position, animation-notification spec-parity | 0 (combined) | 2 | | NotificationTypeSchema value | react `animation-notification-spec-parity` | 0 (combined) | 1 | | CONTROL: a describe() reworded in the email config | any new pin | n/a | 0 | | `.gitattributes`: a `merge=os-regen` line added | `os-regen-merge.sh --self-test` | 0 of 12 (path named) | 1 | | CONTROL: `.gitattributes`: an unrelated attribute line added | same | n/a | 0 | | `scripts/pm/os-regen-merge.sh` edited | same | 0 of 26 (path named) | 1 | Before-readings for the folded row name the path on argv (the predicate did not exist, so diff mode cannot differ); after-readings are diff mode. </details> <details><summary>ui measurement: which spec-parity files go red on a probe</summary> 43 probes landed at once, spec built with `OS_SKIP_DTS=1` plus the seven packages Test UI builds, then `pnpm --dir ui exec vitest run` over the 39 files. Red on a probe (rows added): registry-inputs (3 cases), navigation doc arm, bulk-action, summary, field-types (3), widget-dispatch, chart-type, report (2), pivot-aggregation, toaster-position, animation-notification (2). Green for the probed key (mostly mirrors that derive from the spec schema): list-view, page-app-dashboard, object-view, export-options, select-option, spec-subschema, validation-rule, view-navigation-config, zod-mirror-parity, number-field-step, sectionFields, record-picker-inputs, text-input-inputs, the three plugin-detail inputs files, timeline-scale, dataset-result-field, gesture, add-record-position, user-filter-arity. Round 1 also listed nav-target navEntryTypes and TranslationPreview categories as green, but those greens measured nothing: the nav probe landed on the doc arm's own keys, while the editor holds the shared base and the arm list; and the translation probe had no literal to land on. Red for a reason that is not a probe: auth, share-filter-sort, offline-nav (export-NAME parities that read the declaration files, absent from a no-dts build). Not measured: page-nav-misc, report-chart-query (their suites read the declaration files). Round 2, measured at the new head's tree with the same seven-package build: a clean run of five files is green (navigation-spec-parity 57, nav-target 33, object-chart-families 27, spec-symbol-batch7 6, TranslationPreview 25 cases). Probe A added a key to BaseNavItemSchema, a value each to ChartTypeSchema and ColumnSummarySchema, and a group to the translation shape builder. It turned all five red: navigation-spec-parity 1 case (doc arm keys), nav-target 3 (the shared base), object-chart-families 1, spec-symbol-batch7 1, TranslationPreview 24. `--commands` on probe A named the first four, and not TranslationPreview. Probe B added an arm to the union (a new `probe` type spreading the base). It turned navigation-spec-parity red (1 case: "the spec discriminator is still the triaged set") and nav-target red (2: "offers every member the spec declares", "isNavEntryType answers the same membership"), with the other three files green. `--commands` on probe B named exactly those two. Every probe was reverted, its build-written `authorable-surface/*.json` restored, and the dist rebuilt clean before the gates ran. </details> <details><summary>Self-test and ablation</summary> - `node scripts/pm/dispatch-gates.mjs --self-test --fast` at e471b76: `✓ dispatch-gates self-test (fast tier): 2593 cases pass; 9 slow section(s) deferred.` - New cases: the element reader (quoted, spread, call, comments, unclosed); a `z.enum` row and a chained `.omit()`/`.extend()`; the generic per-row loops now cover every new row (a key or value added derives exactly the pins that hold it; a describe() derives none) with fixtures for enum and chained declarations; the doc arm's spread of the base nav item (derives once spread, CONTROL not); eighteen LIVE spelling checks plus LIVE censuses against the clone and email literal lists and the manifest's composed key set; the os-regen predicate on seven edit shapes, the unchanged and script-path cases, its binding resolving against lint.yml, its rendering, `--ran` and STALE. - Ablation at e471b76 (three mutations landed with `scripts/ablation-replace.mjs --hold`, grep-counted on disk): the bracket branch of `declaredKeySet` removed, the `.gitattributes` diff read replaced with `return false`, and the clone pin's `schemas` emptied. Fast tier: `66 of 2593 case(s) failed`, each in the mutated family (every enum row and every fixture file holding one, the three `.gitattributes` derive cases and the os-regen rendering, the clone pin's nested-row, rendering and `--ran` cases). Restored with `--restore`: blob equals HEAD and `git diff HEAD` empty. - Round 2, `--fast` at 1d29ce8: `✓ dispatch-gates self-test (fast tier): 2615 cases pass; 9 slow section(s) deferred.` New cases cover several things. The union row's reader: a chained arm is read as its own text, a comment is no arm, and a declaration with no union is null. An arm added or removed derives both nav pins and no other, and a reorder derives nothing. A key added to the base now derives both nav pins through the doc arm's spread. A LIVE census checks that the union's arm count equals the triaged list the doc arm's test holds, and that the doc arm is an arm. There are five more LIVE spellings, each matching the test's whole-set assertion rather than a bare schema name. The pin/row agreement and rendering tables were updated, and ksLines is now 66. One ablation (`ablation-replace.mjs --hold`): `NavigationItemSchema` removed from the nav target pin's `schemas` gave `3 of 2615 case(s) failed`. They were the pin-table case and the two arm cases; the generic per-row loop stayed green because its expectation is derived from the pin table. `--restore`: blob `ccdc84b98f61` equals HEAD. </details> ## Acceptance notes - Uses `Part of`, not a closing keyword (L1 accepted): the card's scope notes carry members this PR does not close. Left on the card: - The rest of ComponentPropsMap's props schemas the registry-inputs parity walks (three are rowed). The list view entry is among them: its registered props schema declares keys of its own beside the list view shape the row reads (N4). - The two dogfood tests holding the explain verbs: they run only in the queue's dogfood shards, and no gate binding names that job. - `page-nav-misc` and `report-chart-query`: not measured, because their suites read the declaration files. - The translation preview census (`TranslationPreview.categories-11765`). It goes red when a group is added, but its set is a function's return, so no row can read it. A reader for an arrow function's returned literal would be needed. - Every value-set holder outside the spec-parity files other than the four rowed here, `packages/` included, is unmeasured. No search for an enum's options held whole was run. - Scope note 1's HookBodySchema arm census: there is no record to read the language set from. - Scope note 3's LIVE census of the console index editor's own property list. - A census of `ui/` beyond the spec-parity files. - Review nits for the card: - N1: a chain link added after a rowed literal is not read. - N2: a lost place on a spread row now derives the 32 pins that read through spreads, up from 27 at round 1. - N5: `os-regen-merge.sh --self-test` also holds `OS_REGEN_CLASSES` to the regen driver's `mixed:` rows, which the folded row does not watch. - N7: nine LIVE spellings are a bare schema name. - The tombstone sets stay out by construction: a key retired in place moves no key set. - The nine package-test rows were classified by reading each assertion (each compares the schema's keys or the enum's options whole), not by running a probe through them. The ui rows were classified by running. - Guard instrument (`scripts/pm/dispatch-gates.mjs`): Tier H, stays draft. ## Verification Read first, by risk: (1) the `nav-target-key-set` and `nav-doc-arm-key-set` pins and the `NavigationItemSchema` declaration row in `scripts/pm/dispatch-gates.data.mjs`, which read the base through the doc arm and the arm list as a set; (2) `changesOsRegenRouting` and `arrayLiteralElements` in `scripts/pm/dispatch-gates.mjs`, the new readers; (3) the `SERVED_KEY_SET_PINS` docblock, which says what is measured and what is not. Two-minute check: add `docs/x/** merge=os-regen` to `.gitattributes` and run `node scripts/pm/dispatch-gates.mjs --commands`; the list contains `bash scripts/pm/os-regen-merge.sh --self-test`. <details><summary>Local gates at 1d29ce8 (round 2, after merging origin/main at 194f3d9)</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 63 commands, the same set as round 1. They ran sequentially in one `os-verify-lock.sh` batch (slot issue-38362, `VERDICT command-exit 0`), together with the round-2 arm probe and the clean rebuild before it. Each exit code was captured before any pipe: - 62 exited 0. - `pnpm check:i18n-coverage` exited 3 (`PREREQUISITE NOT MET — the workspace CLI is not built`). The diff touches no package, and CI's Lint & Repo Gates runs it. - `check:pm-dispatch-gates`: `✓ dispatch-gates self-test (fast tier): 2615 cases pass; 9 slow section(s) deferred.` The slow tier was not run locally; it runs on CI's push/schedule tier. - `--ran`: `✓ dispatch-gates --ran: 63 derived famil(ies) accounted for — 62 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).` - `node scripts/pm/overlap-check.mjs` reported `VERDICT clean exit 0` before the push. Round 1 at 6dae2e6 had the same 63 commands with the same results, except that the self-test ran 2593 cases. </details> ## 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. - [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>
Requested by Leehom · project thread
Fixes #37884
Clause-②: no
Metadata-protocol: none
维护者速读
Population search (what was searched, what was found)
Measured at 4cb162b, by search, not from a list:
packages/spec; narrowed to those that import the spec package and enumerate a schema's keys (Object.keysof a shape or of a JSON Schemapropertiesmap, a declared-keys / shape-keys helper,.keyof(), or the length of ananyOf/optionslist): 145 files. Narrowed again to assertions that compare such an enumeration whole (an equality, a count, or a filter that must come back empty), then the hits underpackages/and the ui files named below were read. The rest ofui/was NOT measured: this is not a census of ui, and the re-measure is carried by dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362.object-schema-fls-references.test.ts:InlineGridColumnSchema,ListColumnSchema,ColumnPrefixSchema,ColumnSummaryConfigSchema, thelookupAutofillpair (all both ways) - joined to the existing object-reference pin.protocol.meta-types-degenerate-derivation.test.ts: theviewfour-arm union control - joined to the existing served-type pin.protocol.meta-types-unauthorable-columns.test.ts: the page component row (13 columns, tombstones included), the dashboard widget row (named list), theviewfour-arm union - new rowserved-row-key-set.plugin-dashboard/.../dashboard-widget-options-census.test.ts:DashboardWidgetOptionsSchema, both ways - new rowdashboard-widget-options-key-set(Test UI).datasource-pool-support.test.ts:DatasourceSchema's inlinepoolblock, an ordered literal list - new rowdatasource-pool-key-set.plugin-charts/.../normalizeChartSchema.specAxisKeys-7690.test.ts:ChartAxisSchema(named strictObject) - new rowchart-axis-key-set(Test UI); added in rework 1 for L2 S1 (record 7242162643).app-shell/.../EmbeddedItemEditor.indexFallback.test.tsx:IndexSchema(named strictObject) - new rowindex-console-key-set(Test UI); rework 1, same.plugin-charts/.../normalizeChartSchema.xAxisPresentationGate-10516.test.ts:ChartAxisSchemalessfield, held equal to its SAMPLE - new rowchart-axis-presentation-key-set(Test UI); added in rework 2 for the L2 delta S2 (record 7242763992). A key added toChartAxisSchemanow derives both chart normalizer tests.validate-expressions,validate-org-axis-red-lines,validate-security-posture,validate-rule-compilability), the cli explain table rows, the client unwrap-misfire guard, the response-conformance tests (keys returned must be declared), the MCP authoring derivation comparisons.What this fix does NOT cover
ui/packages/types/src/__tests__(zod-mirror-parity,list-view-spec-parity,page-app-dashboard-spec-parity,spec-subschema-parityand the per-schema mirror tests) and outside it: spec-parity files elsewhere inui/(for exampleui/apps/console/src/__tests__/registry-inputs-spec-parity.test.tsandrecordRelatedListInputs.spec-parity),TranslationPreview.categories-11765(TranslationDataSchema groups) andnav-target.navEntryTypes-11790(NavigationItemSchema arms). A key added to almost any spec UI schema can red one. Same failure class; not read hit by hit and not covered here. Carried by dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362 (the family card), which holds the re-measure.ActionDefaultInspector.scriptBodyLanguage-11921.test.tsx: it holds a union of arms (the language set plus each arm's keys). The language set has no record to read, so no mechanical row reads it; the two arm key sets are named declarations a row could read, and they are left to dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362 with the language set.EmbeddedItemEditor.tsx(L2 delta N5). Carried by dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362.TemplateManifestSchema(cli publish partition),EmailServiceConfigSchema(plugin-email config parity),CloneFlowRequestSchema(runtime), the engine option schemas (objectqlengine-unknown-option), and the explain operation enum's VALUE set (plugin-security / dogfood). Same class; not covered here, carried by dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362.What changes
scripts/pm/dispatch-gates.mjs,.data.mjs,.self-test.mjsonly.SERVED_KEY_SET_DECLARATIONSrow may now carryschema(a nested key set) besidestype/spread, and a pin may holdschemasbesidestypes. A named nested schema is read exactly as a type is (its ownstrictObject/z.objectliteral); a schema declared inline is read throughwithin: the enclosing declaration, then one step per level naming the member and the call inside that member's value. How thelookupAutofillpair is read: it has no binding, so its row is FieldSchema's declaration plus one step (lookupAutofillmember, thestrictObjectcall in it, argument 1). A key added to the pair moves the pair's row and not FieldSchema's; a key added to FieldSchema moves FieldSchema's and not the pair's; the member gone or reshaped reads wide. The datasourcepoolblock is the same shape, read the same way.viewarm count is read as the key set ofVIEW_METADATA_MEMBERS, the record the union is mapped from (an arm added or removed must touch it; thesatisfiesclause ties it to the branch list).unwatchedcensus now covers every row, not the type rows alone.objectLiteralMembersreads its lookahead over the masked text with no 200-character window (sticky regexes), and cuts a non-name spread's text from comment-masked text, so a long trailing comment no longer turns a last bare-name spread into a text member, and rewording a comment inside a spread's span derives nothing.served-row-key-set,dashboard-widget-options-key-set,datasource-pool-key-set, from rework 1chart-axis-key-set,index-console-key-set, and from rework 2chart-axis-presentation-key-set), each bound to its CI job with its measured build prerequisite; the object-reference and served-type rows' text names the nested sets they now cover; each chart row's repair text names both chart normalizer tests; the deletion criteria cover ten key-set entries.SERVED_KEY_SET_PINSdocblock now says only what was measured (every hit underpackages/and the named ui files; the rest ofui/not measured, whole-set holders exist outsideui/packages/types, dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362 carries the re-measure). The HookBodySchema reason now says the language set has no record to read, and that the two arm key sets are named declarations a row could read, left to dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362.Tests
probeKey37884added insideListColumnSchema->dispatch-gates.mjs --commandsprinted 173 lines, 0 naming metadata-core. After the fix, same probe: line 51 ispnpm --filter @objectstack/metadata-core exec vitest run src/object-schema-fls-references.test.ts.--ran/ STALE, and live censuses holding each nested row equal to its pin's table, count or list; rework 1 adds a key-added case and a describe() control each for ChartAxisSchema and IndexSchema, a LIVE census of ChartAxisSchema against the pin's sample (9 = 9), a LIVE check that the index pin enumeratesIndexSchema.shape, and a LIVE check thatVIEW_METADATA_BRANCHESequals the member record (4); rework 2 adds a case that a key added toChartAxisSchemaderives BOTH chart pins and a describe() control that derives neither, and a LIVE census thatChartAxisSchema's keys lessfield(8) equal the 10516 test's SAMPLE (8) and that the test filters the shape onfield.Self-test and gates (head 6001cc2, rework 2)
pnpm check:pm-dispatch-gatesunder os-verify-lock:✓ dispatch-gates self-test (fast tier): 2459 cases pass; 9 slow section(s) deferred.·VERDICT command-exit 0(2444 at 652b1c8, 2455 at 1a5158d after rework 1).dispatch-gates --ran:63 derived famil(ies) accounted for - 62 run, 1 NOT-MEASURED. The one ispnpm check:i18n-coverage, exit 3 PREREQUISITE NOT MET (needs built packages; this diff touches no package) - CI's Lint & Repo Gates runs it.Ablations (fast tier, mutation landed and restored, git diff HEAD empty after each)
withinloop over an empty list), lookahead back to a 200-character window, spread text from the unmasked source, transitive frontier push disabled -> 21 of 2444 red, each mutation's own cases among them (long-comment spreads, comment-in-span, descent pair/pool, nested pair rows, inner spread, live census of the pair and pool).rowsHeldByignoringschemas) -> 23 of 2444 red: every nested key-added case, the pair / grid edits, the page-component spread case, seven-pin rendering,--ranand STALE (at 652b1c8).schemaslists emptied -> 10 of 2455 red, including both key-added cases and the nine-pin rendering,--ranand STALE cases.schemaslist emptied -> 9 of 2459 red, including theChartAxisSchemakey-added case, the BOTH-pins case, ten-pin rendering, the runnable union, the unrun-ui-pin case and STALE.Acceptance notes
changesServedKeySetkeeps its contract: a declaration it cannot find on either side reads wide.Verification
declaredKeySet/objectLiteralMemberValueindispatch-gates.mjs(the descent), the new rows indispatch-gates.data.mjs, the per-schema loop in the self-test.ListColumnSchemainpackages/spec/src/ui/view.zod.ts, runnode scripts/pm/dispatch-gates.mjs --commands; expect the metadata-coreobject-schema-fls-references.test.tsline.Generated by Claude Code