Repository navigation
Conversation
…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
|
changeset-claim-re-read
|
✅ Console Performance Budget
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
Size Limits
|
app is an app-document type, not an SDUI registry key (objectui#9263)app registration breaks stored pages of kind app (objectui#9263)
这两条红是本 PR 的产出,⛔ 不是待修的缺陷 —— 谁都不要把它弄绿本 PR 的标题写着 head 36 个 check:31 success / 3 skipped / 2 failure。 失败一 ·
|
| 腿 | 断言 | 读数 |
|---|---|---|
| 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
- ⛔ 不要合。 标题不是修辞。
- ⛔ 不要把它弄绿 —— 尤其不要为了让清扫通过,而把
ui:app从TARGETS台账里删掉。那正是本轮记过的那类错:当一个夹具挡你的路,先问它在替谁说话。(同卡上已有一例:page-single-h1.test.tsx的夹具被从type: 'app'改成'page'好让测试继续绿 —— 那个夹具本身就是对坏掉的那类文档的仓内建模,改它等于毁掉信号。) - ⛔ 不要按「红了就修」的反射去动它。 这里的红是证据;修掉它就等于把证据擦了。
卡 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
关闭 —— 复现件已交付证据,⛔ 结论不因关闭而改变本 PR 永远不会合(标题即是),留着一个永久红的 draft 只会被反复读成「有活儿坏了」。证据已完整落在文字里,关闭不丢任何一条:
⛔ 关闭 ⛔ 不是对 objectui#9263 的裁决,也 ⛔ 不动它的任何状态:那张卡仍是 ⛔ 三条禁止照旧,写给任何后来重开它的人:不要合;不要为了弄绿把 关闭于 2026-09-17T08:23Z,由收班的 Generated by Claude Code |
⛔ 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
appis not a node-type name. It is a stored page KIND.packages/app-shell/src/views/PageView.tsxrenders every stored page document by writing the document'stype— which per@objectstack/specis the page kindrecord|home|app|utility|list— straight into the SchemaNode discriminator, with no fallback for an unregistered value:So the five registrations on
PageRendererare the five page kinds, registered so that passthrough resolves — which is why the label readsApp Page. Removingappdoes not retire a colliding node name; it stops every stored page of kindappfrom 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 withUnknown component type: ui:app. The registration isregister('app', PageRenderer, { ...pageMeta, … })andpageMetacarriesnamespace: 'ui'with noskipFallback, so perpackages/core/src/registry/Registry.tsit stores two runtime keys:ui:appand bareapp.⭐ 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, soKNOWN_SCHEMA_TYPEScarries noui: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 inpackages/app-shell/src/__tests__/widget-dom-leak-sweep.test.tsx), against controlsui:page2 lines andui:text35 lines in 15 files, absent-token control 0.2 — the live lane went red, only on this head.
Live E2Esucceeded on52bdbe331,60d353023andf8388535d9the same day and fails only here, ine2e/live/master-detail.spec.ts, waiting for the heading of/apps/showcase_app/page/showcase_project_workspace. That route ispage/:pageNameinAppContent.tsx, which isPageView, 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/**,definePagesources), by kind:apphome— controllist— controlrecord— controlutilityAll 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.tsxdocuments its fixture as "The showcase master-detail page, reduced to the parts that render headings", carryingname: 'showcase_project_workspace'andlabel: 'New Project + Tasks'— an in-repo model of the very document that broke — and it was authoredtype: 'app'. This branch changed it totype: '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 onlyPageViewtest mocksSchemaRendererout entirely and uses a page of kindpage. 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.
utility/home/recordare 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 8homeand 3recorddocuments 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:
packages/cli/src/utils/known-schema-types.tsnode scripts/regenerate-known-schema-types.mjs --checkwent red on this branch and is green after regeneration. One line.scripts/container-declaration-baseline.jsoncontainer-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.mjstypeliteral in a docs code block against the registry with no channel awareness, so the three pages teaching the app-document spelling turn red the momentappleaves the universe. Three (file, value) exemptions, its own prescribed remedy.kanbannode key while keeping the view-type spelling — is the same shape, exempted the same way.packages/app-shell/src/__tests__/widget-dom-leak-sweep.test.tsxcarriesui:appin 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-readgate (5700458847), answeredThe 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 —pagepresent in both (it fires),app1 then 0 (it detects this branch's own change), absent token 0 in both.6416-plugin-report-namespace.mdreport:*keys were dropped7122-spec-17-3-0-parity-reconciliation.mduser:profileretired across three sitesuser:profile0 / 0,element:form0 / 07704-schema-registry-chatbot-keys.md8802-8257-8008-kanban-gantt-family-retirement.mdview:kanbanandview:gantt1 / 1, barekanbanandgantt0 / 0The only entry this branch moves is
app, which none of those four paragraphs mentions.7926-page-node-refuses-actions.mdquotes a published command, so it was re-run verbatim in the form it is printed in, at both revisions:git grep -ni actionoverpackages/components/src/renderers/layout/page.tsxreturns 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 saysmy-component"carries a written exemption inscripts/check-doc-component-types.mjs". Still true: both of that key's entries are present and untouched; this branch adds threeappentries on three other pages and moves no line of theirs. Its "nine … the ninth" is a count oftypespellings at declared node slots resolving in no union arm — apackages/typesquestion this branch does not touch.KNOWN_SCHEMA_TYPEScarries 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.mdclaims thekind === 'html'dispatch-arm comment inpage.tsxdoes not project into the published.d.ts. Still true, and measured rather than argued: the builtpackages/components/dist/renderers/layout/page.d.tsis 219 bytes and carries only thePageRendererdeclaration. 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 siblinghtml-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 ownVERDICT command-exitline, and every exit code was captured to disk before any pipe.Green on this head:
@object-ui/components277 files / 2702 tests ·packages/cli/+scripts/182 files / 5081 tests ·apps/console/+examples/133 files / 3336 tests ·turbo run build43/43 ·turbo run type-check11/11 ·lint:rootand both package lints exit 0 ·pnpm checkexit 0 over 632 files · thirtycheck:*gates, including three re-run after a build because their first run printed a prerequisite and therefore measured nothing, andcheck:node-esm-loadre-run with--force-buildafter its provenance leg caught turbo replaying another worktree's artifacts.RED on this head, both correctly:
Test (shard 3/4)— three cases inwidget-dom-leak-sweep.test.tsx— andLive E2E (informational). ⛔ Neither is a flake and neither is unrelated; both are this change.packages/components,packages/cli,scripts,apps/consoleandexampleswere all run and green;packages/app-shell— which holds both the registry-parity roster andPageView— 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.mjsis objectstack's and refuses cross-repo, so--ranreconciliation is UNAVAILABLE and is not faked;check-expected-skips.mjscarries objectstack's workflow roster and was deliberately not pointed at this board.Generated by Claude Code