Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(types): AnySchema includes every declared node type, pinned by an enumeration (objectui#11478) - #11486

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11478-anyschema-complete
Oct 2, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11478-anyschema-complete

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11478

Clause-②: yes

What changed

AnySchema in packages/types/src/index.ts now includes the eighteen node types its docblock claimed but did not hold. The new members follow the module order of the barrel's exports:

  • After DashboardComponentSchema: DashboardWidgetSlotComponentSchema (metric-card, complex.ts). It is named only in the union; its own shape is untouched (objectui#11467 edits that interface).
  • After ListViewSchema: the six designer schemas (PageDesignerSchema, DataModelDesignerSchema, ProcessDesignerSchema, ReportDesignerSchema, ObjectManagerSchema, FieldDesignerSchema), then the three report schemas (ReportComponentSchema, ReportBuilderSchema, ReportViewerSchema), then the three AI schemas (AIFormAssistSchema, AIRecommendationsSchema, NLQuerySchema).
  • Next comes ViewComponentSchema. This existing union in views.ts holds DetailViewSchema, ViewSwitcherSchema, FilterUISchema and SortUISchema. Using it adds no second list, and the zod twin AnyComponentSchema arms the same group.
  • Last is ActionBarSchema (action:bar, ui-action.ts).

The BaseSchema arm stays. No interface's own shape changes, and no new type is added. The docblock now points at the pin (AGENTS.md #9) instead of stating a count. The only other edit is the import type lines the union needs. The emitted JS of index.ts is byte-identical: ts.transpileModule of the base and head versions gives 5176 bytes each, and the outputs are equal.

Accept set: before and after

I measured this with a compiler-API probe, run against the package's own tsconfig.json. It ran at base 2c0ddf226 and at head 50714a6d. For each of the eighteen node types, with LIT standing for its type literal:

case, assigned to AnySchema base head
a value typed as the interface itself OK OK
bare { type: LIT } OK OK
{ type: LIT, zzUnknownKey: 1 } OK OK
{ type: LIT, OWNKEY: Symbol('x') }: a wrong value on the first key the interface declares and BaseSchema does not OK OK
{ type: LIT, visible: 42 }: a wrong value on a BaseSchema key TS2322 TS2322, same message
SchemaByType of LIT is the interface false true
SchemaByType of LIT is never true false

The two controls behave the same at base and head. An undeclared type with an unknown key is OK, and button with visible: 42 is TS2322.

The 92 value verdicts are identical, and so is every diagnostic message. Only the 36 SchemaByType readings flip. So this changes no accept set; it changes what SchemaByType and narrowing on type return. A wrong value on an interface-only key still compiles because TypeScript tries every member of the union, and the BaseSchema arm, with its string index signature, still takes the literal. That is the arm objectui#11466 is about, and this PR leaves it alone.

The pin: anyschema-declared-node-types-11478.test.ts

The pin builds one compiler program over the package's own sources with its own tsconfig.json, so it does not depend on dist/. The program covers the root barrel, every published subpath entry (read from package.json exports), and one virtual module that is never written to disk. It has five cases:

  1. Control. The enumerator runs over the virtual module and flags exactly the two node types that are outside the control union: one that extends BaseSchema directly, and one that extends a key-remapping omit of ButtonSchema, spelled the way form.ts spells OmitDeclared. It does not flag the one inside the union, a standalone interface, or a BaseSchema child whose type is a plain string.
  2. The population read from the real barrel is not empty and contains ButtonSchema.
  3. Completeness. Every exported, non-generic, non-union object type that has a literal type and whose extends chain reaches BaseSchema is a member of AnySchema. On failure it prints each missing name with its literal and file.
  4. ActionBarSchema is a member by name. It is also asserted to be outside the population; if that ever goes red, the type has started extending BaseSchema and the by-name case should be deleted.
  5. Round-trip. SchemaByType resolves every single-literal member of AnySchema to that member. This is a distributive conditional over the real union, evaluated by the checker, with no list.

Ablations. The fix was committed first. Each mutation went through ablation-replace.mjs in WRAP mode, plus a shell trap. After each one, the restore was proven: the blob equals the HEAD blob and git diff HEAD is empty. No build is involved, because the pin reads src/ through its own program, with no package exports resolution and no vitest alias.

  • index.ts at base, against the pin: 2 failed and 3 passed. The output names the seventeen node types with their files and literals, plus the by-name ActionBarSchema case.
  • Deleting | ViewComponentSchema: case 3 fails and names DetailViewSchema, FilterUISchema, SortUISchema and ViewSwitcherSchema.
  • Removing | ActionBarSchema: case 4 fails.
  • Adding | (BaseSchema & { type: 'button' }): case 5 fails and names ButtonSchema and the new arm.
  • My first attempt at the ViewComponentSchema leg ran nothing. The tool refused it because the replacement text was a substring of the anchor, so its count went 1 to 1. I reran it as a --delete.

The card's hypotheses, measured

  • H1 holds. The heritage enumeration finds the same seventeen at 6007dd4e4 and at 2c0ddf226, after objectui#11477; no interface was added or removed. I compared three criteria, and only heritage matches the card's population:
    • Heritage, the pin's criterion: 116 at the root barrel, and exactly the seventeen are outside the union.
    • Plain assignability to BaseSchema catches about a hundred more types with a literal type that are not node types (field metadata, query-AST nodes, widget sources), so it is not usable.
    • Carrying all of BaseSchema's named members picks up the spec-row AuthoringNode faces: ElementTextInputNode, ElementRecordPickerNode, and since objectui#11477 also FlexBlockNode and the eight object-* block nodes. Those belong to AuthoringNode. Their literals overlap this union's (flex, object-grid and others), and the heritage criterion keeps them out, so they are not counted twice.
    • Following the first type argument of a utility type in an extends clause adds InputShorthandSchema and UiCalendarSchema to the population. Both were already members.
    • ActionBarSchema is confirmed standalone. The four app-shell hand-offs type it as ActionBarSchema: two in EnvironmentListToolbar.tsx, one in InterfaceListPage.tsx and one in ObjectView.tsx. The action:bar renderer in components takes it as its schema.
  • H2: no collisions. None of the eighteen literals is already declared by a literal member of AnySchema, and none collides with another of the eighteen. After the change, SchemaByType of each one resolves to that interface alone. Case 5 checks this property over the whole union.
  • H3: a pin is possible without a new gate. It is a runtime test in packages/types/src/__tests__/. Its one stated blind spot: a future standalone node type like ActionBarSchema that does not extend BaseSchema. The pin's header and AnySchema's docblock both say so.

Every consumer and document re-checked

  • In-repo readers of AnySchema / SchemaByType. A git grep over all tracked files finds none outside index.ts. The only other hits are packages/types/README.md and three historical .changeset bodies. So no package's compile can move, and the downstream sweep of @object-ui/types dependents was not run (a declared narrowing). CI runs the full type-check.
  • packages/types/README.md. Both blocks that use AnySchema (Type Narrowing, and the slice assignment with a switch) compile under check:doc-snippets against the rebuilt dist.
  • Pending changesets that name index.ts. check:changeset-claims lists 6051-gantt-flat-config-declared-keys.md and component-meta-converge-and-deprecate-alias-5893.md. I read both. They cover GanttConfig and PluginComponentMeta, which this diff does not touch.

Overlap with objectui#11477

objectui#11477 merged as 2c0ddf226 and edits the AuthoringNode export list in the same file. Before the first commit, my branch was fast-forwarded to it, so there was no merge commit and no conflict. Everything above was measured on that tree. That PR covers nothing this one adds.

Gates, all at head 50714a6d

  • pnpm --filter @object-ui/types run type-check: exit 0. The script echoes tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json. The new test file is in the test program (--listFilesOnly).
  • pnpm exec vitest run packages/types/src/__tests__/anyschema-declared-node-types-11478.test.ts: 5 passed.
  • pnpm exec vitest run --maxWorkers=2 packages/types/: Test Files 334 passed (334), Tests 8789 passed (8789).
  • pnpm --filter @object-ui/types build: dist completeness complete (144 emitted files). The doc-snippets scoped build: 35 of 35 tasks successful.
  • pnpm check:doc-snippets: exit 0, "Semantic phase: 776 of 776 block(s) judged, 0 failed."
  • pnpm check:doc-examples: exit 0. pnpm check:doc-types: exit 0.
  • node scripts/check-changeset-no-major.mjs and node scripts/check-changeset-presence.mjs: exit 0.
  • pnpm check:new-line-citations: 0 new citations. pnpm check:control-bytes: OK.
  • check:changeset-claims (report-only), check:pending-changeset-literals, check:test-path-roots, type-check:coverage, check:spec-symbols, check:readme-exports and check:component-surface-parity (report-only): all exit 0.
  • check:sdui-registration-pins: NOT MEASURED. It exits 2 because the console bundle is not built. It is not reached by this diff, since the emitted JS is unchanged.
  • eslint, narrowed to the two touched .ts files. 2 files, 0 errors, 0 warnings, 118 rules in effect on the test file. --print-config shows no parserOptions.project, so linting is not type-aware, and this diff cannot move any untouched file's verdict. The repo-wide lint is CI's.
  • check-governed-queue-guard --test: NOT GOVERNED.

Acceptance notes (observations, not filed)

  • SchemaByType of a literal whose member declares a union of literals is never, because Extract asks whether the whole type fits the one literal. Measured at head: email (InputShorthandSchema, which also declares password), header (SemanticElementSchema) and h1 (HtmlElementSchema). The button control resolves. This predates the PR, has no in-repo reader, and case 5 skips these members by design.
  • The zod twin refuses { type: 'action:bar' } and { type: 'metric-card' } at the top level (safeValidateSchema returns "Invalid input"), while it accepts detail-view, report and nl-query. The TS face already admitted both through the BaseSchema arm, so this is not new. No stored producer of either literal was found: the action:bar nodes are built in app-shell code, and metric-card is a widget-slot type.
  • packages/types/README.md says the shipped AnySchema "carries 50+ members". That is a prose count (AGENTS.md 完善设计器的每一个细节 #9), and it is still true. It is outside this card's file surface.
  • SemanticElementSchema and HtmlElementSchema are members of AnySchema but are exported only from the ./layout subpath, not from the root barrel. The pin reads the subpath entries for this reason.

The slot union, CustomNodeRegistry, and the app / list discriminant collisions stay with objectui#11466.

Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC


Generated by Claude Code

… enumeration (objectui#11478)

AnySchema's docblock called it the union of all component schemas, but
seventeen exported node types that extend BaseSchema with a literal `type`,
and the standalone ActionBarSchema, were not members. SchemaByType of their
literals was `never`. They join the union in the barrel's module order
(the four view schemas through the existing ViewComponentSchema).

The docblock now points at the test that re-derives "all": a compiler-API
enumeration of the published exports, with a control module that shows it
can fail, a by-name hold for ActionBarSchema, and a SchemaByType round-trip
over every single-literal member.

Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 2 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/6051-gantt-flat-config-declared-keys.md

  • names packages/types/src/index.ts → packages/types/src/index.ts — edited by this change

    GanttConfig itself gains nine members and is a published type, exported by name from packages/types/src/index.ts: lockField, objectField, summaryExtent, defaultCollapsedDepth, borderColorField, dependencyTypes, timeZone, exportFileName, interactions. The entry file's diff is empty only because the export list already named the type — the widening happened at the declaration.

.changeset/component-meta-converge-and-deprecate-alias-5893.md

  • names packages/types/src/index.ts → packages/types/src/index.ts — edited by this change

    ⚠️ Dated note, 2026-09-29 — the one-occurrence reading above has since moved — objectui#10979. "In-repo, PluginComponentMeta has exactly one occurrence — its own export line" above is the reading of the commit this change landed on (575b71c850), where a whole-tree search for the name returned that one line, in packages/types/src/index.ts. This change then added its own pins and this entry, and later in this same release objectui#5674's retirement of the sibling alias PluginComponentInput (PR objectui#10826) added mentions in its test and its entry. Re-measured on main at 2eaf5be27, the name occurred on 19 lines in 7 files. In non-test source it appeared only on the export line and on one doc-comment line in plugin-scope.ts, and the one file that imported it was this change's own component-meta-single-declaration.test.ts. The text above is kept as the reading of this change.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with 2c0ddf226 (merge-base with origin/main): 2 file(s) changed outside .changeset/, read against 2026 pending declaration(s) that publish a body (2655 pending in total). · run

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3550.7 KB 3574.6 KB
Main entry chunk (gzip) 150.4 KB 350 KB
Entry file index-Cjyv0H-d.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 569.61KB 136.76KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 230.46KB 63.94KB
fields (index.js) 261.25KB 66.11KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.49KB 9.23KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 39.36KB 11.18KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 53.17KB 15.46KB
plugin-charts (index.js) 83.53KB 22.84KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 141.23KB 38.00KB
plugin-designer (index.js) 231.28KB 48.76KB
plugin-detail (index.js) 245.27KB 64.47KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.73KB 44.50KB
plugin-gantt (index.js) 179.14KB 45.06KB
plugin-grid (index.js) 232.66KB 63.77KB
plugin-kanban (index.js) 49.51KB 15.54KB
plugin-list (index.js) 116.60KB 28.96KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 38.80KB 11.71KB
plugin-tree (index.js) 14.51KB 5.15KB
plugin-view (index.js) 90.23KB 22.73KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.06KB 2.68KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 21.42KB 7.05KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.07KB 2.39KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 21.59KB 7.71KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 50714a6d1e7d8ddcc0f21fd190b1c730eba06e52
Local-runs: none

① Derived judgments

Read: card #11478 (body, the claim comment 5955671434, the os-dev report 5956504941); PR #11486 (body, the 3-file list, the net diff against main at 2c0ddf226); the head's check-runs at 2026-10-02T16:21:54Z and again at 16:25:25Z; and REST reads of ten packages/types/src files at the head wherever a claim leans on text the diff does not show.

  1. Union membership — RIGHT. AnySchema gains exactly the card's eighteen: fourteen named in index.ts (DashboardWidgetSlotComponentSchema, the six designer, three report and three AI schemas, ActionBarSchema) and four through ViewComponentSchema, which at the head is exactly DetailViewSchema | ViewSwitcherSchema | FilterUISchema | SortUISchema (views.ts L1421–1425). No extra member rides in, none of the eighteen is missing, the BaseSchema arm stays, and no interface is edited (file list: index.ts +47/−3 plus two new files, nothing else).

  2. Accept set of AnySchema — UNCHANGED, judged right. Seventeen members extend BaseSchema, so each is a subtype of an arm already present; adding a subtype to a union that holds its supertype moves no assignability. The eighteenth, ActionBarSchema (ui-action.ts L954, standalone, type: 'action:bar'), was already structurally assignable to the BaseSchema arm: type to string; visible?: string to boolean | ExpressionWire where ExpressionWire = string | { dialect?: string; source: string } (expression.ts L69); every other key through [key: string]: any (base.ts L598). So the PR's "92 value verdicts identical" is what the declarations predict, including for the one member that does not extend BaseSchema.

  3. SchemaByType and narrowing on type — CHANGED, additive, judged right. For each of the eighteen literals SchemaByType goes from never to the interface. All eighteen are single-literal at the head: seventeen bare literals, and DashboardWidgetSlotComponentSchema.type is DashboardComponentWidgetType, which is (typeof DASHBOARD_COMPONENT_WIDGET_TYPES)[number] over ['metric-card'] as const (complex.ts L2150–2153, L2366), so it is 'metric-card' today. Each of the eighteen literals is declared exactly once across the ten head files read (H2 consistent); the pin's case 5 is the whole-union instrument. A note for a later reader, not a defect of this diff: that tuple's own docblock expects it to grow, and once it holds two literals the member is multi-literal, case 5 skips it by design, and SchemaByType of 'metric-card' is never again — the pre-existing Extract behaviour the PR's Acceptance notes already record.

  4. Runtime — UNCHANGED, judged right. The index.ts hunk adds import type lines and union arms only; nothing emitted moves. Consistent with Build & E2E, Bundle Analysis and Test (dist pins) green on the head.

  5. Docblock — RIGHT under AGENTS.md 完善设计器的每一个细节 #9. The prose "all" becomes a pointer to the pin, and the one stated blind spot (a standalone node type that does not extend BaseSchema) is written where the next reader meets it.

  6. The pin, anyschema-declared-node-types-11478.test.ts — an honest instrument, no new gate. It builds its own program over the root barrel and every package.json export (the regex ^\./dist/(.+)\.js$ matches all twelve import targets at the head, ./zod and ./internal/retired-field-keys included); its virtual control module must flag exactly the two outside types and not the inside, standalone or wide-type ones; it enumerates by heritage (extends chain, intersection constituent, first type argument of a utility type); it holds ActionBarSchema by name with a guard that retires the by-name case once heritage covers it; and it round-trips SchemaByType over the real union with no list. The reported pin-at-base (2 failed / 3 passed, naming the seventeen plus the by-name case) and the three ablation legs each red at the expected case are consistent with the pin's shape; not re-run here.

  7. Cosmetic: a trailing space after | AppComponentSchema is removed.

② Semver level

  • .changeset/11478-anyschema-declared-node-types.md: '@object-ui/types': minor. Judged right. The diff publishes a widened exported union and eighteen SchemaByType readings that move from never to a type; nothing is removed, no value's verdict moves, no runtime changes. never to a type breaks no consumer, so major is not warranted; a published type surface grows, so patch would understate it. The body names the eighteen (the four view schemas through ViewComponentSchema) and the pin, matching the diff. Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Claim Re-read and Changeset Overwrite Report are green on the head.
  • Commit subject fix(types) beside a minor bump: the changeset governs the version and the subject is prose; the dev flagged it; Changeset Bump Policy passed. No contract effect.
  • Clause-②: yes — stated at claim (comment 5955671434, with its "Why yes") and repeated in the PR body; the diff does grow a published type surface, so yes is the right spelling, and this record is the at-tier review the claim said was owed on the landing head.

③ Boundary flags

open_questions: empty — nothing to answer.

Dev deviations, each answered:

  1. Local node v22.23.3 from the issue's scratch dir — no bearing on the diff; CI ran its own toolchain. Closed.
  2. Branch fast-forwarded from 6007dd4e4 to 2c0ddf226 (objectui#11477) before the first commit — the PR's base sha is 2c0ddf226; the claim's serial constraint ("whichever lands second merges main") is met with no merge commit; the diff is net against that main. Closed, right.
  3. The four view schemas join through ViewComponentSchema rather than by name — the card forbids "a second list in a NEW type"; ViewComponentSchema is an existing exported union in views.ts, verified at the head to hold exactly the four; the zod twin arms the same group; and case 3 enforces membership by type identity regardless of route (ablation A red naming the four). Within the constraint's letter and intent. Accepted. If that union later gains a view node type, AnySchema gains it too, which is the direction the pin would demand anyway.
  4. Two empty attempts re-run with restores proven — process only; the reported outcomes are from the re-runs. Closed.
  5. Attribution trailer — the commit message is outside this record's inputs; the PR body carries the session footer. No contract effect.
  6. Bump level — judged in ②. Closed.
  7. Cleanup — no contract effect.

out_of_scope_findings, each confirmed outside this card's surface and correctly not filed here: multi-literal Extract to never (pre-existing, no reader); the zod twin refusing action:bar and metric-card at the root (a different declaration, AnyComponentSchema; carrier named as objectui#11466's implementing PR — right); README's "50+ members" prose count (still true, outside the surface); SemanticElementSchema / HtmlElementSchema on the ./layout subpath only (the pin reads subpath entries for it). None escalated.

Narrowings the dev declared: the downstream consumer sweep (no in-repo reader of AnySchema / SchemaByType outside index.ts) and check:sdui-registration-pins (emitted JS unchanged). Both are CI's to answer; Build & E2E is green, and Type Check is the instrument for the first, pending below.

One prose miscount in the report: line_budget says index.ts +50/−3; the file list says +47/−3 (the PR total +355/−3 is right). Not a contract matter.

Check-runs on 50714a6d, read 2026-10-02T16:21:54Z and 16:25:25Z: 42 runs; 31 success, 3 skipped (Test (coverage), its shard matrix, dependabot — not gates), 8 still in progress at the second read: Type Check and Test (shard 1/8) through (shard 7/8). Test (shard 8/8), Spec Main Shape Gate, Lint, Doc Snippet Type Check, Test (dist pins) and the five changeset checks are green. Nothing is red. The eight pending ones bear on this contract (one shard runs the pin; Type Check covers the test program and the consumer farm the dev narrowed out of), and the dev's local readings of both were green (type-check exit 0; 334 files / 8789 tests; pin 5/5). Not awaited, per the brief: their conclusions are the gate verdicts, and a red there would be a gate finding on the head, not a change to the contract judgment above.

Implemented-by: claude/issue-11478-anyschema-complete
Reviewed-by: session_01XvhGmGAP79ZB8swnkapxPC

VERDICT: PASS

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 2, 2026 16:32
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 2, 2026 16:32
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 2b188fa Oct 2, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11478-anyschema-complete branch October 2, 2026 16:48
os-tesla pushed a commit that referenced this pull request Oct 2, 2026
Brings in objectui#11485, #11486 and #11482; the parity ledger merged
without a conflict (#11485 moved rows in other blocks).

Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC
Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
…ypeScript twin declares (objectui#6152 round 6) (objectstack-ai#11492)

Part of objectstack-ai#6152 (round 6). The card stays open:
`ObjectGridSchema.resizableColumns` stops here with an open question
(below), the three spec-derived pairs route to objectui#2231, and the
two chatbot `displayMode` entries stay by decision (objectui#7654 ruling
B).

Clause-②: yes
Why yes (mixed): the strict face widens on an `object-view`'s `table`
slot, where nine keys it refused as unknown are now declared. The
tolerant face narrows there and on the flat mirror: a wrongly typed
value it kept unexamined is now refused at the key. No TypeScript
declaration changes shape.

## Round 6 in one paragraph

`ObjectGridSchema`'s `UnmirroredDeclared` entry held eleven keys. Each
was measured first: authored writers in both repositories, readers by a
type-checker census and a runtime probe through the real
`SchemaRenderer` and registry, and the member of the spec's
`ComponentPropsMap['object-grid']` row. Ten are MIRRORED on the flat zod
`ObjectGridSchema`: `aggregations`, `bulkActionDefs`,
`conditionalFormatting`, `grouping`, `navigation`, `operations`,
`reorderableColumns`, `rowColor`, `rowHeight` and `singleClickEdit`. The
eleventh, `resizableColumns`, is NOT retired: the seat's answer A
predates objectui#11276, which moved the authored node into the spec's
`properties` bag, and executing it now would leave that bag accepting a
key nothing reads (open question below). `UnmirroredDeclared` goes from
5 entries / 16 keys to 5 / 6 (spec-derived 3 / 14 to 3 / 4; local 2 / 2
unchanged).

## Measured first (base `50c73fed0`)

**H1 held.** A TypeScript-parser count of `interface UnmirroredDeclared`
at the base reads 5 entries / 16 keys, with 11 on
`objectql.zod.ts#ObjectGridSchema`, the eleven the claim names.
`KnownDrift` 49 / 86, `RuntimeOnlyDeclared` 5 / 30 and
`RuntimeOnlyNamedAllowList` 4 / 23 read the same at the base, at `main`
`401611b2` and at this head.

**H2: the authoring side is the spec's for all eleven.** A one-off probe
through the built faces (`AnyComponentSchema`,
`StrictAnyComponentSchema`, the spec row, the flat mirror):
- written flat on an `object-grid` node, every one of the eleven is
refused by name on both faces, toward `properties.KEY`
(`flatPropRefusals`);
- in the bag, the spec row judges it: `reorderableColumns`,
`resizableColumns` and `singleClickEdit` as booleans, `bulkActionDefs`
as an array of unknown entries, and the other seven as `unknown` (a
`properties.grouping: 42` parses on both faces);
- in an `object-view`'s `table` slot, which is built from the flat
mirror: nine keys were kept unexamined by the tolerant face and refused
as unknown keys by the strict face, while `navigation` and
`resizableColumns` are refused by name (withheld).

So the remaining question per key is the hoisted node's parity (the
TypeScript `ObjectGridSchema`, which `ObjectGrid` reads) and the `table`
slot that inherits the mirror.

**H3: every key is read.** Type-checker census over `packages/*/src` and
`apps/*/src` (5697 files; controls `objectName` 58 reads, `columns` 13,
`resizable` 2): every key has a src read in `ObjectGrid`, and
`ObjectView` reads `table.operations` and relays six more through
`tableRelay`. The first census run read 0 for the `objectName` control:
its file list had dropped every file directly under a `src/` root. That
run was discarded and the enumeration fixed. Runtime probe (one-off,
deleted): an authored node `{ type: 'object-grid', properties: { … } }`
through the real registry, varying one key, with a fetch double
recording every request. Every key changed the drawn markup or the
adapter calls:

| key | runtime reading (base) |
| --- | --- |
| `aggregations` | the group header query gains a `sum` of `amount`, and
the header draws it |
| `bulkActionDefs` | after a row is selected, the bulk bar draws the
def's button |
| `conditionalFormatting` | the matching row gains its
`background-color` |
| `grouping` | the grid asks `queryGroupHeaders` and draws grouped
sections |
| `navigation` | clicking a row opens the drawer overlay |
| `operations` | `export: false` removes the export button that
`exportOptions` draws |
| `reorderableColumns` | header cells become `draggable="true"` |
| `resizableColumns` | `false` removes the column resize handle (no
`resizable` written) |
| `rowColor` | the row's background class changes |
| `rowHeight` | the row-height toolbar appears |
| `singleClickEdit` | absent, one click opens the cell editor; `false`,
it does not |

Controls: the same document rendered twice is byte-identical; `columns`
changed (the lit control) differs. A first run was stopped by the
repository's network-escape guard (a permission read reached a real
socket) and its readings were discarded; the recorded run stubs `fetch`
and records each request in the compared log.

**H4: `singleClickEdit` on `object-grid` is authored, not host-paired.**
Unlike `DataTableSchema` (round 5), the spec's `object-grid` row
declares it ("Enter cell edit on single click (default true when
editable)"), and the grid supplies its own save path. So it is mirrored
here, by reference to the row member, and round 5's runtime-only filing
was not copied across.

**Authored census.** objectui: an AST and JSON walk over 497 JSON files,
1561 Markdown fences and 6083 TS/TSX files, with controls `object-grid`
bag `objectName` 31 and `table.columns` 15. It found no document writing
any of the eleven in an `object-view` `table` slot (two typed tests
only). In an `object-grid` bag, three doc fences write keys this round
mirrors: `operations` in `README.md` and
`content/docs/api/schema-reference.md`, `singleClickEdit` in
`content/docs/plugins/plugin-grid.mdx`. The in-code producers are
`ObjectView` (the relayed keys), `FieldDesigner` / `ObjectManager`
(`operations`) and the plugin-grid demo. `resizableColumns` is written
nowhere. objectstack `main` `3a6d92f7` (read by `git grep` on a
self-named ref): its two authored `object-grid` nodes, the showcase work
queues, write `objectName` / `columns` / `filter` only, and nothing in
it authors an `object-view`.

## What changed

`packages/types/src/zod/objectql.zod.ts`, the flat `ObjectGridSchema`
mirror:

| key | member | before | after |
| --- | --- | --- | --- |
| `grouping` | the spec's `GroupingConfigSchema`, by reference | kept
unexamined | judged; a padded field name is refused by the spec's own
rule |
| `navigation` | the spec's `NavigationConfigSchema`, by reference |
kept | judged (the `table` slot still refuses it by name) |
| `rowColor` | the spec's `RowColorConfigSchema`, by reference | kept |
judged |
| `rowHeight` | the spec's `RowHeightSchema`, by reference | kept | the
five presets only |
| `reorderableColumns`, `singleClickEdit` | the row's own boolean
members, by reference | kept | boolean |
| `aggregations` | strict `{ field, type }` entry, restating the twin |
kept | judged; unknown member named |
| `operations` | strict six-toggle object, restating the twin | kept |
judged; a misspelt toggle named |
| `bulkActionDefs` | strict entry restating `BulkActionDef`; `operation`
and `visible`'s second arm by reference to the spec | kept | judged |
| `conditionalFormatting` | the two-dialect rule, now one private
declaration shared with `ListViewSchema`'s mirror | kept | judged |

- The ten members are those the TypeScript twin declares, so
`NarrowerThanDeclared` and `WiderThanDeclaredKeys` measure nothing new,
and no `KnownDrift` or `WiderThanDeclared` row was added. The spec row
types seven of the ten as `unknown`. Binding those would have mirrored
nothing, so each member takes the spec schema the twin names, or the
twin's own shape.
- `bulkActionDefs` is NOT the spec's `BulkActionDefSchema` by reference.
Measured against the twin, that schema is narrower on `params` (a strict
entry with a closed `type`) and on `visible` (no `ExpressionWire` arm),
so binding it would have needed a `KnownDrift` row.
- `ListViewSchema`'s `conditionalFormatting` now reads the hoisted rule.
Its accept set is unchanged, and the zod `ListViewSchema` member is the
same union.

`packages/types/src/objectql.ts`: only `singleClickEdit`'s comment. It
said `@default false`, but `ObjectGrid` reads `schema.singleClickEdit ??
true` and the spec row says the default is true.

`packages/types/src/__tests__/zod-mirror-parity.test.ts`: the
`ObjectGridSchema` entry goes from eleven keys to `resizableColumns`,
with the round's route written on it. The four pinned figure sites and
the history sentences moved with it (header bullet 5 / 6; both ledger
docstrings 6 keys; totals line 5 / 6 with 3 / 4 and 2 / 2; the
spec-derived bullet 3 / 4).

**Doors, before and after:**

| door | before | after |
| --- | --- | --- |
| authored `object-grid` (`properties` bag) | the spec row judges |
unchanged |
| `object-grid` prop written flat on the node | refused by name |
unchanged |
| `object-view` `table`, strict face (`objectui validate`) | the nine
refused as unknown keys | a declared value parses; a wrong one is
refused at the key |
| `object-view` `table`, tolerant face (`safeValidateSchema`) | any
value kept unexamined | a wrong value refused at the key |
| `ObjectGridSchema.safeParse` directly | kept | judged |

## Pins

- New
`packages/types/src/__tests__/unmirrored-declared-round6-6152.test.ts`
(49 rows). For each key it checks that the mirror accepts the declared
value and refuses a wrong one at the key, then drives the nine slot keys
through the `table` slot on both faces. It holds that `table.navigation`
/ `table.resizableColumns` stay refused by name, and that the authored
node does not move (flat refused by name, bag parses). It pins the two
row members by identity, the spec's padded-name rule reaching
`grouping`, the shared conditional-formatting rule by identity with
`ListViewSchema`'s, and the strict entries naming unknown members. It
also holds that `resizableColumns` is not a member.
- `grouping-field-padded-refused-7347.test.ts`: the census now finds
`table.grouping` on `object-view`, as the 2026-09-30 evidence comment on
objectstack-ai#6152 predicted for the first round that mirrored this key. The table
slot gets its own row and so carries the padded-field refusal on every
face (the row type gained an optional `type` so one arm can own two
paths).
- `imported-defaults-8317.test.ts`: the four new spec crossings are
registered, and the mirror reads the row's members through the boundary
(`stripImportedDefaults(SpecObjectGridPropsSchema).shape.KEY`).

## Corpus and pending changesets re-judged

- The three doc fences above write their keys in the `object-grid` bag,
which the spec judges and this round does not touch.
`content/docs/plugins/plugin-view.mdx`'s `table` section lists the
relayed keys as declared, and the validator now agrees with it. No
corpus document needed a change.
- `.changeset/11276-object-grid-properties-bag.md` (pending) said the
row declares eleven keys "the flat mirror does not". This round makes
that false for ten, so it gets a dated, append-only correction note (+2
/ -0, frontmatter and every prior line byte-identical, checked by
`cmp`). `check:changeset-claims` named 41 more pending changesets. Their
paragraphs about the grid, the table slot and the ledgers were re-read,
and none is made false.

## Reverse verification (predictions written first; objectstack
`scripts/ablation-replace.mjs`, wrap mode, on committed `437408ce`; each
restore proven by blob == HEAD and an empty `git diff HEAD`)

- **A1**, the `grouping` member deleted from the mirror (anchor x1 to
x0, blob `36a2f818` to `dd46877a`): `tsc -p tsconfig.test.json` exit 2
with exactly one TS2322, `"objectql.zod.ts#ObjectGridSchema"` not
assignable to `never` at the ledger reconciliation. vitest 22 failed,
exactly as predicted: 4 in the round-6 pin, and 18 in the 7347 file (the
census plus the table row on four faces).
- **A2**, `grouping` put back in the ledger entry with the mirror intact
(blob `a93e249d` to `d0959519`): `tsc` exit 2 at the same
reconciliation. The parity file had 2 runtime failures, the
objectui#7279 split/totals pin and the objectui#8243 docstring pin. The
prediction named objectstack-ai#7279 and "possibly" objectstack-ai#8222; the second one to fire was
objectstack-ai#8243.

No dist leg: every subject here resolves to source (relative imports in
the types tests, and the root vitest alias for consumers).

## Tests and gates (final head `437408ce`; heavy runs through
`os-verify-lock.sh`; each exit code captured before any pipe)

- `pnpm --filter @object-ui/types run type-check` (`tsc --noEmit`, `-p
tsconfig.examples.json`, `-p tsconfig.test.json`, which judges the
ledgers): exit 0.
- `pnpm exec vitest run packages/types/`: `Test Files 336 passed (336)`,
`Tests 8904 passed (8904)`.
- Zod-face consumers outside `packages/types`: every test file that
imports `@object-ui/types/zod` or names `safeValidateSchema` /
`AnyComponentSchema` / `StrictAnyComponentSchema`. That is 115 files
(schema-catalog, cli, app-shell previews, apps/console, components,
scripts and twelve plugin packages), run in two halves: `58 passed (58)`
/ `1286 passed`, then `57 passed (57)` / `1015 passed`.
- The doc-snippet build closure (`turbo run build --concurrency=2`, the
filter `check-doc-snippet-types.mjs --build-filter` prints): `Tasks: 35
successful, 35 total`. Then `check:doc-snippets` ("776 of 776 block(s)
judged, 0 failed"), `check:doc-examples`, and `check:readme-exports`:
all exit 0.
- All exit 0: `check-changeset-presence` ("6 source file(s) of 1
released package(s) changed, and this change declares 1 changeset(s)"),
`check-changeset-no-major`, `check-changeset-fixed`,
`check-changeset-overwrite` (report-only; the one appended note),
`check:changeset-claims` (report-only),
`check:pending-changeset-literals`, `check:control-bytes`,
`check:new-line-citations` ("0 new citation(s)"), `check:spec-symbols`,
`check:handler-key-reads`, `check:element-data-source-declaration`,
`check:test-path-roots`, `check:unreferenced-sources`,
`check-type-check-coverage` ("43/43"), `check:doc-types`,
`check:doc-fences`, `check:component-surface-parity` (report-only),
`check-governed-queue-guard --test` over the diff (NOT GOVERNED).
- Lint, a declared narrowing: `eslint --no-inline-config --format json`
over the 6 changed TS files. The JSON judged 6 files with no ignore
notice: 0 errors, and 38 warnings, every one on a pre-existing line (0
on an added line). `eslint.config.js` sets no `parserOptions` /
`projectService`, and no `eslint-rules/` file reads the disk, so the
diff cannot move an untouched file's verdict. The repo-wide `pnpm lint`
is CI's.
- `main` was merged once before this PR (`54be4dda`, bringing in
objectui#11485, objectstack-ai#11486 and objectstack-ai#11482); the parity file merged with no
conflict.

NOT MEASURED: `check:sdui-registration-pins` (it needs a console build,
and no registration input moved); the full `pnpm test` farm and the
repo-wide lint (CI's); `plugin-grid` / `plugin-view` behaviour suites
(no runtime file changed). The contract record is the seat's to owe on
the landing head.

## Open question: `resizableColumns`

The seat's answer A on objectstack-ai#6152 ("`resizable` is canonical; the local half
tombstones `resizableColumns`; its spec half forks to objectstack") was
given while the flat mirror was the authored `object-grid` arm. Since
objectui#11276 the authored node's props live in the spec's `properties`
bag, which is `ComponentPropsMap['object-grid']` by reference and still
declares `resizableColumns` ("Alternate spelling of `resizable`").
Pinned by objectui#11276: "the bag is the spec row by reference". So the
local half as written would tombstone the TypeScript member and the
mirror, and drop `ObjectGrid`'s `?? schema.resizableColumns` read. That
leaves `objectui validate` and `os validate` both accepting
`properties.resizableColumns`, with the flat refusal pointing at it, and
nothing reading it. Measured: no document in either repository writes
the key. The options, with four axes, are in the report on the card;
this PR leaves the key in the ledger.

## Acceptance notes (noted, not filed here)

- The spec's `object-grid` row types seven of these keys as `unknown`,
so the authored bag accepts `properties: { rowHeight: 'comfortable' }`
or `grouping: 42` on both faces. `ObjectGrid` then falls back silently
(for `rowHeight`, to `compact`). objectui#11276's PR already reported
the row's `unknown` members as a spec-row finding. The report on the
card names it for the seat with its measured reach.
- `BulkActionDef` / `BulkActionParam` (the TypeScript twin) are wider
than the spec's `BulkActionDefSchema`: open params with any `type`,
`ExpressionWire` predicates, and the runtime `actionDef`. The mirror
follows the twin. A narrowing of the twin would be its own question.
- The strict face closes undeclared keys at every depth, including a
`bulkActionDefs` param's catch-all that the twin and the tolerant face
keep. That is the strict face's own construction, not this member's.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants