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

fix(types): the three view handler keys are EVENT NAMES, not callbacks (part of #6124) - #6899

Merged
os-sam merged 5 commits into
mainfrom
claude/issue-6124-callables-to-json-conversion
Aug 30, 2026
Merged

os-sam merged 5 commits into
mainfrom
claude/issue-6124-callables-to-json-conversion

Conversation

@claude

@claude claude Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Part of #6124 — this lands the executable half and escalates the rest. It is deliberately NOT a closing PR: the ruled conversion sweep is not executable as ruled, and the measurement is below.

⚠️ Clause ② — published-validator surface. @object-ui/types' zod mirrors are objectui's own published surface. This PR stays draft, its review goes at CONTRACT_REVIEW_TIER, and it is not the PM's to close.


What this PR changes

Three on* mirrors in views.zod.ts were described as "... change callback". Measured, the authored string is the name of a CustomEvent the renderer dispatches on window:

key read point dispatch
ViewSwitcherSchema.onViewChange plugin-view/src/ViewSwitcher.tsx:249-255 new CustomEvent(schema.onViewChange, { detail: { view } })
FilterUISchema.onChange plugin-view/src/FilterUI.tsx:99-105 new CustomEvent(schema.onChange, { detail: { values } })
SortUISchema.onChange plugin-view/src/SortUI.tsx:93-99 new CustomEvent(schema.onChange, { detail: { sort } })

These are live, JSON-authorable capabilities. The type is unchanged (z.string() / string), so no accept set moves. What changes is the two surfaces this contract is published on — the mirror's describe() text and the TS JSDoc — which now say which channel the string is, plus a pin that holds it.

The mislabel was load-bearing. A handler-key census that buckets by declared TYPE cannot tell an event name from the handler-expression dialect this repo does not support, and on that reading all three were swept in for retirement — which would have deleted working behaviour. The dual channel is what hides it: onViewChange?.(next) one line above is the React prop, while schema.onViewChange is the authored string. Same name, two channels.

The pin, and why it has two halves

packages/plugin-view/src/__tests__/handlerEventNameLiveness.6124.test.tsx

  1. DECLARED — the key is in the mirror's shape. ⚠️ Deliberately not a safeParse assertion: BaseSchema is .passthrough(), so a retired key still parses green and the parsed output still carries the value. A parse-based pin would stay green through the very deletion it exists to catch.
  2. LIVE — the authored string reaches new CustomEvent(...) on window.

Ablation proving both halves are load-bearing (mutation and restore both verified on disk). Retiring onViewChange from the mirror:

MUTATION_PROOF after=0 (expect 0)      # occurrences 1 -> 0, confirmed by grep
Tests  2 failed | 6 passed (8)
  x ViewSwitcherSchema declares onViewChange
  x the describe() text names the EVENT-NAME channel

⭐ The three runtime tests stayed GREEN through that retirement — the runtime keeps working while the authorable surface silently loses the key. That is precisely why half 1 exists, and it is the passthrough hazard demonstrated on the pin itself.

Restore leg: git diff HEAD empty, blob 60940616 matched against the HEAD blob, git status clean.

The test resolves the package from source, not dist: the wording assertion went red before the edit and green after it with no build run, which is the control that the ablation was reading the mutated file.


⛔ Why the ruled sweep is NOT in this PR

The 2026-08-29 ruling adopts conversion on the server-side lowerCallables precedent, in three census-first buckets. All three are non-executable as ruled, measured on today's main (merge-base 05b832407).

Census moved — 28 distinct keys is now 29

z.function() in packages/types/src/zod/, measured on the merged tree: 29 distinct keys / 60 anchored named-key call sites / 9 files. The z.string() and z.any() halves are unchanged at 11 and 3 (anchored recount; the unanchored pattern from #6182 over-reports by matching mid-identifier — buttonLabel, actionUrl, conversationId, locationField, actionName, descriptionField).

⚠️ Erratum, corrected here. An earlier revision of this body said 61 call sites. That was the raw z.function( occurrence count, not a count of named keys. The two differ by exactly one, and the residue is:

packages/types/src/zod/base.zod.ts:349
export const EventHandlersSchema = z.record(z.string(), z.function()).describe('Event handlers');

a record-valued declaration, not a named key, so it does not belong in a named-key call-site count. Anchored on key: z.function( the figure is 60. 29 and 9 were correct and are unchanged. ⛔ EventHandlersSchema is deliberately not in this PR's scope — it does not bear on the three z.string() keys changed here; it is recorded on the card as a separate uncounted surface.

The one key present today that is absent from the card's own enumerated list of 28 is onSend (complex.zod.ts:327). That is a set difference against the list the card body prints, not an archaeology claim: this checkout is shallow (19 commits), so git log -S cannot date an introduction and none is asserted.

⚠️ The declared-but-unauthorable surface is still growing while the card sits.

Bucket 1 (declarative action object) — measured EMPTY

Zero of the keys is consumed as a declarative object. Every read is a function call, a React-prop forward, or an authored string used as a CustomEvent name. Exhaustive per-key census; representative reads:

  • schema.onCancel() — plugin-form/src/SplitForm.tsx:308-309
  • schema.onColumnsReorder(newColumns) — components/src/renderers/complex/data-table.tsx:1429-1430
  • onCardMove={schema.onCardMove} — plugin-kanban/src/index.tsx:193
  • column.cell(value, row) — plugin-grid/src/VirtualGrid.tsx:153

And the plumbing itself cannot be reached from a handler key:

  • ActionRunner.builtinExecutors is script | url | modal | flow | api | form | navigation (core/src/actions/ActionRunner.ts:845-856) — dispatch is keyed on an ActionDef's type, reached from action:* node types, never from a handler key. ButtonRenderer (components/src/renderers/form/button.tsx) does not read schema.onClick at all.
  • schema.events — the ActionDef channel AGENTS.md section 4 documents — is consumed nowhere.

⭐ Two landed facts point the opposite way from bucket 1:

Bucket 2 (hooks-style ref form) — no consumer exists

No resolver anywhere turns a string on cell / validate / custom into a function. registerHandler is keyed to action names dispatched by ActionRunner, not to handler keys. Declaring the ref arm anyway mints an inert declaration — which this ruling itself forbids ("a declared form nothing reads is the disease, not the cure"). Building the resolver is a new capability, and AGENTS.md #6 bans runtime dynamic imports / eval() for exactly this.

Bucket 3 (ADR-0049 narrow) — the stop condition, re-verified end to end

Everything falls into bucket 3, and there the narrow is a deletion, and the deletion is SILENT. Measured on today's main, with controls:

leg result
today — ButtonSchema.safeParse of the card's payload success:false, invalid_type, expected:'function', path ['onClick']
the narrow, simulated — ButtonSchema.omit({onClick:true}) success:TRUE, and data.onClick deep-equals the object
control a real function parses green — the instrument can say accept
whitelist toFormControlDomProps forwards the object-valued onClick (and drops a sibling key — control that it really filters)
DOM click throws: Expected `onClick` listener to be a function, instead got a value of `object` type.

onClick is in SDUI_DOM_PASS_THROUGH_KEYS (core/src/utils/dom-props.ts:88-99). So bucket 3 converts a clear parse-time error into no error plus an uncaught runtime throw at click — strictly worse than today, on the axis the ruling called decisive. The triage word was 「响亮移除」 — loud. Under passthrough() the removal is silent.

Two further blockers

⛔ Not addressed in this PR, and none of the referenced cards change state here: #6182 remains open, #6152 remains open, #5250 remains open.


Verification

All heavy runs through scripts/pm/os-verify-lock.sh; verdict lines quoted, never a bare exit code. Union re-run on the merged head abd73c18f (branch updated by merging origin/main fab4802e3 — the repo's convention for a branch I created; no rebase, no force-push).

  • Suites pnpm exec vitest run packages/types/ packages/plugin-view/ (repo-root invocation, not pnpm --filter) — 102 files / 1122 tests, all passed on the merged head. os-verify-lock: VERDICT command-exit 0
    • Pre-merge this PR measured 100 → 101 files / 1108 → 1116 tests, the delta being exactly this PR's pin (baseline taken by removing the pin file, restore verified).
    • The further +1 file / +6 tests on the merged head is main's, not this PR's, and is attributed rather than assumed: running main's new packages/types/src/__tests__/report-schema-authoring-face.test.ts together with this PR's pin gives 2 files / 14 tests, and the pin is 8 of them, so main's file is the 6.
  • Type-check pnpm --filter @object-ui/types type-check → tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json. tsconfig.json excludes tests, so tsconfig.test.json is the leg that judges the type-level ledger pins. VERDICT command-exit 0
  • Gates derived from the actual diff, re-run on the merged head: check:control-bytes OK (5752 tracked text files) · check:vi-mock-inherit OK (108 call sites on @object-ui/react, 108 inherit, 0 auto-mocked) · check:vi-mock-specifiers OK · check-changeset-presence OK (now against merge-base fab4802e3: "3 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)") · check-changeset-no-major OK.
  • Lint — narrowed, and the narrowing is measured, not assumed: population read from eslint's own --format json output = 3 files, each a changed file; 0 errors; my files contribute 0 warnings; views.ts's 8 warnings are proven pre-existing (identical count on the same file at merge-base 05b832407). Config invariance: type-aware linting is not enabled (no projectService / project in eslint.config.js), so this diff cannot move the verdict of any file it does not contain.

Provenance

Authored by the domain:ui execution seat, session session_013hfmP9hoMd3dJwTh85J4yB (https://claude.ai/code/session_013hfmP9hoMd3dJwTh85J4yB) — recorded here in prose because editing a PR body rewrites the footer's link form.

Changeset

.changeset/6124-view-handler-keys-are-event-names.md — @object-ui/types: patch. What an author feels: nothing they wrote breaks, and the declaration now tells them the string is an event name and what to listen for.

⚠️ Corrected in review. The changeset previously claimed the change is felt in "the generated JSON Schema description". Measured, and it is not — every z.toJSONSchema call in this repo generates from @objectstack/spec, never from @object-ui/types/zod:

call site generates from
metadata-admin/view-schema.ts · page-schema.ts · dashboard-schema.ts · report-schema.ts @objectstack/spec/ui
metadata-admin/package-schema.ts @objectstack/spec/kernel

The complete set of toJSONSchema inputs is DashboardSchema, ListColumnSchema, ManifestSchema, PageSchema, ReportSchema, ViewSchema — none from these mirrors; the only importers of the three schemas are import type plus this PR's own pin. No baselined artifact carried the old text either: a repo-wide grep for the three old describe() strings returns nothing but this changeset's own quotation of one, with the new text as the hit-control. The claim named a consumer that does not exist, so it is gone. The changeset now states only the two surfaces that do change.

Generated by Claude Code


Generated by Claude Code

claude added 3 commits August 30, 2026 13:21
…in them live

`ViewSwitcherSchema.onViewChange`, `FilterUISchema.onChange` and
`SortUISchema.onChange` were described as "change callback" on both the zod
mirror and the TS interface. Measured, they are none of the three things that
wording suggests: the authored string is the NAME of a `CustomEvent` the
renderer dispatches on `window` —

  ViewSwitcher.tsx:249-255   new CustomEvent(schema.onViewChange, { detail: { view } })
  FilterUI.tsx:99-105        new CustomEvent(schema.onChange,     { detail: { values } })
  SortUI.tsx:93-99           new CustomEvent(schema.onChange,     { detail: { sort } })

i.e. live, JSON-authorable capabilities. The mislabel is not cosmetic: a
handler-key census that buckets BY ZOD TYPE cannot tell an event NAME from the
handler-EXPRESSION dialect this repo does not support, and on that reading all
three were swept in for retirement — which would have deleted working
behaviour. The dual channel is what hides it: `onViewChange?.(next)` one line
above is the REACT PROP, while `schema.onViewChange` is the authored string.

Same type (`z.string()` / `string`), so no accept set moves. What changes is
that the declaration now says which channel it is, and a pin holds it:

  half 1  the key is in the mirror's `shape`. Deliberately NOT a `safeParse`:
          `BaseSchema` is `.passthrough()`, so a retired key still parses GREEN
          and the output still CARRIES the value — a parse-based pin would stay
          green through the very deletion it exists to catch.
  half 2  the authored string reaches `new CustomEvent(...)` on `window`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013hfmP9hoMd3dJwTh85J4yB
… `any`)

The pin landed with seven `@typescript-eslint/no-explicit-any` warnings. Typed
against the real contracts instead: the TS `ViewSwitcherSchema` /
`FilterUISchema` / `SortUISchema` for the authored nodes (imported `as type`,
aliasing the zod mirrors to `*Mirror` so the two faces stay distinguishable),
and a generic `captureWindowEvents<D>` that returns typed `CustomEvent` details.

Typing the node literals is not cosmetic here: it means the pin now also fails
if one of these keys leaves the TS face, which is the other half of the surface
a retirement would touch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013hfmP9hoMd3dJwTh85J4yB
Required by `changeset-presence.yml`: published source of `@object-ui/types`
changed. Patch, never major (AGENTS.md — a `major` in the fixed group pushes
all 39 packages off objectstack's cadence).

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 45 chunks) 3177.9 KB 3222.7 KB
Main entry chunk (gzip) 143.6 KB 350 KB
Entry file index-DhdAhpfP.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) 12.46KB 4.71KB
app-shell (runtime-config.js) 20.61KB 7.35KB
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) 512.13KB 116.43KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 174.02KB 48.28KB
fields (index.js) 243.65KB 61.63KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
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.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.95KB 10.97KB
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.55KB 0.62KB
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 (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
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) 46.92KB 12.93KB
plugin-charts (index.js) 64.68KB 18.35KB
plugin-chatbot (index.js) 190.53KB 45.18KB
plugin-dashboard (index.js) 133.48KB 34.51KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 245.43KB 62.46KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 133.32KB 32.69KB
plugin-gantt (index.js) 165.23KB 40.37KB
plugin-grid (index.js) 201.69KB 54.58KB
plugin-kanban (index.js) 53.14KB 14.64KB
plugin-list (index.js) 113.15KB 27.59KB
plugin-map (index.js) 20.20KB 6.66KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.51KB 11.94KB
plugin-timeline (index.js) 28.95KB 8.33KB
plugin-tree (index.js) 9.00KB 3.08KB
plugin-view (index.js) 85.83KB 21.11KB
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) 76.75KB 25.49KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 3.11KB 1.48KB
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 0.99KB
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.72KB 2.24KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
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 (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) 3.40KB 1.71KB
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 added 2 commits August 30, 2026 13:51
…felt on

The changeset claimed the correction is felt in "the generated JSON Schema
description". Measured, and it is not: every `z.toJSONSchema` call in this repo
generates from `@objectstack/spec` —

  view-schema.ts / page-schema.ts / dashboard-schema.ts / report-schema.ts
    -> @objectstack/spec/ui
  package-schema.ts
    -> @objectstack/spec/kernel

— and none from `@object-ui/types/zod`. The only importers of the three
schemas are `import type` (the TS face) plus this PR's own pin. No baselined
artifact carried the old `describe()` text either: a repo-wide grep for the
three old strings returns nothing but this changeset's own quotation of one,
with the new text as the hit-control.

So the claim named a consumer that does not exist. Replaced with the two
surfaces that do change and that an author can actually read: the mirror's
`describe()` text and the TS JSDoc.

This matters more than its size: the changeset is the only artifact here that
ships to people who never read the PR thread, and the only one written before
review is complete.

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

claude Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up round addressed — head abd73c18f

Both named follow-ups fixed, branch updated. ⛔ No part of the escalated Q1–Q4 decision was implemented, and the PR stays draft.

1. Census erratum — verified independently before changing the number

Anchored on the merged tree, packages/types/src/zod/:

RAW z.function( occurrences: 61
ANCHORED named-key sites:    60
DISTINCT keys:               29
FILES:                        9

and the raw-minus-anchored residue is exactly one line:

base.zod.ts:349
export const EventHandlersSchema = z.record(z.string(), z.function()).describe('Event handlers');

⇒ 60 is right; my 61 was the raw occurrence count mislabelled as call sites. 29 and 9 unchanged. Body corrected, with the distinction spelled out so the conflation is not repeated. ⛔ EventHandlersSchema kept out of scope.

⚠️ One correction to my own earlier report while I was here: I had said onSend "landed since the previous census's merge-base". This checkout is shallow (19 commits, all dated 2026-08-30), so git log -S returns the oldest available commit, not the introducing one — it cannot date anything. The onSend finding does not depend on that: it is a set difference against the 28 keys the card body itself enumerates (card list 28, today 29, present today / absent from card = ['onSend'], absent today = []). The body now says so and asserts no introduction date.

2. The JSON Schema claim — measured, and the reviewer's negative reproduced

Every z.toJSONSchema call in the repo generates from @objectstack/spec, none from @object-ui/types/zod:

call site generates from
metadata-admin/view-schema.ts · page-schema.ts · dashboard-schema.ts · report-schema.ts @objectstack/spec/ui
metadata-admin/package-schema.ts @objectstack/spec/kernel

Complete set of toJSONSchema inputs: DashboardSchema, ListColumnSchema, ManifestSchema, PageSchema, ReportSchema, ViewSchema. The only importers of the three schemas are import type plus this PR's own pin. Repo-wide grep for the three old describe() strings: no carrier anywhere except this changeset's own quotation of one, with the new text as the hit-control.

⇒ the claim named a consumer that does not exist. Changeset and body now state only the two surfaces that do change — the mirror's describe() text and the TS JSDoc. Taking the point that the changeset is the artifact that ships to people who never read this thread, that is where the fix landed first, in its own commit.

3. Branch update

Merged origin/main fab4802e3 (repo convention for a branch I created — no rebase, no force-push). Clean, no conflicts; mergeable: true, and 0 commits in origin/main are missing from the branch. My three-dot diff vs merged main is still exactly 4 files, +232/−6.

Verification on the merged head

  • Suites, repo-root invocation pnpm exec vitest run packages/types/ packages/plugin-view/ — 102 files / 1122 tests, all passed. VERDICT command-exit 0. The +1 file / +6 tests versus this PR's pre-merge 101/1116 is main's, attributed not assumed: main's new report-schema-authoring-face.test.ts plus this PR's pin run as 2 files / 14 tests, and the pin is 8 of them.
  • Type-check pnpm --filter @object-ui/types type-check, echoed as tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json. VERDICT command-exit 0.
  • check:control-bytes OK (5752 tracked text files) · check:vi-mock-inherit OK (108 call sites, 108 inherit, 0 auto-mocked) · check:vi-mock-specifiers OK.
  • check-changeset-presence OK against the new merge-base fab4802e3 — "3 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)". check-changeset-no-major OK.
  • Lint population 3 files, 0 errors; my two authored files 0 warnings; views.ts's 8 warnings pre-existing.
  • This round changed no source file. I authored exactly one commit (017613ecd), touching only the changeset (+3/−2); non-changeset files touched by me this round = 0. The other commits in the range arrived with the merge.

Generated by Claude Code


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 45 chunks) 3178.0 KB 3222.7 KB
Main entry chunk (gzip) 143.6 KB 350 KB
Entry file index-BBahf6Vp.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) 12.46KB 4.71KB
app-shell (runtime-config.js) 20.61KB 7.35KB
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) 512.13KB 116.43KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 174.02KB 48.28KB
fields (index.js) 243.65KB 61.63KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
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.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.95KB 10.97KB
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.55KB 0.62KB
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 (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
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) 46.92KB 12.93KB
plugin-charts (index.js) 64.68KB 18.35KB
plugin-chatbot (index.js) 190.53KB 45.18KB
plugin-dashboard (index.js) 133.48KB 34.51KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 245.43KB 62.46KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 133.32KB 32.69KB
plugin-gantt (index.js) 165.23KB 40.37KB
plugin-grid (index.js) 202.08KB 54.61KB
plugin-kanban (index.js) 53.14KB 14.64KB
plugin-list (index.js) 113.15KB 27.59KB
plugin-map (index.js) 20.20KB 6.66KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.51KB 11.94KB
plugin-timeline (index.js) 28.95KB 8.33KB
plugin-tree (index.js) 9.00KB 3.08KB
plugin-view (index.js) 85.83KB 21.11KB
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) 76.75KB 25.49KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 3.11KB 1.48KB
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 0.99KB
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.72KB 2.24KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
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 (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) 3.40KB 1.71KB
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

Merged via the queue into main with commit 905b21f Aug 30, 2026
31 checks passed
os-project-manager pushed a commit that referenced this pull request Sep 3, 2026
…fuse BY NAME

The objectui#6182 ruling (2026-08-25, option A): the handler-expression string
dialect is not a supported authoring form, on either face. Executed in the
objectui#6124 shape (PR #7339) over the eight sites that PR's `z.function(`
census could not see: four `z.string()` mirrors, three `z.any()` mirrors and
one multi-line `z.function()`.

Per key, measured on origin/main d88e20f:

  runtime slot (callable kept, mirror refuses by name):
    views.zod.ts   DetailViewSchema.onBack     — detail-view spreads onto DetailView,
                                                 handleBack CALLS onBack(); TS twin
                                                 declared `string`, now `() => void`
    crud.zod.ts    DetailSchema.onBack         — register('detail', DetailView)
    crud.zod.ts    ActionSchema.onClick        — ActionRunner awaits action.onClick()
    complex.zod.ts CalendarViewSchema.onEventClick — pickHostCallbacks
  retired (`?: never`, mirror refuses by name):
    app.zod.ts     AppActionSchema.onClick     — nothing reads AppComponentSchema.actions[]
    reports.zod.ts ReportBuilderSchema.onSave / onCancel — no report-builder renderer
    crud.zod.ts    CRUDDialogSchema.onClose    — no crud-dialog renderer

No key was read as a string and dispatched (the card's STOP class did not occur).
The three views.zod.ts event-NAME keys (PR #6899) are untouched; the new pin reads
their describe text as the reason they survive the census.

zod-mirror-parity.test.ts gains the three runtime-slot drift rows (39 entries /
56 keys, counted); component-docs-retired-handler-keys-7340.test.ts records the
ruled move of the `?: never` census (22 → 26) and the two names now retired
everywhere (`onClose`, `onSave`); phase2-schemas.test.ts keeps its old
string-callback fixture as the negative reading. content/docs/core/app-schema.mdx
carries the two edits the #7340 pin and check:doc-snippets require.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 9, 2026
…fuse BY NAME (objectstack-ai#7468)

The objectui#6182 ruling (2026-08-25, option A): the handler-expression string
dialect is not a supported authoring form, on either face. Executed in the
objectui#6124 shape (PR objectstack-ai#7339) over the eight sites that PR's `z.function(`
census could not see: four `z.string()` mirrors, three `z.any()` mirrors and
one multi-line `z.function()`.

Per key, measured on origin/main d88e20f:

  runtime slot (callable kept, mirror refuses by name):
    views.zod.ts   DetailViewSchema.onBack     — detail-view spreads onto DetailView,
                                                 handleBack CALLS onBack(); TS twin
                                                 declared `string`, now `() => void`
    crud.zod.ts    DetailSchema.onBack         — register('detail', DetailView)
    crud.zod.ts    ActionSchema.onClick        — ActionRunner awaits action.onClick()
    complex.zod.ts CalendarViewSchema.onEventClick — pickHostCallbacks
  retired (`?: never`, mirror refuses by name):
    app.zod.ts     AppActionSchema.onClick     — nothing reads AppComponentSchema.actions[]
    reports.zod.ts ReportBuilderSchema.onSave / onCancel — no report-builder renderer
    crud.zod.ts    CRUDDialogSchema.onClose    — no crud-dialog renderer

No key was read as a string and dispatched (the card's STOP class did not occur).
The three views.zod.ts event-NAME keys (PR objectstack-ai#6899) are untouched; the new pin reads
their describe text as the reason they survive the census.

zod-mirror-parity.test.ts gains the three runtime-slot drift rows (39 entries /
56 keys, counted); component-docs-retired-handler-keys-7340.test.ts records the
ruled move of the `?: never` census (22 → 26) and the two names now retired
everywhere (`onClose`, `onSave`); phase2-schemas.test.ts keeps its old
string-callback fixture as the negative reading. content/docs/core/app-schema.mdx
carries the two edits the objectstack-ai#7340 pin and check:doc-snippets require.


Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant