Skip to content

fix(types): declare the four alert-dialog keys the renderer reads (objectui#7104) - #7700

Merged
os-sam merged 3 commits into
mainfrom
claude/issue-7104-alert-dialog-dialect-converge
Sep 5, 2026
Merged

fix(types): declare the four alert-dialog keys the renderer reads (objectui#7104)#7700
os-sam merged 3 commits into
mainfrom
claude/issue-7104-alert-dialog-dialect-converge

Conversation

@claude

@claude claude Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #7104

What

AlertDialogSchema now declares the four keys the alert-dialog renderer reads. content (the dialog body, a SchemaNode or a SchemaNode array like every sibling overlay), cancelText and actionText (the footer's two labels; each button renders only when its label is set, no renderer default) are declared on BOTH faces (packages/types/src/overlay.ts, packages/types/src/zod/overlay.zod.ts). onAction (the confirm button's click handler) is declared as a RUNTIME SLOT in the objectui#6124 shape: callable on the TypeScript face, refused by name in the zod mirror through handlerKeyRefusal() because JSON has no function value. No renderer change. The docs page content/docs/components/overlay/alert-dialog.mdx publishes the read dialect in its Schema block and no longer lists actions, a key no surface ever carried.

⛔ Neither dialect is declared twice. The three declared-but-unread keys cancelLabel / confirmLabel / confirmVariant are untouched here: retiring them is a narrowing with its own card; their readings are below so that card can be decisive.

Premise re-measured on the current merge-base 6eebc54b6

The card measured 2c3cd1b7. The four scope files are byte-identical between a3eb5d07a (where this branch was cut) and 6eebc54b6 (its merge-base at push time; git diff --stat over the four paths is empty). Renderer reads at 6eebc54b6: schema.content (line 35), schema.cancelText (37), schema.actionText / schema.onAction (38); registered inputs name cancelText / actionText / content (49, 50, 59) and defaultProps ships cancelText: 'Cancel' / actionText: 'Continue' (67, 68). One part of the card's premise has moved: onConfirm / onCancel are no longer () to void declarations; since objectui#6124 they are ?: never tombstones on the TS face and handlerKeyRefusal('retired') in the mirror. So "five inert declared keys" is three authorable inert keys plus two already-retired tombstones today. The ruling's direction is unaffected.

The asymmetry, verified rather than taken

In-repo producers on an alert-dialog node (git grep, tracked files, node_modules and dist excluded): read dialect cancelText / actionText3 (alert-dialog.tsx:49-50 inputs, :67-68 defaultProps, packages/app-shell/src/__tests__/widget-dom-leak-sweep.test.tsx:719); declared dialect cancelLabel / confirmLabel / confirmVariant0 (every other hit for those spellings is a different carrier: FormSchema in form.ts / schema-reference.md:271,297 / plugin-form.mdx:61 / plugin-form/README.md:175, BulkAction.confirmLabel at objectql.ts:497, and the retired structured-confirm object named in the crud.ts:111 tombstone). Birth history, read through REST at the first commit of each file: the renderer read cancelText / actionText / content / onAction in its first commit d3a881b77 (2026-01-13) and the type declared cancelLabel / confirmLabel / confirmVariant / onConfirm / onCancel in its first commit c592efe36 (2026-01-14) — the two surfaces were born disjoint one day apart, and the declared trio has never had a reader. Converging the other way would blank the footer of every document written the way the component itself teaches.

Red first (Ablation B, on the pushed head)

The pin file packages/types/src/__tests__/alert-dialog-read-dialect-7104.test.ts was written before the schema edit and re-run with the three implementation files (overlay.ts, overlay.zod.ts, alert-dialog.mdx) put back to 6eebc54b6 while the tests stayed at HEAD — restored under a trap with absolute paths; mutation proven on disk (anchored counts: cancelText?: string; 0 in overlay.ts, cancelText: 0 in the mirror, actions?: BaseSchema 1 in the page; control cancelLabel?: string; 1; blobs 9df1af15e to 2ea4efd35, 5e4caa80f to 8d8d7b8b3, e6af5fe13 to bf37523c8), restore proven (all three blobs equal the HEAD blobs, git diff HEAD empty). Predicted 13 red / 26 green under vitest — observed Tests 13 failed | 26 passed (39). Under tsc -p tsconfig.test.json: 10 errors in the pin file (seven TS2344 on the type-level pins, TS2578 unused ts-expect-error, TS7053 and TS2339 on the missing mirror members) plus zod-mirror-parity.test.ts(1432,14): TS2322 ... "overlay.zod.ts#AlertDialogSchema" is not assignable to type 'never' — the TS/Zod ratchet fires, and it fires in the tsc channel, as PR #7684 disclosed. After the change: 39 passed, tsc exit 0.

Ablation A — the removal probe the follow-up turns on

The three inert keys were deleted from overlay.ts on disk (anchored counts 0 / 0 / 0, controls actionText?: string; 1 and cancelText?: string; 1; blob 9df1af15e to 988c34a92; restored under trap, blob back to the HEAD blob, git diff HEAD empty) and a probe was compiled with tsc on the LIVE and DEL trees. Four carriers, three value shapes; "widened" means a const inferred first and assigned second.

carrier fresh literal lone-key widened value overlapping-key widened value
C1: all-optional, no index signature (the objectui#7678 control) TS2353 TS2559 silent
C2: all-optional plus BaseSchema's [key: string]: any silent silent silent
C3: required type, no index signature TS2353 TS2741 (constant: fires on LIVE too, it is the missing type) silent
C4: AlertDialogSchema itself, trio deleted on disk silent TS2741 (constant, identical on LIVE) silent

C1 reproduces the correction on objectui#7678 (comment 5548864634) exactly. On this carrier, deleting the three keys is silent in all three shapes. C2 isolates the mechanism: BaseSchema's [key: string]: any alone removes both the excess-property check and the weak-type check; the required type (C3) only adds a constant TS2741 for the lone-key shape that fires identically on the live tree. The one channel that moves is the wrong-typed value: cancelLabel: 123 and confirmVariant: 'ghost' are TS2322 on LIVE and silent on DEL, while actionText: 123 stays TS2322 on both (declared by this PR, untouched by the mutation) and a function under the two existing tombstones onConfirm / onCancel is TS2322 (never) on both. Under DEL, tsc -p tsconfig.test.json goes red at exactly the three "still declared" type pins in the new file (lines 127, 128, 130) — the retirement card re-derives those on purpose.

Per-key readings for the follow-up disposition (lit controls stated above)

key read by renderer docs / fixtures / designer inputs / producers CHANGELOG lines in alert-dialog context published default prong 1: named live replacement prong 2: taught as working
cancelLabel no 0 / 0 / 0 / 0 0 (control: triggerIcon 1 in root CHANGELOG; the only cancelLabel lines are FormSchema.submitLabel/cancelLabel) JSDoc @default 'Cancel' yescancelText (declared here) only the JSDoc default; no page, no CHANGELOG, no rename-ledger row
confirmLabel no 0 / 0 / 0 / 0 0 JSDoc @default 'Confirm' yesactionText (declared here) only the JSDoc default
confirmVariant no 0 / 0 / 0 / 0 0 JSDoc @default 'default' no — the read dialect has no variant spelling; the capability is absent (objectui#7693's triage calls making it live a feature) only the JSDoc default
onConfirm no 0 0 none already a ?: never tombstone (objectui#6124) pointing at onAction n/a — retired
onCancel no 0 0 none already a ?: never tombstone (objectui#6124) n/a — retired

Designer: the registration's inputs carry cancelText / actionText / content and none of the trio (pinned). open is published on the page because it IS live: SchemaRenderer spreads the non-metadata top-level keys as props (componentProps) and the renderer spreads props onto the Radix root, the same route the onOpenChange runtime slot uses; the inert trio travels that route too and Radix drops it.

Clause ② — yes; graded minor

Declared keys are validated even under .passthrough(), so three documents that parsed green before are refused at their own path now: cancelText / actionText with a non-string, content with a value that is not a node or node array, and onAction carried at all. A well-typed read-dialect document parses exactly as before. Spelled out in .changeset/7104-alert-dialog-read-dialect-declared.md; major is CI-refused (AGENTS.md version alignment). Draft PR, needs:contract-review on it, not flipped ready, not enqueued.

Gates on the pushed head 3c10879a1 (after the final commit)

Through os-verify-lock.sh (verdict lines VERDICT command-exit 0 for the build, per-step exits 0 for the sequenced runs):

  • pnpm --filter '@object-ui/components^...' build — types rebuilt, ✓ dist completeness: 1 package(s) complete (120 emitted files verified)
  • pnpm --filter @object-ui/types type-check (three tsc projects, the tests included — the base ablation above proves tsc reads the pin file) — exit 0
  • pnpm exec vitest run packages/types/ --maxWorkers=2 from the repo root — Test Files 106 passed (106), Tests 1783 passed (1783)
  • pnpm --filter @object-ui/types lint0 errors, 269 warnings (all pre-existing no-explicit-any)
  • Cross-package reverse verification through the REBUILT dist/*.d.ts: a probe file in packages/components/src with cancelText: 123 made pnpm --filter @object-ui/components type-check exit 2 with exactly TS2322: Type 'number' is not assignable to type 'string' at that line; after deleting the probe, exit 0. One probe prediction was wrong: content: 123 was predicted red and is silent, because SchemaNode legitimately admits number.

Outside the lock: check:doc-types ✅ (188 docs, 45 table keys registered), check:doc-fences ✅, check:control-bytes ✅ (6266 tracked text files), check-doc-links ✅ (17 scan roots), check-changeset-presence ✅, check-changeset-no-major ✅, check-changeset-overwrite ✅, check-changeset-fixed ✅.

NOT MEASURED locally: check:doc-snippets. It needs every package built and is a repo-wide scan. Declared narrowing: population is the gate's own DOCS_ROOT (content/docs, 184 md/mdx) plus the 39 package READMEs and the root README (ROOT_PAGES); the gate compiles ts/tsx/typescript fences only, and the single doc file in this diff carries 1 plaintext fence and 0 ts/tsx/typescript fences; the type change is additive optional members and cannot move a type-only import elsewhere. CI's doc-snippet gate is the authority.

Consumer sweep, direction stated: downstream consumers that name AlertDialogSchema outside packages/types = 1 file (packages/components/src/renderers/overlay/alert-dialog.tsx, measured by grep), and @object-ui/components type-checks green against the rebuilt dist. Repo-wide pnpm lint not run (CI owns it); the only linted package in this diff is @object-ui/types, run above.

Scope

Four fenced files, plus the test and changeset the definition of done owes: one new pin file, and ledger edits to three existing pin tests that count or enumerate the mirror's handler keys and the docs rows (handler-keys-json-refusal-6124.test.ts gains the onAction runtime-slot site, zod-mirror-parity.test.ts ledgers onAction as a KnownDrift key on the existing pair, overlay-node-slot-doc-types-7082.test.ts drops the actions row it recorded as undeclared). Nothing else is touched.

Out of scope — filed, not fixed here

  • objectui#7693 — the four schema-catalog fixtures the docs page embeds author actions and render an empty footer; the conversion is lossy (two fixtures use variant: destructive, which the read dialect cannot spell). Filed by this seat during this run; PM-triaged domain:devx / priority:p2.

Dev seat: Claude Code session session_01KbJQ1y1J12nZxYzFWhP8Q3, dispatched by the domain:ui PM seat.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3


Generated by Claude Code

…jectui#7104)

`AlertDialogSchema` now declares `content`, `cancelText` and `actionText` on
both faces, and `onAction` as a runtime slot (callable on the TS face, refused
by name in the zod mirror — the objectui#6124 shape). None of the four was
declared anywhere; the renderer, its registered `inputs` and its `defaultProps`
were already written in this dialect. The docs Schema block now publishes it
and no longer lists the phantom `actions` row no surface carried.

The three declared-but-unread keys (`cancelLabel` / `confirmLabel` /
`confirmVariant`) are untouched: retiring them is a narrowing with its own
card. The new pin test records their state so that card re-derives it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
Sync the branch to the current main (6 commits; no overlap with the
objectui#7104 scope files) before re-measuring and re-verifying.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
…header

The pin file's provenance line now names both the base it was written on
(a3eb5d0) and the merge-base the branch was re-measured and pushed from
(6eebc54): the four scope files are byte-identical between the two.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3180.1 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-CI4V3Zxi.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) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 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) 510.70KB 116.21KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.27KB 61.22KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
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) 15.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.43KB
plugin-dashboard (index.js) 132.86KB 34.68KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.57KB 11.96KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.94KB
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.66KB 3.50KB
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) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
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 (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) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
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) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
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

@claude

claude Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Contract review — claude-fable-5-1, adopted verbatim

Isolated review subagent. Tier verified from its transcript: 94/94 assistant turns stamped claude-fable-5-1, 0 fallback notices, against a lit control that reads claude-opus-5 in this session's other transcripts. Adopted verbatim — not edited, trimmed or paraphrased.


Contract review — objectui#7700 (card #7104), head 3c10879a1, merge-base 6eebc54b6

How this was measured. Three detached scratch worktrees at the head (HEAD gates; Ablation B and its converse; the removal probe), each pnpm installed, all removed afterwards. Primary checkouts untouched; no GitHub writes. Base main has moved to 6e8863093 (mergeable_state: behind) but git diff 6eebc54b6 origin/main over all eight PR paths is empty — nothing moved under it. CI on the head: Type Check, Test shards 1/3/4, Doc Snippet Type Check, Doc Component Type Check, Changeset Bump Policy, Governed Surface Queue Guard all green; shard 2 still running at last poll.

The ruling, re-measured

Asymmetry — holds. git grep at 6eebc54b6, tracked files, node_modules/dist/CHANGELOG excluded. Read-dialect producers on an alert-dialog node: 3alert-dialog.tsx:49-50 (registered inputs), :67-68 (defaultProps), packages/app-shell/src/__tests__/widget-dom-leak-sweep.test.tsx:719. Every other cancelText hit is a form/confirm carrier (FormSchema, ObjectForm, ActionRunner.confirm, ActionConfirmDialog options). Declared-dialect producers on an alert-dialog node: 0 — every cancelLabel/confirmLabel/confirmVariant hit is FormSchema (form.ts:1188, form.zod.ts:628, form.tsx, schema-reference.md:271/297, plugin-form.mdx:61, plugin-form README:175, demo-request-form.json:82 and disabled-verdict-one-carrier.test.tsx:60, both type: 'form' nodes), BulkAction.confirmLabel (objectql.ts:497, BulkActionDialog.tsx:552), plugin-designer's ConfirmDialog React props (not a schema node), or the crud.ts:111 tombstone comment. A third spelling, actions, has exactly 4 producers — the schema-catalog fixtures (#7693).

Birth history — holds, and is stronger than stated. Via the REST API (the local clone is shallow, grafted at 2026-08-25): c592efe36 (2026-01-14T09:45Z) added packages/types/src/overlay.ts declaring cancelLabel/confirmLabel/confirmVariant/onConfirm/onCancel. d3a881b77 (2026-01-13T17:22Z) is the earliest commit on the renderer path and already reads schema.content/cancelText/actionText/onAction with inputs and defaultProps in that dialect — but the file's status there is renamed (3+/3−), so the renderer pre-dates that path under another one; the read dialect is older than the type by more than the "one day". The path has 5 commits total; I read the three substantive versions (d3a881b77, 8058f2f4c which switched to @object-ui/types, 28d232be4); the other two are the import-path and license-header sweeps. Every version reads the four keys; none reads the trio. The trio never had a reader. Converging the other way would blank the footer of every document written the way the component itself teaches.

① Derived judgments

change verdict deciding measurement
content?: SchemaNode | SchemaNode[] (TS) RIGHT Same spelling as DialogSchema/SheetSchema/DrawerSchema (overlay.ts:46/205/255). Read is renderChildren(children: any) (lib/utils.tsx:18): falsy→null, string/number→text, array→nodes, object→SchemaRenderer. Declared domain is not wider than the read (the read takes any); it admits boolean only because SchemaNode does, package-wide. content: 123 is silent on the TS face (reproduced) — the author's prediction was wrong, the declaration is right: renderChildren(123) renders 123 as text, a legitimate body. content: { label: 'x' } TS2322 (no type); content: () => 1 TS2322.
content (mirror) RIGHT SchemaNodeSchema is BaseSchemaCore | string | number | boolean | null | undefined; measured: number/string/boolean/null/array GREEN and survive, object-without-type REFUSED invalid_union at content — was GREEN at the merge-base.
cancelText?: string (TS) RIGHT Matches schema.cancelText && truthiness gate, no renderer default; cancelText: 123 TS2322 (absorbed by the index signature before).
cancelText (mirror) RIGHT z.string().optional(); measured GREEN→REFUSED for 123 and null, '' stays GREEN (and draws no button, consistent with the docblock).
actionText?: string (TS) RIGHT Same shape; actionText: 123 TS2322 on LIVE and DEL trees.
actionText (mirror) RIGHT ['Continue'] GREEN at base → REFUSED invalid_type now.
onAction?: () => void (TS runtime slot) RIGHT Callable kept (KeepsFunction pin); assignable to a button onClick (measured silent); thunk and async thunk accepted; string TS2322, object TS2353. Arity follows the package's own button click slot ButtonSchema.onClick?: () => void | Promise<void> (form.ts:33, a 6124 runtime slot forwarded to the DOM <button>); @object-ui/types has no React dependency to name the event. See ③ for the one shape this refuses.
onAction (mirror) RIGHT handlerKeyRefusal('onAction','runtime-slot'): string/object/function all REFUSED custom at onAction, message names action:button; all three were GREEN at the merge-base (a live function parsed to undefined).
docs Schema block publishes content/cancelText/actionText RIGHT Rows match the declaration's own spelling and optionality; pinned.
docs actions?: BaseSchema[] row removed RIGHT Declared on neither face (shape keys measured), schema.actions absent from the renderer; a phantom in every direction.
docs title/description → optional RIGHT Declared title?/description? (overlay.ts:88/92). trigger stays published required against a trigger? declaration — the deferral 7082 deliberately recorded, not this PR's.
docs publishes open as live RIGHT SchemaRenderer.tsx:1576 spreads componentProps; the renderer spreads {...props} onto the Radix root (alert-dialog.tsx:26).
docs prose for onAction (no row) RIGHT Same convention as dialog.mdx, which publishes no onOpenChange row.
cancelLabel/confirmLabel/confirmVariant untouched RIGHT Still declared both faces, still read by nothing (pinned); their removal is a narrowing with its own card.
onConfirm/onCancel untouched RIGHT Already ?: never at 6eebc54b6:overlay.ts:128/137 and handlerKeyRefusal('retired'); refused at base and head alike.
No renderer change RIGHT git diff 6eebc54b6 3c10879a1 -- alert-dialog.tsx empty.
handler-keys-json-refusal-6124 ledger +1 (60 sites) RIGHT, convention-entailed With the file at base and source at HEAD the file stays green — its site ledger is self-referential (the source census scans only on*: z.function(), which is exactly why the site must be ledgered in the PR that adds it. Real handlerKeyRefusal( sites in the mirrors: 67→68; the 59→60 ledger tracks the delta (the 8-site gap is pre-existing).
zod-mirror-parity KnownDrift 'onOpenChange' | 'onAction' RIGHT, test-entailed both ways Source at base + ledger at HEAD: TS2322 at :1432; source at HEAD + ledger at base: TS2322 at :1420 — both in the tsc -p tsconfig.test.json channel only, as #7684 disclosed.
overlay-node-slot-doc-types-7082 drops the actions row RIGHT, test-entailed File at base + page at HEAD: red on "AlertDialogSchema.actions is documented but declared nowhere".
New pin alert-dialog-read-dialect-7104.test.ts RIGHT, not dark See ablation below.
Changeset @object-ui/types: minor RIGHT See ②.

Scope fence. Eight files: the four fenced, plus the changeset (CI Changeset Declaration requires one for a source change in a released package), the new pin (the DoD), and three ledger edits — two test-entailed, one convention-entailed. Nothing rides along.

Ablation (author's Ablation B, reproduced). overlay.ts, overlay.zod.ts, alert-dialog.mdx restored to 6eebc54b6 (anchors: cancelText?: string; 0, mirror cancelText: 0, page actions?: BaseSchema 1, control cancelLabel?: string; 1), tests at HEAD: vitest 13 failed / 26 passed (39) — the three membership legs, three wrong-typed legs, three onAction legs, four docs rows. tsc -p tsconfig.test.json: 7×TS2344 (lines 114-117, 123-125), TS2578 (139), TS7053 (180), TS2339 (221) in the pin file plus zod-mirror-parity.test.ts(1432,14) TS2322 … not assignable to type 'never'. Restore verified by empty status. HEAD state: 4 pin files / 332 tests green, tsc -p tsconfig.test.json 0, tsc --noEmit 0.

⭐ Removal probe, reproduced with my own lit controls (4 carriers × 3 shapes, LIVE tree then the trio deleted from overlay.ts lines 135-149 on disk — anchors 0/0/0, controls cancelText?:/actionText?:/onConfirm?: never 1 each — then restored to the HEAD blob 9df1af15e):

carrier fresh literal lone-key widened overlapping widened
C1 all-optional, no index signature TS2353 TS2559 silent
C2 all-optional + [key: string]: any silent silent silent
C3 required type, no index signature TS2353 TS2741 (missing type) silent
C4 AlertDialogSchema, trio deleted silent TS2741 (constant — fires on LIVE too) silent

C1 reproduces #7678 correction #1 exactly; C1→C2 differ only by the index signature, which removes both excess-property and weak-type checking. Wrong-typed channel: cancelLabel: 123, confirmLabel: 123, confirmVariant: 'ghost' TS2322 on LIVE, silent on DEL; cancelText: 123/actionText: 123 TS2322 on both; onConfirm/onCancel functions TS2322 on both. Correction #3 on #7678 stands as measured. One addition (③ item 6).

② Semver grading

Declared minor; correct level minor. AGENTS.md §版本号策略: majors track @objectstack, major is CI-refused (scripts/check-changeset-no-major.mjs, Changeset Bump Policy green), objectui's own breaking changes ship as minor with the semantics in the body. The changeset's body spells the mirror narrowing correctly.

This is a widening in intent (four keys go from index-signature/passthrough to declared) and narrows in exactly these places, measured before/after: mirror — 7 documents flip GREEN→REFUSED at their own path (content object-without-type; cancelText 123 and null; actionText array; onAction string, object, function); TS face — wrong-typed values at the three keys, and onAction given a handler with a required event parameter ((e: {preventDefault(): void}) => void TS2322; it compiled through the index signature before). The last is covered by the changeset's general sentence but not named; see ③. Nothing narrows at runtime; undeclared keys still pass through on both faces.

③ Boundary-flag disposition

  1. Card options (a)/(b)/(c); PM's "(b) ⇒ handoff to domain:spec". The ruling took the declare half of (b) and deferred the retire half. Direction confirmed above. The handoff is a process question for the PM seat; the PR is labelled package: types, draft, needs:contract-review, not enqueued.
  2. PM's ⛔ "any disposition must also move inputs". Satisfied without a move: inputs and defaultProps already ship the read dialect, now pinned, so the sdui.manifest.json/sdui-intrinsics.d.ts chain teaches the declared spelling.
  3. Card: the page owed a whole Schema-block rewrite. Delivered.
  4. confirmVariant is a capability the read dialect cannot spell. Still true; the PR leaves the capability absent rather than declaring a second dialect; finding(examples,docs): the four alert-dialog schema-catalog fixtures author an actions array no surface carries — the docs page's own examples render an empty footer #7693's triage calls making it live a feature.
  5. finding(examples,docs): the four alert-dialog schema-catalog fixtures author an actions array no surface carries — the docs page's own examples render an empty footer #7693. The four fixtures the page embeds still author actions and render an empty footer, so the page's Schema block now contradicts its own embedded examples until finding(examples,docs): the four alert-dialog schema-catalog fixtures author an actions array no surface carries — the docs page's own examples render an empty footer #7693 lands. Correctly out of scope (outside the fence, lossy conversion), and pinned as that card's filed premise so the fix goes red here.
  6. Author's open question — disposition of the trio (A/B/C). Leaving them in this PR is right: retiring is a narrowing on both published faces with its own grade, and the probe shows no presence hazard is created by waiting (deletion changes nothing on presence). One reading for the follow-up, from the same probe: on this carrier a ?: never tombstone makes presence with any value loud — onConfirm: () => {} is TS2322 today — which is a channel outright deletion cannot produce here at all. That is the decisive difference between the tombstone routes and removal on a BaseSchema carrier, and it is stronger than correction Add public roadmap, VitePress documentation site, and GitHub Pages deployment #3's "keeps the wrong-typed channel loud". I do not pick among A/B/C.
  7. Premise moved. Verified: onConfirm/onCancel are ?: never + handlerKeyRefusal('retired') at the merge-base. Three authorable inert keys + two retired tombstones.
  8. onAction arity (disclosure). The TS slot refuses event-typed handlers, including Radix's documented event.preventDefault()-to-keep-open idiom on AlertDialog.Action; the package's EventHandlers.onClick?: (event?: any) => void | Promise<void> (base.ts:828) accepts all four probed shapes and is equally forwardable. This matches ButtonSchema.onClick's existing arity-0 convention, so it is a package-wide question, not this PR's defect; one clause in the changeset naming it would close the disclosure gap.
  9. check:doc-snippets not measured locally. CI's Doc Snippet Type Check is green on the head.
  10. mergeable_state: behind. main moved but not under the eight paths; the parity ratchet is not stale at this moment. The queue rebuilds on main; if main retires a ledgered key first the ratchet will say so in the tsc channel.

VERDICT: PASS


Generated by Claude Code

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

Projects

None yet

2 participants