Skip to content

perf(console): move the types zod validators off the eager budgeted line - #10082

Merged
os-tesla merged 2 commits into
mainfrom
claude/issue-10065-types-zod-off-the-eager-line
Sep 20, 2026
Merged

os-tesla merged 2 commits into
mainfrom
claude/issue-10065-types-zod-off-the-eager-line

Conversation

@os-tesla

Copy link
Copy Markdown
Collaborator

Fixes #10065

Clause-②: no — no packages/*/src published source moved. node scripts/check-changeset-presence.mjs exits 0 and prints "No source or published contract of a released package changed in this range, so no changeset is owed". ⚠️ Stated as the gate's verdict rather than copied from a claim: this card carried no claim comment to copy the line from.

The defect

advancedChunks's framework group claims every packages/types/ module wherever it is reached from, and that chunk is eager because core and react are reached from the entry. So the nine packages/types/src/zod/** validator modules rode the eager, budgeted line although their only live consumer in the console bundle is packages/plugin-map/src/ObjectMap.tsx — which imports ObjectMapConfigSchema from @object-ui/types/zod and sits behind a lazy boundary. Every page load fetched validators only the object-map view reads.

Same defect class as objectui#9345, one tier over: a grouping rule deciding membership independently of reachability.

The premise, re-derived on this branch's own base (0c2eb5eee)

Probe and must-miss control, one command, over every emitted chunk:

probe leg BEFORE (0c2eb5eee) leg AFTER (46083d761)
.describe('ObjectQL object name') from objectql.zod.ts assets/framework-C1GNpb8T.js assets/types-zod-DUmm1NEb.js
control: .describe('Action execution mode for chaining') from crud.zod.ts absent from every chunk absent from every chunk
plugin-map chunk in the eager closure? no (absent from the 329-chunk eager list) no
plugin-map chunk statically imports the validators' chunk? through framework from"./types-zod-DUmm1NEb.js"

The composition, read from the build's own visualizer on the BEFORE leg: the nine modules are 140,541 rendered bytes of a 372,430-byte framework chunk, led by objectql.zod.ts, data-display.zod.ts and complex.zod.ts.

⚠️ One card figure did not reproduce, and it is worth saying plainly. The card's "27.6% of the eager framework chunk" was measured on objectui#9488's branch, where framework held 162 modules / 509,658 rendered bytes. On origin/main that chunk holds 108 modules / 372,430 rendered, so the same nine modules are 37.7% of it. The membership claim reproduced exactly; the share is leg-dependent and the card's number belongs to the other leg.

⭐ What only the counterfactual could show: a SECOND consumer, created by the fix itself

The first counterfactual build failed, and it failed for a reason no source-level search can reach. Rolldown's CodeSplittingGroup.includeDependenciesRecursively defaults to true, so the new group captured the nine validators and recursively absorbed three shared modules — packages/types/src/data-display.ts, complex.ts, designer.ts. The eager plugin-grid chunk reads runtime values out of those (ObjectGrid.tsx imports normalizeTableColumnType and isSystemManagedField from @object-ui/types), and rolldown removes a higher-priority group's modules from the lower-priority ones, so framework never got them back. plugin-grid then had to import the new chunk statically and all 140,541 bytes stayed eager — a saving of exactly nothing, dressed as a new chunk name.

The guard printed it, naming both the co-tenant chunk and the source edge:

[assert-types-zod-stays-lazy] the `@object-ui/types/zod` validators are back in the EAGER closure ...
  assets/types-zod-BBjRnjYY.js — statically imported by assets/plugin-grid-CB5tL5XA.js
      packages/types/src/data-display.ts  <-  packages/types/src/index.ts
      packages/types/src/complex.ts       <-  packages/types/src/index.ts
      packages/types/src/designer.ts      <-  packages/types/src/index.ts

The repair is includeDependenciesRecursively: false on that one group, which is also what the group MEANS: the validators are what has no eager reader, not everything they happen to import. Their non-zod dependencies fall back to framework, where they were and where they belong.

Measurement — both legs, one container, one command family

Per leg: pnpm exec turbo run build --filter='./packages/*' --concurrency=2, then pnpm --filter @object-ui/console build, then node scripts/check-eager-closure-budget.mjs. Exit codes captured by redirect-then-read, never across a pipe. ⛔ No ceiling, baseline, allowance or floor constant was touched — MAX_EAGER_CLOSURE_GZIP_BYTES, PER_CHUNK_GZIP_CEILINGS, PER_CHUNK_BASELINE, EXHAUSTED_HEADROOM_ALLOWANCES and EXHAUSTED_HEADROOM_FLOOR_MULTIPLE are byte-identical on both legs.

reading BEFORE 0c2eb5eee AFTER 46083d761 delta
framework gzipped 69,560 41,782 -27,778
framework raw 244,780 129,863 -114,917
framework headroom vs its unchanged 100,000 ceiling 30,440 (0.3340x) 58,218 (0.6388x)
whole eager closure gzipped 3,132,117 3,104,341 -27,776
whole eager closure raw 10,604,860 10,489,968 -114,892
eager chunks / total 329 / 2309 329 / 2310 0 / +1
pnpm check:eager-closure exit 0 0

⭐ The eager chunk COUNT is unchanged and the total is one higher — the bytes left the closure into a new lazy chunk rather than moving to another eager line. ui-components (+8), data-adapter (+7) and plugin-grid (-21) are the only other rows that moved at all; that is import bookkeeping, and it is why the whole-closure delta (-27,776) and the framework delta (-27,778) agree to 2 bytes.

The saving against the card's bracket — it lands OUTSIDE it, above

The card priced the shrink as a bracket, 20,695 – 26,322 gzipped, deliberately not a point estimate, because nobody had built the counterfactual. This branch is the counterfactual.

The real figure is 27,778 gzipped — 1,456 bytes ABOVE the top of the bracket (5.5% over). Reported as a finding, not as a win: both estimators were computed against objectui#9488's framework leg (95,454 gz over 509,658 rendered), and the share they divided by is the 27.6% that does not hold on main. The bracket's ranking conclusion survives — the saving clears the 0.10x floor's 4,568-byte requirement by 6.1x — but its endpoints were anchored to the other leg and the top one is not an upper bound.

What this does and does not do for objectui#9488

It restores headroom on the row that PR's Bundle Analysis job exits 2 about. It does not land that PR, and it is not measured against it: this branch is based on origin/main, and the two have not been built together. ⚠️ One interaction the reviewer should know about, stated rather than left to be discovered: objectui#9488 adds a chunk-membership half that asserts packages/types lands wholly in framework. After this change packages/types is deliberately split across framework and types-zod, so whichever lands second owes that assertion an update. Nothing here touches that PR.

The guard, and why it checks REACHABILITY first

scripts/vite-types-zod-lazy.ts runs in generateBundle on every console build — CI and local — and refuses a build in both directions:

  1. The validators are no longer reachable from plugin-map. This is the failure that looks like a saving: if they are dropped from the graph (a sideEffects declaration that shakes too hard, an import narrowed to import type, a group whose test stops matching), the eager closure gets smaller, every byte ceiling goes greener, and the object-map view throws at runtime for a schema that is not in the bundle. No byte ceiling can tell a deferral from a deletion. This one can, so it is reported first — an author told "the bundle grew" deletes more.
  2. The validators are back in the eager closure. Loud anyway, but the budget answers how many bytes and never which boundary broke; this names the importing chunk and, through the module graph, the importing source module.

Three counter-probes fail closed before either verdict: no chunk holds a validator module, no chunk holds a plugin-map module, or the eager walk cannot see react-dom. Both verdicts are negative, so a matcher that matched nothing would agree with a correct bundle on both.

Ablation ledger — red before, green after, restores verified

Every leg: mutate, prove on disk that the mutation landed (grep -c of the removed text, expected 0), run, restore with git checkout HEAD -- PATH, prove git diff HEAD is empty. All four restores verified clean.

leg mutation what reds result
1 drop includeDependenciesRecursively: false from the group keeps the group from absorbing its own dependencies exit 1, 1 failed / 14 passed
2 drop viteTypesZodLazy() from the plugins array registers the guard, or nothing weighs the bundle at all exit 1, 1 failed / 14 passed
3 tie the group's priority to framework's 80 routes the zod validators ... at a priority framework cannot tie + leaves no second claimant exit 1, 2 failed / 145 passed
4 narrow the group parser's tail back to a closing brace finds the whole group table, not a fragment of it + the routing case exit 1, 2 failed / 145 passed

Leg 4 is the reason scripts/__tests__/check-eager-closure-budget.test.ts is in this diff at all. That file's parseGroups required priority to be the group's last property, and the new group carries an option after it — so the group was silently absent from the attribution table while every case below went on passing. Measured before the widening: 42 groups parsed, types-zod not among them. That is the parse's own "a matcher that matches nothing agrees with everything" note firing on itself.

And the bundle-level half this change still gets for free: the first counterfactual build above is the guard's real red leg, on the real graph, with the real cause named.

Verification run

check exit note
pnpm exec turbo run build --filter='./packages/*' 0 39/39, on the final head
pnpm --filter @object-ui/console build 0 guard prints lazy and still reachable ... all reached from 1 @object-ui/plugin-map chunk(s)
node scripts/check-eager-closure-budget.mjs 0 table above
node scripts/check-eager-locale-catalogues.mjs 0 en resident, 9 catalogues deferred — unchanged
node scripts/check-changeset-presence.mjs 0 no changeset owed
pnpm type-check:scripts 0
pnpm check:unreferenced-sources 0
pnpm check:control-bytes 0 8118 tracked text files
pnpm check:new-line-citations 0 0 new citations
pnpm check:test-path-roots 0
pnpm lint:root 0 32 warnings, 0 errors, none in the four changed files
pnpm --filter @object-ui/console lint 0 212 warnings, 0 errors, none in the changed file
pnpm exec vitest run scripts/ 0 176 files / 5259 tests passed, 2 skipped

NOT MEASURED, declared rather than skipped silently: pnpm check:docs-route-closure — it weighs apps/site's own route closure and needs that app's build; nothing in this diff reaches it. And the object-map view was verified structurally (the emitted plugin-map chunk carries from"./types-zod-DUmm1NEb.js", and the ObjectQL object name literal resolves inside that chunk) rather than in a browser.

Out of scope, named rather than taken

  • PER_CHUNK_GZIP_CEILINGS.framework now stands 58,218 bytes (0.64x the 89 KiB regression) above the live measurement, up from 0.33x. Re-pinning it down is the honest follow-up and would restore the row's resolution — but a ceiling edit is exactly what this card was forbidden to make, and it is a deliberate re-pin for the seat, not an in-lane change.
  • PER_CHUNK_BASELINE.framework (72,245) is now far above the measurement it is compared against by hand. That constant is a historical reading anchored to its own build and is not read by the sensitivity leg, so it is stated, not moved.

Generated by Claude Code

`advancedChunks`'s `framework` group claims every `packages/types/` module
wherever it is reached from, and that chunk is eager because `core` and
`react` are reached from the entry. The nine `packages/types/src/zod/**`
modules therefore rode the eager line although their only live consumer in
the console bundle is `plugin-map`'s `ObjectMap.tsx`, which sits behind a
lazy boundary: every page load fetched validators only the object-map view
reads.

They now have their own `types-zod` group, scoped to the directory with
`includeDependenciesRecursively: false` — rolldown's default `true` absorbed
three shared `packages/types/src/` modules whose runtime values the EAGER
`plugin-grid` chunk reads, which kept the whole chunk eager and saved
nothing.

`scripts/vite-types-zod-lazy.ts` weighs the emitted chunks and fails the
build in both directions: if the validators rejoin the eager closure, and if
they stop being reachable from `plugin-map` at all. The second half is the
one no byte ceiling can supply — deleted validators and deferred validators
produce the same smaller, greener number.

No ceiling, baseline or exemption constant moved.

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

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

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

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

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

.changeset/6681-declared-lazy-marketplace-routes.md

  • names apps/console/vite.config.ts → apps/console/vite.config.ts — edited by this change

    Both marketplace chunks were held by CHUNK CO-TENANCY, not by any import of the page: rolldown had parked components/SuggestedBindingsPanel.tsx (statically imported by the eager views/studio-design/StudioDesignSurface.tsx) in the first, and console/marketplace/InstalledListWidget.tsx (bare-imported by the package barrel for its SDUI registration) in the second. An app-shell-eager-leaves group in apps/console/vite.config.ts isolates those co-tenants so the three declared-lazy pages chunk by their own dynamic-only reachability. The console eager closure moves 3180.2 KB → 3171.5 KB gzipped (−8,888 bytes, 48 → 45 eager chunks) with the three per-chunk ceilings unmoved.

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

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

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

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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3031.6 KB 3104.5 KB
Main entry chunk (gzip) 146.9 KB 350 KB
Entry file index-CXXJEjOl.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) 545.92KB 130.72KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 221.99KB 61.72KB
fields (index.js) 251.67KB 63.42KB
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.90KB 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.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) 5.52KB 2.10KB
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) 50.26KB 14.36KB
plugin-charts (index.js) 71.73KB 20.08KB
plugin-chatbot (index.js) 198.20KB 47.14KB
plugin-dashboard (index.js) 132.96KB 35.17KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 255.18KB 66.49KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 139.56KB 35.40KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 213.44KB 58.21KB
plugin-kanban (index.js) 48.71KB 15.17KB
plugin-list (index.js) 113.53KB 27.99KB
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.68KB 8.95KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.18KB 21.05KB
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) 109.04KB 36.08KB
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 (body-dialect.js) 4.38KB 1.98KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.74KB 2.54KB
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) 15.71KB 5.30KB
types (ai.js) 4.11KB 2.06KB
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) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3031.7 KB 3104.5 KB
Main entry chunk (gzip) 147.0 KB 350 KB
Entry file index-D6xrAP1x.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.68KB 6.20KB
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) 545.92KB 130.72KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 221.99KB 61.72KB
fields (index.js) 251.81KB 63.47KB
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.90KB 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.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) 5.52KB 2.10KB
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) 51.08KB 14.50KB
plugin-charts (index.js) 71.73KB 20.08KB
plugin-chatbot (index.js) 198.20KB 47.14KB
plugin-dashboard (index.js) 132.96KB 35.17KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 255.17KB 66.48KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 139.56KB 35.40KB
plugin-gantt (index.js) 167.99KB 41.37KB
plugin-grid (index.js) 213.40KB 58.19KB
plugin-kanban (index.js) 48.71KB 15.17KB
plugin-list (index.js) 113.53KB 27.99KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.49KB 11.97KB
plugin-timeline (index.js) 30.68KB 8.95KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.18KB 21.05KB
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) 109.04KB 36.08KB
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 (body-dialect.js) 4.38KB 1.98KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.74KB 2.54KB
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) 15.71KB 5.30KB
types (ai.js) 4.11KB 2.06KB
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) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 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) 17.15KB 6.32KB
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

@os-tesla
os-tesla added this pull request to the merge queue Sep 20, 2026
Merged via the queue into main with commit 64d250c Sep 20, 2026
41 checks passed
@os-tesla
os-tesla deleted the claude/issue-10065-types-zod-off-the-eager-line branch September 20, 2026 16:33
os-support-ai pushed a commit that referenced this pull request Sep 25, 2026
Three conflicts, each resolved to keep BOTH rulings:

- apps/console/vite.config.ts: this branch's
  `includeDependenciesRecursively: false` on `data-adapter` (objectui#9345)
  AND main's `types-zod` group at priority 82 (objectui#10065, #10082). The
  data-adapter note's anchored reading is relabelled as the historical
  reading it is.
- scripts/check-eager-closure-budget.mjs: the membership half from this
  branch, and main's RETIRED exhausted-headroom block (objectui#10148) in
  place of the leg it replaced.
- scripts/__tests__/check-eager-closure-budget.test.ts: this branch's
  options-capturing group parse, which subsumes main's `[,}]` tail and still
  sees `types-zod`; the parse note names both groups that carry an option.

The membership declaration still says `packages/types` lands wholly in
`framework`, which #10082 makes false by design; the next commit declares
the split.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr
os-support-ai pushed a commit that referenced this pull request Sep 25, 2026
…hip pin, exactly

objectui#10082 moved `packages/types/src/zod/**` into a lazy `types-zod`
group on purpose, so this branch's membership pin — `packages/types` lands
WHOLLY in `framework` — is false by ruling after the merge. The pin now
declares the split instead of dropping the package or loosening it.

`PER_CHUNK_MEMBERSHIP_CARVE_OUTS` names each exception: a package-relative
subtree of a declared package and the ONE chunk it must land in. A carved
package is judged per directory: every module under the subtree in the
carve-out's chunk, every other module in the declared chunk, nowhere else,
and each side holding at least one module. That is what tells the healthy
split apart from the failure #10082's first build produced — shared `src/`
neighbours absorbed into `types-zod` along an import — which a per-package
count reads as the same thing.

The keys stay limited to budgeted chunks. A carve-out's destination may
carry no ceiling only while it is absent from the SAME build's eager
closure (read from `eager-closure.json`); a carve-out into an unbudgeted
eager chunk is an error, since that is objectui#9345's incident written
down as a ruling. Nested, self-targeting, undeclared-package and malformed
carve-outs are errors too, as are a carved subtree or remainder holding
nothing and directory counts that do not add up to the package counts.

`chunk-membership.json` goes to v2 and adds `directories` (package ->
package-relative directory -> chunk -> count), so a stale v1 artifact is
refused. The emitter reads no declaration. A unit cross-check against the
console config requires the carve-out group's own test to take the subtree
and miss the rest of the package, the declared chunk's test to claim the
subtree too, the carve-out group to outrank it, and to declare
`includeDependenciesRecursively: false`.

No ceiling, baseline or exemption constant moves.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants