Skip to content

refactor(types,app-shell,plugin-designer): one tombstone registry for the designer seam's retired field keys - #6627

Merged
os-sales merged 5 commits into
mainfrom
claude/issue-6527-retired-key-tombstone-registry
Aug 28, 2026
Merged

refactor(types,app-shell,plugin-designer): one tombstone registry for the designer seam's retired field keys#6627
os-sales merged 5 commits into
mainfrom
claude/issue-6527-retired-key-tombstone-registry

Conversation

@os-sales

@os-sales os-sales commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #6527

Session: session_8ca04858-ea8e-5b85-9182-de59aa49e00c (durable copy of the attribution for this patch round, since PATCH edits demote the footer). Original implementation session: session_01CRJge11jso9TpXRWFt1Z49.

Final shape: option B — the registry lives behind a dedicated internal subpath

Maintainer ruling, 2026-08-28 (comment 5448711511): B adopted. The designer seam's retired-field-key tombstone registry is un-exported from @object-ui/types's main barrel and lives instead behind one dedicated subpath: @object-ui/types/internal/retired-field-keys.

  • Deliberately internal-signalling. The internal/ path segment is the ruling's chosen way to say "reachable, not supported" — the same honesty a @internal JSDoc tag gives a barrel export, but load-bearing here because a package exports map with no wildcard makes every unlisted subpath structurally unresolvable, so the signal has to live in the one path segment that is published.
  • What an external consumer CAN reach: anyone who writes the literal specifier @object-ui/types/internal/retired-field-keys resolves RETIRED_FIELD_KEY_TOMBSTONES, RETIRED_FIELD_KEY_SITES, retiredFieldKeysFor, and the four types (RetiredFieldKeySite, RetiredFieldKeyTombstone, RetiredFieldKey, RetiredFieldKeysAt) — by the letter this is still published API surface, which is why it sat with the maintainer rather than being this seat's call.
  • What an external consumer CANNOT reach: importing the main barrel (import ... from '@object-ui/types', including import * as types from '@object-ui/types') no longer exposes any of the above — pinned mechanically (below). The package's exports map carries no wildcard, so ./internal/retired-field-keys is the only newly-reachable path; nothing else on the package becomes reachable that wasn't before.

Why this is the whole fix for PR CI, not just a governance preference

The barrel-placement shape (option A) had a measured technical cost, not just a governance one: importing @object-ui/types's main barrel eagerly evaluates every other module the barrel re-exports, including spec-report.ts's read of @objectstack/spec/ui. An unrelated suite's partial vi.mock of that module didn't define every symbol the barrel's full evaluation needed, so the suite threw before any test body ran:

FAIL packages/app-shell/src/views/metadata-admin/clientValidation.skew.test.tsx
Error: [vitest] No "ReportChartSchema" export is defined on the "@objectstack/spec/ui" mock.
 ❯ packages/types/src/spec-report.ts:104:38
 ❯ packages/types/src/index.ts:805:1

A failed suite, not a failed assertion — nothing about the registry's own behaviour was wrong. Under B, a subpath import never pulls the barrel in, so this disappears at the root: clientValidation.skew.test.tsx passes with zero changes to the test or its mock (confirmed below) — option A's fix (patching the mock) was explicitly not taken.

The four edits, exactly as ruled

  1. Removed the registry's re-exports from the @object-ui/types main barrel (packages/types/src/index.ts) — replaced with a comment pointing at the new location and explaining why it's not re-exported.
  2. Added one dedicated internal subpath to the exports map (packages/types/package.json): "./internal/retired-field-keys": { "types": "./dist/internal/retired-field-keys.d.ts", "import": "./dist/internal/retired-field-keys.js" }. The registry's source moved from packages/types/src/retired-field-keys.ts to packages/types/src/internal/retired-field-keys.ts to match — the package's existing ./zod subpath is the precedent for a subpath's source living in a matching real subdirectory (src/zod/./zod) rather than a flat file behind a renamed export key; this also means no vitest alias or root-tsconfig paths changes were needed beyond what already exists (@object-ui/types/* wildcards already cover it).
  3. Rewrote the 3 consuming imports to the subpath: MetadataService.ts, MetadataFieldsPage.tsx, object-fields-io.ts now import { retiredFieldKeysFor } from '@object-ui/types/internal/retired-field-keys'.
  4. Re-pointed the registry's own barrel-wiring pin at the subpath, in retired-field-key-tombstones.test.ts: the pin now imports the bare subpath specifier (the same way the three real sites reach it) and asserts referential equality, exactly as the old pin did for the barrel. A companion pin was added — 'the registry is NOT exported from the main package barrel', dynamically importing ../index.js and asserting the registry's names are absent — so a regression back to option A turns a test red instead of drifting silently.

Nothing else changed: the objectui#6526 formula read-door asymmetry stays encoded and pinned at the same three layers, the sortOrder defensive verdict stays recorded, the per-site parity pins stand unchanged, and scripts/check-designer-field-key-parity.mjs was not touched (confirmed still green, unmodified — domain:devx lane).

Clause-② — yes, this round

A published exports map entry is added (see "what an external consumer can/cannot reach" above). Changeset stays '@object-ui/types': minor (unchanged from the original round — a new public export already required minor, and that classification doesn't change with where the export lives).

Verification (this patch round, on main merged in)

main had moved 36 commits since this branch's last push (ec93ccfa); merged (not rebased) to 9d4f6c75f, and everything below re-run on the merged result.

  • The acceptance testclientValidation.skew.test.tsx, red before this round — passes with zero diff to the test file (git diff --stat confirms): Test Files 1 passed (1) / Tests 4 passed (4).
  • Full local union at final head 9d4f6c75f (registry pins, previews + services + plugin-designer suites, ObjectFieldInspector.test.tsx, the skew test): Test Files 72 passed (72) / Tests 790 passed (790).
  • Type-check, all three touched packages, green: @object-ui/types, @object-ui/app-shell, @object-ui/plugin-designer (tsc --noEmit && tsc -p tsconfig.test.json, plus tsconfig.examples.json for types).
  • check:phantom-deps: green — ✅ Every in-scope import is declared by the package that publishes it. The scoped subpath specifier (@object-ui/types/internal/retired-field-keys) is correctly attributed to the @object-ui/types package (already a declared dependency of both consumers), which is exactly the case this gate exists to police.
  • check:control-bytes: green.
  • check:designer-field-key-parity: green, unmodified.
  • Changeset gates: check-changeset-presence, check-changeset-fixed, check-changeset-no-major all green.
  • Lint, narrowed to the three touched packages (turbo/eslint . per package): 0 errors across all three (pre-existing no-explicit-any warnings unrelated to this diff, same as the original round).

Ablation — the barrel-wiring pin bites

Predicted before running: re-adding the barrel re-export block to index.ts (pointed at the current ./internal/ location) would turn the new negative pin red — 'the registry is NOT exported from the main package barrel' — while leaving the other 14 pins in that file green.

  • Mutation proven on disk: anchored grep -c count for RETIRED_FIELD_KEY_TOMBSTONES|retiredFieldKeysFor in index.ts went 0 → 2, and the blob hash changed vs HEAD (37ed4b6f… → 16288b57…).
  • Observed exactly as predicted: Test Files 1 failed (1) / Tests 1 failed | 14 passed (15), naming retired-field-key registry · hygiene > the registry is NOT exported from the main package barrel as the failure (expected true to be false).
  • Restore proven by observation, not exit code: git diff HEAD empty, and git hash-object matched HEAD's blob (37ed4b6f… both sides). The mutation script carried a trap ... EXIT INT TERM restore.

… the designer seam's retired field keys

Three independently maintained RETIRED_FIELD_KEYS literals on the designer
seam (the metadata-admin read door in object-fields-io.ts, MetadataService's
carryOver, MetadataFieldsPage's carryOver) become derivations from a single
tombstone registry in @object-ui/types: RETIRED_FIELD_KEY_TOMBSTONES names
each retired key, the card that retired it, and its PER-SITE applicability,
and retiredFieldKeysFor(site) is the only supported way for a site to obtain
its strip list.

Deliberately NOT a union of the three lists — per-site behaviour is unchanged
and pinned per site:

- `formula` stays stripped by the two write-side carry-overs and is NOT
  applicable at the read door, per the objectui#6526 option B ruling
  (ObjectFieldInspector's linting CEL editor migrates the legacy key;
  stripping on read destroys authored expression text). The registry test
  makes that ruling mechanical.
- `sortOrder` stays a single-site strip at MetadataService's carry-over and is
  now recorded as the registry's one DEFENSIVE entry, with the objectui#6045
  measurement (no shipped writer ever populated a field-level one) cited on
  the tombstone instead of the entry reading like a measurement.

The per-key evidence that used to live in three file-local comment blocks
moves onto the tombstones; each site keeps only its own mechanics (read-door
strip-on-load contract, carry-over bounds, this-writer history).

Not touched here: scripts/check-designer-field-key-parity.mjs still reads the
declared payload shapes, not this registry; pinning the registry as that
gate's single source is a cross-lane follow-up (gate-class scripts/ is
domain:devx), named in the PR body.

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 52 chunks) 3237.6 KB 3266.6 KB
Main entry chunk (gzip) 157.3 KB 350 KB
Entry file index-m1p4pqti.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) 11.89KB 4.50KB
app-shell (runtime-config.js) 20.61KB 7.35KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 507.69KB 114.99KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 173.10KB 47.96KB
fields (index.js) 238.89KB 60.02KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.95KB 10.97KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.55KB 0.62KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 9.53KB 3.38KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 4.64KB 1.50KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 1.93KB 0.88KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 46.85KB 12.89KB
plugin-charts (index.js) 64.66KB 18.32KB
plugin-chatbot (index.js) 190.33KB 45.10KB
plugin-dashboard (index.js) 133.46KB 34.48KB
plugin-designer (index.js) 212.80KB 43.17KB
plugin-detail (index.js) 245.29KB 62.39KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.01KB 32.23KB
plugin-gantt (index.js) 165.16KB 40.33KB
plugin-grid (index.js) 201.66KB 54.57KB
plugin-kanban (index.js) 53.11KB 14.62KB
plugin-list (index.js) 112.86KB 27.54KB
plugin-map (index.js) 20.09KB 6.62KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.51KB 11.94KB
plugin-timeline (index.js) 26.72KB 7.71KB
plugin-tree (index.js) 9.26KB 3.13KB
plugin-view (index.js) 85.87KB 21.12KB
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) 65.97KB 21.98KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 2.44KB 1.21KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 12.13KB 3.65KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 9.30KB 3.22KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.83KB 2.29KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (retired-field-keys.js) 11.20KB 4.11KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 3.40KB 1.71KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

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

Copy link
Copy Markdown
Collaborator Author

Placement-topology measurements for the ruling on objectui#6527 (taken read-only on this branch at ec93ccfa, requested by the PM 2026-08-27; recorded here for whoever implements the ruling):

1. Yes — it is on the package's public entry, and only there

packages/types/src/index.ts on the branch, lines 688–701, verbatim:

// Retired-field-key tombstone registry — the single source for the designer
// seam's per-site strip lists (objectui#6527).
export type {
  RetiredFieldKeySite,
  RetiredFieldKeyTombstone,
  RetiredFieldKey,
  RetiredFieldKeysAt,
} from './retired-field-keys.js';

export {
  RETIRED_FIELD_KEY_SITES,
  RETIRED_FIELD_KEY_TOMBSTONES,
  retiredFieldKeysFor,
} from './retired-field-keys.js';

So: three value exports + four type exports re-exported from the index barrel. The exports map publishes "." plus exactly ten named subpaths (./base, ./layout, ./form, ./data-display, ./feedback, ./overlay, ./navigation, ./complex, ./data, ./zod) — there is no ./retired-field-keys subpath and no wildcard, and files publishes only dist. Because an exports map is present, undeclared subpaths do not resolve at all: the registry is reachable only through the main barrel. Package is not private.

2. Changeset frontmatter, verbatim

---
'@object-ui/types': minor
'@object-ui/app-shell': patch
'@object-ui/plugin-designer': patch
---

@object-ui/types is declared minor — the level a new public export requires — with patch on the two consumers.

3. Non-published placement: structurally not available; the real options with measured costs

The binding constraint, measured on the branch:

  • app-shell build: "tsc" — its dist preserves bare imports; nothing is inlined.
  • plugin-designer build: "vite build" with external: (id) => !/^[./]/.test(id) (vite.config.ts:52) — every bare specifier is externalized; imports preserved.
  • Both packages are published (neither private; both in the 40-package fixed group).

Therefore whatever module both consumers import must be resolvable at their consumers' runtime through some published package's exports map. A genuinely non-published single-source placement does not exist in this topology. The options:

  • A (current) — index barrel of @object-ui/types. Fully public, discoverable, permanent. Cost: a permanent maintenance obligation. Mitigation available without moving anything: JSDoc @internal-style prose on the exports (convention, not mechanism — stripInternal is NOT an option, it would blind the consumers' own typecheck).
  • B — dedicated subpath off the barrel: remove the index re-exports, add one exports entry (e.g. ./internal/retired-field-keys), consumers import the subpath. Still published API by the letter — an exports subpath is surface — but it leaves the main barrel untouched, signposts non-public intent in the path name, and a later withdrawal is one clearly-scoped subpath instead of barrel members. Cost: ~3-line exports-map change + 3 import-line changes + re-run of the pin suite; the barrel-wiring pin in retired-field-key-tombstones.test.ts would pin the subpath instead.
  • C — move into plugin-designer (app-shell already depends on it): relocates the same published surface onto a widget package's single "." barrel — strictly worse home, no surface saved. Not recommended.
  • D — duplication + equality pin: the only truly zero-new-surface shape, and it is the card's named failure mode (two lists again, held together by convention).
  • E — cross-package relative source import: blocked mechanically — app-shell's tsc rootDir excludes it, the emitted dist would carry a phantom path, and check:phantom-deps exists to catch exactly this class. Not viable.
  • F — private shared workspace package: no runtime precedent in this repo — the only private workspace lib (@object-ui/test-support) is consumed exclusively as a devDependency (measured across all seven dependents); a published package with a runtime dep on a private package is unresolvable for npm consumers. Not viable.

Plain answer: a non-published placement is not genuinely available. The choice is between A (public on the Protocol barrel, status quo, minor already declared) and B (published but fenced to a signposted subpath). Either way the placement adds published surface, which is why this sits with the maintainer; B is the smaller permanent obligation if the maintainer wants one at all.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Test (shard 1/4) red at ec93ccfa — diagnosed, and it is NOT a flake. ⛔ No re-run: the cause is deterministic and is a direct consequence of the placement question this PR is held on.

ui execution seat, session_01CRJge11jso9TpXRWFt1Z49. This is the one comment the drive-to-green posture requires: what is failing, and what blocks fixing it.

The failure

FAIL packages/app-shell/src/views/metadata-admin/clientValidation.skew.test.tsx
Error: [vitest] No "ReportChartSchema" export is defined on the "@objectstack/spec/ui" mock.
 ❯ packages/types/src/spec-report.ts:104:38
 ❯ packages/types/src/index.ts:805:1

1 failed / 532 passed (533 files); 7174 tests passed. ⚠️ Note the shape: a failed SUITE, not a failed assertion — nothing about the registry's behaviour is wrong. The module graph changed.

⭐⭐ Why this is the placement decision showing up as a test failure

The registry is exported from @object-ui/types's main barrel (index.ts:688–701). To consume it, object-fields-io.ts must import from the barrel — and importing a barrel eagerly evaluates everything else in it, including spec-report.ts:104, which reads ReportChartSchema off @objectstack/spec/ui. That test installs a partial vi.mock of @objectstack/spec/ui which does not define that symbol, so evaluation throws before any test body runs.

⭐ The generalisable finding, worth more than the fix: adding one export to a barrel widens what every consumer of that barrel must be able to evaluate. A partial mock that was complete enough yesterday is not complete enough today, and nothing in the diff touches the failing test or the module it mocks. This is the same class as the lesson from PR #6626 earlier today — an enforcement or an assumption resting on a module's shape rather than on its behaviour, silently invalidated by a declaration landing elsewhere.

⛔ Why I am not fixing it

There are exactly two fixes, and choosing between them is the decision this PR is held on (see #6527):

  • Under option A (registry on the barrel, current): patch the test's mock to define ReportChartSchema. That fixes the symptom and accepts that every future barrel consumer with a partial spec mock inherits the same fragility.
  • Under option B (dedicated signposted subpath): the failure disappears at the root — a subpath import never pulls the barrel in, and no test's mock needs touching.

Pushing the mock patch would silently pre-commit the repo to A while a decision on A-vs-B is open. ⛔ Not mine to make.

What this changes about the decision

It moves a cost from theoretical to measured. My filing on #6527 argued B on governance grounds — smaller permanent obligation, more withdrawable. This adds a concrete technical cost to A that was not in that analysis: barrel placement makes every consumer's module graph wider, and the first thing it broke was an unrelated test in a package that merely imports the barrel. Recorded on the card as new evidence rather than left here.

⚠️ Also worth stating plainly: this failure did not appear in the dev's local union because that union covered the registry suite plus the directly-affected suites. CI shards run the whole repo, which is why they caught it and a scoped union could not. That is the sharding earning its keep, not a verification lapse.

Status: PR stays draft, held on #6527's ruling. Once ruled, the fix follows from the ruling and I will resume the same dev on this same claim.


Generated by Claude Code

claude added 2 commits August 28, 2026 16:52
…e main barrel (objectui#6527 option B)

Maintainer ruling, 2026-08-28: the registry moves to a dedicated internal
subpath, `@object-ui/types/internal/retired-field-keys`, instead of the
package's main barrel. Importing the barrel eagerly evaluates every other
module it re-exports -- including `spec-report.ts`'s read of
`@objectstack/spec/ui` -- which is what widened an unrelated test's partial
spec mock into a failed suite
(packages/app-shell/src/views/metadata-admin/clientValidation.skew.test.tsx)
under the prior (option A) shape. A subpath import never pulls the barrel in,
so that suite passes again with zero changes to the test or its mock.

Four edits, exactly as ruled:
- Remove the registry's re-exports from the `@object-ui/types` main barrel
  (`packages/types/src/index.ts`).
- Add one dedicated internal subpath to the `exports` map
  (`./internal/retired-field-keys`), and move the registry's source under
  `packages/types/src/internal/` to match -- the package's existing `./zod`
  subpath is the precedent for a subpath's source living in a matching real
  subdirectory rather than a flat file behind a renamed export key.
- Rewrite the 3 consuming imports (MetadataService.ts, MetadataFieldsPage.tsx,
  object-fields-io.ts) to the subpath.
- Re-point the registry's own barrel-wiring pin at the subpath, and add a
  companion pin that the registry is NOT exported from the main barrel, so a
  regression back to option A turns a test red instead of drifting silently.

Nothing else changes: the objectui#6526 formula read-door asymmetry stays
encoded and pinned, the sortOrder defensive verdict stays recorded, and
scripts/check-designer-field-key-parity.mjs is untouched (domain:devx lane).

Changeset unchanged: '@object-ui/types': minor (already correct).
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 49 chunks) 3232.0 KB 3266.6 KB
Main entry chunk (gzip) 157.3 KB 350 KB
Entry file index-DH968ROc.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) 11.89KB 4.50KB
app-shell (runtime-config.js) 20.61KB 7.35KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 509.32KB 115.60KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 173.10KB 47.96KB
fields (index.js) 239.05KB 60.06KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.95KB 10.97KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.55KB 0.62KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 9.53KB 3.38KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 4.64KB 1.50KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 1.93KB 0.88KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 46.89KB 12.91KB
plugin-charts (index.js) 64.66KB 18.32KB
plugin-chatbot (index.js) 190.33KB 45.10KB
plugin-dashboard (index.js) 133.26KB 34.43KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 245.29KB 62.39KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.01KB 32.23KB
plugin-gantt (index.js) 165.20KB 40.37KB
plugin-grid (index.js) 201.51KB 54.54KB
plugin-kanban (index.js) 53.11KB 14.62KB
plugin-list (index.js) 113.01KB 27.57KB
plugin-map (index.js) 20.17KB 6.66KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.51KB 11.94KB
plugin-timeline (index.js) 26.44KB 7.59KB
plugin-tree (index.js) 8.91KB 3.05KB
plugin-view (index.js) 85.87KB 21.12KB
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) 65.97KB 21.98KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 2.44KB 1.21KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.72KB 2.24KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 3.40KB 1.71KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

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

claude added 2 commits August 28, 2026 17:33
…not by self-import

The registry's wiring pin imported the package's own bare subpath
specifier `@object-ui/types/internal/retired-field-keys` from inside
`packages/types/src/`, which `check:self-import` refuses (objectui#4801):
that specifier resolves through the package's OWN `exports` map to
`dist/`, and turbo gives `type-check`/`test` only `^build` — the
DEPENDENCIES' builds, never this package's own — so on a cold CI cache
the declarations have not been produced and the file fails TS2307.
Green on every machine that has ever built, red in CI only.

The runtime half of that pin was also tautological rather than a wiring
test: the repo-root `vitest.config.mts` aliases `@object-ui/types` to
`packages/types/src` by prefix (the `/zod` entry directly above it exists
precisely because that matching is prefix-based), so both sides of the
`toBe` resolved to the same source module. It compared a module to
itself and could not fail.

So the module half becomes a relative import — the same module on both
surfaces that read it — and the wiring half moves to a manifest-level
assertion in the style of this package's existing
`package-exports-manifest.test.ts`: read `package.json` and pin the
`./internal/retired-field-keys` entry's exact shape, then DERIVE the
source path from the declared target and prove it exists. Deriving is
what keeps it a wiring assertion; two independent literals that happen
to agree would still pass with the entry re-pointed at nothing.

The declared `dist/` target itself is deliberately not stat-ed — that
would reintroduce the very build-order dependency this replaces.

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

Copy link
Copy Markdown
Collaborator Author

check:self-import fixed at fd1b907ba — and the wiring half was (ii), so it moved rather than vanished

Both checks that read the one defect are green locally, and the question the PM handed back is answered below with the measurement that decides it.

The fix

packages/types/src/__tests__/retired-field-key-tombstones.test.ts no longer names its own package. The module import is now relative (../internal/retired-field-keys.js); the wiring assertion moved to a manifest-level read of packages/types/package.json.

The question: was the positive pin load-bearing as a wiring assertion?

Answer: (ii) — it was load-bearing, but not on the surface where it appeared to run, and never reliably. So it was moved, not dropped. The old pin had two surfaces reading it and they disagreed:

1. At runtime (vitest), where the toBe actually executed, it was NOT a wiring assertion and could not fail. The repo-root vitest.config.mts aliases '@object-ui/types' to packages/types/src (line 268), and Vite's object-form alias is prefix matching — demonstrably so, because the '@object-ui/types/zod' entry sits directly above it at line 267 precisely to intercept a subpath that prefix matching would otherwise mis-resolve to a directory. So @object-ui/types/internal/retired-field-keys resolved to packages/types/src/internal/retired-field-keys — the identical module the test already imported relatively. expect(fromSubpath).toBe(RETIRED_FIELD_KEY_TOMBSTONES) was comparing a module object to itself. The exports map was never consulted. The gate's own header states the same fact: "a package's own name and a relative path into its own src/ are the SAME module here."

2. At type-check, the only surface that did read the exports map, it asserted wiring as an artifact-dependent coin-flip rather than a measurement. tsc -p tsconfig.test.json resolves the bare specifier through the package's own exports to ./dist/internal/retired-field-keys.d.ts. Warm dist/ gives green, cold cache gives TS2307 — and turbo gives type-check only ^build, the dependencies' builds, never this package's own, so nothing orders that artifact. An assertion whose outcome is decided by whether somebody happened to have built is not a wiring test; it is exactly the defect check:self-import exists to delete.

So a bare relative import would have dropped a real obligation — the exports entry is the deliverable of the option-B ruling — while keeping nothing that was actually measuring it. Hence (ii).

What replaced it

A manifest-level pin in the shape this package already uses in package-exports-manifest.test.ts (same directory, same createRequire + readFileSync idiom): read package.json, pin the ./internal/retired-field-keys entry's exact shape, then derive the source path from the declared target and prove it exists.

Deriving rather than restating is the part that keeps it a wiring assertion — two independent literals that happened to agree would still pass with the entry re-pointed at a module that does not exist.

The declared dist/ target is deliberately not stat-ed: that would reintroduce the very build-order dependency this replaces. The src to dist inversion is licensed by a fact the sibling pin already holds — package-exports-manifest.test.ts asserts pkg.scripts.build === 'tsc', so the one-to-one rootDir/outDir mirror cannot silently become a bundler mapping without that pin going red first.

Proof the new pin can fail — two legs, each mutation proven on disk, each restore proven by observation

Committed first; restores via trap ... EXIT INT TERM, verified by empty git diff HEAD and a blob-hash match, never by exit code.

leg mutation disk proof predicted observed
A drop the ./internal/retired-field-keys entry from package.json anchored grep 3 to 0; blob b4d320b1 to e65f4efd 1 red: the declaration toEqual exactly 1 red at line 264, expected undefined to deeply equal {...}; 14 passed
B re-point the subpath at a module that does not exist, moving the test's expected literal with it, as a developer re-pointing it would GONE count 2 in package.json / 3 in the test; both blobs changed 1 red: the derived existence check, toEqual passing because both sides moved together exactly 1 red at line 288, exists: false with srcRelative derived to src/internal/retired-field-keys-GONE.ts; 14 passed

Leg B is the one that matters for the PM's question: it isolates the derived half and shows it is independently load-bearing rather than shadowed by the toEqual.

Local readings at fd1b907ba (exit captured by redirect before any pipe; verdict lines quoted from each gate)

  • pnpm check:self-import exit 0 — "Scanned 44 workspace package(s), 3545 source file(s) ... 0 self-import (0 exempted)" / "No package names itself inside its own src/."
  • pnpm exec vitest run over the meta-test scripts/__tests__/check-package-self-import.test.ts, the registry pin suite, package-exports-manifest.test.ts and the acceptance test clientValidation.skew.test.tsx — "Test Files 4 passed (4)" / "Tests 51 passed (51)"
  • pnpm --filter @object-ui/types type-check exit 0 (tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json). Not vacuous: tsconfig.test.json includes src/**/*.test.ts and sets types: ["node"], which is what the node:fs / node:module / node:path imports compile against.
  • check:phantom-deps, check:esm-specifiers, check:designer-field-key-parity, check:control-bytes, check:vi-mock-specifiers, check:pre-install-import-graph all exit 0.

Option A still not taken: clientValidation.skew.test.tsx has an empty diff against origin/main and passes. scripts/check-designer-field-key-parity.mjs is likewise untouched.

Two local readings that are NOT measurements, stated so they are not miscounted

  • check:readme-exports exits 1 in this worktree with 77 findings, every one of the form "its type entry ./dist/index.d.ts is not on disk — run pnpm build first", across app-shell, cli, data-objectstack, plugin-ai, plugin-gantt, plugin-map, plugin-markdown and plugin-timeline. None is in packages/types, none touches a README this branch edits, and readme-exports.yml runs "Build every package, so the declared type entries exist" before the gate. Prerequisite not met, not a red — and the check was green in CI at the previous head.
  • check:published-dist exceeded the container's foreground cap twice (it builds) and was not run locally. Delegated to CI.

Declared narrowing

Repo-scale runs (pnpm lint over the whole repo, the full 4-shard pnpm test, check:published-dist) were not run locally; CI runs the farm exactly once regardless. This card has now twice produced a defect that only a whole-repo run could reach, so the narrowing is declared rather than implied.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 49 chunks) 3232.3 KB 3266.6 KB
Main entry chunk (gzip) 157.3 KB 350 KB
Entry file index-wSla9DxZ.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) 11.89KB 4.50KB
app-shell (runtime-config.js) 20.61KB 7.35KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 509.32KB 115.60KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 173.10KB 47.96KB
fields (index.js) 239.05KB 60.06KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.95KB 10.97KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.55KB 0.62KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 9.53KB 3.38KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 4.64KB 1.50KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 1.93KB 0.88KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 46.89KB 12.91KB
plugin-charts (index.js) 64.66KB 18.32KB
plugin-chatbot (index.js) 190.33KB 45.10KB
plugin-dashboard (index.js) 133.26KB 34.43KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 245.29KB 62.39KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.01KB 32.23KB
plugin-gantt (index.js) 165.20KB 40.37KB
plugin-grid (index.js) 201.51KB 54.54KB
plugin-kanban (index.js) 53.11KB 14.62KB
plugin-list (index.js) 113.01KB 27.57KB
plugin-map (index.js) 20.17KB 6.66KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.51KB 11.94KB
plugin-timeline (index.js) 26.44KB 7.59KB
plugin-tree (index.js) 9.00KB 3.08KB
plugin-view (index.js) 85.87KB 21.12KB
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) 67.73KB 22.54KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 2.44KB 1.21KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.72KB 2.24KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 3.40KB 1.71KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

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

@os-sales
os-sales added this pull request to the merge queue Aug 28, 2026
Merged via the queue into main with commit 3e028c8 Aug 28, 2026
30 checks passed
@os-sales
os-sales deleted the claude/issue-6527-retired-key-tombstone-registry branch August 28, 2026 18:30
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.

refactor(app-shell,plugin-designer): unify the three retired-field-key lists on the designer seam into one tombstone registry

2 participants