Skip to content

fix(pm): dispatch-gates derives the whole-set pins outside the metadata types, the enum value sets and the os-regen self-test - #38474

Draft
objectstack-fleet[bot] wants to merge 5 commits into
mainfrom
claude/issue-38362-whole-set-pin-derivation
Draft

objectstack-fleet[bot] wants to merge 5 commits into
mainfrom
claude/issue-38362-whole-set-pin-derivation

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Part of #38362

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感;开发 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 #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.
  • 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

Probe table: measured before (e4a02be) and after, one probe per member

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 0 (combined) / not probed 1 / 1
BulkActionOperationSchema value types bulk-action-spec-parity 0 (combined) 1
ColumnSummarySchema value plugin-grid summary-spec-parity 0 (combined) 1
FieldType value app-shell field-types.spec-parity-11909 0 (combined) 1
ChartTypeSchema value widget-dispatch, chart-type, report spec-parity 0 (combined) 3
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.

ui measurement: which spec-parity files go red on a probe

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, nav-target navEntryTypes, TranslationPreview categories. 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).

Self-test and ablation
  • 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.

Acceptance notes

  • Uses Part of, not a closing keyword: 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 measured and rowed here); 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: suites read the declaration files); scope note 1's HookBodySchema arm census (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 and the two named app-shell censuses. The tombstone sets stay out by construction (a key retired in place moves no key set).
  • The seven 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: changesOsRegenRouting and arrayLiteralElements in scripts/pm/dispatch-gates.mjs (new readers), then the SERVED_KEY_SET_DECLARATIONS tail in scripts/pm/dispatch-gates.data.mjs.

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.

Local gates at 6dae2e6 (after merging origin/main)

node scripts/pm/dispatch-gates.mjs --commands derived 63 commands; all run sequentially in one os-verify-lock.sh batch (VERDICT command-exit 0), each exit code captured before any pipe: 62 exit 0, pnpm check:i18n-coverage exit 3 (PREREQUISITE NOT MET — the workspace CLI is not built; the diff touches no package; CI's Lint & Repo Gates runs it). check:pm-dispatch-gates: ✓ dispatch-gates self-test (fast tier): 2593 cases pass; 9 slow section(s) deferred. --ran: ✓ dispatch-gates --ran: 63 derived famil(ies) accounted for — 62 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). Slow tier not run locally (CI push/schedule tier). node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 before each push.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec file touched.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (CI owns the repo-wide lint run.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset: nothing publishes (scripts/pm/**), labelled skip-changeset; both declaration lines are above.
  • 6. packages/spec touched: not touched.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (the 维护者速读 block is the template's Chinese section).

Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 29, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head · 2026-11-29T04:56Z · area o5-fleet

  • Head-sha: 6dae2e656948a64987d8ba6d8fbee9d20021c3ee
  • Part of #38362. dispatch-gates now derives each probed whole-set pin through the schema / schemas / within mechanism from fix(pm): dispatch-gates derives the pins that hold nested served key sets #38361, not a path match: a z.enum literal reader goes into declaredKeySet, declaration rows cover chained .extend / .omit, and 18 key/value-set pins are added (template manifest, email config, clone-flow request, objectql engine options, the three ExplainOperation value-set holders, 11 ui spec-parity tests). The folded row: a .gitattributes merge=os-regen change or an os-regen-merge.sh edit derives bash scripts/pm/os-regen-merge.sh --self-test. Before: no member derived its test. After: each names its own, and the unrelated controls name none. os-dev report 7250795665 on 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.
  • 3 files, +615 / −14 (629 changed lines ≤ 3000). check:pm-dispatch-gates fast tier: 2593 cases pass; ablation turned 66 red in the mutated families.
  • Checks at that head: 26 success · 23 expected skip · 0 failed · 0 pending. mergeable_state clean.
  • Landing tier: check-governed-merges --pr 38474 reads GOVERNED, Tier H (scripts/pm/dispatch-gates.mjs, the dispatch gates). A human merge is the review record.
  • Open question for the seat: Part of rather than Fixes, because the card's scope notes keep residue this PR leaves open (listed in the body's acceptance notes). The dev recommends keeping Part of.
  • Owed: contract-tier L2 (isolated, fable), then L1 (thread L1-a). The seat hands it off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-fleet) · read 2026-11-29T05:01Z · Head-sha: 6dae2e656948a64987d8ba6d8fbee9d20021c3ee · verdict ACCEPT

This is the first L1 record on this PR, a full review.

Checklist (l1-face --pr 38474 at 6dae2e6: CLEAN, 13 items)

  • Shape: open, draft, base main. Part of #38362: see the residue check below.
  • Scope: 3 files, the card's named surface (dispatch-gates.mjs, .data.mjs, .self-test.mjs). skip-changeset. Clause-②: no · Metadata-protocol: none. A guard instrument, so it is governed (Tier H) and the seat hands it off.
  • Gates: 26 success, 21 expected skip, 0 failed, 0 pending; mergeable_state clean. CI's check:pm-dispatch-gates lane is among the green.

My probes, at this head (detached worktree, each edit reverted, worktree removed)

Probe Pin lines in --commands
No edit (baseline) capability-arg.config-parity 0
A key added to EmailServiceConfigSchema (email-config.zod.ts:84) 1
CONTROL: a describe() reworded in the same file 0
docs/x/** merge=os-regen appended to .gitattributes os-regen-merge.sh --self-test 1
CONTROL: an unrelated linguist-generated line appended 0

These match the body's probe table for the rows I re-ran.

The residue Part of keeps on the card is real. Each item was checked at this head:

  • The rest of ComponentPropsMap. registry-inputs-spec-parity.test.ts walks every ComponentPropsMap entry (:475, "27 judged"). Only three props schemas get rows here.
  • The two dogfood explain holders. cbp-explain-master-write.dogfood.test.ts:384 and explain-write-door-parity.dogfood.test.ts:254 each hold ExplainOperationSchema.options equal to a doors table. They run only in the queue's dogfood shards.
  • page-nav-misc and report-chart-query. Both exist under ui/packages/types/src/__tests__/. page-nav-misc reads files through readFileSync, consistent with "suites read the declaration files", so they are not measured on a no-dts build.
  • Scope note 1's HookBodySchema arm census. ActionDefaultInspector.scriptBodyLanguage-11921.test.tsx exists, with no member record to read the arms from.
  • Scope note 3. The LIVE census of EmbeddedItemEditor.tsx's own property list, and the ui/ census past the measured files, are both unclaimed by this diff.
  • The tombstone sets are out by construction, as scope note 1 already records.

Closing the card on this merge would drop all of the above, so Part of is right.

Accepted (no action): the seven package-test rows were classified by reading each assertion, not by a probe through each test. The body says so, and the per-member probes above show the derivation side.

Owed before hand-off: the contract-tier L2 on this head (running). Then the seat does the Tier H hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6dae2e656948a64987d8ba6d8fbee9d20021c3ee
Local-runs: probe — the exported readers of the head and merge-base dispatch-gates.mjs, imported from a scratch export of scripts/ and fed git show text through their injectable readers, to measure the adversarial edits and the parity of the pre-existing rows; no build, no suite, no gate, and the self-test was not run
Scope: scripts/pm/dispatch-gates.mjs + scripts/pm/dispatch-gates.data.mjs, scripts/pm/dispatch-gates.self-test.mjs

PR #38474 for card #38362 (Part of #38362). Read: the card body and its eight comments (triage 7241765460, scope notes 7242618366, 7242776297 and 7243401452, the folded row 7244759281, the unlock 7248054670, the claim 7249909377, the dev report 7250795665); PR #38361 and dev report 7241556901 on #37884; this PR's body, its one comment, its three-file list and the net diff against merge base 16f132fbe7; the 49 check-runs on this head; and, at this head, every spec declaration and every test file a new row names. The seat's comment 7250956791 was read as a comment and none of its conclusions is used here.

① Derived judgments

No published package path is in the diff, so no public accept-set moves. What changes is the instrument's own derivation.

  • Tier and mandate: unchanged. The engine diff is three hunks: the os-regen readers, the bracket branch in declaredKeySet (:12478) with arrayLiteralElements, and one predicate line. No hunk in the engine or the data file touches --tier, reviewFace, the model mandate globs or the governed register. Right.
  • Pre-existing rows: no regression (measured). All 28 merge-base declaration rows and all 10 merge-base pins are unchanged in the head tables. The base and head readers return the same set for every one of those rows on both the base text and the head text. No base row's literal opens with a bracket, so the new branch reaches none of them. 470 single-literal edits across the base-row files gave the ten base pins the same answer in both modules. Right.
  • New rows point at real things. 25 declaration rows (24 schema, 1 spread), 18 pins, 19 change-kind rows. Every declares name exists at the path its row gives, every gate's test file exists, and each reads a non-empty set at this head. lint.yml:1730 runs bash scripts/pm/os-regen-merge.sh --self-test in Lint · repo & tooling gates, so that binding resolves. Right.
  • Each new row fires the pins the PR claims, and only those (measured). One key or value added to each of the 25 live literals: the explain enum fires its three pins, the chart type enum three, the notification position enum two, every other row one; the merge-base module fires none. A comment-only edit and an unrelated declaration appended fire nothing on any of the 14 declaring files. The derivation widens by up to 19 commands, which is the card's ask. Right for what the rows read; S1, S2 and N4 below are about what they do not read.
  • Break attempts, each measured on head text:
    • A key in another file: CreatePackageRequestSchema (package.zod.ts) fires the manifest pin, and UpdatePackageRequestSchema beside it fires nothing. Right.
    • An export renamed: the reader answers null on one side and the pin fires. Wide, as the docblock says. Right.
    • The manifest's .omit() list gaining or losing a key: fires. A new chain link: fires nothing, see N1.
    • z.enum from a const array: the reader answers null on both sides, so the pin fires on every edit to that file, a comment included. Wide, never quiet. No live row has that shape: all nine enum rows read a plain literal with no spread. A spread element added is one element and fires. Right.
    • .extend across files: the manifest's base has its own row in the other file; the engine base sits in the same file. Right.
    • .gitattributes: a comment that mentions merge=os-regen (plain or indented), merge=os-regen2, reordered lines and re-aligned columns fire nothing; a routed line added, removed, respelled, tab-separated or turned to -merge fires. The reader is the script's own (os-regen-merge.sh:461): same comment rule, same token anchor. Right.
  • Lost place is wider than before: see N2.

② Semver level

skip-changeset is right: three files under scripts/pm/, in no package, so nothing publishes. Check Changeset is success. Clause-②: no and Metadata-protocol: none match the tree: no accept-set, wire shape or protocol surface moves.

No Rule-change: line is owed. The PR template asks for it "only when this pull request changes a file under .claude/", AGENTS.md:298 ties it to the .claude/** row, and --template --paths prints neither a Rule-change-verified: nor a Security-touching: line for this path set, so this record carries neither. scripts/pm/dispatch-gates.mjs is Tier H whatever the body declares.

③ Boundary flags

  • Part of, not Fixes (the report's open question): option A, keep Part of. Every residue item is real at this head and named on the card: the rest of ComponentPropsMap (61 keyed entries, three covered; scope note 2); the two dogfood explain tests (cbp-explain-master-write.dogfood.test.ts:384, explain-write-door-parity.dogfood.test.ts:254; card body item 2); page-nav-misc and report-chart-query (both exist; scope note 2); the HookBodySchema census (scope note 1); the LIVE census of the index editor and the census of ui/ (scope note 3). A closing keyword would close the card with all of these open, and with the S1 and S2 members besides. PR-body guards is success.
  • Probes as working-tree edits, not commits: accepted. The net diff is the three claimed files. The reader half of every "after" reading was reproduced here. The ui run (39 files after a build) was not, and S1 shows two of its green readings do not hold against the test source.
  • check:i18n-coverage NOT MEASURED locally: answered by CI. Lint & Repo Gates runs it (lint.yml:6404) and is success on this head.
  • Check-runs, in progress at report time: read here. 49 runs: 26 success, 23 skipped, none failed, none pending. Lint · PM dispatch-gates, Lint · repo & tooling gates, Test Core, Test UI, Governed Surface Queue Guard are among the green.
  • Slow tier: every new case sits outside the slow( blocks, so it ran in the PR's fast tier. The nine slow sections have no verdict on this tree until main's push run: a watch item for the seat, not a finding.
  • The stray pnpm lint and the refused combined command: neither left anything in the tree.
  • Seven package-test rows classified by reading: accepted, and read here too. Each compares the set whole (cli :376, plugin-email :142, runtime :525, objectql :261 to :280, and the three plugin-security files).
  • Draft, Tier H: the PR is a draft and stays one until an authorized human approves. No seat approves it.
  • SQL push-down: the diff reads source text and git blobs. No query, no id materialisation, no in-app join.
  • PR author is objectstack-fleet[bot]: no off-relay write to name.

④ Design judgment

scripts/pm/dispatch-gates.mjs (hits). Holds against the code it cites.

  • arrayLiteralElements walks the comment-and-literal mask at the literal's own depth, reads a whole-string element from source between the kept delimiters and anything else from comment-masked text, and answers null when the brackets do not close. 'b' as const, a template with an interpolation, a nested array and a comment between elements each read as one stable element. declaredKeySet sorts the result, so a reorder moves nothing, which is the set reading the docblock states.
  • changesOsRegenRouting reads wide where it cannot compare (a side missing, or the file unchanged) and says why in its docblock. The asymmetry with changesServedKeySet, which stays quiet on an unchanged file, is stated and reasoned: the self-test needs no build.

scripts/pm/dispatch-gates.data.mjs (implementing). Each row and why text was read against the declaration and the test it names. They agree, with these exceptions.

S1 (should-fix) — two members the card names by path are neither rowed nor named, and this PR's own BaseNavItemSchema row moves one of them. Scope note 7242776297 lists nav-target.navEntryTypes-11790.test.ts and TranslationPreview.categories-11765.test.tsx as each owed a probe before a row. The PR body records both as green. The test source at this head says otherwise (read, not run):

  • nav-target.navEntryTypes-11790.test.ts:172 to :178 reads the keys every non-separator arm shares off the spec and requires a hand-kept BASE_VALUES entry for each; its own comment says a key the spec adds to its base fails there. All nine arms spread BaseNavItemSchema.shape (app.zod.ts:494 to :829). A key added to BaseNavItemSchema (data :1874, a row this diff adds) fires nav-doc-arm-key-set alone (measured), so it derives one of the two tests it reds. The PR's probe table marks that key "not probed".
  • The same file at :128 holds NAV_ENTRY_TYPES equal to the union's arm list, and navigation-spec-parity.test.ts:319 to :321, the file the doc-arm pin runs, holds that list equal to TRIAGED_NAV_TYPES ("a NEW spec type turns this red"). An arm added to the union at app.zod.ts:1151 fires no pin (measured). A key probe cannot move an arm list, so green there measured nothing.
  • TranslationPreview.categories-11765.test.tsx:150 holds a hand-kept fixture's keys equal to Object.keys(TranslationDataSchema.shape). That shape is appTranslationDataShape() (translation.zod.ts:2881), a function's return and no literal a row can address, so a key probe on the declaration had nowhere to land. No row reads translation.zod.ts, and a group added fires no pin (measured).

None of the three is in the docblock's "NOT in this table" sentence (data :1936), in the PR's residue list or in a card note, and the residue list words the two app-shell censuses as done. Fix, either way: row what the mechanism can read (a pin for the nav-target test that holds an arm spreading the base; the union's array literal is readable by arrayLiteralElements), or name all three in that sentence, in the residue list and on the card.

S2 (should-fix) — the value-set rows name only the holders the *spec-parity* probe saw, and the remainder sentence does not say so. Each enum row's kind reads "changes X's VALUE SET" and derives the spec-parity file or files that went red. The same sets are held whole elsewhere (read at this head, not run):

  • FieldType: packages/services/service-analytics/src/__tests__/measure-result-type.test.ts:266 holds a verdict table equal to FieldType.options, and packages/cli/src/commands/generate-field-type-vocabulary.pin.test.ts:282 requires an entry for every member. 46 test files outside packages/spec enumerate FieldType.options, 30 of them under packages/; the row derives one ui file.
  • ChartTypeSchema: ui/packages/types/src/__tests__/object-chart-families-11513.test.ts:128 holds the spec values outside the mirror equal to a named list.
  • ColumnSummarySchema: ui/packages/plugin-grid/src/__tests__/spec-symbol-batch7.test.ts:67 makes the same hold as the rowed summary file.

The two ui files fall under the card's "census of ui/" residue. The packages/ ones fall under nothing: the docblock's standing sentence (data :1906) says every hit under packages/ was read, but that search was for KEY enumerations, and the tree records no search for .options holders under packages/ for the eight enums this PR rows beyond the card's explain verbs. Fix, either way: row the holders (the chart type already carries three pins on this mechanism), or state in the docblock, the residue list and the card that value-set holders outside the spec-parity files, packages/ included, are unmeasured.

  • N1 (nit) — a chain link added after a rowed literal is unread. Measured: .omit({ … }) or .extend({ … }) appended to EmailServiceConfigSchema's z.object, and a second .omit() or a .pick() in the manifest chain, each change the key set and fire no pin. No declaration has that shape today and the pin test is the CI backstop. The data docblock (:1795) says a call names one literal; it does not say a new link is unread. A line for the card.
  • N2 (nit) — a lost place on a spread row now derives 27 pins; it derived 9. changesServedKeySet answers yes for a spread row it cannot read before it asks whether the pin holds a spreader (:12574, code outside this diff), and all 18 new pins set throughSpreads: true though only nav-doc-arm-key-set holds a declaration that spreads anything. Measured: the declaration of MetadataProtectionFields or OverrideDeclarationFields renamed, or its file deleted, fires 27 at head and 9 at base; BaseNavItemSchema renamed fires 27 and 0. Wide by the stated contract, at the cost of 18 unrelated tests.
  • N3 (nit) — data :1917 to :1924 still says the spec-parity battery under ui/packages/types and the five non-metadata pins are "Read and NOT in this table, 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 paragraph this PR adds below it rows them. Both cannot hold.
  • N4 (nit) — the list-view entry of ComponentPropsMap is ListViewPageProps (component.zod.ts:8667), which spreads ListViewSchema.shape and declares columns and options itself. The row reads the spread source, ListViewShapeSchema; a key added to ListViewPageProps' own literal fires nothing (measured). That sits inside "the rest of ComponentPropsMap" the row's why leaves open, but the same text counts the list view as measured. Name it on the card.
  • N5 (nit) — os-regen-merge.sh --self-test also holds OS_REGEN_CLASSES to the driver's mixed: rows in scripts/regen-artifacts.mjs (script :2413). A mixed: row added there is outside the folded row's two paths and outside this predicate. Read, not measured against --commands. A line for the card.

scripts/pm/dispatch-gates.self-test.mjs (implementing). Agrees with the contract. The generic loops cover every new row: a key or value added must fire exactly the pins that hold it, and a describe() must fire none, with fixtures for enum and chained declarations. The os-regen predicate has seven edit shapes, the unchanged and script-path cases, and LIVE checks on the binding and on the script. Two weaknesses, neither a defect in the derivation:

  • N6 (nit) — the three explain rows carry one kind string verbatim (data :1537, :1550, :1563); every other schema held by several tests tells them apart ("as the … holds it"). A dev is shown three identical header lines, and the self-test's ksRows.find((r) => r.kind === k.kind) (:6068, :6088) binds all three entries to the first pin.
  • N7 (nit) — nine of the eighteen LIVE spellings are a bare schema name (/FieldType/, /ChartTypeSchema/ and so on, :6237 on). They hold that the test still mentions the schema, not that it still compares .options whole.

Implemented-by: claude/issue-38362-whole-set-pin-derivation
Reviewed-by: session_01FEkQ5oPfjnm2yWHEwkiYrn

VERDICT: PASS

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants