diff --git a/scripts/pm/dispatch-gates.data.mjs b/scripts/pm/dispatch-gates.data.mjs index 6f2dadb3a49..51d20d44fdb 100644 --- a/scripts/pm/dispatch-gates.data.mjs +++ b/scripts/pm/dispatch-gates.data.mjs @@ -1927,14 +1927,14 @@ export const CHANGE_KIND_ROWS = [ ], }, { - kind: "changes the ARM LIST of HookBodySchema (an arm added, removed or respelled) or the KEY SET of one of its two arms, ExpressionBodySchema or ScriptBodySchema, as the action inspector's script-body census holds them (a key added, removed or renamed, read from the DIFF against the merge base)", + kind: "changes the ARM LIST of HookBodySchema (an arm added, removed or respelled), the KEY SET of one of its two arms, ExpressionBodySchema or ScriptBodySchema, or an arm's `language` literal, as the action inspector's script-body census holds them (a key added, removed or renamed, or a language renamed, read from the DIFF against the merge base)", matches: 'script-body-key-set', gates: [ { name: 'pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/inspectors/ActionDefaultInspector.scriptBodyLanguage-11921.test.tsx', ciJob: 'Test UI', ciRunner: 'pnpm --dir ui exec vitest run', - why: "it holds the inspector's BODY_KEYS_BY_LANGUAGE equal to the hook body union's arms, by language and by each arm's keys, both ways, so an arm or an arm key added, removed or renamed reds it until the inspector's table moves with it. Measured: one key added to each arm reds it. A language literal renamed inside an arm (its `language` value, not a key) moves no set this row reads and derives nothing; it is a miss, not a quiet green, because the census reds on it. It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by moving BODY_KEYS_BY_LANGUAGE (the language's entry, and the keys the inspector writes for it)", + why: "it holds the inspector's BODY_KEYS_BY_LANGUAGE equal to the hook body union's arms, by language and by each arm's keys, both ways, so an arm or an arm key added, removed or renamed reds it until the inspector's table moves with it. Measured: one key added to each arm reds it, and so does one language literal renamed inside an arm (each arm's `language` value is read as a one-value set through a `within` step into its `z.literal`). It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by moving BODY_KEYS_BY_LANGUAGE (the language's entry, and the keys the inspector writes for it)", }, ], }, @@ -2035,14 +2035,14 @@ export const CHANGE_KIND_ROWS = [ ], }, { - kind: "changes PageComponentType's VALUE SET as the page designer's block palette holds it (a value added, removed or renamed), or the KEY SET of one record:details section entry (RecordDetailsProps.sections[], a key added, removed or renamed) as the block inspector's section editor holds it, read from the DIFF against the merge base", + kind: "changes PageComponentType's VALUE SET as the page designer's block palette holds it (a value added, removed or renamed), the KEY SET of one record:details section entry (RecordDetailsProps.sections[], a key added, removed or renamed) as the block inspector's section editor holds it, or the quick-actions bar's location VALUE SET (ACTION_LOCATIONS less RecordQuickActionsLocationSchema's exclude list) as its location field holds it, read from the DIFF against the merge base", matches: 'page-block-type-value-set', gates: [ { name: 'pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/previews/__tests__/block-config.test.ts', ciJob: 'Test UI', ciRunner: 'pnpm --dir ui exec vitest run', - why: "it requires every spec page block type to be offered in BLOCK_TYPE_META or excluded in PALETTE_EXCLUSIONS, so a block type added to the enum reds it until the palette decides it; and it requires an item editor in the record:details inspector for every key one sections[] entry declares, bar its deferred nine, so a key added to the section entry reds it until the inspector authors it. Measured: one value added to the enum reds it, and one key added to the section entry does. It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by offering the type in BLOCK_TYPE_META (it needs a renderer) or excluding it in PALETTE_EXCLUSIONS with the reason; for a section key, by adding its item editor (or deferring it in the test with the reason)", + why: "it requires every spec page block type to be offered in BLOCK_TYPE_META or excluded in PALETTE_EXCLUSIONS, so a block type added to the enum reds it until the palette decides it; and it requires an item editor in the record:details inspector for every key one sections[] entry declares, bar its deferred nine, so a key added to the section entry reds it until the inspector authors it; and it holds the record:quick_actions location field's options equal to RecordQuickActionsLocationSchema's options, so a location added to ACTION_LOCATIONS (or dropped from the exclude list) reds it until the field offers it. Measured: one value added to the enum reds it, one key added to the section entry does, and one value added to ACTION_LOCATIONS does. It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by offering the type in BLOCK_TYPE_META (it needs a renderer) or excluding it in PALETTE_EXCLUSIONS with the reason; for a section key, by adding its item editor (or deferring it in the test with the reason); for a location, by offering it in the bar's location field", }, ], }, @@ -2240,6 +2240,288 @@ export const CHANGE_KIND_ROWS = [ }, ], }, + { + kind: "changes the KEY SET of a spec schema the ui zod mirror parity pairs with a mirror that restates its keys (the form-view field entry's base shape and its extension, the props schemas of the flat object-* mirrors, the list view entry, the empty and approvals props) or ComponentPropsMap's block list, as its spec-only direction holds them (a key added, removed or renamed, read from the DIFF against the merge base)", + matches: 'zod-mirror-spec-only-key-set', + gates: [ + { + name: 'pnpm --dir ui exec vitest run packages/types/src/__tests__/zod-mirror-parity.test.ts', + ciJob: 'Test UI', + ciRunner: 'pnpm --dir ui exec vitest run', + why: "it pairs every objectui zod mirror with the spec schema of the same name and with the ComponentPropsMap row its `type` literal names, and requires every key the spec side declares to be declared or refused by the mirror or recorded in SPEC_ONLY_KEY_ROWS, and every row to name a key that is still spec-only, so a key added to a paired schema whose mirror restates its keys reds it, a recorded key removed from the form-view field entry reds it, and a block added to the map for a type a mirror already owns pairs a new mirror and reds it. Measured: one key added to each of the 48 spec schemas the pairs name reds it for exactly the ones rowed here (the mirrors that read their row by reference follow a new key and stay green), and one block added to the map for a mirror-owned type reds it. ⚠ A NEW pair formed by a spec export renamed to a mirror's name is not a key set and derives nothing. It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by declaring the key on the mirror by reference, refusing it by name, or adding its SPEC_ONLY_KEY_ROWS row with the reason (and deleting the row of a key the spec dropped)", + }, + ], + }, + { + kind: "changes InvitationStatus's VALUE SET as the client SDK's invitation vocabulary pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'invitation-status-client-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/client exec vitest run src/invitation-status-vocabulary.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/client/src/invitation-status-vocabulary.test.ts', + why: "it holds the spec's invitation status options equal to the five values it spells, in order, so a status added, removed or renamed reds it until the SDK's typed methods and the pin agree. Measured: one value added to the enum reds it. It is a client test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/client^...' build . Repair by moving the pinned list with the enum (and the SDK methods typed from it)", + }, + ], + }, + { + kind: "changes InvitationStatus's VALUE SET as the invitation screens' copy pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'invitation-status-screens-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/platform-objects exec vitest run src/identity/invitation-screens-copy.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/platform-objects/src/identity/invitation-screens-copy.test.ts', + why: "it holds the invitation object's status select options equal to the spec enum's options, in order, each labelled, so a status added reds it until the object offers and labels it. Measured: one value added to the enum (with its label, which the object's typed label table requires) reds it. It is a platform-objects test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/platform-objects^...' build . Repair by giving the status its label and colour in the invitation object", + }, + ], + }, + { + kind: "changes the VALUE SET of DataEventType or BulkDataEventType as the client realtime delivery pin holds them (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'data-event-type-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/client exec vitest run src/realtime-api-data-event-types.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/client/src/realtime-api-data-event-types.test.ts', + why: "it delivers one event of every type each enum declares and requires the subscriber to see exactly the enum's options, so a type added to either enum reds it until the realtime client routes it. Measured: one value added to each enum reds it, one case each. It is a client test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/client^...' build . Repair by routing the type in the realtime client's subscribeData or subscribeBulkData", + }, + ], + }, + { + kind: "changes DateGranularity's VALUE SET (TimeUpdateInterval reuses its options) as the memory driver's time granularity pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'date-granularity-memory-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/driver-memory exec vitest run src/memory-analytics-time-granularity.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/drivers/driver-memory/src/memory-analytics-time-granularity.test.ts', + why: "it holds TimeUpdateInterval's options, which are DateGranularity's, equal to the driver's BUCKET_GRANULARITIES, so a granularity added reds it until the memory driver buckets it. Measured: one value added to DateGranularity reds it. ⚠ TimeUpdateInterval respelled to a list of its own moves no row (its declaration reads another enum's options, no literal). It is a driver-memory test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config aliases the spec package to source, but the rest of its closure is read BUILT and a stale dist answers for your edit: build the closure first, pnpm --filter '@objectstack/driver-memory^...' build . Repair by bucketing the granularity in the memory driver", + }, + ], + }, + { + kind: "changes DateGranularity's VALUE SET (TimeUpdateInterval reuses its options) as the analytics bucket enumeration holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'date-granularity-echo-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/service-analytics exec vitest run src/__tests__/objectql-echo-bucket-enumeration.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts', + why: "it enumerates every granularity TimeUpdateInterval declares (DateGranularity's options) against the echo bucket shapes, so a granularity added reds its cases until the analytics service buckets it. Measured: one value added to DateGranularity reds it. It is a service-analytics test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/service-analytics^...' build . Repair by bucketing the granularity in the analytics service's echo path", + }, + ], + }, + { + kind: "changes HookBodyCapability's VALUE SET as lint's action-body capability token pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'hook-capability-token-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/lint exec vitest run src/validate-action-body-capabilities.hook-and-tokens-37815.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/lint/src/validate-action-body-capabilities.hook-and-tokens-37815.test.ts', + why: "it holds the capability enum's options equal to the gate tokens the action-body runner holds, both sorted, so a capability added reds it until the runner gates it. Measured: one value added to the enum reds it. It is a lint test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/lint^...' build . Repair by gating the capability in the runner", + }, + ], + }, + { + kind: "changes AggregationMetricType's live VALUE SET (the first argument of its enumWithRetiredValues call) as lint's dataset measure aggregate pin holds it (a value added, removed, renamed or retired, read from the DIFF against the merge base)", + matches: 'metric-type-lint-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/lint exec vitest run src/validate-dataset-measure-aggregates.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/lint/src/validate-dataset-measure-aggregates.test.ts', + why: "it sweeps every metric type the enum declares, against every field type, through the cube doors' rules and the dataset measure aggregate check, so a metric type added reds it until lint's AGGREGATES table and the doors agree on it. Measured: one value added to the enum reds it. It is a lint test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/lint^...' build . Repair by classifying the metric type in lint's AGGREGATES table", + }, + ], + }, + { + kind: "changes AggregationMetricType's live VALUE SET (the first argument of its enumWithRetiredValues call) as the analytics metric type coverage pin holds it (a value added, removed, renamed or retired, read from the DIFF against the merge base)", + matches: 'metric-type-coverage-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/service-analytics exec vitest run src/metric-type-coverage.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/services/service-analytics/src/metric-type-coverage.test.ts', + why: "it holds the SQL aggregate table's keys equal to the enum's options, both sorted, and compiles every option, so a metric type added reds it until the analytics service has its SQL. Measured: one value added to the enum reds it. It is a service-analytics test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/service-analytics^...' build . Repair by adding the metric type's SQL to the aggregate table", + }, + ], + }, + { + kind: "changes ShareRecipientType's VALUE SET as lint's org-axis red-line partition holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'share-recipient-partition-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/lint exec vitest run src/validate-org-axis-red-lines.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/lint/src/validate-org-axis-red-lines.test.ts', + why: "it requires the org-axis check's BU-tree and flat recipient lists to partition the enum's options exactly, so a recipient type added reds it until the check accounts for it. Measured: one value added to the enum reds it. It is a lint test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/lint^...' build . Repair by placing the recipient type in BU_TREE_RECIPIENTS or FLAT_RECIPIENTS", + }, + ], + }, + { + kind: "changes ShareRecipientType's VALUE SET as plugin-sharing's field recipient pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'share-recipient-field-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/plugin-sharing exec vitest run src/field-recipient.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/plugins/plugin-sharing/src/field-recipient.test.ts', + why: "it requires the share rule object's recipient select to store every member of the enum, so a recipient type added reds it until the select offers it. Measured: one value added to the enum reds it. It is a plugin-sharing test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/plugin-sharing^...' build . Repair by adding the member to the recipient select's options", + }, + ], + }, + { + kind: "changes MetadataLockSchema's VALUE SET as the metadata-protocol lock resolution pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'metadata-lock-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.lock-one-resolution.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/metadata-protocol/src/protocol.lock-one-resolution.test.ts', + why: "it holds the lock enum's options equal to the four values it spells and walks every lock against every request scope, so a lock added reds it until the one resolution decides it. Measured: one value added to the enum reds it. It is a metadata-protocol test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/metadata-protocol^...' build . Repair by deciding the lock in the protocol's one lock resolution, and moving the pinned list", + }, + ], + }, + { + kind: "changes MetadataTypeSchema's VALUE SET as objectql's package-scoped exact qualifier pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'metadata-type-package-read-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/objectql exec vitest run src/package-scoped-exact-qualifier.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/objectql/src/package-scoped-exact-qualifier.test.ts', + why: "it splits every metadata type the enum declares outside the package-scoped read list into the classifications its cases name and requires each to land in one, so a metadata type added reds it until the qualifier's lists decide it. Measured: one value added to the enum reds it. It is a objectql test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/objectql^...' build . Repair by adding the type to the package-scoped read list or to the classification the test names", + }, + ], + }, + { + kind: "changes SpecifierScopeSchema's VALUE SET as the settings object's organization-unique pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'specifier-scope-unique-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/platform-objects exec vitest run src/system/sys-setting.organization-unique.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/platform-objects/src/system/sys-setting.organization-unique.test.ts', + why: "it holds the cascade layers the enum declares equal to the three it spells, and the settings object's scope options equal to them less the global rung, in order, so a layer added reds it until the object and the pin move with it. Measured: one value added to the enum reds it. It is a platform-objects test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/platform-objects^...' build . Repair by storing the layer in the settings object's scope options, and moving the pinned list", + }, + ], + }, + { + kind: "changes SpecifierScopeSchema's VALUE SET as the settings object's scope options pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'specifier-scope-options-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/platform-objects exec vitest run src/system/sys-setting.scope-options.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/platform-objects/src/system/sys-setting.scope-options.test.ts', + why: "it holds the settings object's scope options equal to the enum's options less the global rung, so a scope added reds it until the object offers it. Measured: one value added to the enum reds it. It is a platform-objects test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/platform-objects^...' build . Repair by offering the scope in the settings object's scope field", + }, + ], + }, + { + kind: "changes ExecutionStatus's VALUE SET as plugin-approvals' dead-run sweep pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'execution-status-liveness-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/plugin-approvals exec vitest run src/run-status-liveness.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/plugins/plugin-approvals/src/run-status-liveness.test.ts', + why: "it holds RUN_STATUS_LIVENESS's keys equal to the enum's options, both sorted, so a status added reds it until the sweep classifies it. Measured: one value added to the enum reds it. It is a plugin-approvals test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/plugin-approvals^...' build . Repair by classifying the status in RUN_STATUS_LIVENESS", + }, + ], + }, + { + kind: "changes EmailProviderSchema's VALUE SET as plugin-email's provider parity holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'email-provider-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/plugin-email exec vitest run src/transports/spec-provider-parity.contract.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/plugins/plugin-email/src/transports/spec-provider-parity.contract.test.ts', + why: "it holds the spec provider enum equal to EMAIL_TRANSPORT_PROVIDERS as sets and builds a transport for every provider, so a provider added reds it until plugin-email ships its transport. Measured: one value added to the enum reds it. It is a plugin-email test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/plugin-email^...' build . Repair by adding the provider's transport to EMAIL_TRANSPORT_PROVIDERS", + }, + ], + }, + { + kind: "changes ValueDomainSchema's VALUE SET as service-settings' value domain pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'value-domain-settings-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/service-settings exec vitest run src/value-domains.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/services/service-settings/src/value-domains.test.ts', + why: "it requires every member of the value domain vocabulary to be enforceable by the settings service and to carry a garbage probe in its table, so a domain added reds it until the service judges it. Measured: one value added to the enum (with the label, field-name and membership entries the spec's own typed tables require) reds it. It is a service-settings test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config aliases the spec package to source, but the rest of its closure is read BUILT and a stale dist answers for your edit: build the closure first, pnpm --filter '@objectstack/service-settings^...' build . Repair by teaching the settings service the domain", + }, + ], + }, + { + kind: "changes UploadScopeSchema's VALUE SET as service-storage's upload scope vocabulary pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'upload-scope-value-set', + gates: [ + { + name: 'pnpm --filter @objectstack/service-storage exec vitest run src/upload-scope-vocabulary.test.ts', + ciJob: 'Test Core', + ciRunner: 'set -- pnpm turbo run test', + ciSubset: 'packages/services/service-storage/src/upload-scope-vocabulary.test.ts', + why: "it holds the file object's scope options and UPLOAD_SCOPES equal to the enum's options, in order, so a scope added reds it until the storage service and its file object carry it. Measured: one value added to the enum (with the label the file object's typed table requires) reds it. It is a service-storage test, so no check family and no spec package test covers it: CI runs it only inside the Test Core shards' package test task. Its vitest config does NOT alias the spec package to source, so the test reads the BUILT spec dist and a stale dist answers green for your edit: build the closure first, pnpm --filter '@objectstack/service-storage^...' build . Repair by adding the scope to UPLOAD_SCOPES and the file object's labelled options", + }, + ], + }, + { + kind: "changes PluginRuntimeSchema's VALUE SET as the marketplace plugin runtime tier pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'plugin-runtime-tier-value-set', + gates: [ + { + name: 'pnpm --dir ui exec vitest run packages/app-shell/src/console/marketplace/__tests__/plugin-runtime-tier-3846.test.tsx', + ciJob: 'Test UI', + ciRunner: 'pnpm --dir ui exec vitest run', + why: "it holds RUNTIME_FALLBACK's keys equal to the enum's options, both sorted, and requires a label for each, so a tier added reds it until the console labels it. Measured: one value added to the enum reds it. It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by giving the tier its label in RUNTIME_FALLBACK", + }, + ], + }, + { + kind: "changes ValueDomainSchema's VALUE SET as the field inspector's value domain pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'value-domain-inspector-value-set', + gates: [ + { + name: 'pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.valueDomain-7597.test.tsx', + ciJob: 'Test UI', + ciRunner: 'pnpm --dir ui exec vitest run', + why: "it walks every member of the value domain vocabulary through the field inspector's value domain control, so a domain added reds it until the inspector labels and offers it. Measured: one value added to the enum (with the entries the spec's own typed tables require) reds it. It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by offering the domain in the field inspector's value domain control", + }, + ], + }, + { + kind: "changes ActionType's live VALUE SET (ACTION_TYPE_VALUES, the list its enumWithRetiredValues call reads) as the studio actions panel's preset pin holds it (a value added, removed or renamed, read from the DIFF against the merge base)", + matches: 'action-type-presets-value-set', + gates: [ + { + name: 'pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/ObjectActionsPanel.presets-11861.test.tsx', + ciJob: 'Test UI', + ciRunner: 'pnpm --dir ui exec vitest run', + why: "it runs one case per action type the enum declares and requires the preset module to hold an input exactly when the spec refuses the type without a target, so a type added reds it until the preset tables decide it. Measured: one value added to the list reds it. It is a ui test, so no package suite outside ui and no check family covers it: CI runs it only inside the Test UI shards. ui's vitest config aliases only the sdui-parser to source, so the test reads @objectstack/spec from its BUILT dist and a stale one answers for your edit: build the seven @objectstack packages the job builds first, exactly as it does: pnpm exec turbo run build --filter=@objectstack/spec... --filter=@objectstack/client... --filter=@objectstack/core... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/sdui-parser... --filter=@objectstack/types... . One positional file, no bare `--`, from the repo root. Repair by giving the type its row in the preset module's tables", + }, + ], + }, { kind: 'changes the generated-artifact merge routing (a `merge=os-regen` line added, removed or edited in .gitattributes, read from the DIFF against the merge base) or edits scripts/pm/os-regen-merge.sh itself, or edits the driver table scripts/regen-artifacts.mjs that its self-test imports', matches: 'os-regen-merge-input', @@ -2517,6 +2799,49 @@ export const SERVED_KEY_SET_DECLARATIONS = Object.freeze([ within: Object.freeze([Object.freeze({ member: 'sections', call: 'strictObject', argument: 1 })]), }), Object.freeze({ schema: 'DecisionConfigSchema', path: 'packages/spec/src/automation/schemaless-node-config.zod.ts', declares: 'DecisionConfigSchema', call: 'strictObject', argument: 1 }), + // The ui zod mirror parity's spec-only direction: the spec sides whose mirror restates its keys (measured by run). The + // form-view field entry is its base's `shape` literal (the first `const shape` binding in view.zod.ts, held to the + // entry's keys by a live census in the self-test) plus the one key the `.extend()` adds. + Object.freeze({ schema: 'FormFieldBaseSchema', path: 'packages/spec/src/ui/view.zod.ts', declares: 'shape', call: null, argument: 0 }), + Object.freeze({ schema: 'FormFieldSchema', path: 'packages/spec/src/ui/view.zod.ts', declares: 'FormFieldSchema', call: 'extend', argument: 0 }), + // The hook body union's discriminators: each arm's `language` literal, one value, read through a `within` step. + Object.freeze({ + schema: 'ExpressionBodySchema.language', + path: 'packages/spec/src/data/hook-body.zod.ts', + declares: 'ExpressionBodySchema', + call: 'strictObject', + argument: 1, + within: Object.freeze([Object.freeze({ member: 'language', call: 'z.literal', argument: 0 })]), + }), + Object.freeze({ + schema: 'ScriptBodySchema.language', + path: 'packages/spec/src/data/hook-body.zod.ts', + declares: 'ScriptBodySchema', + call: 'strictObject', + argument: 1, + within: Object.freeze([Object.freeze({ member: 'language', call: 'z.literal', argument: 0 })]), + }), + // The enums no row read before the enum census (measured by run): each one a value added reds a holder of. + Object.freeze({ schema: 'InvitationStatus', path: 'packages/spec/src/identity/organization.zod.ts', declares: 'InvitationStatus', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'DataEventType', path: 'packages/spec/src/api/events.zod.ts', declares: 'DataEventType', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'BulkDataEventType', path: 'packages/spec/src/api/events.zod.ts', declares: 'BulkDataEventType', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'DateGranularity', path: 'packages/spec/src/data/query.zod.ts', declares: 'DateGranularity', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'HookBodyCapability', path: 'packages/spec/src/data/hook-body.zod.ts', declares: 'HookBodyCapability', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'AggregationMetricType', path: 'packages/spec/src/data/analytics.zod.ts', declares: 'AggregationMetricType', call: 'enumWithRetiredValues', argument: 0 }), + Object.freeze({ schema: 'ShareRecipientType', path: 'packages/spec/src/security/sharing.zod.ts', declares: 'ShareRecipientType', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'MetadataLockSchema', path: 'packages/spec/src/kernel/metadata-protection.zod.ts', declares: 'MetadataLockSchema', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'MetadataTypeSchema', path: 'packages/spec/src/kernel/metadata-plugin.zod.ts', declares: 'MetadataTypeSchema', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'SpecifierScopeSchema', path: 'packages/spec/src/system/settings-manifest.zod.ts', declares: 'SpecifierScopeSchema', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'ExecutionStatus', path: 'packages/spec/src/automation/execution.zod.ts', declares: 'ExecutionStatus', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'EmailProviderSchema', path: 'packages/spec/src/system/email-config.zod.ts', declares: 'EmailProviderSchema', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'ValueDomainSchema', path: 'packages/spec/src/shared/value-domain.zod.ts', declares: 'ValueDomainSchema', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'UploadScopeSchema', path: 'packages/spec/src/api/storage.zod.ts', declares: 'UploadScopeSchema', call: 'z.enum', argument: 0 }), + Object.freeze({ schema: 'PluginRuntimeSchema', path: 'packages/spec/src/kernel/manifest.zod.ts', declares: 'PluginRuntimeSchema', call: 'enum', argument: 0 }), + // ActionType's live values and the action locations are const arrays the enums read (the array after the `=`); the + // quick-actions location enum is the location enum less an `.exclude()` list, its own row. + Object.freeze({ schema: 'ActionType', path: 'packages/spec/src/ui/action.zod.ts', declares: 'ACTION_TYPE_VALUES', call: null, argument: 0 }), + Object.freeze({ schema: 'ActionLocationSchema', path: 'packages/spec/src/ui/action.zod.ts', declares: 'ACTION_LOCATIONS', call: null, argument: 0 }), + Object.freeze({ schema: 'RecordQuickActionsLocationSchema', path: 'packages/spec/src/ui/action.zod.ts', declares: 'RecordQuickActionsLocationSchema', call: 'exclude', argument: 0 }), ]); /** @@ -2554,8 +2879,8 @@ export const SERVED_KEY_SET_DECLARATIONS = Object.freeze([ * authorable keys, under `object.indexes[]`; a live census in the self-test holds that fallback list equal to the * IndexSchema row's keys less the retired ones). The action inspector's script-body census * (`ActionDefaultInspector.scriptBodyLanguage-11921.test.tsx`) is rowed under the next paragraphs: its two arm key - * sets and the hook body union's arm list. ⚠ Its language literals are not a key set: a language renamed inside an - * arm's `z.literal(…)` moves no row here and derives nothing (a miss, documented, not a quiet green). NOT in this + * sets, the hook body union's arm list, and each arm's language literal (a `within` step into the arm's `z.literal(…)`, + * read as a one-value set, so a language renamed moves its row). NOT in this * table: the TOMBSTONE sets the unauthorable-columns test holds whole. A key retired in place keeps its name in the * literal and changes only its VALUE (a `retiredKey(…)` call), so no key set moves; deriving it needs a member-value * reader, which no row here has; follow-up card #38757 carries that reader. The ui spec-parity battery and the whole-set pins over schemas no metadata type nests are outside @@ -2601,9 +2926,39 @@ export const SERVED_KEY_SET_DECLARATIONS = Object.freeze([ * the code handles by default passes them). ⚠ What that green means is narrow: green FOR THE VALUE PROBED; a value of * another shape (one the code's default does not cover) can still red a file this census left unrowed. ⚠ Both * searches (this one and the key-enumeration one above) started from the enums and schemas that HAVE a row: a test - * that holds whole the options of an enum no row reads was searched by neither, so it is unmeasured, not absent. One - * read example: the metadata-protocol lock-resolution test holds `MetadataLockSchema.options` whole - * (`packages/metadata-protocol/src/protocol.lock-one-resolution.test.ts`), and no row here reads that enum. + * that holds whole the options of an enum no row reads was searched by neither. The ENUM CENSUS closes that, measured at + * a92f1ed9: the tracked tests outside `packages/spec` that import the spec (4404 files) were searched for an + * enumeration of a spec export (`.options`, `enumOptions(…)`, `.enum`, under any import alias or namespace), which + * names 50 enums; the 31 no row read are held by 58 files. All 58 were run green on the clean tree, then again with one + * value added to each of the 31 but one (InstalledPackageAtEitherStageSchema is a union, its one holder already rowed + * on the package source pin), through a value list's own literal: a `z.enum`, the first argument of `enumWithRetiredValues`, + * the const array an enum reads (TimeUpdateInterval through DateGranularity's, the quick-actions locations through + * ACTION_LOCATIONS); where the spec or a platform object keys a typed table by the enum, the probe gave it its entry + * too, as a real edit must, or the module refuses at load and masks every importer) and the spec dist + * rebuilt. 22 went red, attributed by the probe value each failure names: 21 rowed here, one pin each (the client's + * invitation vocabulary and realtime event delivery, the invitation screens' copy, the memory driver's and the + * analytics echo's granularities, lint's capability tokens, dataset metric types and org-axis recipient partition, + * analytics' metric type coverage, plugin-sharing's recipient select, the lock resolution, objectql's package-scoped + * qualifier, the settings object's two scope pins, the approvals dead-run sweep, the email provider parity, the + * settings service's and the field inspector's value domains, the upload scope vocabulary, the plugin runtime tier + * labels and the studio action presets), and the page block config (already rowed) now also holds the quick-actions + * locations. The other 36 stayed green (the metadata serializer's tsc case failed on the probe run only because the + * JS-only rebuild had no declarations; its type-list case passed). ⚠ Green FOR THE VALUE PROBED, as above. + * ⚠ TimeUpdateInterval is read through DateGranularity's row: its declaration reads that enum's options, no literal, + * so a TimeUpdateInterval respelled to a list of its own moves no row. A holder that enumerates an enum some other way + * (a hand-copied list, a type-level `Record`) was not searched. + * + * The ui ZOD MIRROR PARITY (`zod-mirror-parity`), measured at a92f1ed9 by run: its spec-only direction pairs every + * objectui zod mirror with the spec export of the same name (ten pairs) and with the ComponentPropsMap row its `type` + * literal names (forty-seven), and requires every spec-side key the mirror neither declares nor refuses to carry a + * SPEC_ONLY_KEY_ROWS row. One key added to each of the 48 spec schemas those pairs name, in one batch (the assertion + * lists every missing key by mirror and key, so a batch hides nothing there), reddened it for 11 of them: the form-view + * field entry's base shape, the props rows of the flat object-* mirrors (calendar, form, gantt, grid, kanban, map, + * tree), the list view entry, the approvals props and the literal every emptyProps block shares; one key added to the + * entry's `.extend()` reddened it too, and so did a block added to the map for a type a mirror already owns. All of them + * are rowed on its pin, not through spreads (a key added to the list view's shape, which the entry spreads, stayed + * green). The rest stayed green: their mirrors read the row by reference. ⚠ A pair FORMED by a new spec export named + * like a mirror is not a key set and derives nothing. * * The ui RE-MEASURE, at cb8d8539, by run: one key (or value) added to each of 110 spec declarations (every schema or * enum a tracked `ui/` test enumerates whole by the key-enumeration search, and the props schemas of ComponentPropsMap), @@ -2621,8 +2976,10 @@ export const SERVED_KEY_SET_DECLARATIONS = Object.freeze([ * select option convergence and the user filter field symbol parity. 3 are NOT rowed: `flat-props-refusal-10872` went * red only because the probe spelled one name into the page component node AND a props schema (its cases need a key * in both, a collision a real edit seldom makes, not a whole set); `object-gantt-properties-bag-10859-b6` went red by - * the same collision, by its failures, and was not re-probed one schema at a time; `zod-mirror-parity` pairs eight - * spec-only keys dynamically over ComponentPropsMap, which no row here attributes to one schema. ⚠ Green there means + * the same collision; re-probed at a92f1ed9 one schema at a time (a key added to ObjectGanttPropsSchema, to + * GanttConfigSchema, to PageComponentSchema, each with the spec dist rebuilt) it stayed green each time: it derives + * its per-key cases from the spec row by construction, so it is not a whole-set pin and is not rowed; + * `zod-mirror-parity` is rowed, by run (the paragraph below). ⚠ Green there means * green FOR THE KEY PROBED. ⚠ A red file was attributed to the schema whose probe reddened it, and what ELSE it holds * whole was not read in that pass; a batch probe can also hide a red behind an earlier one in the same loop (the * registry parity's ledger case stops at its first failing block). The L2 review of this measure read two files that @@ -2726,7 +3083,11 @@ export const SERVED_KEY_SET_PINS = Object.freeze({ 'notification-surfaces-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['NotificationTypeSchema']), throughSpreads: true }), 'chart-type-widget-picker-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ChartTypeSchema']), throughSpreads: true }), // The ui/ re-measure and the two dogfood explain holders (measured by run, or read where the job is the queue's). - 'script-body-key-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['HookBodySchema', 'ExpressionBodySchema', 'ScriptBodySchema']), throughSpreads: true }), + 'script-body-key-set': Object.freeze({ + types: Object.freeze([]), + schemas: Object.freeze(['HookBodySchema', 'ExpressionBodySchema', 'ScriptBodySchema', 'ExpressionBodySchema.language', 'ScriptBodySchema.language']), + throughSpreads: true, + }), 'end-message-key-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['EndConfigSchema']), throughSpreads: true }), 'end-output-variable-key-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['EndConfigSchema']), throughSpreads: true }), 'approval-config-zh-key-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ApprovalNodeConfigSchema', 'DecisionConfigSchema']), throughSpreads: true }), @@ -2735,7 +3096,11 @@ export const SERVED_KEY_SET_PINS = Object.freeze({ 'color-variant-swatch-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['WidgetColorVariantSchema']), throughSpreads: true }), 'color-variant-accent-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['WidgetColorVariantSchema']), throughSpreads: true }), 'filter-operator-key-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['FieldOperatorsSchema']), throughSpreads: true }), - 'page-block-type-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['PageComponentType', 'RecordDetailsProps.sections']), throughSpreads: true }), + 'page-block-type-value-set': Object.freeze({ + types: Object.freeze([]), + schemas: Object.freeze(['PageComponentType', 'RecordDetailsProps.sections', 'ActionLocationSchema', 'RecordQuickActionsLocationSchema']), + throughSpreads: true, + }), 'page-kind-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['PageTypeSchema']), throughSpreads: true }), 'aggregation-function-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['AggregationFunction']), throughSpreads: true }), 'list-gantt-block-key-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['GanttConfigSchema']), throughSpreads: true }), @@ -2752,6 +3117,39 @@ export const SERVED_KEY_SET_PINS = Object.freeze({ 'marketplace-taxonomy-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['MarketplaceBusinessFunctionSchema', 'MarketplaceIndustrySchema', 'MarketplaceSolutionTypeSchema']), throughSpreads: true }), 'explain-door-parity-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ExplainOperationSchema']), throughSpreads: true }), 'explain-master-write-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ExplainOperationSchema']), throughSpreads: true }), + // The ui zod mirror parity's spec-only direction (by run). throughSpreads false: the list view entry spreads the list + // view's shape, whose keys the paired mirror reads by reference (a key added there stayed green). + 'zod-mirror-spec-only-key-set': Object.freeze({ + types: Object.freeze([]), + schemas: Object.freeze([ + 'FormFieldBaseSchema', 'FormFieldSchema', 'ComponentPropsMap', 'emptyProps', 'ListViewPageProps', 'ObjectCalendarPropsSchema', + 'ObjectFormPropsSchema', 'ObjectGanttPropsSchema', 'ObjectGridPropsSchema', 'ObjectKanbanPropsSchema', 'ObjectMapPropsSchema', + 'ObjectTreePropsSchema', 'RecordApprovalsProps', + ]), + throughSpreads: false, + }), + // The enum census (by run): the holders a value added reds, of enums no row read before. + 'invitation-status-client-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['InvitationStatus']), throughSpreads: true }), + 'invitation-status-screens-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['InvitationStatus']), throughSpreads: true }), + 'data-event-type-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['DataEventType', 'BulkDataEventType']), throughSpreads: true }), + 'date-granularity-memory-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['DateGranularity']), throughSpreads: true }), + 'date-granularity-echo-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['DateGranularity']), throughSpreads: true }), + 'hook-capability-token-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['HookBodyCapability']), throughSpreads: true }), + 'metric-type-lint-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['AggregationMetricType']), throughSpreads: true }), + 'metric-type-coverage-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['AggregationMetricType']), throughSpreads: true }), + 'share-recipient-partition-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ShareRecipientType']), throughSpreads: true }), + 'share-recipient-field-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ShareRecipientType']), throughSpreads: true }), + 'metadata-lock-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['MetadataLockSchema']), throughSpreads: true }), + 'metadata-type-package-read-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['MetadataTypeSchema']), throughSpreads: true }), + 'specifier-scope-unique-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['SpecifierScopeSchema']), throughSpreads: true }), + 'specifier-scope-options-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['SpecifierScopeSchema']), throughSpreads: true }), + 'execution-status-liveness-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ExecutionStatus']), throughSpreads: true }), + 'email-provider-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['EmailProviderSchema']), throughSpreads: true }), + 'value-domain-settings-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ValueDomainSchema']), throughSpreads: true }), + 'upload-scope-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['UploadScopeSchema']), throughSpreads: true }), + 'plugin-runtime-tier-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['PluginRuntimeSchema']), throughSpreads: true }), + 'value-domain-inspector-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ValueDomainSchema']), throughSpreads: true }), + 'action-type-presets-value-set': Object.freeze({ types: Object.freeze([]), schemas: Object.freeze(['ActionType']), throughSpreads: true }), }); /** diff --git a/scripts/pm/dispatch-gates.mjs b/scripts/pm/dispatch-gates.mjs index 2a1a8ba5701..817654b643c 100644 --- a/scripts/pm/dispatch-gates.mjs +++ b/scripts/pm/dispatch-gates.mjs @@ -12562,13 +12562,21 @@ function callArgumentAt(masked, at, call, argument, end = masked.length) { * member is not taken for it, and an edit to a sibling member moves nothing the step reads. * * A literal that opens with a bracket instead of a brace is an enum's value list (`z.enum([...])`), read by - * `arrayLiteralElements`: the set answered is then the VALUES, compared exactly as a key set is. + * `arrayLiteralElements`: the set answered is then the VALUES, compared exactly as a key set is. A literal that is + * one quoted string (a `z.literal('js')` a `within` step reaches: a union arm's discriminator) is a one-value set, + * its content, so a value renamed moves the row exactly as a key renamed does; a string with a substitution in it + * is not one value and reads null (wide). */ export function declaredKeySet(source, row) { const masked = maskCommentsAndLiterals(source); const place = rowLiteral(masked, row); if (place === null) return null; const { open } = place; + if (masked[open] === "'" || masked[open] === '"' || masked[open] === '`') { + const close = masked.indexOf(masked[open], open + 1); + const value = close < 0 ? null : source.slice(open + 1, close); + return value === null || (masked[open] === '`' && value.includes('${')) ? null : [value]; + } const members = masked[open] === '[' ? arrayLiteralElements(source, open, masked) : objectLiteralMembers(source, open, masked); return members === null ? null : [...members].sort(); } diff --git a/scripts/pm/dispatch-gates.self-test.mjs b/scripts/pm/dispatch-gates.self-test.mjs index d6b848545ef..5d39b345e21 100644 --- a/scripts/pm/dispatch-gates.self-test.mjs +++ b/scripts/pm/dispatch-gates.self-test.mjs @@ -5822,6 +5822,29 @@ export function selfTest({ tier = 'full' } = {}) { 'marketplace-taxonomy-value-set': 'pnpm --dir ui exec vitest run packages/i18n/src/__tests__/marketplace-taxonomy-labels-31011.test.ts', 'explain-door-parity-value-set': 'pnpm --filter @objectstack/dogfood exec vitest run test/explain-write-door-parity.dogfood.test.ts', 'explain-master-write-value-set': 'pnpm --filter @objectstack/dogfood exec vitest run test/cbp-explain-master-write.dogfood.test.ts', + // The ui zod mirror parity's spec-only direction and the enum census (both measured by run). + 'zod-mirror-spec-only-key-set': 'pnpm --dir ui exec vitest run packages/types/src/__tests__/zod-mirror-parity.test.ts', + 'invitation-status-client-value-set': 'pnpm --filter @objectstack/client exec vitest run src/invitation-status-vocabulary.test.ts', + 'invitation-status-screens-value-set': 'pnpm --filter @objectstack/platform-objects exec vitest run src/identity/invitation-screens-copy.test.ts', + 'data-event-type-value-set': 'pnpm --filter @objectstack/client exec vitest run src/realtime-api-data-event-types.test.ts', + 'date-granularity-memory-value-set': 'pnpm --filter @objectstack/driver-memory exec vitest run src/memory-analytics-time-granularity.test.ts', + 'date-granularity-echo-value-set': 'pnpm --filter @objectstack/service-analytics exec vitest run src/__tests__/objectql-echo-bucket-enumeration.test.ts', + 'hook-capability-token-value-set': 'pnpm --filter @objectstack/lint exec vitest run src/validate-action-body-capabilities.hook-and-tokens-37815.test.ts', + 'metric-type-lint-value-set': 'pnpm --filter @objectstack/lint exec vitest run src/validate-dataset-measure-aggregates.test.ts', + 'metric-type-coverage-value-set': 'pnpm --filter @objectstack/service-analytics exec vitest run src/metric-type-coverage.test.ts', + 'share-recipient-partition-value-set': 'pnpm --filter @objectstack/lint exec vitest run src/validate-org-axis-red-lines.test.ts', + 'share-recipient-field-value-set': 'pnpm --filter @objectstack/plugin-sharing exec vitest run src/field-recipient.test.ts', + 'metadata-lock-value-set': 'pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.lock-one-resolution.test.ts', + 'metadata-type-package-read-value-set': 'pnpm --filter @objectstack/objectql exec vitest run src/package-scoped-exact-qualifier.test.ts', + 'specifier-scope-unique-value-set': 'pnpm --filter @objectstack/platform-objects exec vitest run src/system/sys-setting.organization-unique.test.ts', + 'specifier-scope-options-value-set': 'pnpm --filter @objectstack/platform-objects exec vitest run src/system/sys-setting.scope-options.test.ts', + 'execution-status-liveness-value-set': 'pnpm --filter @objectstack/plugin-approvals exec vitest run src/run-status-liveness.test.ts', + 'email-provider-value-set': 'pnpm --filter @objectstack/plugin-email exec vitest run src/transports/spec-provider-parity.contract.test.ts', + 'value-domain-settings-value-set': 'pnpm --filter @objectstack/service-settings exec vitest run src/value-domains.test.ts', + 'upload-scope-value-set': 'pnpm --filter @objectstack/service-storage exec vitest run src/upload-scope-vocabulary.test.ts', + 'plugin-runtime-tier-value-set': 'pnpm --dir ui exec vitest run packages/app-shell/src/console/marketplace/__tests__/plugin-runtime-tier-3846.test.tsx', + 'value-domain-inspector-value-set': 'pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.valueDomain-7597.test.tsx', + 'action-type-presets-value-set': 'pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/ObjectActionsPanel.presets-11861.test.tsx', }); // The pins outside the metadata types' nesting, and the enum value sets, by the package their test runs in. const KS_CORE_PKG = Object.freeze({ @@ -5830,12 +5853,19 @@ export function selfTest({ tier = 'full' } = {}) { 'field-type-measure-value-set': 'service-analytics', 'field-type-vocabulary-value-set': 'cli', 'field-type-string-width-value-set': 'cli', 'chart-aggregate-lint-value-set': 'lint', 'field-type-blank-arm-value-set': 'objectql', 'field-type-audit-chain-value-set': 'plugin-audit', 'field-type-audit-rules-value-set': 'plugin-audit', 'field-type-aggregate-refusal-value-set': 'service-analytics', + 'invitation-status-client-value-set': 'client', 'invitation-status-screens-value-set': 'platform-objects', 'data-event-type-value-set': 'client', + 'date-granularity-memory-value-set': 'driver-memory', 'date-granularity-echo-value-set': 'service-analytics', 'hook-capability-token-value-set': 'lint', + 'metric-type-lint-value-set': 'lint', 'metric-type-coverage-value-set': 'service-analytics', 'share-recipient-partition-value-set': 'lint', + 'share-recipient-field-value-set': 'plugin-sharing', 'metadata-lock-value-set': 'metadata-protocol', 'metadata-type-package-read-value-set': 'objectql', + 'specifier-scope-unique-value-set': 'platform-objects', 'specifier-scope-options-value-set': 'platform-objects', 'execution-status-liveness-value-set': 'plugin-approvals', + 'email-provider-value-set': 'plugin-email', 'value-domain-settings-value-set': 'service-settings', 'upload-scope-value-set': 'service-storage', }); const KS_NEW_UI = Object.freeze(['registry-inputs-key-set', 'nav-doc-arm-key-set', 'nav-target-key-set', 'translation-groups-key-set', 'bulk-operation-value-set', 'column-summary-value-set', 'column-summary-symbol-value-set', 'field-type-value-set', 'chart-type-dispatch-value-set', 'chart-type-renderer-value-set', 'chart-type-families-value-set', 'report-chart-value-set', 'chart-aggregate-value-set', 'notification-position-value-set', 'notification-hook-value-set', 'chart-type-declared-families-value-set', 'chart-type-routing-value-set', 'field-type-inline-edit-value-set', 'notification-surfaces-value-set', - 'chart-type-widget-picker-value-set', 'script-body-key-set', 'end-message-key-set', 'end-output-variable-key-set', 'approval-config-zh-key-set', 'package-source-value-set', 'access-scope-value-set', 'color-variant-swatch-value-set', 'color-variant-accent-value-set', 'filter-operator-key-set', 'page-block-type-value-set', 'page-kind-value-set', 'aggregation-function-value-set', 'list-gantt-block-key-set', 'view-gantt-timeline-key-set', 'object-tree-props-key-set', 'chart-axis-config-key-set', 'object-chart-axis-config-key-set', 'chart-aggregate-legacy-value-set', 'list-view-protocol-key-set', 'record-approvals-row-key-set', 'select-option-key-set', 'user-filter-field-key-set', 'tree-config-key-set', 'marketplace-taxonomy-value-set']); + 'chart-type-widget-picker-value-set', 'script-body-key-set', 'end-message-key-set', 'end-output-variable-key-set', 'approval-config-zh-key-set', 'package-source-value-set', 'access-scope-value-set', 'color-variant-swatch-value-set', 'color-variant-accent-value-set', 'filter-operator-key-set', 'page-block-type-value-set', 'page-kind-value-set', 'aggregation-function-value-set', 'list-gantt-block-key-set', 'view-gantt-timeline-key-set', 'object-tree-props-key-set', 'chart-axis-config-key-set', 'object-chart-axis-config-key-set', 'chart-aggregate-legacy-value-set', 'list-view-protocol-key-set', 'record-approvals-row-key-set', 'select-option-key-set', 'user-filter-field-key-set', 'tree-config-key-set', 'marketplace-taxonomy-value-set', + 'zod-mirror-spec-only-key-set', 'plugin-runtime-tier-value-set', 'value-domain-inspector-value-set', 'action-type-presets-value-set']); // The dogfood holders: one package (the dogfood suite), one job (the queue's Dogfood Regression Gate shards). const KS_DOGFOOD = Object.freeze(['explain-door-parity-value-set', 'explain-master-write-value-set']); const KS_JOB = Object.freeze({ @@ -5851,7 +5881,7 @@ export function selfTest({ tier = 'full' } = {}) { const ksRows = CHANGE_KIND_ROWS.filter((r) => r.gates.some((g) => KS_NAMES.includes(g.name))); t('⭐ the pins table and the rows agree: one row per pin, named by the pin\'s key, each carrying exactly its one test, bound to its CI job', JSON.stringify(Object.keys(SERVED_KEY_SET_PINS)) === JSON.stringify(Object.keys(KS_GATES)) - && ksRows.length === 71 && ksEntry.length === 71 + && ksRows.length === 93 && ksEntry.length === 93 && ksRows.every((r) => r.gates.length === 1 && KS_GATES[r.matches] === r.gates[0].name && KS_JOB[r.matches] === r.gates[0].ciJob)); t('…and no pin names a type or a nested schema the reader has no row for (the load-time refusal\'s input is empty)', servedKeySetPinGaps().length === 0); t('CONTROL: a pin naming an undeclared type IS a gap, by pin and type', @@ -5884,7 +5914,7 @@ export function selfTest({ tier = 'full' } = {}) { && SERVED_KEY_SET_PINS['registry-inputs-key-set'].schemas.slice(0, 3).join() === 'ListViewPageProps,ElementRecordPickerPropsSchema,ElementTextInputPropsSchema' && SERVED_KEY_SET_PINS['registry-inputs-key-set'].schemas.slice(-4).join() === 'RecordApprovalsProps,ElementFormPropsSchema,emptyProps,ComponentPropsMap' && SERVED_KEY_SET_PINS['approval-config-zh-key-set'].schemas.join() === 'ApprovalNodeConfigSchema,DecisionConfigSchema' - && SERVED_KEY_SET_PINS['page-block-type-value-set'].schemas.join() === 'PageComponentType,RecordDetailsProps.sections' + && SERVED_KEY_SET_PINS['page-block-type-value-set'].schemas.join() === 'PageComponentType,RecordDetailsProps.sections,ActionLocationSchema,RecordQuickActionsLocationSchema' && SERVED_KEY_SET_PINS['registry-inputs-key-set'].schemas.every((n) => SERVED_KEY_SET_DECLARATIONS.find((d) => d.schema === n)?.path === 'packages/spec/src/ui/component.zod.ts') && SERVED_KEY_SET_PINS['nav-doc-arm-key-set'].schemas.join() === 'DocNavItemSchema,NavigationItemSchema' && SERVED_KEY_SET_PINS['nav-target-key-set'].schemas.join() === 'DocNavItemSchema,NavigationItemSchema,SeparatorNavItemSchema' @@ -6042,8 +6072,20 @@ export function selfTest({ tier = 'full' } = {}) { const ksChainRows = (row) => SERVED_KEY_SET_DECLARATIONS.filter((d) => d.schema !== undefined && d.path === row.path && d.declares === row.declares && (d.call === 'omit' || d.call === 'extend')); // A union's arm list renders each ` name: …,` line as an arm named `name` (a describe() on a line moves no arm). const ksArmShape = (shape) => shape.split('\n').map((line) => line.replace(/^(\s*)([A-Za-z_$][\w$]*)\s*:.*$/, '$1$2,')).join('\n'); + // A `within` step into a `z.literal(…)` reads one string (a union arm's discriminator): the shape's member names, + // joined, are that string, so a member added renames it and a describe() leaves it alone. + const ksLiteralShape = (shape) => shape.split('\n').map((line) => /^\s*([A-Za-z_$][\w$]*)\s*:/.exec(line)?.[1]).filter(Boolean).join('_'); + const ksStep = (st, shape) => (st.call === 'z.literal' ? ` ${st.member}: z.literal('${ksLiteralShape(shape)}'),` : ` ${st.member}: ${st.call}({ surface: 'inner' }, {\n${shape}\n }),`); + // The rows whose literal is an array after the `=` (an enum's const value list), not an object. + const KS_ARRAY_ROWS = Object.freeze(['ActionType', 'ActionLocationSchema']); + // The value-list calls besides z.enum: each takes the array as its first argument. + const KS_LIST_CALLS = Object.freeze({ enumWithRetiredValues: 'enumWithRetiredValues', enum: 'z\n .enum', exclude: 'ActionLocationSchema.exclude' }); const ksSchemaSrc = (row, shape = ' a: z.string(),') => (row.call === 'z.enum' ? `export const ${row.declares} = lazySchema(() => z.enum([\n${ksEnumShape(shape)}\n]));\n` + : KS_LIST_CALLS[row.call] !== undefined + ? `export const ${row.declares} = ${KS_LIST_CALLS[row.call]}([\n${ksEnumShape(shape)}\n]);\n` + : row.call === null && KS_ARRAY_ROWS.includes(row.schema) + ? `export const ${row.declares} = [\n${ksEnumShape(shape)}\n] as const;\n` : row.call === '=> ' ? `const ${row.declares} = () => ({\n${shape}\n});\n` : row.call === 'z.discriminatedUnion' @@ -6053,12 +6095,12 @@ export function selfTest({ tier = 'full' } = {}) { : row.call === 'extend' || row.call === 'omit' ? `export const ${row.declares} = lazySchema(() => Base.${row.call}({\n${shape}\n}));\n` : row.within !== undefined - ? `export const ${row.declares} = lazySchema(() => strictObject({ surface: 'outer' }, {\n${row.within.map((st) => ` ${st.member}: ${st.call}({ surface: 'inner' }, {\n${shape}\n }),`).join('\n')}\n}));\n` + ? `export const ${row.declares} = lazySchema(() => strictObject({ surface: 'outer' }, {\n${row.within.map((st) => ksStep(st, shape)).join('\n')}\n}));\n` : row.call === null ? `export const ${row.declares} = {\n${shape}\n} as const;\n` : row.call === 'z.object' ? `export const ${row.declares} = lazySchema(() => z.object({\n${shape}\n}));\n` - : `export const ${row.declares} = lazySchema(() => strictObject({ surface: 'this ${row.schema}' }, {\n${shape}${ksWithinOf(row).map((w) => `\n${w.within.map((st) => ` ${st.member}: ${st.call}({ surface: 'inner' }, {\n a: z.string(),\n }),`).join('\n')}`).join('')}\n}));\n`); + : `export const ${row.declares} = lazySchema(() => strictObject({ surface: 'this ${row.schema}' }, {\n${shape}${ksWithinOf(row).map((w) => `\n${w.within.map((st) => ksStep(st, ' a: z.string(),')).join('\n')}`).join('')}\n}));\n`); // The within rows that read into a plain schema row's own declaration (one record:details section entry, inside // RecordDetailsProps): the plain row renders their member, and the two render as ONE declaration. function ksWithinOf(row) { @@ -6106,6 +6148,9 @@ export function selfTest({ tier = 'full' } = {}) { // the pins that hold it, and a describe() inside it derives none. A declaration a spread row also reads (the list view // shape) is a spread member too: who spreads it lives in another file this one-file world cannot read, so the engine // fires every pin held there; its own cases below give it the whole world (the list view entry spreading it or not). + // A row declared in the protection fields' own file (the lock enum) is read beside the spread object, unchanged on + // both sides, as on the live tree: without it the spread row reads a lost place and fires every pin reading through it. + const ksProtBeside = (path) => (path === FK_PROT.path ? 'export const MetadataProtectionFields = {\n _lock: x,\n};\n' : ''); const ksSpreadShared = (d) => SERVED_KEY_SET_DECLARATIONS.some((o) => o.spread !== undefined && o.path === d.path && o.declares === d.declares); t('…exactly one nested row is also a spread row\'s declaration, and it is the list view shape', SERVED_KEY_SET_DECLARATIONS.filter((d) => d.schema !== undefined && ksSpreadShared(d)).map((d) => d.schema).join() === 'ListViewShapeSchema'); @@ -6114,7 +6159,7 @@ export function selfTest({ tier = 'full' } = {}) { const typeShape = (pair) => (row.within !== undefined && typeRow?.declares === row.declares ? KS_SHAPE.replace(FK_PAIR_MEMBER, pair) : KS_SHAPE); const own = (shape) => (row.within !== undefined && typeRow?.declares === row.declares ? '' : ksSchemaSrc(row, shape)); - const file = (shape, pair) => `${typeRow ? ksTypeSrc(typeRow, typeShape(pair)) : ''}${ksSiblings(row.path, row)}${own(shape)}`; + const file = (shape, pair) => `${ksProtBeside(row.path)}${typeRow ? ksTypeSrc(typeRow, typeShape(pair)) : ''}${ksSiblings(row.path, row)}${own(shape)}`; const PAIR_ADDED = FK_PAIR_MEMBER.replace(' source: z.string(),', ' source: z.string(),\n overwrite: z.boolean().optional(),'); const PAIR_DESCRIBED = FK_PAIR_MEMBER.replace(' target: z.string(),', " target: z.string().describe('t'),"); const before = file(' a: z.string(),', FK_PAIR_MEMBER); @@ -6138,7 +6183,8 @@ export function selfTest({ tier = 'full' } = {}) { const typeRow = SERVED_KEY_SET_DECLARATIONS.find((d) => d.type !== undefined && d.path === path); const shape = typeRow ? [' name: z.string(),', FK_PAIR_MEMBER, ...(spreadsOf[typeRow.type] ?? []).map((s) => ` ...${s},`)].join('\n') : ''; const text = `${typeRow ? ksTypeSrc(typeRow, shape) : ''}${ksSiblings(path)}`; - byPath[path] = [text, text]; + // The spread object's own file keeps its fixture, with the rows declared beside it appended unchanged. + byPath[path] = byPath[path] ? byPath[path].map((side) => `${side}\n${text}`) : [text, text]; } return ksIoOf(byPath); }; @@ -6220,7 +6266,7 @@ export function selfTest({ tier = 'full' } = {}) { .map((d) => (ksChainRows(d).length > 1 ? ksChained(ksChainRows(d), Object.fromEntries(ksChainRows(d).filter((r) => bumped.includes(r.schema)).map((r) => [r.schema, KS_BUMP]))) : ksSchemaSrc(d, bumped.includes(d.schema) ? KS_BUMP : undefined))); - return `${typeRow ? ksTypeSrc(typeRow, typeShape) : ''}${parts.join('')}`; + return `${ksProtBeside(path)}${typeRow ? ksTypeSrc(typeRow, typeShape) : ''}${parts.join('')}`; }; const ksBumped = (schemas, typeShape = KS_SHAPE) => { const path = ksRow(schemas[0]).path; @@ -6229,11 +6275,15 @@ export function selfTest({ tier = 'full' } = {}) { // field's file grows its type list and its select option's keys by one; every other declaring file grows the named // rows of it by one, whole-file (several rows of one file move in one edit). const KS_BUMPS = [['ReportType'], ['PageComponentSchema', 'PageComponentType', 'PageTypeSchema'], ['DashboardWidgetOptionsSchema', 'WidgetColorVariantSchema'], - ['ChartAxisSchema', 'ChartTypeSchema', 'ChartAggregateFunctionSchema'], ['TemplateManifestSchema'], ['EmailServiceConfigSchema'], ['CloneFlowRequestSchema'], - ['BaseEngineOptionsSchema'], ['ExplainOperationSchema'], ['ColumnSummarySchema', 'ObjectListViewSchema', 'GanttConfigSchema', 'TimelineConfigSchema', 'TreeConfigSchema', 'UserFilterFieldSchema'], + ['ChartAxisSchema', 'ChartTypeSchema', 'ChartAggregateFunctionSchema'], ['TemplateManifestSchema'], ['EmailServiceConfigSchema', 'EmailProviderSchema'], ['CloneFlowRequestSchema'], + ['BaseEngineOptionsSchema'], ['ExplainOperationSchema'], ['ColumnSummarySchema', 'ObjectListViewSchema', 'GanttConfigSchema', 'TimelineConfigSchema', 'TreeConfigSchema', 'UserFilterFieldSchema', 'FormFieldBaseSchema', + 'FormFieldSchema'], ['ListViewPageProps', 'RecordApprovalsProps', 'ObjectTreePropsSchema'], ['DocNavItemSchema', 'NavigationItemSchema'], ['BulkActionOperationSchema'], - ['NotificationPositionSchema', 'NotificationTypeSchema'], ['appTranslationDataShape'], ['ScriptBodySchema'], ['EndConfigSchema'], ['ApprovalNodeConfigSchema'], - ['InstalledPackageSourceSchema'], ['ObjectAccessScopeSchema'], ['FieldOperatorsSchema'], ['AggregationFunction'], ['MarketplaceBusinessFunctionSchema']]; + ['NotificationPositionSchema', 'NotificationTypeSchema'], ['appTranslationDataShape'], ['ScriptBodySchema', 'HookBodyCapability'], ['EndConfigSchema'], ['ApprovalNodeConfigSchema'], + ['InstalledPackageSourceSchema'], ['ObjectAccessScopeSchema'], ['FieldOperatorsSchema'], ['AggregationFunction', 'DateGranularity'], ['MarketplaceBusinessFunctionSchema'], + ['InvitationStatus'], ['DataEventType', 'BulkDataEventType'], ['AggregationMetricType'], ['ShareRecipientType'], ['MetadataLockSchema'], + ['MetadataTypeSchema'], ['SpecifierScopeSchema'], ['ExecutionStatus'], ['ValueDomainSchema'], ['UploadScopeSchema'], ['PluginRuntimeSchema'], + ['ActionType', 'ActionLocationSchema', 'RecordQuickActionsLocationSchema']]; const ksByPath = Object.fromEntries([ [FK_PATH, [FK_EDITS['a key added'][0].replace(" 'number',", " 'number',\n 'email',").replace(' value: z.string(),\n}));', ' value: z.string(),\n color: z.string(),\n}));'), FK_BASE]], [REPORT.path, [ksRender(REPORT.path, ['ReportType'], KS_SHAPE_ADDED), ksRender(REPORT.path)]], @@ -6248,7 +6298,7 @@ export function selfTest({ tier = 'full' } = {}) { const ksBound = ksEntry.map((k) => ({ ...k, matches: (p) => changesServedKeySet(p, PIN[ksRows.find((r) => r.kind === k.kind).matches], ksBothIo) })); const ksPaths = Object.keys(ksByPath); const ksLines = changeKindLines(ksPaths, ksResolved, ksBound); - t('a key or value added in each declaring file renders all seventy-one pins runnably, anchored on the delimiter', KS_NAMES.every((n) => ksLines.some((l) => l.includes(`- ${n} —`)))); + t('a key or value added in each declaring file renders every pin runnably, anchored on the delimiter', KS_NAMES.every((n) => ksLines.some((l) => l.includes(`- ${n} —`)))); t('…each line states its build prerequisite as measured: none for driver-sql, the closure build for the four that read the spec dist, the job\'s seven-package build for the five ui tests', ksLines.some((l) => l.includes(KS_GATES['field-schema-key-set']) && /needs NO build/.test(l)) && ksLines.some((l) => l.includes(KS_GATES['object-reference-key-set']) && l.includes("pnpm --filter '@objectstack/metadata-core^...' build")) @@ -6256,20 +6306,20 @@ export function selfTest({ tier = 'full' } = {}) { && ksLines.some((l) => l.includes(KS_GATES['served-row-key-set']) && l.includes("pnpm --filter '@objectstack/metadata-protocol^...' build")) && ksLines.some((l) => l.includes(KS_GATES['datasource-pool-key-set']) && l.includes("pnpm --filter '@objectstack/service-datasource^...' build")) && ['report-inspector-key-set', 'dashboard-widget-options-key-set', 'chart-axis-key-set', 'chart-axis-presentation-key-set', 'index-console-key-set'].every((k) => ksLines.some((l) => l.includes(KS_GATES[k]) && /seven @objectstack packages/.test(l) && l.includes('--filter=@objectstack/sdui-parser...')))); - t('…and the new pins state theirs: the package closure build for the fifteen package tests, the job\'s seven-package build for the forty-four ui tests, the dogfood closure build for the two dogfood tests', + t('…and the new pins state theirs: the package closure build for each package test, the job\'s seven-package build for each ui test, the dogfood closure build for the two dogfood tests', Object.entries(KS_CORE_PKG).every(([k, pkg]) => ksLines.some((l) => l.includes(KS_GATES[k]) && l.includes(`pnpm --filter '@objectstack/${pkg}^...' build`))) && KS_NEW_UI.every((k) => ksLines.some((l) => l.includes(KS_GATES[k]) && /seven @objectstack packages/.test(l) && l.includes('--filter=@objectstack/sdui-parser...'))) && KS_DOGFOOD.every((k) => ksLines.some((l) => l.includes(KS_GATES[k]) && l.includes("pnpm --filter '@objectstack/dogfood^...' build")))); - t('…and carries no tracker number in the text a dev is shown', ksLines.length === 142 && ksLines.every((l) => !/#\d{4,5}\b/.test(l))); + t('…and carries no tracker number in the text a dev is shown', ksLines.length === 186 && ksLines.every((l) => !/#\d{4,5}\b/.test(l))); const ksDerived = commandsFor({ kindGroups: changeKindGates(ksPaths, ksResolved, ksBound) }); - t('the runnable union carries all seventy-one', KS_NAMES.every((n) => ksDerived.includes(n))); + t('the runnable union carries every pin', KS_NAMES.every((n) => ksDerived.includes(n))); t('CONTROL: a describe-only edit renders none of them', changeKindLines([FK_PATH], ksResolved, ksEntry.map((k) => ({ ...k, matches: (p) => changesServedKeySet(p, PIN[ksRows.find((r) => r.kind === k.kind).matches], fkIo(FK_EDITS['a describe() reworded'][0], FK_BASE)) }))).length === 0); for (const gate of KS_NAMES) { const without = runReconciliation({ derived: ksDerived, record: parseRunRecord(ksDerived.filter((c) => c !== gate).map((c) => `${c} :: exit 0`).join('\n')) }); t(`⭐ a run record carrying every derived command BUT ${gate.split(' ').at(-1)}'s pin is NOT ok, and names it unrun`, !without.ok && without.unrun.some((u) => u.command === gate)); } - t('CONTROL: the same record WITH all seventy-one is ok', runReconciliation({ derived: ksDerived, record: parseRunRecord(ksDerived.map((c) => `${c} :: exit 0`).join('\n')) }).ok); + t('CONTROL: the same record WITH every pin is ok', runReconciliation({ derived: ksDerived, record: parseRunRecord(ksDerived.map((c) => `${c} :: exit 0`).join('\n')) }).ok); const ksStale = changeKindLines(ksPaths, () => null, ksBound); t('an unresolvable binding renders each pin STALE, naming the job and what it lost (the file for a Test Core subset, the runner for the ui one)', ksEntry.every((k) => k.gates.every((g) => ksStale.filter((l) => l.includes(`⚠ ${g.name}: STALE`) && l.includes(`job named '${g.ciJob}…'`) @@ -6490,7 +6540,7 @@ export function selfTest({ tier = 'full' } = {}) { 'color-variant-swatch-value-set': /const specVariants: string\[\] = enumOptions\(WidgetColorVariantSchema\)[\s\S]*\.map\(\(c\) => c\.value\)\)\.toEqual\(specVariants\)/, 'color-variant-accent-value-set': /const specVariants: string\[\] = enumOptions\(WidgetColorVariantSchema\)[\s\S]*expect\(Object\.keys\(VARIANT_TEXT_CLASSES\)\.sort\(\)\)\.toEqual\(\[\.\.\.specVariants\]\.sort\(\)\)/, 'filter-operator-key-set': /Object\.keys\(\(FieldOperatorsSchema as unknown as \{ shape\?: Record \}\)\.shape \?\? \{\}\)[\s\S]*'FieldOperatorsSchema accepts these but no builder operator can author them',\s*\)\.toEqual\(\[\]\)/, - 'page-block-type-value-set': /const specNames: string\[\] = enumOptions\(PageComponentType\)[\s\S]*!\(t in \(BLOCK_TYPE_META as Record\)\) && !\(t in PALETTE_EXCLUSIONS\)[\s\S]*expect\(undecided\)\.toEqual\(\[\]\)|listedShapeKeys\(\s*arrayElementSchema\(resolvePropsShape\(RecordDetailsProps\)\?\.sections\)/, + 'page-block-type-value-set': /const specNames: string\[\] = enumOptions\(PageComponentType\)[\s\S]*!\(t in \(BLOCK_TYPE_META as Record\)\) && !\(t in PALETTE_EXCLUSIONS\)[\s\S]*expect\(undecided\)\.toEqual\(\[\]\)|listedShapeKeys\(\s*arrayElementSchema\(resolvePropsShape\(RecordDetailsProps\)\?\.sections\)|expect\(\[\.\.\.offered\]\.sort\(\)\)\.toEqual\(\[\.\.\.RecordQuickActionsLocationSchema\.options\]\.sort\(\)\)/, 'page-kind-value-set': /\[\.\.\.\(PageTypeSchema as unknown as \{ options: readonly string\[\] \}\)\.options\]/, 'aggregation-function-value-set': /expect\(Object\.keys\(CARRIES_FIELD_UNIT\)\.sort\(\)\)\.toEqual\(\[\.\.\.AggregationFunction\.options\]\.sort\(\)\)/, 'list-gantt-block-key-set': /const declared = Object\.keys\(SpecListViewSchema\.shape\.gantt\.unwrap\(\)\.shape\)[\s\S]*for \(const k of declared\) expect\(node\.gantt\?\.\[k\], k\)\.toBe\(`BLOCK_\$\{k\}`\)/, @@ -6507,6 +6557,28 @@ export function selfTest({ tier = 'full' } = {}) { 'marketplace-taxonomy-value-set': /values: MarketplaceBusinessFunctionSchema\.options \}[\s\S]*values: MarketplaceIndustrySchema\.options \}[\s\S]*values: MarketplaceSolutionTypeSchema\.options \}/, 'explain-door-parity-value-set': /expect\(\[\.\.\.ExplainOperationSchema\.options\]\.sort\(\)\)\.toEqual\(Object\.keys\(DOORS\)\.sort\(\)\)/, 'explain-master-write-value-set': /expect\(\[\.\.\.ExplainOperationSchema\.options\]\.sort\(\)\)\.toEqual\(Object\.keys\(DOORS\)\.sort\(\)\)/, + 'zod-mirror-spec-only-key-set': /if \(literal !== undefined && literal in rows\) sides\.push[\s\S]*const missing = measureSpecOnlyKeys\(\)\.specOnly\.filter\(\(key\) => !\(key in SPEC_ONLY_KEY_ROWS\)\)/, + 'invitation-status-client-value-set': /expect\(\[\.\.\.InvitationStatusSchema\.options\]\)\.toEqual\(\[/, + 'invitation-status-screens-value-set': /expect\(options\.map\(\(o\) => o\.value\)\)\.toEqual\(\[\.\.\.InvitationStatus\.options\]\)/, + 'data-event-type-value-set': /expect\(seen\)\.toEqual\(\[\.\.\.DataEventType\.options\]\)[\s\S]*expect\(seen\)\.toEqual\(\[\.\.\.BulkDataEventType\.options\]\)/, + 'date-granularity-memory-value-set': /expect\(\[\.\.\.TimeUpdateInterval\.options\]\)\.toEqual\(\[\.\.\.BUCKET_GRANULARITIES\]\)/, + 'date-granularity-echo-value-set': /const GRANULARITIES = TimeUpdateInterval\.options[\s\S]*for \(const granularity of GRANULARITIES\)/, + 'hook-capability-token-value-set': /expect\(\[\.\.\.HookBodyCapability\.options\]\.sort\(\)\)\.toEqual\(\[\.\.\.tokens\]\.sort\(\)\)/, + 'metric-type-lint-value-set': /const metricTypes: readonly string\[\] = AggregationMetricType\.options[\s\S]*for \(const type of types\)/, + 'metric-type-coverage-value-set': /expect\(\[\.\.\.SUPPORTED_AGGREGATE_SQL_KEYS\]\.sort\(\)\)\.toEqual\(\[\.\.\.AggregationMetricType\.options\]\.sort\(\)\)/, + 'share-recipient-partition-value-set': /const declared = \[\.\.\.ShareRecipientType\.options\]\.sort\(\)[\s\S]*expect\(accounted\)\.toEqual\(declared\)/, + 'share-recipient-field-value-set': /for \(const member of ShareRecipientType\.options\) \{\s*expect\(selectValues\(\)/, + 'metadata-lock-value-set': /expect\(MetadataLockSchema\.options\)\.toEqual\(\['none', 'no-overlay', 'no-delete', 'full'\]\)/, + 'metadata-type-package-read-value-set': /const NOT_READ_BY_PACKAGE = MetadataTypeSchema\.options\.filter\(/, + 'specifier-scope-unique-value-set': /const layers = SpecifierScopeSchema\.options as readonly string\[\];\s*expect\(\[\.\.\.layers\]\.sort\(\)\)\.toEqual\(/, + 'specifier-scope-options-value-set': /\.toEqual\(\s*SpecifierScopeSchema\.options\.filter\(\(s\) => s !== 'global'\)\.sort\(\)/, + 'execution-status-liveness-value-set': /expect\(Object\.keys\(RUN_STATUS_LIVENESS\)\.sort\(\)\)\.toEqual\(\[\.\.\.ExecutionStatus\.options\]\.sort\(\)\)/, + 'email-provider-value-set': /expect\(new Set\(EmailProviderSchema\.options\)\)\.toEqual\(new Set\(EMAIL_TRANSPORT_PROVIDERS\)\)/, + 'value-domain-settings-value-set': /for \(const member of ValueDomainSchema\.options\) \{\s*expect\(knownValueDomain\(member\)/, + 'upload-scope-value-set': /expect\(\[\.\.\.UploadScopeSchema\.options\]\)\.toEqual\(\[\.\.\.UPLOAD_SCOPES\]\)/, + 'plugin-runtime-tier-value-set': /const declared = \[\.\.\.PluginRuntimeSchema\.options\]\.sort\(\)[\s\S]*expect\(Object\.keys\(RUNTIME_FALLBACK\)\.sort\(\)\)\.toEqual\(declared\)/, + 'value-domain-inspector-value-set': /const MEMBERS = ValueDomainSchema\.options[\s\S]*\)\.toEqual\(\[\.\.\.MEMBERS\]\)/, + 'action-type-presets-value-set': /it\.each\(ActionType\.options\.map\(\(type\) => \[type\] as const\)\)/, }); t('the live-spelling table covers exactly the pins outside the metadata types\' nesting', JSON.stringify(Object.keys(KS_LIVE_SPELLINGS).sort()) === JSON.stringify([...Object.keys(KS_CORE_PKG), ...KS_NEW_UI, ...KS_DOGFOOD].sort())); for (const [k, spelling] of Object.entries(KS_LIVE_SPELLINGS)) { @@ -6525,6 +6597,36 @@ export function selfTest({ tier = 'full' } = {}) { liveSet('RecordDetailsProps.sections').includes('name') && !liveSet('RecordDetailsProps').includes('name') && liveSet('RecordDetailsProps').includes('sections')); t('⭐ LIVE: the retired element:form row reads its tombstoned names (a key retired in place keeps its name)', JSON.stringify(liveSet('ElementFormPropsSchema')) === JSON.stringify(['aria', 'fields', 'mode', 'object', 'onSubmit', 'submitLabel'])); + // The zod mirror parity's form-view field entry: the row reads the FIRST 'const shape' binding in view.zod.ts, so a + // binding of that name declared above it would move the row to another literal. Held here: the row's keys carry every + // key the parity test records as spec-only on that entry (its SPEC_ONLY_KEY_ROWS), and its extension adds 'fields'. + const ZOD_MIRROR_PIN = maskComments(readFileSync(nodePath.join(ROOT, 'ui/packages/types/src/__tests__/zod-mirror-parity.test.ts'), 'utf8')); + const formFieldRecorded = [...ZOD_MIRROR_PIN.matchAll(/'FormFieldSchema\.([A-Za-z_$][\w$]*)': \{/g)].map((m) => m[1]); + t(`⭐ LIVE census: the form-view field entry's base shape (${liveSet('FormFieldBaseSchema').length}) carries every key the zod mirror parity records as spec-only on it (${formFieldRecorded.length}), and its extension reads 'fields'`, + formFieldRecorded.length > 3 && formFieldRecorded.every((k) => liveSet('FormFieldBaseSchema').includes(k)) && liveSet('FormFieldBaseSchema').includes('field') + && JSON.stringify(liveSet('FormFieldSchema')) === JSON.stringify(['fields'])); + t('CONTROL: the base-shape census reads null for a key the base does not declare (it can fail)', + !liveSet('FormFieldBaseSchema').includes('fields') && !liveSet('FormFieldBaseSchema').includes('inventedKey38362')); + // The hook body union's discriminators read through a within step into z.literal: one string, its content. + t('⭐ LIVE: each hook body arm\'s language literal reads as its one value, the expression arm\'s and the script arm\'s', + JSON.stringify(liveSet('ExpressionBodySchema.language')) === JSON.stringify(['expression']) && JSON.stringify(liveSet('ScriptBodySchema.language')) === JSON.stringify(['js'])); + t('⭐ a language literal renamed derives the script-body census, and a describe() beside it does not', + (() => { + const row = ksRow('ScriptBodySchema.language'); + const src = (lit, tail = '') => `export const ScriptBodySchema = strictObject({ surface: 'outer' }, {\n language: z.literal(${lit}, { error: 'x' })${tail},\n source: z.string(),\n});\n`; + // The other rows of hook-body.zod.ts (the union, the expression arm, the capability enum) unchanged on both sides. + const sib = ksSiblings(row.path, row); + const fired = ksFired(row.path, fkIo(sib + src("'ts'"), sib + src("'js'"))); + const quiet = ksFired(row.path, fkIo(sib + src("'js'", ".describe('lang')"), sib + src("'js'"))); + return fired.join() === 'script-body-key-set' && quiet.length === 0; + })()); + t('CONTROL: a quoted string reads as one value, a template with a substitution reads null (wide), a missing literal reads null', + JSON.stringify(declaredKeySet("const A = z.object({ language: z.literal('js') });", { declares: 'A', call: 'z.object', argument: 0, within: [{ member: 'language', call: 'z.literal', argument: 0 }] })) === JSON.stringify(['js']) + && declaredKeySet('const A = z.object({ language: z.literal(`j${s}`) });', { declares: 'A', call: 'z.object', argument: 0, within: [{ member: 'language', call: 'z.literal', argument: 0 }] }) === null + && declaredKeySet('const A = z.object({ language: z.string() });', { declares: 'A', call: 'z.object', argument: 0, within: [{ member: 'language', call: 'z.literal', argument: 0 }] }) === null); + t('⭐ LIVE: the quick-actions location enum reads its exclude list, its chain rooted on the location enum, and the location list reads its values', + JSON.stringify(liveSet('RecordQuickActionsLocationSchema')) === JSON.stringify(['record', 'selection']) + && ['record', 'selection', 'record_page'].every((v) => liveSet('ActionLocationSchema').includes(v)) && liveSet('ActionType').includes('script')); t('CONTROL: the section entry and its host render as ONE declaration in a fixture, the entry\'s member inside the host', (ksSiblings(ksRow('RecordDetailsProps').path).match(/const RecordDetailsProps\b/g) ?? []).length === 1 && /sections: strictObject\(\{ surface: 'inner' \}/.test(ksSchemaSrc(ksRow('RecordDetailsProps')))); @@ -6614,8 +6716,30 @@ export function selfTest({ tier = 'full' } = {}) { t('CONTROL: …and only the protocol pin while the entry does not spread it', ksFired(LV_SHAPE.path, lvWorld(false)).join() === 'list-view-protocol-key-set'); t('⭐ the shape is ONE declaration read by two rows, and a fixture renders it once', (ksSiblings(LV_SHAPE.path).match(/const ListViewShapeSchema\b/g) ?? []).length === 1 && ksRow('ListViewShapeSchema').declares === LV_SHAPE.declares && ksRow('ListViewShapeSchema').path === LV_SHAPE.path); - t('⭐ a key added to ListViewPageProps\' own literal (beside the spread) derives the registry-inputs pin', - ksFired(LV_PAGE.path, lvWorld(true, { shapeHead: ' type: z.string(),', pageHead: ' ...ListViewSchema.shape,\n columns: z.array(z.string()),\n options: z.object({}),' })).join() === 'registry-inputs-key-set'); + t('⭐ a key added to ListViewPageProps\' own literal (beside the spread) derives the registry-inputs pin and the zod mirror parity', + ksFired(LV_PAGE.path, lvWorld(true, { shapeHead: ' type: z.string(),', pageHead: ' ...ListViewSchema.shape,\n columns: z.array(z.string()),\n options: z.object({}),' })).join() === 'registry-inputs-key-set,zod-mirror-spec-only-key-set'); + // The enum census's pins, each the enum (or enums) whose value added reddened its test, by run. + const KS_CENSUS_SCHEMAS = Object.freeze({ + 'invitation-status-client-value-set': 'InvitationStatus', 'invitation-status-screens-value-set': 'InvitationStatus', + 'data-event-type-value-set': 'DataEventType,BulkDataEventType', 'date-granularity-memory-value-set': 'DateGranularity', + 'date-granularity-echo-value-set': 'DateGranularity', 'hook-capability-token-value-set': 'HookBodyCapability', + 'metric-type-lint-value-set': 'AggregationMetricType', 'metric-type-coverage-value-set': 'AggregationMetricType', + 'share-recipient-partition-value-set': 'ShareRecipientType', 'share-recipient-field-value-set': 'ShareRecipientType', + 'metadata-lock-value-set': 'MetadataLockSchema', 'metadata-type-package-read-value-set': 'MetadataTypeSchema', + 'specifier-scope-unique-value-set': 'SpecifierScopeSchema', 'specifier-scope-options-value-set': 'SpecifierScopeSchema', + 'execution-status-liveness-value-set': 'ExecutionStatus', 'email-provider-value-set': 'EmailProviderSchema', + 'value-domain-settings-value-set': 'ValueDomainSchema', 'upload-scope-value-set': 'UploadScopeSchema', + 'plugin-runtime-tier-value-set': 'PluginRuntimeSchema', 'value-domain-inspector-value-set': 'ValueDomainSchema', + 'action-type-presets-value-set': 'ActionType', + }); + const censusDrift = Object.entries(KS_CENSUS_SCHEMAS).filter(([k, list]) => PIN[k]?.schemas.join() !== list).map(([k]) => k); + t(`the enum census pins each hold the enum their test was measured red on, and the block config pin the quick-action locations (drift: ${censusDrift.join(', ') || 'none'})`, + censusDrift.length === 0 && ['ActionLocationSchema', 'RecordQuickActionsLocationSchema'].every((n) => PIN['page-block-type-value-set'].schemas.includes(n))); + t('the zod mirror pin holds the spec sides its probes reddened (the form-view field entry, the block list, the restated props rows), not through spreads; the script-body pin both language literals', + PIN['zod-mirror-spec-only-key-set'].throughSpreads === false + && ['FormFieldBaseSchema', 'FormFieldSchema', 'ComponentPropsMap', 'emptyProps', 'ListViewPageProps', 'ObjectGridPropsSchema', 'RecordApprovalsProps'].every((n) => PIN['zod-mirror-spec-only-key-set'].schemas.includes(n)) + && !PIN['zod-mirror-spec-only-key-set'].schemas.includes('ListViewShapeSchema') + && ['ExpressionBodySchema.language', 'ScriptBodySchema.language'].every((n) => PIN['script-body-key-set'].schemas.includes(n))); t('⭐ LIVE: the list view entry spreads ListViewSchema\'s shape through the spread row, and ListViewSchema is ListViewShapeSchema with refinements alone chained', liveSet('ListViewPageProps').includes('...ListViewSchema.shape') && (liveKs.get(LV_SHAPE) ?? []).length > 10 && /export const ListViewSchema = lazySchema\(\(\) =>\s*ListViewShapeSchema(\s*\.superRefine\(\w+\))+\);/.test(maskComments(readFileSync(nodePath.join(ROOT, LV_SHAPE.path), 'utf8'))));