Repository navigation
Commit 43fe8e4
test(pm): dispatch-gates rows the remaining whole-set key pins (#38756)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi98ZAtPQK4A8ABvN79TALFDE)_
Part of #38362
Clause-②: no
Metadata-protocol: none
Rule-change: none
## 维护者速读
- 用户无感:只改开发派单用的门禁推导工具,开发者改动规格里某个键或枚举值时,会被提示去跑真正钉住它的界面测试或回归测试。
- 属于「整集钉住测试按差异自动推导」的收尾工作,替开发者省掉推上去才发现界面测试变红的一轮来回。
- 出错最多是多提示或漏提示某个测试,只影响本地提示,持续集成照常全跑;可直接撤回。
- 无。
## What changes
The remaining whole-set pins of the card now derive from the diff,
through the same key-set reader the earlier slices added (`schema` /
`schemas` / `within`), not by a path match. This covers 26 new pins plus
the registry-inputs pin, which grows from 3 to 39 props schemas. All
three files are inside the dispatch fence.
- **Data.** 59 new declaration rows (116 in all). Each of the 26 new
pins has its own CHANGE_KIND row bound to its CI job: 24 rows bind to
Test UI, and the 2 dogfood explain tests bind to Dogfood Regression
Gate.
- **Engine (N13).** `rowLiteral` now searches for a row's call only
inside the declaration's own statement. A re-spaced arrow reads null;
before, it landed on the next declaration's arrow.
- **N16.** Removed the dead `callArgumentStart` and the comment that
cited it.
- **N11.** The os-regen row's kind, why and repair text now name the
`scripts/regen-artifacts.mjs` trigger.
- **N12.** The two repair owners are corrected: the lint test's own
FUNCTIONS table, and the spec's value-type sets.
- **N14.** The separator live case reads the test's own `toEqual`
literal.
- **N15.** The census docblock says that enums with no row were searched
by neither pass, with a read example.
- **EmbeddedItemEditor.** A LIVE census holds the index fallback list
equal to IndexSchema's authorable keys, less the retired ones.
- **N7.** Already done in #38574. Dropped, with that reading.
### Measured population
**Method.** One key (or value) was added to each of 110 spec
declarations, and the seven packages the Test UI job builds were
rebuilt. The 270 ui test files that enumerate one of these declarations
were run in three probe batches. A clean rerun of the 46 red files was
all green, so every red came from a probe.
**Result.** Of the 46 red files:
- 19 were already rowed, so each derived before this change. They are
dropped, with that reading. The registry-inputs parity is among them,
and its schema list grows here.
- 24 are newly rowed.
- 3 are left on the card (see Acceptance notes).
`page-nav-misc` and `report-chart-query` stayed green under probes of
six schemas they read, on a dist built with declarations. They derive by
construction, so they are dropped.
The before and after columns below come from one batch `--commands`: a
key or value was added to one member of each pin across 15 spec files,
and the files were restored byte-exact afterwards.
- **Before:** the batch ran on the base scripts and named 0 of 27 tests.
- **After:** the batch ran at fbeae33 and named 27 of 27.
- **Control:** a describe-only edit in the same files named 0 of 27.
| pin | schema(s) | test | probe before | probe after |
|---|---|---|---|---|
| `registry-inputs-key-set` | 39 props schemas |
`registry-inputs-spec-parity.test.ts` | not named (probe on a props
schema the pin did not hold; it held 3) | named |
| `script-body-key-set` | HookBodySchema, ExpressionBodySchema,
ScriptBodySchema |
`ActionDefaultInspector.scriptBodyLanguage-11921.test.tsx` | not named |
named |
| `end-message-key-set` | EndConfigSchema |
`FlowNodeInspector.endMessage-9336.test.tsx` | not named | named |
| `end-output-variable-key-set` | EndConfigSchema |
`FlowNodeInspector.endOutputVariable-9335.test.tsx` | not named | named
|
| `approval-config-zh-key-set` | ApprovalNodeConfigSchema |
`flow-node-config.zhPanel-34818.test.ts` | not named | named |
| `package-source-value-set` | InstalledPackageSourceSchema |
`packageSource-12790.test.ts` | not named | named |
| `access-scope-value-set` | ObjectAccessScopeSchema |
`PermissionMatrixEditor.recordScope-26187.test.tsx` | not named | named
|
| `color-variant-swatch-value-set` | WidgetColorVariantSchema |
`color-variant-field.test.tsx` | not named | named |
| `color-variant-accent-value-set` | WidgetColorVariantSchema |
`DatasetWidget.colorVariant.test.tsx` | not named | named |
| `filter-operator-key-set` | FieldOperatorsSchema |
`FilterConditionField.operators.test.ts` | not named | named |
| `page-block-type-value-set` | PageComponentType |
`block-config.test.ts` | not named | named |
| `page-kind-value-set` | PageTypeSchema |
`page-kind-node-type-channel-9642.test.tsx` | not named | named |
| `aggregation-function-value-set` | AggregationFunction |
`ObjectMetricWidget.countNotCurrency-10356.test.tsx` | not named | named
|
| `list-gantt-block-key-set` | GanttConfigSchema |
`ListView.readersRetired-6152.test.tsx` | not named | named |
| `view-gantt-timeline-key-set` | GanttConfigSchema,
TimelineConfigSchema | `ObjectView.harness.test.tsx` | not named | named
|
| `object-tree-props-key-set` | ObjectTreePropsSchema |
`ObjectTree.schemaTyped-8655.test.ts` | not named | named |
| `chart-axis-config-key-set` | ChartAxisSchema |
`chart-axis-config-7690.test.ts` | not named | named |
| `object-chart-axis-config-key-set` | ChartAxisSchema |
`object-chart-axis-config-10518.test.ts` | not named | named |
| `chart-aggregate-legacy-value-set` | ChartAggregateFunctionSchema |
`object-chart-legacy-axis-keys-retired-10608.test.ts` | not named |
named |
| `list-view-protocol-key-set` | ListViewShapeSchema,
ObjectListViewSchema | `object-view-unmirrored-keys-7779.test.ts` | not
named | named |
| `record-approvals-row-key-set` | RecordApprovalsProps |
`record-panels-arms-12363.test.ts` | not named | named |
| `select-option-key-set` | SelectOptionSchema |
`select-option-tier1-convergence-7014.test.ts` | not named | named |
| `user-filter-field-key-set` | UserFilterFieldSchema |
`spec-symbol-parity.test.ts` | not named | named |
| `tree-config-key-set` | TreeConfigSchema |
`tree-view-config-readers-8253.test.ts` | not named | named |
| `marketplace-taxonomy-value-set` | MarketplaceBusinessFunctionSchema,
MarketplaceIndustrySchema, MarketplaceSolutionTypeSchema |
`marketplace-taxonomy-labels-31011.test.ts` | not named | named |
| `explain-door-parity-value-set` | ExplainOperationSchema |
`explain-write-door-parity.dogfood.test.ts` | not named | named |
| `explain-master-write-value-set` | ExplainOperationSchema |
`cbp-explain-master-write.dogfood.test.ts` | not named | named |
## Tests
- `node scripts/pm/dispatch-gates.mjs --self-test --fast` passed all
2890 cases. The new rows are covered by these cases:
- Each new declaration row runs through the nested-row loop. A key added
to the row derives exactly the pins that hold it, and a `describe()`
derives none.
- The union world renders all 71 pins runnably, each with its build
prerequisite. The dogfood pins state the dogfood closure build.
- The run record is not ok when any one of the 71 is missing.
- Each pin renders STALE when its binding is lost.
- The live-spelling table has 26 new regexes, each checked against its
test's source.
- Three N13 cases: two-declaration fixtures read null, and the live file
re-spaced reads null. A control checks that every row still reads.
- The EmbeddedItemEditor LIVE census, with a reader control.
- The list view shape is read by a spread row and a schema row but
renders once.
- The slow self-test tier was not run locally (NOT MEASURED). The fast
tier alone took 453 s, near the foreground cap.
## Acceptance notes
Left on the card:
- **Tombstone sets** in the unauthorable-columns test. A key retired in
place changes only a member's value (a `retiredKey(…)` call), so
deriving it needs a member-value reader. That is a new mechanism and
belongs in a new module, outside this fence.
- **`zod-mirror-parity`.** It pairs eight spec-only keys dynamically
over ComponentPropsMap, and no row here attributes them to one schema.
- **`object-gantt-properties-bag-10859-b6`.** Its failures show the same
probe collision as `flat-props-refusal-10872`: one name spelled into
both the page component node and a props schema. It needs a
single-schema re-probe. `flat-props-refusal-10872` itself is a refusal
pin, not a whole set, so it is not rowed.
- **Script-body language literals.** A language renamed inside an arm's
`z.literal(…)` moves no row. This miss is documented in the docblock.
- **Unsearched enums.** Holders of enums that have no row were not
searched. For example, the lock-resolution test holds
`MetadataLockSchema.options`. This is documented, not rowed.
## Verification
Files to read first, by risk:
1. `scripts/pm/dispatch-gates.mjs`: the `rowLiteral` end bound. It
changes every `call` row.
2. `scripts/pm/dispatch-gates.data.mjs`: the 26 CHANGE_KIND rows and the
census docblock.
3. `scripts/pm/dispatch-gates.self-test.mjs`: the `ksByPath` union world
and `ksSpreadShared`.
Two-minute check: add `'probe_value',` to `PageTypeSchema`'s enum in
`packages/spec/src/ui/page.zod.ts`, then run `node
scripts/pm/dispatch-gates.mjs --commands`. Expect `pnpm --dir ui exec
vitest run …page-kind-node-type-channel-9642.test.tsx` among the
commands.
Gates at fbeae33: `dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 63 families, and all 63 ran in the
foreground with exit 0. `--ran` reports 63 derived, 63 run, 0
NOT-MEASURED and 0 UNRUN. `check:i18n-coverage` first exited 3
(PREREQUISITE NOT MET). It passed after its prerequisite closure was
built under the lock. The overlap check was clean.
## L2 fix round
Head 1758942. This round addresses S1 and S2, plus nits N2 and N3, from
the L2 record (comment 7277396273). N1 needs no change.
**S1.** `registry-inputs-key-set` now holds 43 schemas:
- the 39 props schemas it held before;
- `RecordApprovalsProps`;
- `ElementFormPropsSchema`, newly rowed;
- the shared `emptyProps` literal, newly rowed (`strictObject`/1, empty
by design);
- `ComponentPropsMap`'s own block list, newly rowed (call `null`: the
literal after the `=`, with quoted keys read by their content).
The row's `kind` and `why` are rewritten to cover what the pin now
holds: the partition of the block list, the inputs parity, and the
retired-upstream and empty-shape ledger arms.
The earlier "green" for `element:form` was a batch artifact. The ledger
case stops at its first failing block, and `element:filter`'s probe in
the same batch failed first.
**S2.**
- `approval-config-zh-key-set` now also holds `DecisionConfigSchema`,
newly rowed.
- `page-block-type-value-set` now also holds
`RecordDetailsProps.sections`. This is a new `within` row: one step from
`RecordDetailsProps` into the inline `strictObject` of `sections`.
- Both rows' `kind` and `why` are rewritten to match.
**N2.** The census sentence is rewritten. Three blocks stay out, and
each was green on its own probe: the inline `ai:suggestion`,
`element:image` and `element:metadata_viewer`. All three are in the
test's `EXPECTED_WITHOUT_INPUTS`. The four `retiredComponentProps`
blocks are a `z.never` with no key set. The docblock also now says that
a red file was attributed to its probe's schema, so other sets the file
holds were not read, and that a batch can hide a red.
**N3.** The census names #38757 as the carrier of the tombstone
member-value reader.
### One-schema probes
The **ui test** column adds one key, or one block to the map, to the
spec source and runs that one test file. The spec JS was rebuilt for
each run, and the source was restored byte-exact afterwards. Each file
was also green on a clean run (registry parity: 261 tests; zh panel: 7;
block-config: 47).
The **base** and **head** columns record whether `--commands` names the
test for that same edit. **Base** ran on the fbeae33 data and
self-test, swapped in and then restored (sha256 verified). **Head** ran
at 1758942.
| member | ui test | ui test under probe | `--commands` base |
`--commands` head |
|---|---|---|---|---|
| ComponentPropsMap (a block added) | registry-inputs parity | red:
partition and size cases | not named | named |
| ElementFormPropsSchema | registry-inputs parity | red:
retired-upstream arm | not named | named |
| RecordApprovalsProps | registry-inputs parity | red: empty-shape arm |
not named (arms test only) | named |
| emptyProps literal | registry-inputs parity | red: empty-shape arm
(`app:launcher` first) | not named | named |
| DecisionConfigSchema | zh panel | red: served decision string | not
named | named |
| RecordDetailsProps.sections[] | block-config | red: section editor
coverage | not named | named (block-config alone) |
| ai:suggestion inline | registry-inputs parity | green | — | not rowed
|
| ElementImagePropsSchema | registry-inputs parity | green | — | not
rowed |
| ElementMetadataViewerPropsSchema | registry-inputs parity | green | —
| not rowed |
**Controls on head.** A describe-only edit in `component.zod.ts` names
no ui test, and neither does one in `schemaless-node-config.zod.ts`.
**Self-test.** `--self-test --fast` passes all 2904 cases. Every new row
is held by the nested-row loop: a key added derives exactly the pins
that hold it, and a `describe()` derives none. There are three new LIVE
cases (the block list, the section entry and the element:form row) and
one rendering control: the section entry and its host render as one
declaration.
**Gates at 1758942.** The derived list is the same 63 families. All 63
ran in the foreground and exited 0. `--ran` reports 63 derived, 63 run,
0 NOT-MEASURED. The overlap check was clean before the push.
<!-- signed: repo:objectstack#3 · os-steve ·
session_01ADHkmRJUY9Ncce14hVHd25 -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 49c09ed commit 43fe8e4
3 files changed
Lines changed: 718 additions & 80 deletions
0 commit comments