This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
feat(core): curate box in PUBLIC_BLOCKS Tier B, pinned by a derived roster census - #8635
Merged
Merged
Conversation
… roster census `box` was minted as the JSON surface's neutral block container and landed on every declaration face — interface, zod mirror, `SchemaRegistry`, registration, docs page and 27 catalog fixtures — except the curated contract. The catalog taught a type `getPublicConfigs()` did not offer. Measured first, as triage required: `registry-inputs-spec-parity` cannot see a public block with no spec entry. Its coverage set is derived from `Object.keys(ComponentPropsMap)`, it never reads `PUBLIC_BLOCKS`, and the spec carries no entry for ANY Tier B layout primitive — `flex`/`grid`/`stack`/`card`/ `container` are all equally absent. So `box` joined a spec-less population five types deep rather than opening a new one: no spec entry owed, no gate loosened. The pin DERIVES its population (the zod `LayoutSchema` arms ∩ registry `isContainer`) instead of listing it, so the next minted layout container reds by absence rather than repeating this defect one iteration later. Its one ledger entry, `aspect-ratio`, is tracked by objectui#8628. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
…e is SPEC-shaped Verified against a reading from the objectui#6955 seat: "absent from PUBLIC_BLOCKS" does not mean "unjudged", and it does not mean "not on an authoring surface" either. Measured over the gate's own population expression: `covered` holds 29 blocks drawn from ComponentPropsMap's 45 keys, out of 501 registry keys and 58 roster entries. Roster membership is neither necessary (`element:record_picker` is judged while uncurated) nor sufficient (`flex`/`grid`/`stack`/`card`/`container` are curated and unjudged). `box` stays outside that gate either way — confirmed by mutation: the parity file reports 198/198 identically with and without `box` in Tier B. And `box`'s inputs were already live on the JSX-page compiler's manifest, which `page.tsx` builds from `getKnownTypes()`. What this card moved is `getPublicConfigs()` — the curated vocabulary that `gen-manifest.ts` serialises into `sdui.manifest.json` and `sdui-intrinsics.d.ts`. Both facts are now pinned rather than asserted in prose. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
`node scripts/check-changeset-presence.mjs` scores `packages/core/src/registry/ public-blocks.ts` as published source of a released package, so a real bump is owed rather than an empty-frontmatter declaration: `getPublicConfigs()` now offers a block it did not, and `gen-manifest.ts` serialises that into the published `sdui.manifest.json` and `sdui-intrinsics.d.ts`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
Contributor
✅ 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
|
os-justin
marked this pull request as ready for review
September 8, 2026 18:43
os-justin
enabled auto-merge
September 8, 2026 18:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6879
STEP 1 FIRST — the measurement, and it is the third answer
Triage forbade touching
PUBLIC_BLOCKSbefore measuring whatregistry-inputs-spec-paritydoes with a public block that has no spec entry. It was measured before the roster was touched, and the answer is neither "it demands a spec entry" nor "it tolerates the absence":The gate cannot see the block at all — its population is SPEC-shaped.
Measured over that expression on
origin/main@86ef0c764:ComponentRegistry.getKnownTypes()PUBLIC_BLOCKSComponentPropsMap(the spec)coveredPUBLIC_BLOCKSappears in that file exactly twice, both times in docblock prose. It is never imported.Mutation E1 —
'box'added to Tier B, parity gate run:Byte-identical to the pre-mutation baseline. Restore verified by blob hash (
92197f3ce) and an emptygit diff HEAD.Why silent, stated as a property rather than as luck. Roster membership is neither necessary nor sufficient for being judged, and both halves have live specimens:
element:record_picker,element:text_inputandrecord:chatterare all outsidePUBLIC_BLOCKSand all judged, because the spec describes them;flex/grid/stack/card/containerare all curated and all unjudged, because@objectstack/spec@17carries no entry for any Tier B layout primitive.So
boxdid not arrive as a new spec-less population that a gate would discover at merge time. It joined one five types deep that the gate has never judged. ⇒ No spec entry is owed, and nothing needed loosening. The Tier B addition stands alone.LIT CONTROL — the gate is not unconditionally green.
page:card's spec-declaredborderedinput was deleted and the same gate re-run:This PR's diff touches that file by zero lines; its own
covered === EXPECTED_COVEREDand stale-exemption pins remain the standing guard.Verified after a reading from the objectui#6955 seat, and it sharpens the card: "absent from
PUBLIC_BLOCKS" never meant "not on an authoring surface."box'sinputshave been live all along through the other consumer of the same metadata —packages/components/src/renderers/layout/page.tsx:462builds the JSX-page compiler's manifest fromgetKnownTypes(), registry-wide, with no roster in the path.What this roster gates is
getPublicConfigs(): the curated AI-authoring vocabulary, and throughpackages/sdui-parser/scripts/gen-manifest.ts:20the publishedsdui.manifest.jsonandsdui-intrinsics.d.ts. That is the surfaceboxwas missing from — narrower than "the contract does not know it", and true. Both facts are now pinned rather than left in prose.The pin DERIVES, it does not list
An exact list goes red when a curated type disappears. Nothing went red when a newly minted type never arrived —
EXPECTED_COVEREDagreed with the roster about omittingboxbecause both are hand-carried, and two hand-carried lists that agree prove only that the same hand wrote both.A pin asserting "
PUBLIC_BLOCKScontainsbox" passes on a roster that carriesboxand has already missed the type minted after it. So the population is derived:= 7 members, and after this PR exactly one is uncurated:
cardcontainerflexgridstackboxaspect-ratioA newly minted layout container is in neither the roster nor the ledger, so it fails by absence. That is the property
boxneeded and did not have.Which set the pin derives from, said out loud (the false-green hazard when two sets exist): the population comes from the declaration faces — the zod union plus registry containment.
PUBLIC_BLOCKSis only the question asked of each member. The pin never derives from the same set it interrogates.Scope, stated plainly. This covers the container half of the layout vocabulary. The non-container arms (
span,separator,scroll-area,resizable,page, deprecateddiv) are outside it because curating any of them is an unruled question of its own, and a ledger is a forcing function, not a place to park four at once.Every pin was observed to fail — seven red legs
Each mutation was proved on disk (marker counts + blob hash) before the run, and restored with
git checkout HEAD -- pathverified by an emptygit diff HEAD.'box'removed from the rostercurates every declared layout container→expected [ 'aspect-ratio', 'box' ] to deeply equal [ 'aspect-ratio' ]aspect-ratioadded)expected [] to deeply equal [ 'aspect-ratio' ], plus the stale-ledger pinisContainer→false)expected 0 to be greater than 0expected [] to have a length of 17expected 0 to be greater than 0expected [ 'card', 'container', 'flex', …(2) ] to deeply equal []boxregisters with no declared inputsexpected [] to include 'className'R3 is the one worth reading twice: a roster/census pin that iterates an empty set passes, so the vacuity guard is what makes the rest mean anything.
Non-regression axis
EXPECTED_COVEREDis exact (57 → 58), and R1/R2 show it fails in both directions.page:card/borderedlit control above, with zero lines of this PR's diff touching that file.Verification
Local, all on the final commit
7bb3addc4:public-contract+registry-inputs-spec-parityTests 217 passed (217)— parity still 198/198, census 11 → 19apps/console/+packages/core/src/registry/98 files / 1199 tests passedpackages/components/census + ratchet +body-dialect-census145 files / 1400 tests passed367 files / 3654 passed, 1 skippedexamples/schema-catalog/,packages/types/,packages/core/,packages/layout/331 files / 7993 tests passedpnpm lint(full repo, not narrowed)47 successful, 47 total— 0 errors@object-ui/core+@object-ui/consoletype-checkcheck-control-bytes,check-phantom-dependencies,check-unused-dependenciesLEG D — classified per test from vitest's JSON reporter, not the text reporter:
numTotalTests 19, passed 19, failed 0, pending 0, failedSuites 0. All eight new pins individuallypassed; noFailed Suites, nono tests.Typecheck coverage is measured, not assumed:
tsc -p apps/console/tsconfig.json --noEmit --listFileslistspublic-contract.test.tsamong its 3551 files, so the type-check really does cover the new pins.Changeset
node scripts/check-changeset-presence.mjs, verbatim:@object-ui/core: minor— a real bump, not an empty declaration:getPublicConfigs()now offers a block it did not, and that is whatgen-manifest.tspublishes.scripts/check-changeset-no-major.mjs:✅ No changeset declares a major bump.Re-derived figures (⛔ none quoted from the card)
examples/schema-catalog/src/schemascontaining a"type": "box"node (84 nodes across them), on both my base86ef0c764and the newestorigin/main841dd2b7e. The dispatch expected 28 because PR fix(components): nameboxin the div deprecation guidance, on all four surfaces #8622 addscomponents-basic-div/use-box-instead.json— that file is absent fromorigin/mainat both revisions, so fix(components): nameboxin the div deprecation guidance, on all four surfaces #8622 has not landed and 27 is current. It becomes 28 when it does. Homonym hazard avoided: the sweep counts"type": "box"JSON nodes only, never the bare word; lit control on the same command shape,"type": "flex"→ 70 files.EXPECTED_COVERED: the census assertion's own received list was read back from a failing run rather than hand-edited.Not in this PR
⛔ Nothing from PR #8622 (objectui#6877).
div.tsx,div.mdxand thecomponents-basic-divfixtures are untouched — the diff is 2 files plus a changeset. #6877 is not addressed here.维护者速读(草稿)
改了什么 —
box进PUBLIC_BLOCKSTier B(packages/core),apps/console的名单普查测试同步更新,并新增一组推导式的门禁:待判人口从 zodLayoutSchema的分支 ∩ 注册表isContainer推出,而不是手抄一份清单。为什么改 —
box由 2026-08-29 裁决铸造为div的中性替代,落在了所有声明面上(接口、zod 镜像、SchemaRegistry、注册、文档页、27 个目录范例),唯独漏了策展契约。于是getPublicConfigs()生成的sdui.manifest.json与sdui-intrinsics.d.ts少了一个目录正在教的类型 —— AI 作者读得到范例,读不到词汇表。风险与代价(含回滚) — 风险低:契约面只增不减,现有 Tier B 一个不动。⚠️ 唯一的新增维护负担是那条一格账本:
registry-inputs-spec-parity实测纹丝不动(198/198),因为它的人口是 spec 形状,而 spec 从不描述任何 Tier B 布局原语。aspect-ratio从未被裁决过,已另开 #8628 逼出决定;它若被长期搁置,账本就会退化成许可证。回滚 = revert 本 PR 三个 commit,无迁移、无数据、无生成物。席位意见 — (待定稿)
你要做的 — ① 确认
box确实该进策展词汇表(裁决说它是「新增公开类型」,本 PR 按此执行);② 认领或分诊 #8628,决定aspect-ratio是策展还是按理由拒绝;③ 确认推导式门禁的范围划法可接受:只管布局词汇表的容器那一半,非容器分支(span/separator/scroll-area/resizable/page/ 已弃用的div)留给原来的精确清单,因为逐个策展是四个各自独立的未裁决问题。🤖 Generated with Claude Code
https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
Generated by Claude Code