Repository navigation
feat(types)!: refuse both content channels on the 62 schemas whose renderer reads neither (objectui#9256, family D) - #9261
Conversation
…nderer reads neither (objectui#9256, family D) Executes the objectui#8284 ruling (summon #17, decision batch #2, maintainer verbatim 「同意」) for family D: every component schema narrows to the channel its renderer actually reads and tombstones the other. These read NEITHER, so both `body` and `children` become `?: never` on the TypeScript face and a by-name refusal on the zod mirror, kept a MEMBER so the parity key sets stay equal. A verdict of ABSENCE is not sound over a subset, so the compiler-API read-site instrument was extended from one package to 46 programs — every workspace package plus the apps and examples, 1,604 source files — and the generic traversers were read directly: `SchemaRenderer` strips both channels out of the props bag, and `validateSchema` recurses for validation only. 219 registrations in 24 packages; 77 in family D, 20 of them outside `packages/components`. Held out rather than guessed: the nine `type` names claimed by 2+ registrations with different declarations, `InputSchema`, `AppComponentSchema`, `DetailViewSchema`, and the `body` key of the three chatbot faces. Four schema-catalog documents and three component reference pages authored `children` on nodes that read `content`; they rendered empty and are corrected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
…the TS face declares The held-out key's two faces disagree by design — `BaseSchema` types `body` as a content channel, the mirror as `Record` of API params — so the TypeScript control has to author the channel shape while the mirror control authors the record. That difference IS the ledgered collision, and the comment now says so. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
Brings in PR objectui#9254 (families A+B of the same ruling), objectui#9258 and objectui#9259. One conflict, and it is the one this PR's body predicted: both cards rewrite the same `it` block in `examples/schema-catalog/test/overlay-trigger-mirror-6939.test.tsx`. Resolved by keeping BOTH refusals. objectui#9254 left `context-menu` parsing `children` as a deliberate live control and named the condition for that control to end — "that verdict needs a cross-package sweep before it can be acted on". objectui#9256 is that sweep, so the control is spent on its own terms; the reading about `tooltip` is kept honest by the key-scoped control instead, which asserts that the keys both renderers DO read still parse. No other conflict: the two cards narrow disjoint declarations, and the `tombstone.zod.ts` import lists merged into the union. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
✅ 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
|
…#9256) `packages/plugin-calendar/README.md` stated that `CalendarViewSchema` "declares 13 keys of its own". Narrowing `body` and `children` to `never` made that 15, and `readme-calendar-view-schema.test.ts` holds the prose to the interface — which is the gate doing its job, on a figure no human would have re-checked. ⛔ Not a bare number swap. 15 counts two members an author can never write, so the sentence next to it would have become the same defect one line over. The paragraph now states both halves: 13 authorable keys, which are the ones the listing below carries, plus two REFUSALS that are counted because the interface declares them and omitted from the listing because the listing is the authorable surface. `content/docs/api/schema-reference.md` described `children` as "Alias for `body`" in the shared `BaseSchema` table. Nothing folds one into the other at any point — that sentence is the belief objectui#8284 exists to correct, and it is the reference page an author reads before writing either key. Both rows now say the types are `BaseSchema`'s and point at a new note that states the real rule: the channels are two, which one a node renders is decided per component and measured, and the other is tombstoned. Enumerated rather than inferred: every `.md` / `.mdx` under `packages/`, `content/`, `docs/`, `apps/` and `examples/` was scanned for count-shaped and exhaustiveness-shaped prose about any of the 62 narrowed declarations. Those two are the only live claims the narrowing moves; the one other numeric hit is a dated audit of `AnyComponentSchema`'s union arms, which this card adds none to. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
✅ 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
|
Contract review — PR objectui#9261 @ head
|
| check | reading |
|---|---|
CI at 44e3eb2e53 |
36/36 settled — 0 failing, 0 pending, and Test (shard 1/4), the one that was red, is green |
check-clause2-carriers --pair 9261 |
✓ "both carriers agree" |
mergeable_state |
clean |
the children-is-an-alias correction |
read in the diff — both rows rewritten, and the new children row names its own former error |
⭐ The second stale claim is the catch of the round, and it is the one a number swap would have missed
I asked for an enumeration rather than an inference precisely so that a bare 15 → 13 would not close the card. What came back is better than the thing I was guarding against:
content/docs/api/schema-reference.md's shared BaseSchema table told every reader that children is "Alias for body."
⇒ that is not a documentation nit. It is the single sentence that most efficiently manufactures the defect objectui#8284 exists to name, sitting on the reference page an author consults before writing either key. Nothing folds one into the other at any point.
And the repair is done the right way — the new row does not merely state the truth, it records that it used to say otherwise:
⚠️ Not an alias — nothing folds one into the other at runtime, and this row used to say it was.
⭐ That sentence is worth more than the correction itself: a reader who remembers the old text learns that their belief came from here.
The README fix is not a number swap either
15 counted two members an author can never write. The README now states both halves — 13 authorable keys (the ones its listing carries) plus two refusals (counted because the interface declares them, omitted from the listing because the listing is the authorable surface) — with the reason and the card number. ⇒ the next reader can tell why two numbers are both correct, which is the thing a swap destroys.
I re-ran the enumeration independently, and it holds
I scanned every tracked .md / .mdx for count-shaped prose and checked each hit against the narrowed set. Two hits your report does not name, both cleared:
content/docs/plugins/plugin-calendar.mdx:270— "the four keys above are the whole of the spec type" is aboutCalendarConfigSchema, notCalendarViewSchema, and the sentence explicitly scopes itself to the type rather than to what the renderer reads. Unaffected.content/docs/components/feedback/toast.mdx:20— "ToastSchemadeclares exactly five members —default,success,warning,errorandinfo".⚠️ Those are variant values, not schema keys. Measured:ToastSchemahad 10 own declared keys before this PR, so that sentence was already false on its own terms. ⇒ pre-existing looseness, not a claim this PR falsifies, and ⛔ correctly out of scope. Worth a follow-up by whoever next touches that page; ⛔ not a reason to widen this one.
Your "exactly two live claims move" stands.
⭐ On the run you killed
Killing a 30-minute local pnpm test that was holding the shared verify lock with a sibling queued 751 seconds behind it was the right call, and declaring it NOT MEASURED rather than quietly dropping it is what makes it a reading. The tracing discipline matters too — by PID along the chain, ⛔ never by process name.
⭐ And your generalisation is correct and is going into this seat's rules: a long local run that holds a shared lock while emitting no progress is worse than the CI job it duplicates. CI's 4-shard Test job is the authority on the whole population, it is the reader that caught plugin-calendar, and it is green here. Duplicating it locally bought nothing and cost a sibling twelve minutes.
The merge state
You checked rather than chased, which is right: git diff --name-only HEAD...origin/main shows the three commits that landed during CI touch no file under packages/types, and the two they touch in packages/components are action-button.tsx / action-icon.tsx, whose UIActionSchema arm this card holds out. ⇒ no interaction, and behind is not a reason to wait since the queue rebuilds on current main.
The hold-outs stand
The three chatbot faces stay held out and the live control in the pin keeps proving body still parses there. objectui#8572 owns that ruling and now carries your three schema.requestBody read sites. ⛔ Nothing to do here.
Carriers
needs:contract-review cleared in one stroke on both limbs — PR objectui#9261 and card objectui#9256 — each read back after the write.
Generated by Claude Code
Part of #9256 — deliberately not a closing keyword: this lands family D of the measured table, and the card stays open for the eleven registrations held out below.
Executes the ruling recorded on objectui#8284 (director seat, summon #17, decision batch #2, 2026-09-07; maintainer verbatim 「同意」): the
body/childrenduality is resolved per component, not by a second alias — every component schema narrows to the channel its renderer actually reads and tombstones the other. PR objectui#9254 landed families A and B (read exactly one channel); this is family D — reads neither.Ruling execution step (1), the measured table, is posted on the card BEFORE any declaration moved: objectui#9256 comment 5644340762.
Attribution for this work: session
session_01UzHd6hDYatoDn17BuwKxnZ(written into the prose because aPATCHdegrades the footer form).⭐ The measurement came first, and it is bigger than objectui#9254's
A verdict of absence is not sound over a subset, so the compiler-API read-site instrument was extended from
packages/componentsto 46 programs — every workspace package plusapps/console,apps/siteand the four examples, 1,604 source files. Everybody/childrenread is filed under the TYPE of the object it is read from, so a docblock cannot score.Two instrument defects were found while extending it, and both answered WRONG silently:
__typeis the symbol name of every anonymous object type literal,Recordof every mapped type. Bare-name filing put 20 registrations into "reads BOTH" that read nothing. Identity is now the name plus the file and line of the type's own declaration.any, andanyreads as NEITHER.@object-ui/typesresolves throughdist/*.d.ts; before a build,GridSchemaresolved toanyandgridscored NEITHER — it readschildren. The reading of record is on a fully built tree, with a module-resolution probe reporting 0 unresolved-module diagnostics.Lit controls, both directions. Grep-hit / checker-non-hit, new in this family:
body: schema.requestBodyinplugin-chatbot/src/renderer.tsx(three times, in the very registrations this card narrows);body:inside the EXAMPLE schema literals incarousel.tsxandresizable.tsxregistration metadata; a bare{children}React expression inplugin-view/src/index.tsxthat can never receive the authored channel becauseSchemaRendererstrips it; four prose mentions inlayout/src/index.ts. Positive control: 36 schema-attributed reads under the 18 published declarations of families A, B and C, two of which the one-package sweep could not see.The generic traversers were read directly, not inferred — they are the readers no per-component sweep sees:
SchemaRendererdestructureschildrenandbodyOUT of the props bag it spreads ⇒ "reads neither" really does mean "renders nothing", by no other route.validateSchemareadsschema.childrenelseschema.bodyfor every node, but only to RECURSE and validate; it renders nothing.semantic.tsx,html-elements.tsx) DO read the channel — their 44 tag names were enumerated and intersected with the family-D names: empty.containers.tsxis the one that does collide (accordion,tabs), and both are held out.What this does
219 registrations in 24 packages (not 25:
apps/consoleholds 21registerLazyaliases and registers nothing directly). 77 are family D — not the card's ~60 — and 20 of them are outsidepackages/components, in 11 other packages. 64 registrations over 62 published declarations are narrowed here:bodyandchildrenbecome?: neveron the TypeScript face and a by-nameretirementTombstonerefusal on the zod mirror, kept a MEMBER sozod-mirror-parity's key sets stay equal. Four declarations have no zod mirror at all (AIFormAssistSchema,AIRecommendationsSchema,NLQuerySchema,PivotTableSchema); for those the TypeScript face is the only gate, and the pin test says so.Each tombstone's guidance names what the renderer DOES read, derived from the same instrument rather than written by hand —
collapsiblesays "What it renders instead:content,defaultOpen,trigger".accordion,tabs,text,image,icon(both arms),list,calendar,timeline,button(UIActionSchemaarm)typename carries 2+ registrations with DIFFERENT declarations.ComponentRegistry.registerwrites the bare-name fallback LAST-ONE-WINS, so which declaration governs an authored node depends on import order — the same reasonsidebarwas held out of family Binput(InputSchema)InputShorthandSchemais declared as anOmitof it, so a tombstone would propagate onto theemail/passwordshorthand face, whose registrations areany-typed — family E, frozenapp-schema-renderer(AppComponentSchema)app, andappis served byPageNodeSchema— family C, reads BOTH, with the maintainerdetail(DetailViewSchema)detail-view, which is registered with anany-typed renderer whose reads are unattributablebodykey ofchatbot/chatbot-enhanced/chatbot-floatingzod-mirror-parity's ledger already records it verbatim: "Two different meanings of one key — a naming collision to rule on, not a widening." TheirchildrenIS narrowed, and a LIVE CONTROL in the pin test provesbodystill parsestypenames carry 2+ registrations. Eight are cross-PACKAGE collisions the one-package sweep could not see —form,calendar,grid,list,alert,menu,chart,timeline.A brace-matched object-literal census over 7,182 files (positive control: 431 documents authoring the channel those renderers DO read) found 11 hits. Seven are real documents, and every one renders an EMPTY element today:
examples/schema-catalog/.../dialog-trigger.jsondialogchildrencontentexamples/schema-catalog/.../basic-drawer.jsondrawerchildrencontentexamples/schema-catalog/.../basic-popover.jsonpopoverchildrencontentexamples/schema-catalog/.../basic-collapsible.jsoncollapsiblechildrencontentcontent/docs/components/overlay/dialog.mdxDialogSchemachildrencontentcontent/docs/components/overlay/drawer.mdxDrawerSchemachildrencontentcontent/docs/components/overlay/popover.mdxPopoverSchemachildrencontent⭐ The four catalog files are the rendered demo gallery and the three pages are the published component reference. They agree with each other and disagree with the renderer: the reference TEACHES the dead spelling, so this is not seven authors slipping — it is the documentation manufacturing the defect.
collapsibleis objectui#8197, found a third time. Reported rather than migrated in silence, per the card.itblockexamples/schema-catalog/test/overlay-trigger-mirror-6939.test.tsx— objectui#9254 rewrote thetooltiphalf of "the accept set only WIDENED" and leftcontext-menuas its deliberate live control, saying in as many words that the control stands until "a cross-package sweep". This is that sweep, so this PR rewrites thecontext-menuhalf. Both edits live in the same hunk: expect a conflict on whichever lands second, and resolve it by keeping BOTH refusals plus the new key-scoped control.Fixture triage — three, none of them a batch rename
static-table-narrow-surface.test.tspinned the statictablemirror's tombstones as exactlyhoverable/striped. It now reads four, becausebody/childrenjoin for the same reason measured again.undeclared-but-consumed-keys-6150.test.tshadchildrenin itscontext-menucontrol document. The control never needed it — the key was a silent empty box — and it made every case in that block fail on a key the block is not about.overlay-trigger-mirror-6939.test.tsx— above.Version level
minorwith a BREAKING banner in the changeset. This narrows a published authoring type, but this repo's version policy forbidsmajorin any changeset — 41 packages in onefixedgroup — and recordsminorplus an explicit breaking note as the spelling for a breaking change here. Split levels are impossible anyway.Verification
Run on
7bde46114, the branch head, from the committed tree.pnpm exec vitest run packages/types/pnpm exec vitest run packages/components/ packages/types/pnpm exec vitest run examples/schema-catalog/pnpm exec vitest run examples/schema-catalog/ packages/core/ packages/react/turbo run type-check --filter='...@object-ui/types'— the DOWNSTREAM consumer closureturbo run build --filter='!@object-ui/site'check:doc-snippetscheck:doc-examples@examplecompiles or fails as its ledger row declarescheck:doc-typestypeliterals judged; every documented component type is registeredcheck:doc-fences·check:doc-example-idscheck-changeset-presence.mjschangeset:check(fixed group + no-major)majorcheck:control-bytescheck:new-line-citationscheck:handler-key-readscheck:spec-symbols·check:action-forward-parity·check:designer-field-key-parity·check:readme-exports·check:sdui-registration-pins·check:dist-completenesscheck-governed-queue-guard.mjs --testpnpm --filter @object-ui/types linteslint . --no-inline-config --format jsonover the WHOLE populationno-explicit-anyand none on a line this branch added (checked against the diff's added-line set). Repo totals 95 errors / 13,008 warnings, all outside this diff. No narrowing argument needed — the full population was read.Ablation — BOTH faces, BOTH readers, and leg 2 is why both are reported
Each leg prechecks the file's
git hash-objectagainst its HEAD blob, mutates, proves the mutation on disk by counting the marker, runs vitest AND tsc, and restores withgit checkout HEAD -- ABSOLUTE_PATHproved by an emptygit diff HEAD— never by an exit code. Atrap … EXIT INT TERMcarries the restore on every exit path.tsc(@object-ui/types type-check)DialogSchema'schildrenrefusal armTS2322inzod-mirror-parity.test.ts's typed ledgerDialogSchema'schildren?: neverchildren?: neverinoverlay.ts9 → 8TS2578 Unused '@ts-expect-error' directiveplus aTS2322ledger errorgit diff HEADempty for both files⭐ Leg 2 is the whole reason both readers are reported — the standard PR objectui#9254 set. The identical mutation is invisible to vitest (
?: neveris erased before a test runs) and loud undertsc. Read through vitest alone, "the pin test covers it" would have been recorded as measured when it was NOT MEASURED. Leg 1 lit a second independent reader as well: the parity ledger is a TYPED table, so deleting a mirror arm fails compilation, not just assertions.Cross-package reverse validation — the consumer reads the rebuilt
.d.ts, not a cacheA temporary probe in
packages/componentsauthoring{ type: 'dialog', children: [...] }as aDialogSchematurnedpnpm --filter @object-ui/components type-checkRED withTS2322: Type '{ type: string; content: string; }[]' is not assignable to type 'undefined'— the narrowing arriving across a package boundary through the built types. Removing the probe returned exit 0, andgit statusis empty: the probe was never committed.origin/main— the predicted conflict, and how it was resolvedmainmoved to20b507aff0while this branch was in flight (objectui#9254, objectui#9258, objectui#9259 landed). Merged, never rebased:git merge origin/main, merge commit502660a19. No history on this branch was rewritten and nothing was force-pushed.One conflict, and it is the one the section above predicted:
examples/schema-catalog/test/overlay-trigger-mirror-6939.test.tsx, where objectui#9254 rewrote thetooltiphalf of oneitblock and this PR rewrote thecontext-menuhalf. Resolved by keeping BOTH refusals, exactly as this body said to: objectui#9254's live control ended on its own terms — it said the control stands until "a cross-package sweep", and objectui#9256 is that sweep — so the reading abouttooltipis now kept honest by the key-scoped control (the keys both renderers DO read still parse) rather than bycontext-menustaying permissive.Nothing else conflicted. The two cards narrow disjoint declarations, so
packages/types's four shared files auto-merged, and thetombstone.zod.tsimport lists merged into the union (aliasKeyRefusalfrom objectui#9254 besideretirementTombstonefrom this card). A duplicate-member scan over every edited interface reports 0 duplicatedbody/childrendeclarations.@object-ui/core's export surface (objectui#9258 addedoptionDisplayLabel) is untouched by this diff — this PR changes no file inpackages/core.pnpm-lock.yamlis byte-identical across the merge (git diffover it is empty), so nothing generated needed regenerating;pnpm installre-ran clean anyway.Re-verified on the merge commit
502660a19, from the committed treeturbo run build --filter='!@object-ui/site' --concurrency=2turbo run type-check --filter='...@object-ui/types'— the downstream closureerror TSlinespnpm exec vitest run packages/types/ packages/components/ examples/schema-catalog/check:doc-snippets·check:doc-examples·check:doc-types·check:doc-fences·check:doc-example-ids·check:control-bytes·check:new-line-citations·check:handler-key-reads·check:spec-symbols·check-changeset-presence·changeset:checkcheck-governed-queue-guard.mjs --testeslint . --no-inline-config --format jsonover the WHOLE populationno-explicit-anyand none on a line this branch added; repo totals 95 errors / 13,006 warnings, all outside this diffThe ablation was re-run in full, because the merge touched both files its legs mutate. It reproduces identically, and the one number that moved is itself the proof the merge landed: the baseline count of
children?: neverinpackages/types/src/overlay.tsis now 10, not 9 — objectui#9254'sTooltipSchematombstone is the tenth.tscTS2322in the parity ledgerchildren?: never10 → 9TS2578+ aTS2322ledger errorgit diff HEADempty for bothDeclared to CI, deliberately not run here
The full
pnpm test,turbo run type-checkacross all 41 packages (only the downstream closure of@object-ui/typesran here, 77 tasks), and the rest of thelint.ymlgate farm. Every gate that fires on THIS diff's shape was run locally and is in the table.🤖 Generated with Claude Code
https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
Generated by Claude Code