Skip to content

refactor(app-shell,data-objectstack): one authority each for MetadataTypeStatus and UserDataAdapter (objectui#6349, batch 9) - #12076

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-6349-batch9-app-shell-pairs
Oct 10, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-6349-batch9-app-shell-pairs

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Refs #6349 (batch 9)

Clause-②: yes

Batch 9 of the one-authority burn-down, on claim 6092135020 (seat domain:ui#3, session https://claude.ai/code/session_01CGZy1BGCjdN5cXqL9cnvB8). (Round 1.) Two of the claim's three rows converge, so KNOWN_COLLISIONS goes from 13 rows to 11. Both were one thing declared twice, so app-shell re-points at the package it already depends on. Types, comments and changeset prose only: no runtime behaviour changes, and no emitted JavaScript changes.

(Round 1, answered in round 2 above.) The third row, AppShellProps, is stopped with measured options (see "The stopped row"). It is two meanings, and its only workable rename removes a name that a type-checked document reads through the @object-ui/app-shell entry. That is the claim's stop condition, so this PR leaves the row in the ledger untouched and the seat decides.

Round 2 (head 3e1e1375a): all three rows converge

Brought up to round 2 by the seat (domain:ui seat 3). The round-1 text below is kept and marked where round 2 supersedes it.

  • AppShellProps: ruled A by the seat's claim amendment 6092402348 on objectui#6349, under the card's remedy and batch 5's precedent, with the maintainer's veto window open. app-shell's declaration is now MinimalAppShellProps, published at the app-shell root in place of AppShellProps. layout keeps the general name.
    • docs/ARCHITECTURE.md's two blocks follow, and the three layout tests' comments and one failure message name the new type.
    • ⛔ No component rename: both AppShell value names stay.
  • KNOWN_COLLISIONS: 13 → 10 rows.
  • Published surface: app-shell 258 = 258 names, with AppShellProps out and MinimalAppShellProps in, members identical; that swap is the only change to the name set. react, data-objectstack and layout are unchanged.
  • Emitted output: no .js or .css file differs.
  • Consumer probe: the old name fails with TS2305, and the new name passes.
  • Changesets: @object-ui/app-shell minor, with a breaking note naming the migration (AppShellProps → MinimalAppShellProps, TS2305 on the old import); @object-ui/data-objectstack patch. ⛔ No major.
  • Round-2 gates at 3e1e1375a:
    • the gate: 11 of 11 pass;
    • check:doc-snippets: 785 of 785 blocks judged, 0 failed. check:readme-exports is OK;
    • layout, the barrel readers, the console and the doc scripts: 48 files and 686 tests passed;
    • the app-shell and layout type-checks and type-check:scripts exit 0;
    • ablation S3 (stale) and F3 (fresh) went red as predicted, with restores proven blob-equal;
    • CI: 43 runs, 40 success, 3 skipped, 0 failure.
  • Contract review: 6092685938 on this PR, PASS.

This PR has no closing keyword. The card stays open for later batches.

What each converged row was (measured on base d758f2f2)

The member lists come from one TypeScript program over each package's BUILT root entry (exports["."].types), with dist rebuilt for each tree.

MetadataTypeStatus: one status declared twice, so app-shell re-points at react.

site declaration role built entry
packages/react/src/context/AppShellContext.tsx 'idle', 'loading', 'ready', 'error' what MetadataContextValue.getTypeStatus returns exported at the react root, through its export * of context
packages/app-shell/src/providers/MetadataProvider.tsx the same four literals what each per-type cache entry of MetadataProvider carries; the provider is what implements getTypeStatus exported at the app-shell root

The two unions are identical. app-shell depends on @object-ui/react and already imports MetadataTypeStatus from it in useObjectPresence, so react's declaration is the one authority. MetadataProvider.tsx now imports the type from @object-ui/react and re-exports it, and the app-shell root still publishes the name.

UserDataAdapter: one contract declared twice, so app-shell re-points at data-objectstack.

site members role built entry
packages/data-objectstack/src/userState.ts generic over T: load() returns a Promise of T[], save(items: T[]) returns a Promise of void what createObjectStackUserStateAdapter returns exported at the data-objectstack root
packages/app-shell/src/context/UserStateAdapters.tsx the same two members, the same type parameter what UserStateAdaptersProvider injects and useUserStateAdapter hands out exported at the app-shell root

The members are identical, and ConsoleShell attaches adapters built by createObjectStackUserStateAdapter to the registry, so both ends already speak one contract. app-shell depends on @object-ui/data-objectstack, and the reverse edge would be a package cycle, so data-objectstack's declaration is the one authority. It takes app-shell's contract notes as JSDoc (safe to call concurrently, never throw, degrade to localStorage), so the declaration that remains still documents the contract. UserStateAdapters.tsx imports it and re-exports it, and the app-shell root still publishes the name.

Published surface, base vs head

One TypeScript program per tree over the built root entries of app-shell, react, data-objectstack and layout. Each head marker was read in dist before measuring, and the base tree was built from the three touched source files at base (restored afterwards with blob equality to HEAD).

  • Exported name sets: app-shell 258 = 258 (same sorted-name hash), react 300 = 300, data-objectstack 104 = 104, layout 37 = 37.
  • The two names: at head, app-shell's MetadataTypeStatus resolves to react's declaration and its UserDataAdapter to data-objectstack's: the same symbol, not a structural copy. The member lists are identical on base and head.
  • Emitted output: base and head dist for the four packages have the same 1,203 files, and exactly four differ, all declaration files: app-shell providers/MetadataProvider.d.ts and context/UserStateAdapters.d.ts, and data-objectstack index.d.ts and index.d.cts (JSDoc only). No .js, .cjs or .css file differs, so no first-load bytes move.
  • Why there are three commits: the first head build emitted MetadataProvider.js with one extra comma, because a multi-line import that ended in a type-only specifier and a trailing comma kept that comma after tsc elided the type specifiers. The third commit puts the import back on one line, and the rebuilt MetadataProvider.js is byte-identical to base.

The stopped row: AppShellProps (round 1; ruled A in 6092402348 and implemented in round 2)

Measured on base and head (this PR does not touch either site).

site members meaning read through the entry by
packages/app-shell/src/types.ts sidebar?, header?, footer?, children, className? the props of app-shell's minimal AppShell container (header, body and footer, no routing). The example examples/byo-backend-console mounts it, and the root README, app-shell's README and docs/ARCHITECTURE.md teach it docs/ARCHITECTURE.md, which imports the type in two blocks that check:doc-snippets compiles (no fragment marker on the page)
packages/layout/src/AppShell.tsx sidebar?, navbar?, children, className?, defaultOpen?, branding?, rightRail? the props of layout's sidebar shell, the one the console's ConsoleLayout composes no import through the entry in the repo. layout's README table, content/docs/layout/app-shell.mdx and content/docs/guide/layout.md document it; seven layout test files name it, and three of them read its key list out of the source by name to pin those docs

They share sidebar, children and className. header and footer exist only on app-shell's; navbar, defaultOpen, branding and rightRail only on layout's. @objectstack/spec 17.7.0 has 0 files naming AppShellProps. Three layout test files already warn that app-shell exports a different AppShellProps (two of them that it declares header), so that layout's docs stop teaching a header prop layout never had (objectui#4817).

  • Re-point probe (the one dependency-legal direction, app-shell to layout, through ablation-replace): app-shell's tsc --noEmit exits 2 with 2 errors, TS2339 for header and TS2339 for footer in app-shell's AppShell. The unmutated control exits 0 with 0 errors. So this is two meanings, not drift.
  • Rename probe (option A below, app-shell's declaration renamed MinimalAppShellProps and published at the app-shell root instead, four nested ablation-replace legs): app-shell builds, and check:doc-snippets judges 785 of 785 blocks with 2 failed, both in docs/ARCHITECTURE.md: TS2305, Module '"@object-ui/app-shell"' has no exported member 'AppShellProps'. Every leg was restored blob-equal to HEAD and app-shell dist was rebuilt.

Options:

  • A (recommended). Rename app-shell's declaration to a specific name and publish that name at the app-shell root in place of AppShellProps (258 = 258 names). MinimalAppShellProps follows the component's own JSDoc ("Minimal layout container"); BasicAppShellProps follows its README entry. It needs docs/ARCHITECTURE.md (the two blocks) on the file surface, and re-points the layout test comments that say app-shell exports a different AppShellProps. app-shell minor with a breaking note; an external import of the old name fails loudly (TS2305, measured).
  • B. Rename layout's side. It is the general shell, the one the console composes, and it has the wider documentation surface: the README table, two content pages and the seven layout test files that name it would move, and the general name would end up on the narrower container.
  • C. Re-point app-shell's name at layout's. It does not compile (the probe above), and it would silently change what the app-shell root's name means. Refused, as batch 5 refused the same shape.
  • D. Retire app-shell's minimal AppShell and its props. They are live (the example app and three docs), and removing a component is outside "types and comments only".

Changesets

file grade why
6349-batch9-app-shell.md minor (round 2) AppShellProps leaves the root and MinimalAppShellProps takes its place, with a breaking note naming the migration. MetadataTypeStatus and UserDataAdapter stay, each now a re-export.
6349-batch9-data-objectstack.md patch JSDoc only on the published UserDataAdapter.

react and layout are not touched, so they get no changeset. (Round 1: nothing published moved, so no package took minor. Round 2: the app-shell root swaps one name, so app-shell takes minor.) Clause-②: yes stands for the batch: the AppShellProps row, once ruled, moves a published name. ⛔ No major.

Gates

Heavy runs went through os-verify-lock. All runs are at head fbf9e70bf unless they say otherwise; the first two commits carry the same sources except the one-line import.

  • The gate, pnpm exec vitest run scripts/__tests__/one-authority-per-exported-name-6273.test.ts: exit 0, Tests 11 passed (11). The ledger has 11 rows.
  • Suites: pnpm exec vitest run --maxWorkers=2 over packages/app-shell/src/context/, packages/app-shell/src/providers/, the four app-shell tests elsewhere that import UserDataAdapter or MetadataTypeStatus or the adapters module (useTrackRouteAsRecent, sharedUserFeeds.activityGate-7476, useNavigationSync, UnifiedSidebar.pinnedOrder-12059) plus consoleUserPreferenceBudget, packages/data-objectstack/ and the gate: exit 0, Test Files 117 passed (117), Tests 1443 passed (1443).
  • Type-checks, with dist rebuilt and the script names echoed: pnpm --filter PKG type-check for @object-ui/app-shell, @object-ui/data-objectstack, @object-ui/react and @object-ui/console (the console imports MetadataTypeStatus from app-shell), then pnpm type-check:scripts: each exit 0, 0 error TS lines. tsconfig.scripts.json lists the gate file.
  • check:doc-snippets: 785 of 785 blocks judged, 0 failed, after its own scoped build. check:readme-exports: OK, 582 of 582 self-imports real.
  • Each exit 0: check:control-bytes, check:test-path-roots, check:changeset-claims, check:pending-changeset-literals, check:spec-symbols, check:new-line-citations (0 new), check-changeset-presence (3 source files of 2 released packages, 2 changesets), check-changeset-no-major, check-changeset-fixed and check-changeset-overwrite.
  • pnpm exec eslint on the four touched TS files: 0 errors. The 65 warnings sit on unchanged code and match base rule by rule in each file.
  • The governed-queue guard reads NOT GOVERNED over the 6 paths.
  • git merge-tree against main d758f2f2 is clean. main has not moved since the base.

Not run locally:

  • The full app-shell suite. CI runs it.
  • layout's type-check and suite. layout is not touched on this head.
  • The i18n gates. No locale pack changed.

Reverse verification

Every leg went through ablation-replace in wrap mode, with predictions written before any leg ran. The gate reads source text, so no dist leg applies. Each leg landed on disk (anchor count 1 to 0, blob changed) and was restored with blob equal to HEAD and an empty git diff HEAD; the tree had 0 porcelain lines after the run.

leg mutation result (as predicted)
S1 the MetadataTypeStatus row put back Tests 1 failed, 10 passed; no longer collides at: lists app-shell's MetadataProvider.tsx and react's AppShellContext.tsx
S2 the UserDataAdapter row put back same verdict; lists app-shell's UserStateAdapters.tsx and data-objectstack's userState.ts
F1 app-shell declares MetadataTypeStatus again instead of re-exporting it MetadataTypeStatus — a NEW colliding name: a type declaration in each of the two files
F2 app-shell declares UserDataAdapter again instead of re-exporting it UserDataAdapter — a NEW colliding name: an interface declaration in each of the two files
control unmutated, before and after the legs Tests 11 passed (11)

The failing test in every leg is "declares no name twice outside the named, shrinking baseline".

Acceptance notes

  • Exports. Round 2 swaps AppShellProps for MinimalAppShellProps on the app-shell root (258 = 258). Otherwise, both re-pointed names were already on the app-shell root and stay there; the authorities were already on the react and data-objectstack roots.
  • Comment pointers, not touched (outside the claim's file surface). The SharedFeedStatus doc in sharedUserFeeds.ts and the HomeInboxStatus doc in useHomeInbox.ts cite MetadataTypeStatus as living in providers/MetadataProvider. That module still exports the name, now as a re-export, so the pointer still resolves; the declaration itself is react's.
  • Value names. Both app-shell and layout also publish a component named AppShell. Component names are outside this gate's bound (type-level names only), and the AppShellProps ruling may want to say whether the component follows the props.
  • Build-mode noise, observed once. The first, fresh head build printed the inferred render() return type in app-shell's ErrorBoundary.d.ts with its union members in a different order from the incremental base build; the incremental head rebuild matched base. Same members either way, a declaration file only, and no source change answers to it.

Generated by Claude Code

…TypeStatus and UserDataAdapter (objectui#6349, batch 9)

Two of batch 9's three KNOWN_COLLISIONS rows were one thing declared twice,
so each converges by re-pointing app-shell at the package it already
depends on:

- MetadataTypeStatus: @object-ui/react's declaration is the one authority;
  app-shell's MetadataProvider re-exports it. Same four words on both sides.
- UserDataAdapter: @object-ui/data-objectstack's declaration is the one
  authority and takes app-shell's contract notes; app-shell's
  UserStateAdapters re-exports it. Identical members on both sides.

The app-shell root still publishes both names. The two ledger rows leave
KNOWN_COLLISIONS (13 to 11). AppShellProps stays: its rename would remove a
name that a type-checked doc reads through the app-shell entry.

Refs objectui#6349

Claude-Session: https://claude.ai/code/session_01CGZy1BGCjdN5cXqL9cnvB8
Co-authored-by: Claude <noreply@anthropic.com>
…ck (objectui#6349)

Both patch: the app-shell root still publishes MetadataTypeStatus and
UserDataAdapter with the same shapes, and data-objectstack's change is doc
comments only.

Refs objectui#6349

Claude-Session: https://claude.ai/code/session_01CGZy1BGCjdN5cXqL9cnvB8
Co-authored-by: Claude <noreply@anthropic.com>
… (objectui#6349, batch 9)

The multi-line import with a trailing comma made tsc emit
`{ MetadataCtx, useMetadata, }` once the type-only specifiers were elided,
so the emitted JS differed from base by one comma. On one line the emitted
MetadataProvider.js is byte-identical to base again.

Refs objectui#6349

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 290 chunks) 3168.0 KB 3204.6 KB
Main entry chunk (gzip) 73.7 KB 350 KB
Entry file index-BvRmWNQP.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) 19.75KB 7.29KB
app-shell (runtime-config.js) 22.59KB 7.89KB
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) 41.19KB 11.12KB
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) 587.83KB 141.44KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 240.39KB 67.09KB
fields (index.js) 269.42KB 68.20KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
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) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 40.26KB 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.43KB 15.54KB
plugin-charts (index.js) 84.72KB 23.27KB
plugin-chatbot (index.js) 201.52KB 47.99KB
plugin-dashboard (index.js) 144.20KB 38.95KB
plugin-designer (index.js) 233.53KB 49.80KB
plugin-detail (index.js) 249.09KB 65.63KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.11KB 45.88KB
plugin-gantt (index.js) 179.17KB 45.07KB
plugin-grid (index.js) 249.62KB 69.16KB
plugin-kanban (index.js) 52.77KB 16.56KB
plugin-list (index.js) 120.10KB 30.28KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 39.06KB 11.80KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 91.93KB 23.24KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
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.07KB 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.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
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

…ps become MinimalAppShellProps (objectui#6349, batch 9)

Option A of the claim amendment on objectui#6349 (comment 6092402348).
app-shell's AppShellProps (sidebar, header, footer, children, className)
and layout's (sidebar, navbar, children, className, defaultOpen, branding,
rightRail) are the props of two different components, and re-pointing
app-shell's name at layout's does not compile. app-shell's declaration now
spells MinimalAppShellProps and the app-shell root publishes that name in
place of AppShellProps; layout keeps the general name. The two AppShell
components keep their names.

- docs/ARCHITECTURE.md: the two blocks that imported the type from
  @object-ui/app-shell now name MinimalAppShellProps.
- layout's three tests that warn about app-shell's props name it.
- The AppShellProps row leaves KNOWN_COLLISIONS (11 to 10).
- The app-shell changeset becomes minor, with a breaking note naming the
  migration (TS2305 on the old import).

Refs objectui#6349

Claude-Session: https://claude.ai/code/session_01CGZy1BGCjdN5cXqL9cnvB8
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation package: layout labels Oct 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 290 chunks) 3168.0 KB 3204.6 KB
Main entry chunk (gzip) 73.7 KB 350 KB
Entry file index-BvRmWNQP.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) 19.75KB 7.29KB
app-shell (runtime-config.js) 22.59KB 7.89KB
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) 41.19KB 11.12KB
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) 587.83KB 141.44KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 240.39KB 67.09KB
fields (index.js) 269.42KB 68.20KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
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) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 40.26KB 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.43KB 15.54KB
plugin-charts (index.js) 84.72KB 23.27KB
plugin-chatbot (index.js) 201.52KB 47.99KB
plugin-dashboard (index.js) 144.20KB 38.95KB
plugin-designer (index.js) 233.53KB 49.80KB
plugin-detail (index.js) 249.09KB 65.63KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 177.11KB 45.88KB
plugin-gantt (index.js) 179.17KB 45.07KB
plugin-grid (index.js) 249.62KB 69.16KB
plugin-kanban (index.js) 52.77KB 16.56KB
plugin-list (index.js) 120.10KB 30.28KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.12KB 12.29KB
plugin-timeline (index.js) 39.06KB 11.80KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 91.93KB 23.24KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
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.07KB 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.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
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

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3e1e1375a9100ed656a805b2b81d0b6f1e3b316c
Local-runs: none

Isolated, read-only review of PR objectui#12076 (batch 9 of objectui#6349) at the head above. Inputs: card #6349's body and all 39 comments (the batch 9 claim 6092135020, the dev report 6092382655, the seat's amendment 6092402348); the PR body, its 13-file list and the compare diff against main (merge base d758f2f2 = the PR base; ahead 4, behind 0, mergeable_state clean); the 43 check-runs on the head. Order of events: the amendment (01:53:34Z) precedes the head commit 3e1e137 (01:56:07Z), so the AppShellProps row was ruled before it was implemented.

① Derived judgments

MetadataTypeStatus — RE-POINT, right. The removed app-shell declaration and react's AppShellContext.tsx:47 are the same four-literal union ('idle' | 'loading' | 'ready' | 'error'): one thing declared twice. Direction app-shell → react is dependency-legal: packages/app-shell/package.json already lists @object-ui/react, and MetadataProvider.tsx already imported MetadataCtx and friends from it at base, so no new edge. The app-shell root still publishes the name (index.ts:61, from providers/MetadataProvider.js, which now re-exports react's). react is untouched; its root reaches the declaration through export * of context (index.ts:12 → context/index.ts:7 → AppShellContext.tsx).

UserDataAdapter — RE-POINT, right. Both declarations are identical: generic over T, load() to a Promise of a T array, save(items) to a Promise of void. Direction app-shell → data-objectstack is dependency-legal: already in package.json, and MetadataProvider.tsx already imported ObjectStackAdapter from it at base. The root route is intact at head: index.ts:268 → context/index.ts:16 → the export type { UserDataAdapter } re-export in UserStateAdapters.tsx. The data-objectstack root publishes the authority (index.ts:7175); it gains app-shell's contract notes as JSDoc only, members unchanged.

AppShellProps — RENAME, right, per amendment 6092402348 (A). Two meanings, read at head: layout's AppShell.tsx:27 declares sidebar, navbar, children, className, defaultOpen, branding, rightRail; app-shell's declares sidebar, header, footer, children, className. A re-point could not carry header and footer, as the dev measured (2 × TS2339). app-shell's declaration is now MinimalAppShellProps (types.ts, with a JSDoc that names layout's as the general shell); the app-shell root publishes it in place of AppShellProps (index.ts:55); components/AppShell.tsx re-points its import and parameter type. layout keeps the general name and its source is untouched; only three layout test files' prose and one failure-message string change, exactly as the amendment listed. Both AppShell components keep their names (app-shell/.../AppShell.tsx:10, layout/.../AppShell.tsx:287): the amendment's "no component rename" holds.

Rename completeness, own census at the head ref (git grep AppShellProps, outside packages/layout): the only hits are the new changeset, the types.ts JSDoc ("Not AppShellProps"), the ledger's "sat here" comment, the four re-pointed lines in docs/ARCHITECTURE.md, two content pages that document layout's shell, and a historical note in scripts/check-doc-snippet-types.mjs:978 about an earlier doc-snippets batch over layout's pages, which is layout's name and is not made stale. No README, example or doc still imports AppShellProps from @object-ui/app-shell. Inside packages/layout, the README, CHANGELOG, index.ts and AppShell.tsx keep the name they own.

Ledger. KNOWN_COLLISIONS loses exactly three rows, 13 → 10, each replaced by a "sat here" comment stating the branch taken; nothing else in the ledger changes. (The PR body's "13 to 11" describes the pre-amendment head; see ③.)

File surface, 13 files, all on claim 6092135020 plus amendment 6092402348: the three row sites (MetadataProvider.tsx, UserStateAdapters.tsx, data-objectstack/src/userState.ts), the renamed declaration (app-shell/src/types.ts), the app-shell barrel and components/AppShell.tsx, docs/ARCHITECTURE.md (two import lines and two type references, no more), the three layout tests named by the amendment, the ledger, and one changeset per graded package. Nothing outside it: no packages/components/src/ui/**, no packages/i18n/**, no runtime code (type-only imports and exports, interface and type declarations, JSDoc, docs and test prose).

Gates = the check-runs on 3e1e137: 43 runs, 40 success, 3 skipped (the coverage-matrix placeholder, Test (coverage) and dependabot, the expected three), 0 failure. Among the successes: Type Check; Test shards 1–8 and dist pins (the full app-shell and layout suites the dev declared to CI); Doc Snippet Type Check (the two ARCHITECTURE.md blocks, the row's stop condition, now compile); README Export Check; Changeset Declaration, Bump Policy, Claim Re-read, Fixed Group Check and Overwrite Report; Governed Surface Queue Guard; Lint; Build & E2E; Bundle Analysis.

② Semver level

  • Clause-②: yes, at line start in the PR body — right: a published name leaves the @object-ui/app-shell root.
  • .changeset/6349-batch9-app-shell.md: minor with a breaking note that names the migration (AppShellProps → MinimalAppShellProps, members unchanged, TS2305 on the old import) and records the two re-points as shape-preserving. This matches what the diff publishes and the amendment's grade, under the claim's rule: a name leaves ⇒ minor with a breaking note, ⛔ never major.
  • .changeset/6349-batch9-data-objectstack.md: patch — right: JSDoc on an unchanged interface.
  • react and layout carry no changeset — right: react is untouched, and nothing on layout's published surface moves (test prose only). Changeset Bump Policy and Changeset Declaration are green on the head.
  • The PR body's own changeset table still says app-shell patch; that is stale prose from the pre-amendment head, not what the diff declares (escalated in ③).

③ Boundary flags

  • open_questions[0] (the AppShellProps route): answered by amendment 6092402348 with A, and implemented in 3e1e137 exactly as written: the name MinimalAppShellProps, the barrel and AppShell.tsx, docs/ARCHITECTURE.md's two imports and two references, the three layout tests' comments and one failure message, the row's removal, app-shell minor with a breaking note. The dev's sub-question about the two AppShell components: the amendment keeps them as they are, and the diff complies.
  • out_of_scope_findings: the SharedFeedStatus and HomeInboxStatus doc pointers to providers/MetadataProvider still resolve (the module re-exports the name) — nothing owed; the AppShell value-name collision is outside the gate's bound by the amendment; the ErrorBoundary.d.ts union-order observation names no source change and no gate reads it.
  • deviations: "partial batch" is superseded, the head carries all three rows; the in-place base measurement and the one-line import commit are accepted (restores proven in the report, emitted JS equal to base); the model-free trailers follow the repo rule. The dev's "not run locally: layout's type-check and suite (layout untouched)" was true at fbf9e70bf and is not at head, where three layout test files' prose changed — covered by Type Check and the Test shards on the head, all success. No locale pack changed, so the i18n gates are not owed.
  • Escalated to the seat — PR body stale against the head (prose only, no gate reads it): the body was written at fbf9e70bf and not updated for 3e1e137. It still says the AppShellProps row is stopped and left in the ledger, KNOWN_COLLISIONS 13 to 11 (head: 13 to 10), app-shell patch (head: minor with a breaking note), "258 = 258 (same sorted-name hash)" and "No new export" (at head the root swaps AppShellProps for MinimalAppShellProps: the count holds, the name set and hash do not), and gates "at head fbf9e70bf". The seat should bring the body to round 2 before ready and auto-merge, as it did for batch 4 (6078066013). The first line Refs #6349 (batch 9) with no closing keyword and the Clause-②: yes line are right as they stand.
  • Nothing else is open.

Implemented-by: claude/issue-6349-batch9-app-shell-pairs
Reviewed-by: session_01CGZy1BGCjdN5cXqL9cnvB8

VERDICT: PASS

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 10, 2026 02:26
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 10, 2026 02:26
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 10, 2026
Merged via the queue into main with commit 1b2d016 Oct 10, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-6349-batch9-app-shell-pairs branch October 10, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants