Skip to content

fix(components,core): a protocol placeholder never takes a key a pending lazy stub owns (objectui#11680) - #11718

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-11680-placeholder-lazy-stub-guard
Oct 6, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-11680-placeholder-lazy-stub-guard

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #11680

Clause-②: no

What was wrong

The console declares view:calendar and view:timeline as registerLazy stubs in apps/console/src/register-plugins.ts (registerLazy('calendar', …, { namespace: 'view' }), the same for timeline), then calls registerPlaceholders() from main.tsx. registerPlaceholder guarded with ComponentRegistry.get(type), which answers for LOADED registrations only. So both keys read as free while their stubs were pending. The placeholder registered as protocol-placeholder:view:calendar and took the bare key view:calendar, which is the stub's own full key. The registry's eager door then cleared the stub under that key, as it does for any key a registration takes. Until some other node loaded the calendar or timeline chunk, an authored view:calendar / view:timeline drew the dashed "Component Placeholder" box, and every boot logged the race warning once per key.

The warning read view:view:calendar because lazyStubFullType re-derived a stub's claim as "the entry's namespace, prefixed onto the key it was looked up under". registerLazy stores one entry under two keys, its full key and its bare key, so a lookup that landed on the full key doubled the namespace.

The change

  • @object-ui/components, registerPlaceholder: returns early when ComponentRegistry.hasLazy(type) is true, before the existing loaded-registration check. hasLazy is already public, so the registry gains no API. The line if (!ComponentRegistry.get(type)) is kept verbatim because check:registry-bare-names re-reads that exact text (GUARDED_INDIRECT_SITES in scripts/check-registry-bare-name-collisions.mjs), so that script needs no edit.
  • @object-ui/core, Registry: a lazy entry records its fullType on the line in registerLazy that computes the key it is stored under. The three readers now read entry.fullType: the eager door's cross-table warning, the lazy door's prior-stub warning, and the bare-stub ownership test in unregister. lazyStubFullType is removed: re-deriving the claim from the lookup key was the defect, and there is nothing left for it to compute.

Published declarations are byte-identical: packages/core/dist/registry/Registry.d.ts built at the base (9ca3cac, Registry.ts swapped in under a trap and restored, blob == HEAD) and at head compare equal (cmp exit 0, sha256 prefix 893dd7070a53757b both). LazyEntry is not exported and lazyEntries is private. registerPlaceholder is not exported, so packages/components/dist/renderers/placeholders.d.ts carries no docblock this diff touched. The claim's Clause-②: no holds.

Premise checks (the order's mechanism assumptions, measured at 9ca3cac)

  1. Path: packages/components/src/registry/Registry.ts does not exist. The registry is packages/core/src/registry/Registry.ts. Confirmed.
  2. get() ignores pending stubs: confirmed on a fresh Registry with only registerLazy('calendar', …, { namespace: 'view' }): get('view:calendar') undefined, has('view:calendar') false, hasLazy('view:calendar') true, getKnownTypes() includes it.
  3. Who passes the already-namespaced type: the placeholder, register('view:calendar', PlaceholderRenderer, { namespace: 'protocol-placeholder' }). Its bare key is the stub's full key. The stub side is not doubled. The same doubling sat in registerLazy's prior-stub claim and in unregister's ownership test, and both are pinned below.
  4. Where the producer is: PALETTE_PLACEHOLDER_BLOCKS, the eager side effect, is not the producer for these keys. It holds nav:menu, nav:breadcrumb, global:search and ai:suggestion only. The view:* placeholders come from registerPlaceholders(). So the pin replays registerPlaceholders().
  5. Census: registerPlaceholders() has one non-test caller, apps/console/src/main.tsx. registerPlaceholder has two call sites, both in placeholders.tsx: the PROTOCOL_COMPONENTS loop and the palette side effect. Lazy registrations whose full type is view:*: two, timeline and calendar, both in register-plugins.ts. Re-derive with git grep -nE -A2 'registerLazy\(' -- 'apps/*/src/**' 'packages/*/src/**' | grep "namespace: 'view'". No host depends on the placeholder winning a stubbed key: nothing calls registerPlaceholders() anywhere else, and no test asserts a protocol-placeholder:view:* key.

One-time full-load measurement (a scratch probe, deleted before commit, not a live pin)

The probe imported the console's real register-plugins.ts, called the real registerPlaceholders(), then loadLazy on both keys (the real @object-ui/plugin-calendar / plugin-timeline chunks), counting bare-name fallback warnings:

import phase placeholder phase after placeholders after the real chunks load
base 9ca3cac 0 2 (view:calendar, view:timeline, both naming view:view:…) view:calendar resolves to protocol-placeholder:view:calendar; hasLazy false not taken
fix (Registry.ts and placeholders.tsx bytes as at head) 0 0 both keys unresolved, hasLazy true view:calendar resolves to "Calendar View", view:timeline to "Timeline View"; 0 warnings

Pins

  • apps/console/src/__tests__/full-load-placeholder-race-11680.test.ts (console project; patch round 1): the live full-load pin. It replays the boot main.tsx performs over the console's REAL stub list, ../register-plugins, and then calls the real registerPlaceholders(). It asserts that the whole load emits no bare-name race warning. The capture is installed in vi.hoisted, ahead of the imports, because the stubs register while register-plugins is imported. Positive control, in the same file: every key a stub held before the placeholders registered is still held after them (hasLazy), and that set includes view:calendar and view:timeline, so the silence covers the two keys the card measured. Because it reads the real list, the next console stub that a placeholder races turns this pin red, with no new card. No console source is edited.
  • packages/components/src/__tests__/placeholder-lazy-stub-ownership-11680.test.tsx (dom project, isolated): stubs declared with the console's arguments, each chunk gated so it lands on command and registers the way the plugin does. Uses the real registerPlaceholders() and the real SchemaRenderer. Console boot order, for view:calendar and view:timeline: no race warning when the placeholders register or when the chunk lands. Before the load, get() is not PlaceholderRenderer and hasLazy() is true, and an authored node never shows "Component Placeholder" and renders the plugin once the chunk lands. After the load, get() is the plugin's renderer. Controls: chunk-loaded-first order (unchanged behaviour), and a protocol key nothing owns (view:kanban) still gets the placeholder. The two node types are declared through CustomNodeRegistry, the way an application declares a type it registers, rather than cast.
  • packages/core/src/registry/__tests__/Registry.test.ts, block a stub found under its FULL key names that full type once (objectui#11680): the eager door names the stub view:calendar, with no view:view:. The eager door still reports a registration whose own full type is the doubled spelling: before, the doubled claim equalled it, so the guard said nothing. The lazy door names the prior stub view:calendar. unregister('view:calendar', 'view') leaves the console's stub: before, it deleted it.
  • packages/plugin-report/src/__tests__/ReportRenderer.test.tsx (patch round 1, the CI red at 409496f): the suite replaces ComponentRegistry with a hand-built partial stub, { get, register }. The palette placeholder side effect, which @object-ui/components runs at module load, now calls hasLazy() first, so the suite failed at import with TypeError: ComponentRegistry.hasLazy is not a function (Test (shard 6/8)). The stub gains hasLazy, a vi.fn that answers false, because no stub is pending in that suite. Its assertions are unchanged, and the registrar does not tolerate a missing method. It is the only vi.mock('@object-ui/core') in the tree that hand-builds ComponentRegistry: the other two spread the real module. Red reproduced locally (the placeholder and suite bytes at bdcd1a9 equal those at 409496f): TypeError: ComponentRegistry.hasLazy is not a function, Test Files 1 failed (1). Green after: Tests 3 passed (3).

Ablation and reverse verification (one-shot, all from committed state)

  • Guard reverted, against the components pin (anchor if (ComponentRegistry.hasLazy(type)) return; deleted through ablation-replace.mjs: anchor 1 → 0, blob 202f3062ae59 → e8a66e1276cb). Predicted: both console-boot rows red, the three controls green. Observed at 409496f: Tests 2 failed | 3 passed (5), both failing on registering the placeholders raced the stub: expected [ Array(1) ] to deeply equal []. Restore proven: blob == HEAD (202f3062ae59), git diff HEAD empty.
  • Guard reverted, against the console full-load pin (same anchor, same tool). Predicted: red on the race assertion, naming both keys. Observed at bdcd1a9: Tests 1 failed (1) on a registration took a bare key another declaration holds: expected [ …(2) ] to deeply equal [], the two captured warnings being the view:calendar and view:timeline races, each now naming the stub's claim once (claims for "view:calendar"). Restore proven: blob == HEAD (202f3062ae59), git diff HEAD empty.
  • Doubling fix reverted (Registry.ts replaced by its 9ca3cac blob 69457e1f5bb2 under an EXIT/INT/TERM trap with an absolute path). Predicted: the four new Registry pins red, the rest green. Observed at 18b8a39: Tests 4 failed | 55 passed (59): claimant 'view:view:calendar' twice, expected [] to have a length of 1 for the silent guard, and unregister deleting the stub. Restore proven: blob == HEAD (c7d525e29bc9), git diff HEAD empty.
  • Resolution path: vitest aliases @object-ui/core, @object-ui/components and @object-ui/react to src, so no leg needed a rebuild of dist.

Gates

The branch merged origin/main at 89cc738 (merge bd6196d, no conflicts; that merge brings @object-ui/types and @object-ui/app-shell changes this diff does not touch). Head 14498a5 unless noted.

command head exit
pnpm --workspace-concurrency=2 --filter '@object-ui/console^...' build (the console's dependency closure, 35 of 47 workspace projects; needed because the console tsconfig resolves @object-ui/* through built dist) bdcd1a9 0
pnpm --filter @object-ui/console type-check (tsc --noEmit && tsc -b tsconfig.node.json --force; --listFilesOnly shows the program reads the new pin) bdcd1a9 0
pnpm --filter @object-ui/console lint bdcd1a9 0 (0 errors; no warning in the new pin)
pnpm --filter @object-ui/plugin-report type-check · lint · pnpm exec vitest run packages/plugin-report/ (26 files, 239 passed, 7 skipped) 14498a5 0 · 0 (no new warning) · 0
pnpm exec vitest run over the 20 console suites that import register-plugins (the new pin among them), plus the components pin, Registry.test.ts and palette-placeholder-blocks bdcd1a9 0: 23 files, 601 passed
pnpm exec vitest run over the console full-load pin, ReportRenderer.test.tsx, the components pin and Registry.test.ts 14498a5 0: 4 files, 68 passed
pnpm check:vi-mock-specifiers · check:vi-mock-inherit · check:vi-mock-override-shape 14498a5 0 · 0 · 0
pnpm check:new-line-citations · check:control-bytes · check:test-path-roots 14498a5 0 (0 new citations) · 0 · 0
pnpm check:registry-bare-names · check:changeset-claims · changeset:check · node scripts/check-changeset-presence.mjs 14498a5 0 · 0 · 0 · 0
node scripts/check-governed-queue-guard.mjs --test over every changed path 14498a5 (round-1 paths), 409496f (round-0 paths) 0, NOT GOVERNED
pnpm --filter '@object-ui/components...' build; @object-ui/core + @object-ui/components type-check and lint; vitest run packages/core/ (197 files, 3915 passed) and packages/components/ (361 files, 3679 passed); the 22 round-0 registration and script pins (548 passed); check:doc-types · check:prompt-keys · check:pending-changeset-literals 409496f (round 0; the build at 18b8a39) 0 each

Declared to CI, not run locally: the full pnpm test shards, repo-wide pnpm lint, and the remaining workflows. CI at 409496f was red on Test (shard 6/8) and the aggregate Test only, which is the ReportRenderer suite above.

Changeset: .changeset/11680-placeholder-lazy-stub-guard.md, patch for @object-ui/components and @object-ui/core.

Acceptance notes (observations, not filed)

  1. Placeholder-first order. The guard is checked when the placeholder registers, so a stub declared after a placeholder would still find the key taken until its chunk loads. Producers on this tree: the palette side effect runs at @object-ui/components import, before any host stub, but none of its four keys is stubbed anywhere. registerPlaceholders()'s one caller runs after the console's stubs. No producer, so noted only. Carrier: none.
  2. The eager door clears a stub stored under its FULL key. When a registration's bare key equals another stub's full type, the delete in register's fallback branch removes that stub's canonical entry, not a bare one. That is how the placeholder erased view:calendar's stub. With the placeholder fixed, no registration here has a colon-shaped bare key that equals another stub's full type, so the shape is dormant. Carrier: none.
  3. getContractConfig still re-derives a stub's canonical type with its own startsWith test instead of reading entry.fullType. It is the same class, and it agrees with entry.fullType for every stub this tree declares. It would diverge only for registerLazy('ns:x', …, { namespace: 'ns' }), which nothing declares. Left alone, as polish outside the claim's surface. Carrier: none.
  4. A live full-load pin was added in patch round 1, after the seat widened the claim's surface to one console test file: apps/console/src/__tests__/full-load-placeholder-race-11680.test.ts (see Pins). The one-time measurement in the table above remains as the before/after reading on the real chunks.
  5. view:calendar / view:timeline are not DeclaredNode types in @object-ui/types, so the pin declares them through CustomNodeRegistry. Observation only.

Session for this implementation: https://claude.ai/code/session_01FngvPpdrnhHMdHHq6vwwju (dispatched os-dev under the domain:ui seat 2 PM).


Generated by Claude Code

claude added 3 commits October 6, 2026 12:52
…ing lazy stub owns (objectui#11680)

`registerPlaceholder` guarded with `ComponentRegistry.get(type)`, which
answers for loaded registrations only. The console declares
`view:calendar` / `view:timeline` as lazy stubs and then calls
`registerPlaceholders()`, so the placeholder took both keys, the registry
cleared the stubs under them, and an authored node drew the dashed
placeholder until something else loaded the chunk. The guard now also
asks `hasLazy(type)`.

The registry records a stub's full type on the entry when `registerLazy`
declares it, instead of re-deriving it by prefixing the namespace onto
the key a guard looked it up under. That re-derivation doubled the
namespace for a stub found under its own full key (`view:view:calendar`)
in the eager door's race warning, the lazy door's warning and
`unregister`'s ownership test.

Claude-Session: https://claude.ai/code/session_01FngvPpdrnhHMdHHq6vwwju
Co-authored-by: Claude <noreply@anthropic.com>
…he placeholders register (objectui#11680)

Claude-Session: https://claude.ai/code/session_01FngvPpdrnhHMdHHq6vwwju
Co-authored-by: Claude <noreply@anthropic.com>
…g the schema prop (objectui#11680)

`SchemaRenderer`'s `schema` prop takes declared node types only, so the pin
declares `view:calendar` and `view:timeline` in `CustomNodeRegistry`, the
way an application declares a type it registers.

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

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 331 chunks) 3323.9 KB 3330.4 KB
Main entry chunk (gzip) 153.6 KB 350 KB
Entry file index-Df0NEZlg.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) 17.82KB 6.58KB
app-shell (runtime-config.js) 22.52KB 7.86KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 574.74KB 137.95KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 233.72KB 64.83KB
fields (index.js) 262.75KB 66.62KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 35.66KB 9.49KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.18KB 11.71KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 53.39KB 15.52KB
plugin-charts (index.js) 84.26KB 23.05KB
plugin-chatbot (index.js) 198.81KB 47.14KB
plugin-dashboard (index.js) 143.75KB 38.87KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 247.23KB 65.04KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.09KB 45.89KB
plugin-gantt (index.js) 179.16KB 45.06KB
plugin-grid (index.js) 238.48KB 65.51KB
plugin-kanban (index.js) 52.17KB 16.37KB
plugin-list (index.js) 116.72KB 29.10KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 38.94KB 11.75KB
plugin-tree (index.js) 14.51KB 5.15KB
plugin-view (index.js) 90.23KB 22.73KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
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 (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

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

claude added 3 commits October 6, 2026 13:25
…jectui#11680)

Replays main.tsx's boot over the real stub list (register-plugins) and the
real registerPlaceholders(), so the next console stub on a protocol key is
caught without a new card. Positive control: every stub declared before the
placeholders is still held after them, view:calendar and view:timeline
among them.

Claude-Session: https://claude.ai/code/session_01FngvPpdrnhHMdHHq6vwwju
Co-authored-by: Claude <noreply@anthropic.com>
…b answers hasLazy (objectui#11680)

The suite replaces ComponentRegistry with a hand-built partial stub. The
placeholder registrar that @object-ui/components runs at module load now
asks hasLazy() first, so the stub lacked a method the code under test
calls and the suite failed at import. The stub gains hasLazy, answering
false (no stub is pending in this suite). The suite's assertions are
unchanged.

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

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 331 chunks) 3323.9 KB 3330.4 KB
Main entry chunk (gzip) 153.6 KB 350 KB
Entry file index-Bsa1mciW.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) 17.82KB 6.58KB
app-shell (runtime-config.js) 22.52KB 7.86KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 574.74KB 137.95KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 233.72KB 64.83KB
fields (index.js) 262.75KB 66.62KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 35.66KB 9.49KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.18KB 11.71KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 53.39KB 15.52KB
plugin-charts (index.js) 84.26KB 23.05KB
plugin-chatbot (index.js) 198.81KB 47.14KB
plugin-dashboard (index.js) 143.75KB 38.87KB
plugin-designer (index.js) 231.46KB 48.87KB
plugin-detail (index.js) 247.23KB 65.04KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.09KB 45.89KB
plugin-gantt (index.js) 179.16KB 45.06KB
plugin-grid (index.js) 238.48KB 65.51KB
plugin-kanban (index.js) 52.17KB 16.37KB
plugin-list (index.js) 116.72KB 29.10KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 38.90KB 11.74KB
plugin-tree (index.js) 14.51KB 5.15KB
plugin-view (index.js) 90.23KB 22.73KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
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 (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

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

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 6, 2026 14:04
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit e6dcd85 Oct 6, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11680-placeholder-lazy-stub-guard branch October 6, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants