Skip to content

feat(types)!: retire MarkdownSchema.sanitize and .components as ADR-0049 tombstones (objectui#6972) - #7718

Merged
os-justin merged 3 commits into
mainfrom
claude/issue-6972-markdown-inert-keys-retire
Sep 5, 2026
Merged

feat(types)!: retire MarkdownSchema.sanitize and .components as ADR-0049 tombstones (objectui#6972)#7718
os-justin merged 3 commits into
mainfrom
claude/issue-6972-markdown-inert-keys-retire

Conversation

@os-justin

@os-justin os-justin commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Fixes #6972

Dev of session_01BAZFhALsQsGqxui8sNqM8s's dispatch (PM loop round R1). Carries needs:contract-review — two declared keys become refusals on two published faces — and stays draft for in-seat contract review. Placeholders in this body are spelled as UPPERCASE WORDS rather than angle-bracket shapes, because the GitHub body sanitizer eats tag-shaped fragments.

What

Both inert MarkdownSchema keys become ADR-0049 retirement tombstones on both published faces: ?: never on the TypeScript interface (packages/types/src/data-display.ts) and a retirementTombstone() named refusal on the Zod mirror (packages/types/src/zod/data-display.zod.ts) — the route PR #7639 (ComponentInput.inputType) and PR #7669 (FloatingChatbotConfig.triggerIcon) established. The member is not deleted: BaseSchema is .passthrough() on the Zod side and carries a string index signature on the TS side, so a deleted key would parse green and compile as any again — the silent no-op this card exists to end. The "deleted" row is pinned live as a control. The handlerKeyRefusal region of tombstone.zod.ts is untouched; no new helper was needed.

Per-key disposition (Clause ②)

key before after authority
sanitize ?: boolean, @default true; mirror z.boolean().optional() ?: never; refused by name; guidance states sanitization is unconditional and says delete the key Triage (comment 5535325734): the enforce arm is an XSS-off switch, not acceptable, so enforce-or-remove collapses to remove. ADR-0049.
components ?: Record of STRING to ANY; mirror z.record(...).optional() ?: never; refused by name; guidance states nothing reads it and a React override map is not JSON-authorable PM disposition under a declared veto window (claim comment 5551288628) — NOT a maintainer ruling. The falsifiable premise was re-measured below and holds, so this half was executed rather than forked.

Guidance strings as shipped (parse message and .describe() are the same string):

RETIRED (objectui#6972) — sanitization is unconditional: rehype-sanitize is a fixed last link of the markdown renderer's rehype chain, and no value of this key ever switched it. There is no authored spelling that disables XSS sanitization; delete the key.

RETIRED (objectui#6972) — never read: the markdown renderer forwards only content and className, and a map of React component overrides is not a JSON-authorable value. Delete the key; the fenced mermaid / metadata block overrides are the renderer's own fixed map, not an authoring surface.

Measurements on the branch base 4ce14f1

  • Readers: grep -rn "schema.sanitize\|schema.components" packages/ apps/ --include=*.ts --include=*.tsx returns nothing (exit 1). Control in the same query shape: schema.content is read in 20 .tsx files (28 across ts+tsx). The zero is a reading.
  • Sanitization is unconditional — checked as control flow, not as a grep hit: rehypePlugins in packages/plugin-markdown/src/MarkdownImpl.tsx is a module-level const array (lines 99–107) whose last link is [rehypeSanitize, sanitizeSchema], handed straight to ReactMarkdown at line 226. No ternary, no if, no runtime assembly. That sentence is in the guidance string.
  • components premise (no host path consumes a components map): MarkdownImplProps (lines 27–37) accepts only content and className; MarkdownImpl destructures exactly those two (line 196); the components={mdComponents} it passes (line 227) is the plugin's own module-level map (line 173 — the mermaid / metadata fence overrides), never merged with anything off the schema; LazyMarkdown in index.tsx receives only content and className; a repo-wide git grep for MarkdownImpl / LazyMarkdown finds no other host site (the fields package's LazyMarkdownContent is a different component with its own value prop). No plugin API, app-shell or runner site passes such a map. runtime-slot does not apply: nothing reaches a renderer, so there is no TS twin to keep callable. Premise holds; both halves executed.
  • Two faces: packages/plugin-markdown/src/types.ts is export type { MarkdownSchema } from '@object-ui/types' (one authority, objectui#6172) — no plugin source edit needed; its published face narrows through the same declaration. The plugin's own index.test.ts gains a two-face pin: both keys are a tsc error through the re-exported authority. MarkdownSchema has zero other consumers outside packages/types and packages/plugin-markdown (git grep over packages/ apps/ examples/, CHANGELOGs excluded).
  • Fixtures: the only in-repo write of either key was packages/types/examples/data-display-examples.json ("sanitize": true on examples.markdown) — the key is deleted there and the fixture is now pinned to parse green. Repo-wide git grep -w sanitize and "sanitize": every other hit is ExpressionEvaluator's own option, plugin-form's sanitizeFormData, prose, or the historical objectui#6172 changeset. No catalog entry, doc snippet, skill or app authored components on a markdown node.
  • Docs: the page is content/docs/plugins/plugin-markdown.mdxnot under content/docs/components/** as the dispatch assumed. The two rows are removed and replaced with a Retired (objectui#6972) blockquote in the form content/docs/core/report-schema.mdx uses. The check:doc-* gates cannot see table rows (they read type literals and ts fences; component-docs-retired-handler-keys-7340.test.ts records the same hole), so the docs disposition is carried by prose, not by a gate.
  • Parity ledger: both faces still declare both keys, so zod-mirror-parity.test.ts needs no row (same as PR feat(types)!: retire ComponentInput.inputType as an ADR-0049 tombstone (objectui#5905, ruled option B) #7639); it passes unchanged.
  • Spec: @objectstack/spec declares no MarkdownSchema and no markdown sanitize; check:spec-symbols is green.

Pins

packages/types/src/__tests__/markdown-inert-keys-retired-6972.test.ts — 19 tests. Per key: refusal of every plausible value with the envelope asserted (path names the key, code: 'invalid_type', expected: 'never'), the message equals the guidance literal and contains the prescriptive sentence, message equals .describe() (one string, two channels), and the key stays in .shape. Boundary controls: absent parses green, className accepted, a wrong content is still refused (the mirror did not stop validating), the shipped fixture parses green, an undeclared key still rides .passthrough() (the DELETED row, live). TS half per key: fresh literal, document form, widened value — all @ts-expect-error, enforced by tsc -p tsconfig.test.json. packages/plugin-markdown/src/index.test.ts — 3 new tests: each key is a tsc error through the plugin's re-exported face, plus a non-vacuity control that content / className stay writable.

Reverse verification (ablation), fix committed first

Both declaration files reverted to 4ce14f1 (git checkout BASE -- PATH PATH), on-disk markers counted (sanitize?: never 0, sanitize?: boolean 1, components?: never 0, zod tombstones 0, zod boolean/record 1 each), @object-ui/types rebuilt, dist markers counted (dist/data-display.d.ts: never 0, boolean 1; dist/zod/data-display.zod.d.ts: ZodNever 0, ZodBoolean 2). Direction: RED, as expected — 8 of 19 pins failed (the 4 refusal legs, 2 guidance legs, 2 keeps-declared legs), type-check of @object-ui/types exit 2 with 6 TS2578 (unused directives), type-check of @object-ui/plugin-markdown exit 2 with 2 TS2578 through the re-exported face. Restore: git checkout HEAD -- PATH PATH, git diff HEAD --stat empty, git hash-object of both files equal to the HEAD blobs (e3ef905ac426…, 5657e60c825d…), rebuilt, dist markers back (never 1, boolean 0; ZodNever 2, ZodBoolean 0), pins green 19/19, plugin-markdown type-check exit 0. Trap-guarded script (absolute paths); no dist marker left behind.

Gates — exit codes captured before any pipe; all on HEAD 61eccaa; the patch-round re-runs are on 5fe2a1f (see Deviations)

command exit verdict line
pnpm exec vitest run --maxWorkers=2 packages/types/ scripts/__tests__/one-authority-per-exported-name-6273.test.ts (verify lock) 0 Test Files 113 passed (113) · Tests 1955 passed (1955)
pnpm exec vitest run --maxWorkers=2 packages/plugin-markdown/ (verify lock) 0 Test Files 5 passed (5) · Tests 49 passed (49)
pnpm --filter @object-ui/types build then type-check (tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json, script name echoed) 0 clean
pnpm --filter @object-ui/plugin-markdown type-check (tsc --noEmit && tsc -p tsconfig.test.json, against the rebuilt types dist) 0 clean
node scripts/check-changeset-presence.mjs 0 4 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)
node scripts/check-changeset-fixed.mjs 0 All workspace packages are in the changeset fixed group.
node scripts/check-changeset-no-major.mjs 0 No changeset declares a major bump.
node scripts/check-changeset-overwrite.mjs 0 No pre-existing changeset was modified or deleted.
pnpm check:control-bytes 0 OK (scanned 6293 tracked text file(s))
pnpm check:spec-symbols 0 no comment cites a key its spec symbol does not declare
pnpm check:doc-types 0 Every documented component type is registered.
pnpm check:doc-fences 0 every TypeScript block in 227 document(s) is fenced ts/tsx/typescript
node scripts/check-doc-links.mjs 0 Links are valid across 17 scan roots.
pnpm check:doc-snippets 2 NOT MEASUREDPRECONDITION NOT MET: the gate's own text says "I could not run, NOT I ran and found errors"; it needs 20+ plugin packages built. Declared to CI. The only doc edit here is a table row removal and a blockquote — no fence changed.
node scripts/check-governed-queue-guard.mjs --test PATHS 0 NOT GOVERNED — 7 path(s) checked against 5 governed surface(s); none matched.
pnpm exec vitest run --maxWorkers=2 scripts/__tests__/check-doc-snippet-types.test.ts (patch round, on 5fe2a1f) 0 Test Files 1 passed (1) · Tests 70 passed (70)

Vitest spelling note: the dispatch's pnpm --filter @object-ui/types exec vitest run form puts vitest's root in the package directory, which this repo's invocation guard refuses (AGENTS.md, objectui#3378); the root-relative path form above is the sanctioned equivalent and runs the same config CI runs.

origin/main was merged before opening: still 4ce14f1, "Already up to date".

Affected-package census and the declared narrowing

TURBO_SCM_BASE=4ce14f1 pnpm exec turbo ls --affected lists 43 packages — everything downstream of @object-ui/types. Run locally: packages/types in full, packages/plugin-markdown in full, both type-checks, and the one-authority pin under scripts/__tests__. The remaining 41 are declared to CI with this narrowing argument: the diff changes two members of one interface/mirror pair; a downstream package can only be affected by naming MarkdownSchema, or by authoring sanitize / components on a markdown node, and all three censuses above are zero outside the two packages run here.

Changeset

.changeset/6972-markdown-inert-keys-retired.mdminor for @object-ui/types and @object-ui/plugin-markdown (the plugin's published face narrows through the re-export, no plugin source change; named so its CHANGELOG carries the note, as objectui#6172's did when the face widened). Not major, per the fixed-group convention check-changeset-no-major enforces. skip-changeset is a phantom label in this repo and is not used.

Deviations from the claim's file surface

  • packages/plugin-markdown/src/index.test.ts gained the two-face pin (the claim listed the plugin as expected read-only source; the pin is the only honest place to assert the second face, and PR feat(types)!: retire ComponentInput.inputType as an ADR-0049 tombstone (objectui#5905, ruled option B) #7639 set the precedent of pinning there).
  • packages/types/examples/data-display-examples.json lost its "sanitize": true (the one fixture that authored the key; under the tombstone it would parse red).
  • Docs page path corrected as noted above.
  • Patch round (commit 5fe2a1f): scripts/__tests__/check-doc-snippet-types.test.ts anchors the plugin-markdown README sample fence by LINE on purpose (an edit above it forces a re-declaration rather than a row that silently covers nothing), and the retirement blockquote moved that fence 195 → 206, which turned CI Test (shard 1/4) red on 61eccaa. The constant is re-declared; assertion shape unchanged; the blockquote is not shrunk or moved. Anchoring that pin by content is its own card, not a rider here. Re-run on 5fe2a1f: the pin file exit 0 (70 passed, table above), pnpm check:control-bytes exit 0, pnpm check:doc-snippets exit 2 (precondition, NOT MEASURED — unchanged).

Out of scope

Nothing unrelated was found; no issues filed.


🤖 Generated with Claude Code

https://claude.ai/code/session_01BAZFhALsQsGqxui8sNqM8s

`sanitize` was declared `?: boolean` (`@default true`) on both published
faces and read by nothing -- and it implied a switch that does not exist.
Sanitization is unconditional: `rehypePlugins` in
plugin-markdown/src/MarkdownImpl.tsx is a module-level const whose last link
is `[rehypeSanitize, sanitizeSchema]`, with no conditional path, and
MarkdownRenderer forwards exactly `content` and `className`. The enforce arm
would be an XSS-off switch, which is not acceptable, so enforce-or-remove
collapses to remove for this key.

- `sanitize?: never` on the interface, `retirementTombstone()` named refusal
  on the Zod mirror, guidance stating that sanitization is unconditional
- refusal pin in packages/types (envelope: path, invalid_type, expected
  never, the guidance text; accepting controls; the fixture parses green)
- two-face pin in plugin-markdown's own test: the tombstone is a tsc error
  through the re-exported authority
- the one in-repo fixture that authored the key
  (packages/types/examples/data-display-examples.json) drops it
- docs row replaced by a retirement note; changeset (minor)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BAZFhALsQsGqxui8sNqM8s
`components` was declared `?: Record<string, any>` on both published faces
and read by nothing: MarkdownRenderer forwards only `content` and
`className`, MarkdownImplProps has no such prop, and the map MarkdownImpl
hands to ReactMarkdown is its own module-level `mdComponents`, never merged
with anything off the schema. The falsifiable premise -- no host path
consumes a `components` map -- was re-measured on the branch base before
this half was written; it holds, so there is no runtime-slot twin to keep.

Removed under the PM's declared veto window on objectui#6972: a map of React
component overrides is not a JSON-authorable value (the objectui#6124 class).

- `components?: never` on the interface, `retirementTombstone()` named
  refusal on the Zod mirror
- the refusal pin gains the second key (same envelope, its own guidance)
  and the plugin-markdown two-face pin gains a `components` leg
- docs row folded into the shared retirement note; changeset extended

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

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3186.4 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-BJfNoOjq.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) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 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) 510.70KB 116.21KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.27KB 61.22KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 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) 4.83KB 2.27KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.37KB 46.41KB
plugin-dashboard (index.js) 132.87KB 34.68KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.94KB
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) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
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 1.00KB
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.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

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

Copy link
Copy Markdown
Collaborator Author

needs:contract-review cleared — in-seat contract review PASS at CONTRACT_REVIEW_TIER, recorded on #6972 (comment 5551465094: Implemented-by branch claude/issue-6972-markdown-inert-keys-retire, Reviewed-by session_01BAZFhALsQsGqxui8sNqM8s, served tier claude-fable-5-1 re-read 11:29Z). Landing follows the ordinary queue path once every check on 61eccaa is green; the components half remains under the maintainer's veto window on the card.


Generated by Claude Code

…arkdown docs edit

`check-doc-snippet-types.test.ts` pins the plugin-markdown README sample by
its fence LINE on purpose (an edit above it forces a re-declaration rather
than a row that silently covers nothing). The objectui#6972 retirement
blockquote replaced two prop-table rows above that fence with 13 lines, so
the fence moved 195 -> 206. Re-declared; assertion shape unchanged.

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

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3186.4 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-BJfNoOjq.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) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 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) 510.70KB 116.21KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.27KB 61.22KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 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) 4.83KB 2.27KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 47.87KB 13.31KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.37KB 46.41KB
plugin-dashboard (index.js) 132.87KB 34.68KB
plugin-designer (index.js) 212.86KB 43.19KB
plugin-detail (index.js) 250.55KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.26KB 41.00KB
plugin-grid (index.js) 209.29KB 56.78KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.44KB 6.78KB
plugin-markdown (index.js) 13.93KB 4.81KB
plugin-report (index.js) 43.59KB 11.97KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.20KB 3.19KB
plugin-view (index.js) 85.24KB 20.94KB
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) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
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 1.00KB
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.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants