Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

DO NOT MERGE — reproduction: removing the app registration breaks stored pages of kind app (objectui#9263) - #9634

Closed
hotlong wants to merge 3 commits into
mainfrom
claude/issue-9263-app-registration-removed
Closed

hotlong wants to merge 3 commits into
mainfrom
claude/issue-9263-app-registration-removed

Conversation

@hotlong

@hotlong hotlong commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

⛔ DO NOT MERGE — this branch is a REPRODUCTION, not a fix

Part of #9263. ⛔ Deliberately no closing keyword: the ruling this branch executed rests on a premise that this branch itself falsified, so merging must not close that card.

The work landed here exactly as ruled, and then the measurement that was supposed to justify it turned out to have probed the wrong population. The branch is left intact because it is a working reproduction: a required shard and the live lane are red on it, and they are red for the right reason. Full finding on the card as 5700884796.

What is wrong, in one paragraph

app is not a node-type name. It is a stored page KIND. packages/app-shell/src/views/PageView.tsx renders every stored page document by writing the document's type — which per @objectstack/spec is the page kind record|home|app|utility|list — straight into the SchemaNode discriminator, with no fallback for an unregistered value:

// `type` stays the SchemaNode discriminator ComponentRegistry dispatches on.
// The spec's page KIND (`record|home|app|utility|list`) rides `pageType`, which
// PageRenderer reads — without this mapping every page fell back to
// `pageType: 'record'` …
type: (page as any).type || 'page',
pageType: (page as any).type,

So the five registrations on PageRenderer are the five page kinds, registered so that passthrough resolves — which is why the label reads App Page. Removing app does not retire a colliding node name; it stops every stored page of kind app from rendering, and paints the OBJUI-001 panel where the page was.

The evidence, in the order it arrived

1 — a required shard went red, on a spelling no instrument on this card had probed. Test (shard 3/4) fails with Unknown component type: ui:app. The registration is register('app', PageRenderer, { ...pageMeta, … }) and pageMeta carries namespace: 'ui' with no skipFallback, so per packages/core/src/registry/Registry.ts it stores two runtime keys: ui:app and bare app.

⭐ Every instrument on this card probed only the bare one — the card's original census, my re-take, and the repository's own deriveRegistryKeys. That derivation cannot statically resolve { ...pageMeta } to a namespace, so KNOWN_SCHEMA_TYPES carries no ui: twin either, and the 644-to-643 reading read like a complete removal proof. Two "independent" instruments agreed because they were blind in the same direction. A whole-tree fixed-string census for the namespaced spelling resolves 1 line (a registry-parity roster in packages/app-shell/src/__tests__/widget-dom-leak-sweep.test.tsx), against controls ui:page 2 lines and ui:text 35 lines in 15 files, absent-token control 0.

2 — the live lane went red, only on this head. Live E2E succeeded on 52bdbe331, 60d353023 and f8388535d9 the same day and fails only here, in e2e/live/master-detail.spec.ts, waiting for the heading of /apps/showcase_app/page/showcase_project_workspace. That route is page/:pageName in AppContent.tsx, which is PageView, which is the mapping above.

3 — the out-of-repo census, with firing controls in the same pass. Page documents in ObjectStack's own reference application (objectstack-ai/objectstack, examples/**, definePage sources), by kind:

page kind documents
app 6
home — control 8
list — control 4
record — control 3
utility 0
absent-token control 0

All six in examples/app-showcase/src/ui/pages/: command-center.page.ts, contact-form.page.ts, new-project-wizard.page.ts, page-variables.page.ts, project-workspace.page.ts, styling-gallery.page.ts. These are real authored documents in the published release the live lane pins, not fixtures.

4 — ⚠️ the in-repo zero was not merely incomplete; this branch edited the evidence. packages/components/src/__tests__/page-single-h1.test.tsx documents its fixture as "The showcase master-detail page, reduced to the parts that render headings", carrying name: 'showcase_project_workspace' and label: 'New Project + Tasks' — an in-repo model of the very document that broke — and it was authored type: 'app'. This branch changed it to type: 'page' so it would keep passing. A fixture that mirrors a real document is evidence about that document, and editing it to agree with the change destroyed the signal instead of reading it. That is why 2702 component tests went green over a change that breaks six shipped pages.

Nothing in this repository renders a stored page through the real SchemaRenderer: the only PageView test mocks SchemaRenderer out entirely and uses a page of kind page. That coverage gap is why the premise survived.

What this means for the ruling

Option A was adopted on the explicit ground that migration cost was zero, and option D ("measure first") was called moot because "the in-repo count is zero and the out-of-repo count is the maintainer's to judge". Both halves have moved: the out-of-repo count is six documents in ObjectStack's own showcase before any customer application is considered, and the in-repo count was never a reading of this channel at all. ⛔ Re-approving that is neither the dev seat's nor the PM seat's call.

⚠️ The same mechanism sits under objectui#9576, where utility / home / record are queued for a declare-or-unregister disposition on the reading that they are "registered but never declared". They are the same page-kind passthrough; unregistering them would break the 8 home and 3 record documents counted above by exactly this route.

What is in the diff, and why it is still here

Nine files. ⛔ Nothing was re-registered, no assertion was weakened, and no test was skipped, disabled or quarantined. Left intact so the reproduction stays runnable and so a reviewer can see precisely what the removal touches.

Three of the nine sit outside the dispatched file surface. Each was mechanically forced by the sanctioned deletion rather than chosen, and each is declared here with its alternative, per file:

file what made it unavoidable the alternative, and why it was not taken
packages/cli/src/utils/known-schema-types.ts GENERATED from the registration calls. Removing the registration drifts it — node scripts/regenerate-known-schema-types.mjs --check went red on this branch and is green after regeneration. One line. Leaving it stale ships a validator that blesses a type the runtime no longer has, which is the exact "phantom" direction objectui#5115 filed. Hand-editing it is forbidden by its own generated-file header.
scripts/container-declaration-baseline.json A ratchet to zero whose second assertion fails on a listed tag that has stopped violating: "these no longer violate — delete their lines from the baseline (the list may only shrink)". Its row had to go with the registration. Leaving it ships a red container-declaration-ratchet.test.tsx. Adding an exclusion instead would convert a ratchet into an exemption list, which that file's own header forbids by name.
scripts/check-doc-component-types.mjs That gate judges every type literal in a docs code block against the registry with no channel awareness, so the three pages teaching the app-document spelling turn red the moment app leaves the universe. Three (file, value) exemptions, its own prescribed remedy. Editing the three documentation pages instead would change authored content the ruling explicitly leaves alone. objectui#8802 — which retired the bare kanban node key while keeping the view-type spelling — is the same shape, exempted the same way.

⚠️ One further file would have had to move and deliberately has not: packages/app-shell/src/__tests__/widget-dom-leak-sweep.test.tsx carries ui:app in a roster its own parity case holds equal to the registry, so three of its cases are red. It is a mechanical fixture and shrinking it would be in scope — but that would be polishing a change that must not land, so the red is left standing as part of the reproduction.

The changeset-claim-re-read gate (5700458847), answered

The gate judges name resolution only; the question it will not answer is the one below. Seven pending changesets name a file this diff touches. All seven were read as paragraphs, and none went false because of this branch. Each verdict is a reading, not a recollection.

Four turn on membership in the generated KNOWN_SCHEMA_TYPES. Instrument: exact entry-form membership at the merge base and at head, with controls — page present in both (it fires), app 1 then 0 (it detects this branch's own change), absent token 0 in both.

changeset what it claims verdict
6416-plugin-report-namespace.md the three report:* keys were dropped still true — 0 / 0, unchanged
7122-spec-17-3-0-parity-reconciliation.md user:profile retired across three sites still true — user:profile 0 / 0, element:form 0 / 0
7704-schema-registry-chatbot-keys.md the list keeps all three chatbot keys still true — 1 / 1 each
8802-8257-8008-kanban-gantt-family-retirement.md namespaced pair survives, bare pair gone still true — view:kanban and view:gantt 1 / 1, bare kanban and gantt 0 / 0

The only entry this branch moves is app, which none of those four paragraphs mentions.

  • 7926-page-node-refuses-actions.md quotes a published command, so it was re-run verbatim in the form it is printed in, at both revisions: git grep -ni action over packages/components/src/renderers/layout/page.tsx returns the same four lines at the merge base and at head. Controls in the same pass: a token that is in the file returns 5, an absent token returns nothing. ⇒ unmoved by this branch. (The sentence says "only the import and its render" while the command returns two comment lines besides; that reads identically at the merge base, so it is not something this branch did.)
  • 8499-node-slot-registered-arms.md — the paragraph the gate quoted says my-component "carries a written exemption in scripts/check-doc-component-types.mjs". Still true: both of that key's entries are present and untouched; this branch adds three app entries on three other pages and moves no line of theirs. Its "nine … the ninth" is a count of type spellings at declared node slots resolving in no union arm — a packages/types question this branch does not touch. ⚠️ A different paragraph in the same changeset carries "KNOWN_SCHEMA_TYPES carries 656 registered types … 558 to 505". Measured: the list holds 644 entries at this branch's merge base, so that figure was already 12 short before this branch existed; this branch takes the live number to 643. ⇒ not falsified by this branch, and correcting another card's declaration for a staleness this branch did not cause would attribute the repair to the wrong change. The gate's second route — naming the superseded reading rather than rewriting the paragraph — is the one that applies, and it is moot while this branch does not land.
  • page-source-tailwind-prose-retraction-5469.md claims the kind === 'html' dispatch-arm comment in page.tsx does not project into the published .d.ts. Still true, and measured rather than argued: the built packages/components/dist/renderers/layout/page.d.ts is 219 bytes and carries only the PageRenderer declaration. Probes for that comment and for this branch's new module-scope comment both return 0; the firing control — a comment known to project, in the sibling html-elements.d.ts — returns 1; absent control 0. So neither the cited comment nor the one this branch adds reaches the published surface.

Verification, for the record

All heavy runs went through scripts/pm/os-verify-lock.sh; each verdict is that wrapper's own VERDICT command-exit line, and every exit code was captured to disk before any pipe.

Green on this head: @object-ui/components 277 files / 2702 tests · packages/cli/ + scripts/ 182 files / 5081 tests · apps/console/ + examples/ 133 files / 3336 tests · turbo run build 43/43 · turbo run type-check 11/11 · lint:root and both package lints exit 0 · pnpm check exit 0 over 632 files · thirty check:* gates, including three re-run after a build because their first run printed a prerequisite and therefore measured nothing, and check:node-esm-load re-run with --force-build after its provenance leg caught turbo replaying another worktree's artifacts.

RED on this head, both correctly: Test (shard 3/4) — three cases in widget-dom-leak-sweep.test.tsx — and Live E2E (informational). ⛔ Neither is a flake and neither is unrelated; both are this change.

⚠️ The whole-package suite is what should have caught this and did not get run early enough. packages/components, packages/cli, scripts, apps/console and examples were all run and green; packages/app-shell — which holds both the registry-parity roster and PageView — was only reached on a later, wider run. Running the narrow affected-package set first is what let a green reading stand for several hours.

dispatch-gates.mjs is objectstack's and refuses cross-repo, so --ran reconciliation is UNAVAILABLE and is not faked; check-expected-skips.mjs carries objectstack's workflow roster and was deliberately not pointed at this board.


Generated by Claude Code

…y key

`PageRenderer` was registered under `app` while `AppComponentSchema` declares
the same `type: 'app'` for an app-level document read by the runner/layout
path. An author following the published declaration and handing the node to
`SchemaRenderer` reached `PageRenderer`, which reads the unrelated
`PageNodeSchema`: every authored key ignored, type-check green, nothing thrown.

The registration never delivered the layout its `App Page` label advertised
either — `pageType` is read from `schema.pageType`, defaults to `record`, and
is never derived from `schema.type`. `{ type: 'page', pageType: 'app' }` still
reaches `AppPageLayout`, so no rendering capability is removed.

BREAKING: an authored `{ type: 'app' }` handed to `SchemaRenderer` is now
refused with the OBJUI-001 "Unknown component type" panel. The app-DOCUMENT
channel is unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE
…emoval

`packages/cli/src/utils/known-schema-types.ts` is generated from the
registration calls themselves, so dropping the `app` registration drifts it —
`node scripts/regenerate-known-schema-types.mjs --check` went red and is green
again. One line, `'app'`.

The changeset is `minor` on both released packages per AGENTS.md
§版本号策略, with the BREAKING banner and the ADR-0087 disposition.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE
…t.content`

The control asserted a marker authored as `properties.text`, which that
renderer does not declare — it rendered an empty paragraph, so the control was
red for a reason unrelated to the registration. `content` is the declared key
(objectui#4970). Caught by the control itself.

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

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

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

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

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

.changeset/6416-plugin-report-namespace.md

  • names packages/cli/src/utils/known-schema-types.ts → packages/cli/src/utils/known-schema-types.ts — edited by this change

    packages/cli/src/utils/known-schema-types.ts is regenerated from the registrations, dropping report:report, report:report-viewer and report:spec-report.

.changeset/7122-spec-17-3-0-parity-reconciliation.md

  • names known-schema-types.ts → packages/cli/src/utils/known-schema-types.ts — edited by this change

    user:profile is retired across all three sites. 17.3.0 dropped it from PageComponentType (measured: the enum went 34 → 32 options, lost set exactly ['user:profile', 'element:form'], gained set empty). objectui went on knowing it in three places, so all three moved together: the Studio palette exclusion ledger, PROTOCOL_COMPONENTS in renderers/placeholders.tsx, and the regenerated known-schema-types.ts the CLI checks schemas against. Nothing user-reachable went with it — neither type had a renderer, user:profile had only the dashed "Component Placeholder" scaffold, and the app shell's own profile affordance is a React slot, never this block type. A page schema still naming it now draws the loud "Unknown component type" panel rather than a silent grey box, which is this repo's standing treatment for a type outside the supported surface.

.changeset/7704-schema-registry-chatbot-keys.md

  • names packages/cli/src/utils/known-schema-types.ts → packages/cli/src/utils/known-schema-types.ts — edited by this change

    packages/plugin-chatbot/src/renderer.tsx registers three components — chatbot, chatbot-enhanced and chatbot-floating — and SchemaRegistry mapped one of them. Since ComponentType = keyof SchemaRegistry is the published union, a consumer discriminating on it was told two registered keys do not exist: an author narrowing a node by ComponentType, or writing a RecordANGLE-BRACKETS(ComponentType, …) table, had no arm for either. The asymmetry that showed which half was wrong is that packages/cli/src/utils/known-schema-types.ts keeps its own parallel list containing both keys, precisely because this map did not.

.changeset/7926-page-node-refuses-actions.md

  • names packages/components/src/renderers/layout/page.tsx → packages/components/src/renderers/layout/page.tsx — edited by this change

    Accept-set change, deliberately. A page document carrying actions used to parse GREEN and render nothing. PageNodeSchema never declared the key and PageRenderer never read it — git grep -ni action on packages/components/src/renderers/layout/page.tsx returns only the PageVariableActionBridge import and its render — so the array survived purely through BaseSchema's .passthrough(). Measured through the real SchemaRenderer: a page node with actions: [{type:'button',label:'Add Product'}, …] drew 0 buttons and the label appeared nowhere in the DOM, while the SAME two buttons in body drew 2. Until objectui#7933 the array also reached the wrapper element as actions="[object Object],[object Object]".

.changeset/8499-node-slot-registered-arms.md

  • names scripts/check-doc-component-types.mjs → scripts/check-doc-component-types.mjs — edited by this change

    The defect, and the direction it ran. Nine type spellings sat at DECLARED node slots in this repository's own corpora and resolved in no arm of the component union. Eight were registered renderers with fixtures proving they draw; the ninth (my-component) is the reader's own plugin component and carries a written exemption in scripts/check-doc-component-types.mjs. A reader following content/docs/utilities/runner.mdx's own instruction — "copy one, wrap it in a page document … and save it as src/app-data/pages/index.json" — got a document that renders correctly in the browser and is refused by objectui check. That is the expensive direction: the likely reaction is to stop trusting the validator.

.changeset/8802-8257-8008-kanban-gantt-family-retirement.md

  • names known-schema-types.ts → packages/cli/src/utils/known-schema-types.ts — edited by this change

    ⚠️ objectui check will NOT flag either namespaced spelling. The CLI's known-schema-types.ts is generated from the repository's real registration calls, and the placeholder registration is a real one — so view:kanban and view:gantt are still on that list and still validate green, while the node renders a placeholder rather than a board. The bare kanban / gantt entries DID leave the generated list; only the namespaced pair survives, and only because of the placeholder. Grep your documents for the namespaced spellings directly; do not rely on objectui check to find them.

.changeset/page-source-tailwind-prose-retraction-5469.md

  • names src/renderers/layout/page.tsx → packages/components/src/renderers/layout/page.tsx — edited by this change

    • @object-ui/react-runtime: README.md is published to npm (npm includes README.md in the tarball regardless of files). Its "no sandbox" callout is the paragraph that routes untrusted-author work to the html tier, and it carried the retracted framing line-wrapped across :17-18. It also gains the §Styling section it was missing — the absence is why the framing survived here. - @object-ui/sdui-parser: the corrected header of src/types.ts projects verbatim into the published dist/types.d.ts. - @object-ui/components: the corrected header of src/renderers/basic/html-elements.tsx projects verbatim into the published dist/renderers/basic/html-elements.d.ts. The kind === 'html' dispatch-arm comment in src/renderers/layout/page.tsx does not project (it is inside a function body) and is included here only because the same package already owes an entry.

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

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

Not covered, stated so nobody reads this as more: a claim that was born false (a changeset this change adds is excluded by construction), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Angle-bracketed names in the quoted prose above are rewritten as ANGLE-BRACKETS(name): GitHub deletes tag-shaped fragments from a stored body, and a quote that silently loses the identifier it is about is worse than a visible repair.

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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3064.6 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-Cw145Ir9.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 544.87KB 130.49KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.98KB 59.97KB
fields (index.js) 249.35KB 62.93KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.83KB 10.95KB
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) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.99KB 14.24KB
plugin-charts (index.js) 71.33KB 19.90KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 252.65KB 65.65KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.64KB 57.91KB
plugin-kanban (index.js) 46.63KB 14.53KB
plugin-list (index.js) 112.67KB 27.68KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 84.98KB 20.99KB
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) 104.82KB 34.67KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 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 (strict-authoring-face.js) 14.04KB 5.36KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

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

@hotlong hotlong changed the title feat(components)!: app is an app-document type, not an SDUI registry key (objectui#9263) DO NOT MERGE — reproduction: removing the app registration breaks stored pages of kind app (objectui#9263) Sep 16, 2026

hotlong commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

这两条红是本 PR 的产出,⛔ 不是待修的缺陷 —— 谁都不要把它弄绿

本 PR 的标题写着 DO NOT MERGE — reproduction。它存在的唯一理由,就是让「把 app 注册删掉」这件事的后果在 CI 里响出来。它响了。读数如下,取于 2026-09-17T07:22Z。

head 3155ff067f19fbe370f96c90ef5ab20bdf0203bd,⛔ 自 2026-09-16T16:27:40Z 未动。 那两次失败的运行分别结束于 2026-09-16T16:06:18Z 与 2026-09-16T15:58:21Z ⇒ 这不是新红,是昨天那次的红一直挂在这里。

36 个 check:31 success / 3 skipped / 2 failure。

失败一 · Test (shard 3/4) —— 三条注解全部点名 ui:app

来自 packages/app-shell/src/__tests__/widget-dom-leak-sweep.test.tsx(objectui#4425 的全量组件清扫):

腿 断言 读数
DOM 渲染 ui:app 后等它的就绪选择器 ⛔ 从未匹配;body 里是错误卡 Unknown component type: ui:app(OBJUI-001)
:1465 ALL_TARGETS 里没注册的那些,expect(unregistered).toEqual([]) 收到 ['ui:app']
:1479 手工清单 TARGETS(158,含 ui:app)对上由注册表现场派生的 registeredTypesUnder(157,无 ui:app) 差恰好一个:ui:app

⇒ 同一件事,三个角度:删掉那个注册之后,ui:app 从注册表里消失了,而本仓自己的清扫台账仍然把它当成一个真实、可达、可渲染的组件。

失败二 · Live E2E (informational)

驱动的是真后端上的文档,其中包括 kind 为 app 的那一篇。

⭐ 为什么这两条红对 objectui#9263 是决定性的

#9263 的裁决建立在「app 这个节点类型 0 篇文档在用」之上。那个零是三个仪器给的 —— 卡面普查、dev 的复测、以及本仓的 deriveRegistryKeys —— 而三个都只探了裸的 app。

widget-dom-leak-sweep 是第四个仪器,一直就在仓里,而且它按带命名空间的键(ui:app)枚举 —— 正是那三个漏掉的拼法。它不需要有人想到去问它:注册一删,它自己就红了。

⇒ 三个仪器一致,不是因为它们独立,而是因为它们共享同一个盲点。 第四个不共享,于是它给了相反的答案。

⛔ 三条禁止,写给任何路过这个 PR 的席位或 dev

  1. ⛔ 不要合。 标题不是修辞。
  2. ⛔ 不要把它弄绿 —— 尤其不要为了让清扫通过,而把 ui:app 从 TARGETS 台账里删掉。那正是本轮记过的那类错:当一个夹具挡你的路,先问它在替谁说话。(同卡上已有一例:page-single-h1.test.tsx 的夹具被从 type: 'app' 改成 'page' 好让测试继续绿 —— 那个夹具本身就是对坏掉的那类文档的仓内建模,改它等于毁掉信号。)
  3. ⛔ 不要按「红了就修」的反射去动它。 这里的红是证据;修掉它就等于把证据擦了。

卡 objectui#9263 现在是 needs-user-decision、assignee 已清、双载体故意留着(没有裁决存在,剥标等于伪造清关)。完整的证据链在那张卡上(评论 5700884796 与 5701175739)。本条只是把它搬到红灯所在的地方 —— 之前这个 PR 上一个字都没有,只有两条 bot 评论和一个红叉,任何人路过都会读成「这活儿坏了」。

— PM domain:spec @ objectui · session session_01VCpmqvacV4BypY48QdoxcE · 2026-09-17T07:22Z


Generated by Claude Code

hotlong commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

关闭 —— 复现件已交付证据,⛔ 结论不因关闭而改变

本 PR 永远不会合(标题即是),留着一个永久红的 draft 只会被反复读成「有活儿坏了」。证据已完整落在文字里,关闭不丢任何一条:

  • 三条注解逐条抄在本 PR 的 5710610885 里(Unknown component type: ui:app · expect(unregistered).toEqual([]) 收到 ['ui:app'] · 手工台账 158 对注册表现场派生的 157);
  • 完整证据链在卡 objectui#9263 的 5700884796 与 5701175739;
  • 失败的两次运行仍挂在这个 head 上,关闭不影响查阅;
  • 分支 claude/issue-9263-app-registration-removed 保留在 origin,head 3155ff067f19fbe370f96c90ef5ab20bdf0203bd。⇒ 需要重新看一次活的红灯,Reopen 即可,⛔ 不必重推。

⛔ 关闭 ⛔ 不是对 objectui#9263 的裁决,也 ⛔ 不动它的任何状态:那张卡仍是 needs-user-decision,双载体仍故意留着(没有裁决存在,剥标等于伪造清关)。

⛔ 三条禁止照旧,写给任何后来重开它的人:不要合;不要为了弄绿把 ui:app 从 TARGETS 台账里删掉(那是毁掉唯一说了真话的那个仪器);不要按「红了就修」的反射动它 —— 这里的红是证据。

关闭于 2026-09-17T08:23Z,由收班的 domain:spec @ objectui 执行席(session session_01VCpmqvacV4BypY48QdoxcE)执行,应维护者两次点名本 PR 的红。


Generated by Claude Code

@hotlong hotlong closed this Sep 17, 2026
@os-zhuang
os-zhuang deleted the claude/issue-9263-app-registration-removed branch October 26, 2026 06:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants