Skip to content

feat(types): name InputShorthandSchema and UiCalendarSchema on the root barrel (objectui#9406) - #9525

Merged
os-tesla merged 1 commit into
mainfrom
claude/issue-9406-types-root-barrel-two-names
Sep 14, 2026
Merged

os-tesla merged 1 commit into
mainfrom
claude/issue-9406-types-root-barrel-two-names

Conversation

@os-tesla

Copy link
Copy Markdown
Collaborator

Fixes #9406

Implements decision batch #133 item 2, letter (a) (maintainer 2026-09-14, recorded on the card). Nothing here is a judgement call of this branch's: the ruling names the file, the act, the bump level and the pin.

The exact published delta

Two names join one list: the root barrel packages/types/src/index.ts, on its existing export type { ... } from './form.js'; clause, from the module packages/types/src/form.ts.

name declared in was on @object-ui/types/form was on @object-ui/types/zod root @object-ui/types
InputShorthandSchema form.ts yes yes (objectui#9067 / PR #9405) added here
UiCalendarSchema form.ts yes yes (objectui#9067 / PR #9405) added here

No other export moves. Measured on the published artifact rather than asserted: packages/types was built at the branch point and at this head, and dist/index.d.ts differs by exactly one line, which differs by exactly these two names inserted between CalendarSchema, and FieldValidationRules,. Nothing else in that file changed, in either direction.

The dispatch cautioned that this package's emit is not byte-reproducible (measured on PR objectui#9517), so the comparison carries a same-source control: two consecutive clean builds of byte-identical source, compared before any normalisation. For dist/index.d.ts on this tree they came back byte-identical (raw differing lines 0, sorted differing lines 0), so the delta above is a reading and not emit noise. Reported as measured: the instability that card saw on another emitted file did not appear on this one, which the control establishes rather than assumes.

The source diff is one additive hunk, 16 insertions and 0 deletions on index.ts — two names and the comment that says why they are there. The comment does not reach the published artifact (the emitted clause is one comma-joined line), so the published surface change is exactly the two names.

Why it mattered more than a missing name

From the root entry point the compiler did not merely fail, it suggested a different component. Reproduced live on this branch by removing the two lines again and running the package's own tsc -p tsconfig.test.json:

error TS2724: '"../index"' has no exported member named 'InputShorthandSchema'. Did you mean 'InputOTPSchema'?
error TS2724: '"../index"' has no exported member named 'UiCalendarSchema'. Did you mean 'CalendarSchema'?

ui:calendar and calendar resolve to different renderers, and InputOTPSchema is not an input at all. An author who accepts the suggestion writes an import that compiles and means something else.

The pin derives the gap; it does not assert a pair

packages/types/src/__tests__/form-barrel-mirror-9406.test.ts. On every run it reads form.ts's own export list and the root barrel's ./form.js re-export list, and the verdict is the set difference — so the declaration that lands in form.ts next month and is forgotten fails it. A pin asserting "these two names are present" would have passed that day, which is this class reopening a third time.

  • Names deliberately left off carry a ledger row with the reason (ABSENT_BY_DECISION), names nobody has ruled on carry one saying so (ABSENT_PENDING_DECISION) — the two-ledger shape arm-named-export-8784.test.ts settled for the zod barrel.
  • Rows cannot rot: a row whose name form.ts no longer declares, or which has since reached the barrel, fails the file and asks to be deleted.
  • Both populations carry controls, so a dark instrument fails instead of passing: exactly one ./form.js clause, the barrel list is a subset of what the module declares, the four names the card measured all read non-zero, and a star re-export from either module under the pin fails rather than silently shortening the denominator.
  • SemanticElementSchema / HtmlElementSchema are recorded as the ruling asked, with the reason and the ruling that made them so (objectui#9067, decision batch Fix CI lockfile error by removing @objectstack/spec dependency #121 item 5), and checked — they are declared in layout.ts, not form.ts, so they sit outside this pin's population by construction, and the block fails the day either reaches the root barrel. They are not added here.

One finding, ledgered and reported rather than repaired

Running the derived pin over this list surfaced two more names in the same state: CommandItem and CommandGroup (the element types of CommandSchema.groups and of its items), reachable only through the /form subpath while CommandSchema sits on the root list. That is objectui#7697's shape exactly. The ruling authorises exactly two names and says "additive, no other line moves", so they are ledgered as undecided with the reason and handed to the dispatching seat for their own card. This PR does not move them.

⚠️ A related correction to the filing card's framing, from the disk at this branch point: the card reads "re-exports 28 of the 30 interfaces src/form.ts exports", which conflates two populations. form.ts exports 30 interfaces plus 2 type aliases; the barrel's list carried 28 names, of which 26 are interfaces. So the gap was four names, not two — the two this ruling names, plus the pair above. The card's own two-zero reading is confirmed unchanged: both names read 0 on the barrel while CalendarSchema and InputSchema read non-zero in the same pass.

Checks run before pushing

check how result
the new pin pnpm exec vitest run packages/types/src/__tests__/form-barrel-mirror-9406.test.ts 16 passed
the pin, with the change removed same command, index.ts taken back to the branch point 1 failed, naming both missing names
the type-level leg, with the change removed tsc -p tsconfig.test.json exit 2, the two TS2724 lines quoted above
package type-check pnpm --filter @object-ui/types run type-check (all three tsc legs) exit 0
package suite pnpm exec vitest run packages/types/ 190 files, 4345 tests passed
package lint pnpm --filter @object-ui/types run lint exit 0, 0 errors
changeset declaration check-changeset-presence.mjs, pnpm changeset:check, pnpm check:changeset-claims exit 0
line citations pnpm check:new-line-citations exit 0
control bytes pnpm check:control-bytes and a direct sweep of the diff exit 0, no hits

Both ablation legs restored from HEAD and verified by blob hash against the HEAD blob, with git diff HEAD empty afterwards. Repository-scale runs (Lint, Type Check, the test shards, Build & E2E, Build Docs) are CI's.

Changeset

.changeset/9406-types-root-barrel-two-names.md, minor on @object-ui/types — the level the ruling sets, on the ground that this is a published surface gaining two names, not on the size of the diff.

For the Clause-2 contract review

The reviewed surface is one clause in one file. The published delta is the two names in the table above and nothing else, established against the built dist/index.d.ts with a same-source control. Both names were already published on two other entry points of this same package, so the third is aligned rather than widened; both subpaths are untouched and every previously published name is still published. Draft, not enqueued, no auto-merge, no labels written by this branch.


Generated by Claude Code

…ot barrel (objectui#9406)

`import type { UiCalendarSchema } from '@object-ui/types'` read TS2724 while
`CalendarSchema`, its neighbour on the very same `./form.js` re-export list,
resolved in the same compilation pass. The compiler's answer was worse than an
absence: it suggested a DIFFERENT component (`CalendarSchema` for
`UiCalendarSchema`, `InputOTPSchema` for `InputShorthandSchema`), and an author
who follows the suggestion writes an import that compiles and means something
else.

Both names were already published on `@object-ui/types/form` and
`@object-ui/types/zod`, so this aligns the third entry point rather than
widening the surface. Purely additive: one hunk on the existing named list,
nothing removed, renamed or narrowed, both subpaths unchanged. Same route
objectui#7697 took for `ComboboxOption` on this same list.

`form-barrel-mirror-9406.test.ts` keeps the class shut and is DERIVED, not a
pair of presence assertions: it reads `form.ts`'s export list against the
barrel's `./form.js` list on every run and names any gap, so the next
declaration that lands in `form.ts` and is forgotten fails it. Names left off
deliberately carry a ledger row with the reason, and a row reds once its name
reaches the barrel or stops being declared. `SemanticElementSchema` /
`HtmlElementSchema` are recorded as out of scope with the objectui#9067 ruling
that settled their zod side, checked so the record cannot rot.

Running it surfaced `CommandItem` and `CommandGroup` in the same state; the
ruling authorises exactly two names, so they are ledgered as undecided and
reported for their own card rather than moved here.

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3062.6 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-CRztz5Ax.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.69KB 6.21KB
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) 11.08KB 4.58KB
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) 544.93KB 130.50KB
core (index.js) 8.52KB 3.41KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.99KB 59.96KB
fields (index.js) 249.20KB 62.88KB
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) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
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.83KB 10.95KB
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) 13.52KB 4.88KB
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) 8.39KB 3.10KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 49.99KB 14.24KB
plugin-charts (index.js) 71.33KB 19.90KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 252.48KB 65.61KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.83KB 57.97KB
plugin-kanban (index.js) 46.63KB 14.53KB
plugin-list (index.js) 112.67KB 27.68KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 84.36KB 20.78KB
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) 99.04KB 32.62KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
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.93KB 1.49KB
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 (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) 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 (strict-authoring-face.js) 14.04KB 5.36KB
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

Copy link
Copy Markdown
Collaborator Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 68813dddefdb3c9fec210f8649f32bab255b54ac

① Derived judgments

The published delta is +2 names on one entry point, and it was MEASURED on the built artifact rather than read off the source. Three clean builds (clean before each, so no incremental skip made the control vacuous): a same-source control — two builds of byte-identical source — came back byte-identical on dist/index.d.ts, and branch-point vs head differ by exactly one line, differing by exactly InputShorthandSchema and UiCalendarSchema inserted between CalendarSchema, and FieldValidationRules,. ⇒ CORRECT, and it is what letter (a) authorises: "additive, no other line moves".

  • Accept set: UNCHANGED. Both names are TYPE re-exports of declarations that stay in packages/types/src/form.ts; no zod schema, no validator and no parse path is touched, so nothing this package accepts or rejects at run time moves. ⇒ CORRECT.
  • Not a widening in substance, an alignment. Both names were already published on @object-ui/types/form and — since objectui#9067 / PR objectui#9405 — on @object-ui/types/zod. This names them on the third entry point. ⇒ the surface grows by two names an author could already import from two other doors. CORRECT, and it is why minor rather than anything louder is honest.
  • Nothing is removed, renamed or re-typed; the source comment added beside the two names does not reach the emitted artifact (the emitted clause is one comma-joined line). ⇒ CORRECT.
  • The pin derives the gap instead of asserting the pair: it recomputes form.ts's export list and the barrel's ./form.js list on every run and judges the SET DIFFERENCE, requiring every gap member to carry a ledger row (ABSENT_BY_DECISION with a reason, or ABSENT_PENDING_DECISION). A thirty-third declaration landing in form.ts and forgotten therefore FAILS — which a presence assertion would have passed, and which is the third reopening this ruling exists to prevent. ⇒ CORRECT.

② Semver level

Changeset declares "@object-ui/types": minor. The ruling specifies minor, and the diff matches it: two published names added, zero removed, zero re-typed — a capability a consumer can newly rely on, with no break. ⇒ CONSISTENT. ⛔ Not patch: two new published names are not a bug fix. ⛔ Not major: nothing that compiled before stops compiling.

③ Boundary flags

Four declared departures and three findings, each answered:

  1. ⚠️ The real gap at the branch point was FOUR names, not two. The card's "28 of the 30 interfaces" sentence conflates two populations — form.ts exports 30 interfaces plus 2 type aliases (32 names), and the barrel list carried 28, of which 26 are interfaces. ⇒ the ruling is untouched (the two ruled names were absent, exactly as recorded), and the extra two — CommandItem / CommandGroup — are ledgered ABSENT_PENDING_DECISION in the pin and filed as objectui#9526 by this seat. ⇒ ANSWERED, ⛔ not folded in: letter (a) authorises two names.
  2. The non-reproducible-emit caution did not reproduce here. It was measured on a different emitted file (PR objectui#9517); the same-source control says dist/index.d.ts is byte-stable on this tree. Both the raw and the normalised comparison were run and agree. ⇒ ANSWERED: the reading is corroborated rather than trusted, and this seat narrows the carried fact to the file it was measured on.
  3. SemanticElementSchema / HtmlElementSchema are recorded in a checked out-of-population block rather than as ledger rows.ACCEPTED: both are declared in layout.ts, outside the form.ts population this pin computes, and a ledger row for a name the denominator never contains would be a claim nothing re-derives. The block states what is true today and fails the day either reaches the root barrel, so the record cannot rot, and the objectui#9067 reason is written in. ⇒ the ruling's intent — "recorded as deliberate exclusions" — is satisfied in the only form that stays falsifiable.
  4. No label was written by the dev, so no --pair exit code came with the report.CORRECT by this dispatch: both carriers are the PM's. This seat attached the PR carrier and read the pair before writing this record — ✓ the clause-② declaration is readable in the fixed spelling and both carriers agree, exit 0.

Ablation is a two-tree reading, not a claim: reverting index.ts to the pinned base (84defabb2, ⛔ never a moving ref) reds the pin with the derived gap naming both — "expected [ 'InputShorthandSchema', 'UiCalendarSchema' ] to deeply equal []" — and reds tsc with the card's own TS2724 … Did you mean 'InputOTPSchema'?, i.e. the premise reproduced live on this branch. Restore proved by blob hash and an empty git diff HEAD.

⚠️ Lane note, so nothing here is read as more than it is: in this lane a Clause-② review is the seat's own, at the default judgment tier plus the gates (余席条款②复核 = 默认判断档自审加门禁). The Served-tier: line above carries the constant's NAME as the record's fixed spelling requires, ⛔ not a claim about which model served.

Implemented-by: claude/issue-9406-types-root-barrel-two-names
Reviewed-by: session_011QreXiyMEqKLN4U5daMPVa

VERDICT: PASS


Generated by Claude Code

@os-tesla
os-tesla marked this pull request as ready for review September 14, 2026 19:55
@os-tesla
os-tesla added this pull request to the merge queue Sep 14, 2026
Merged via the queue into main with commit bbc9dc3 Sep 14, 2026
38 checks passed
@os-tesla
os-tesla deleted the claude/issue-9406-types-root-barrel-two-names branch September 14, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants