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

Commit 45dbf1c

Browse files
objectstack-fleet[bot]claudehotlong
authored
docs(skills,console): record why the seven sectioning tags stay off the curated tier; retract the section row (objectui#8775) (#10852)
Fixes #8775 Clause-②: no — the ruling records a reason in a test ledger and retracts a teaching line; `PUBLIC_BLOCKS`, the manifest and every published type are byte-unchanged (ruling execution parameter 4) Ruling: 5857078807 (B) Dispatched by the `domain:ui` seat 2 (claim 5859939443). Implemented by the `os-dev` subagent of session `https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN`. ## What changed 1. **Console ledger.** In `apps/console/src/__tests__/public-contract.test.ts`, `SECTIONING_TAG_UNRULED` becomes `SECTIONING_TAG_REFUSED`, which carries the ruled reason. The rename follows the file's own convention: the `aspect-ratio` entry beside it opens `'RULED: refused on stated merits (objectui#8628, ruling 5634038424, letter B, ratified 5810240972). '`, so this one opens `'RULED: refused on stated merits (objectui#8775, ruling 5857078807, letter B). '`. The ledger docblock no longer says objectui#8775 "holds the decision". Nothing in the tree asserts the ledger's text; the pins over it (population equals ledger keys, a `#NNN` per entry, more than 40 characters, no stale entry) keep their assertions. 2. **Published skill guide.** `skills/objectui/guides/page-builder.md`, section "3b. Pick the right layout primitive": the `section` row is retracted. The prose that said `box` and `section` exist for the same reason now covers `box` alone. It points an author who needs a landmark on a JSON page to `page:section` / `page:footer` / `page:sidebar` / `page:header`, and says what each one renders. 3. **Docs.** `content/docs/components/layout/semantic.mdx` stops teaching `body?: SchemaNode[]; // Alternative content prop`, which objectui#6771 retired. It now states that `children` is the one child-list key, as the renderer and the schema read today. Prose only. 4. **Changeset.** `.changeset/8775-sectioning-tags-ruled-reason.md`, with empty frontmatter, releases nothing. The presence gate asked for it, because `apps/console/src/**` is released source of `@object-ui/console`. `container-declaration-census.test.tsx` is **unchanged**. Its premise text names neither `SECTIONING_TAG_UNRULED` nor `UNCURATED_LAYOUT_CONTAINERS` nor objectui#8775 (grep: 0 hits), and it still reads true: "The seven sectioning tags are declared for the html tier and nowhere else". `semantic.tsx`'s registration comment is also unchanged and still true. ## The reason, sentence by sentence, and the reading behind each one ### (a) Zero pull in real apps The subject grep is a JSON `type` literal of one of the seven: `(type|"type")\s*:\s*["'](article|aside|footer|header|main|nav|section)["']`. The control is the same grep shape over each corpus's ordinary layout blocks. | corpus | subject | control | |---|---|---| | objectstack `examples/` at `origin/main` `4e0f72e8d2` (showcase, crm, todo, multi-package, embed) | **0** (`git grep` exit 1) | `box`/`flex`/`card`: 15 lines, in `command-center.page.ts` (8) and `styling-gallery.page.ts` (7) | | hotcrm `2f7b232` (depth-1 clone; the same head the ruling read) | **0** (exit 1) | `grid`/`page:header`/`page:card`: 50 lines in 21 files (hotcrm authors no `box`/`flex`/`card` at all, so that control would read 0) | | objectui `examples/` outside `examples/schema-catalog` | **0** | `box`/`flex`/`card`: 1 (`hello-world/schema.json`, `card`) | | objectui `examples/schema-catalog` | 17 lines, all in `components-layout-semantic/` (9 fixtures) | the catalogue documents its own renderers, the same class as `components-layout-aspect-ratio/` | - The seven appear as JSX only in two objectstack showcase pages. `crm-workbench.page.ts` (3 lines) and `task-desk.page.ts` (1 line) are both `kind: 'react'`, so those hits are DOM intrinsics. The three `kind: 'html'` showcase pages (`capability-map`, `command-center-jsx`, `start-here`) use none of the seven. - hotcrm's only JSX-shaped hit under `src/` is a prose comment in `home.page.ts`. ### (b) The seven are html-tier intrinsics that render on `kind:'html'` pages This reading comes from a one-off probe, run once under the verify lock and deleted, never committed. It used the full console registration graph, the same imports as `html-tier-code-element-10756.test.tsx`. ```text b.inHtmlTierIntrinsics [["article",true],["aside",true],["footer",true],["header",true],["main",true],["nav",true],["section",true]] b.inPublicBlocks [] b.publicConfigTier [["article","html"],["aside","html"],["footer","html"],["header","html"],["main","html"],["nav","html"],["section","html"]] b.compileDiagnostics [] (all seven in one kind:'html' source, against the live page manifest) b.htmlPageRendered [["article","A"],["aside","AS"],["footer","F"],["header","H"],["main","H"],["nav","N"],["section","S"]] b.control.h1Absent true (a tag not on the page is absent: the reader is live) ``` The tier half is re-derived by the census pin "none of the eight is in the curated public contract". The render half is this one-time reading, and the ledger text says so, per AGENTS.md commandment 9. ### (c) The curated tier already carries the landmarks, one spelling each This reading comes from the same probe. ```text c.inPublicBlocks [["page:section",true],["page:header",true],["page:footer",true],["page:sidebar",true]] c.render.page:section {"tag":"section","className":"space-y-4","text":"kid"} c.render.page:footer {"tag":"footer","className":"flex items-center justify-between text-sm text-muted-foreground","text":"kid"} c.render.page:sidebar {"tag":"aside","className":"flex flex-col gap-4 w-full md:w-80 shrink-0","text":"kid"} c.render.page:header {"tag":"header","h1":"T"} c.page:header.inputs ["title","subtitle","actions","breadcrumb","recordChrome","showStar","showCopyId","maxVisible","mobileMaxVisible"] c.page:header.isContainer null ``` - ⇒ `page:header` is the page's title row, and it declares no child slot. The guide therefore says it "takes no `children`" rather than calling it a container. - `page:footer` also renders a separator above its `footer` element. - All four blocks are in `EXPECTED_COVERED` in the same test file. ### (d) Curating any of the seven adds a near-synonym pair ```text d.render.bare-section {"tag":"section","className":null,"text":"kid"} vs page:section {"tag":"section","className":"space-y-4",...} ``` - The factory in `semantic.tsx` passes `className` through verbatim, exactly as `box` does. - The retracted guide row said so itself: "none — `className` passes through **verbatim**, exactly like `box`". - So each of the seven is `box` with a different element. For four of them there is also a curated `page:*` block that renders the same element. - `main`, `nav` and `article` have no `page:*` twin. The ledger therefore states the pair through `box` for all seven, and through `page:*` for four. That is narrower than the first draft of the text, and it is true for all seven. ### `semantic.mdx`: what the renderer and the schema read now This reading comes from the same probe. ```text mdx.section.children "VIA_CHILDREN" mdx.section.body {"el":true,"text":""} mdx.main.children "VIA_CHILDREN" mdx.main.body {"el":true,"text":""} mdx.semantic.inputs ["className:string","children:slot"] mdx.zod.children true mdx.zod.body ["invalid_type:body:Unrecognized key(s) on this node: `body`. Did you mean `body` → `children`? The `body` child-list spelling was retired by objectui#6771 — ..."] ``` ## Parameter 6: other teaching of the seven as JSON blocks The grep is the subject pattern above, over `skills/`, `content/` and `.changeset/`, plus a backticked `` `section` `` in `skills/`. - `skills/objectui/guides/page-builder.md`: the row and the prose. **Corrected here.** - `content/docs/components/layout/semantic.mdx`: the `type:` union in its schema block. This is the renderer's own reference page, and it stays: the seven still ship and render. Only its `body` line was corrected, per parameter 3. - Other hits are listed under Acceptance notes and left alone, per parameter 6. - `.changeset/`: none. `report-schema.mdx` (`type: 'header'` is a report-section kind) and `user-state-persistence.md` (`type:'nav'` is a favorite kind) are different vocabularies, not hits. - No skill eval asserts `section`. `skills/objectui/evals/page-builder.json` mentions "sections" only in a prompt; its `must_contain` is `hidden` / `admin` / `card`. ## Skill size readings (`skills/**` diff) - Changed file `skills/objectui/guides/page-builder.md`: **337 → 342 lines** (+5). One table row was removed, and the landmark pointer the ruling asked for was folded into the existing `box` paragraph. - Whole package, the sum of every `SKILL.md` under `skills/` (1 file): **137 → 137** (unchanged). The whole `skills/` tree: 5368 → 5373. - No line ratchet covers the published catalog (`check-skill-line-ratchet.mjs` scopes it out deliberately). ## Gates, all on head `91c8cc39a3` (the final commit) - `OS_VERIFY_LOCK_SLOT=issue-8775-dev bash …/os-verify-lock.sh -c 'NODE_OPTIONS=--max-old-space-size=4096 pnpm exec vitest run --maxWorkers=2 apps/console/src/__tests__/public-contract.test.ts packages/components/src/renderers/__tests__/container-declaration-census.test.tsx'` gave `Test Files 2 passed (2)` and `Tests 49 passed (49)`, `VERDICT command-exit 0`. - `pnpm check:control-bytes`: exit 0, `OK (scanned 9086 tracked text file(s); skipped 85 binary)`. A self-scan of the four files for control bytes found none (grep exit 1). - `pnpm check:new-line-citations`: exit 0, `VERDICT new-cross-file-line-citations: 0 new citation(s)`. - `pnpm docs:check-links`: exit 0, `Links are valid across 17 scan roots.` - `pnpm check:skills-paths`: exit 0, `skills/ — 28/28 resolve across 16 file(s)`. - `pnpm check:skill-eval-tokens`: exit 0. - `pnpm check:doc-types`: exit 0. - `pnpm check:doc-fences`: exit 0. - `pnpm check:doc-example-ids`: exit 0. - `pnpm check:doc-example-readers`: exit 0. - `pnpm check:prompt-keys`: exit 0. - `node scripts/check-changeset-presence.mjs`: exit 0, `1 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)`. It was exit 1 before the changeset was added. - `check:changeset-claims`: exit 0. - Its one report-only finding is `.changeset/6475-gantt-block-face-declared.md`, which names `page-builder.md` in a sentence about `gantt` blocks. - This diff touches no `gantt` text, so that sentence still holds. - `check:pending-changeset-literals`, `check-changeset-no-major`, `check-changeset-overwrite`: all exit 0. - `pnpm exec eslint --no-inline-config --format json apps/console/src/__tests__/public-contract.test.ts` gave 1 file, 0 errors, 0 warnings. - The population comes from `eslint.config.js`'s `**/*.{ts,tsx}` block plus its test override; the file was linted, not ignored. - The config has no `projectService` / `parserOptions.project` (grep count 0), so linting is not type-aware and this diff cannot move any untouched file's verdict. - The other three changed files are `.md` / `.mdx`, outside eslint's `files`. - `git merge-tree --write-tree` against freshly fetched `main` `4aebea00a7`: exit 0, clean tree `f3a8040fd7`. The one commit main gained touches none of these files. - `git log --format=%B` over the branch shows only the model-free pair (`Co-Authored-By: Claude`, `Claude-Session:`), three times, and no card trailer. - Governed path verdict over the real changed paths (`BASE..HEAD`, the three-dot set): - objectui's own `node scripts/check-governed-queue-guard.mjs --test PATHS`: **exit 3, GOVERNED**, `skills/** x1 — the published skills catalog`. - objectstack's `node scripts/pm/check-governed-merges.mjs --test PATHS`: **exit 3, GOVERNED**, `landing tier: H`. - The objectstack `check-governed-queue-guard.mjs --test` that the dispatch named exited 1, `could not read GITHUB_EVENT_PATH`. That copy has no path mode (its seat-side predicate is `check-governed-merges.mjs --test`), so that exit is "could not look", not a verdict. **NOT MEASURED, as a declared narrowing:** `check:skill-examples`, `check:doc-snippets` and `check:doc-examples`. - Each exited 2 with `PRECONDITION NOT MET`: it needs a scoped build of 12 to 34 packages first. CI builds and runs all three. - The narrowing is proven by the files each gate reads: - `doc-examples` reads JSDoc `@example` blocks under `packages/*/src`, and none is touched. - `doc-snippets` compiles only `ts`/`tsx`/`typescript` fences. - `skill-examples` reads marked fences in `skills/`. - Hunk-vs-fence intersection at `HEAD`: - `page-builder.md`: hunks [86], [91–99], against 10 fences, touching none. - `semantic.mdx`: hunks [55], [67–68], touching only the `plaintext` fence. - `public-contract.test.ts`: no fences. ## Tier H `skills/**` is governed, so this PR stays a **draft**. The seat handles the at-tier review record, the 终稿速读, `needs-user-decision`, and the review request to os-zhuang / hotlong. It lands only after an APPROVED review. This dev requested no reviewers and did not ready the PR. ## Acceptance notes These were named, not changed: parameter 6 corrects only the files the ruling names. - `content/docs/components/navigation/header-bar.mdx` authors `type: 'main'` as a JSON block inside an example that also authors the deprecated `type: 'div'`. - `content/docs/guide/expressions.md` uses `"type": "section"` as the carrier of its `hiddenOn` example. - Both render, so neither is a failing copy-paste. They are incidental uses that a later docs pass could re-spell to `page:section` / `box`. - The `SemanticElementSchema` interface docblock in `packages/types/src/layout.ts` says the factory "declares exactly one authoring input, `className`". Since objectui#9910 the registration declares two (`className`, plus the `children` slot; probe `mdx.semantic.inputs`). This is a stale comment, not a contract, and it is not touched here. - Not measured: whether the app shell already provides a `main` landmark on JSON pages. This is the ruling's own carried confidence gap, and it does not change the letter. ## 维护者速读 - **改了什么**: - 七个 HTML 语义分区标签(`article` / `aside` / `footer` / `header` / `main` / `nav` / `section`)在控制台的「精选积木」账本里,从「尚未裁决」改为「已裁决不收」,并逐句写明理由。 - 发布给客户的建页指南删掉教 `section` 的那一行,改为指向 `page:section` / `page:header` / `page:footer` / `page:sidebar`。 - `semantic.mdx` 删掉已退役的 `body` 写法。 - 第二轮(席位采纳复审建议 N1):指南里指向 `page:*` 的那句补上各自自带的版式。`page:section` 子项间距 `space-y-4`;`page:footer` 上方加分隔线、行内两端对齐、弱化字色;`page:sidebar` 从 `md` 起是固定 20rem 宽的列,不是中性的 `aside`。 - **为什么改**: - 执行裁决 5857078807(B)。这七个是 HTML 元素,属于 `kind:'html'` 页面,在那里本来就能渲染。 - JSON 页面上的地标已由 `page:*` 各有一种拼写承载。 - 再收一个进精选清单,会给 AI 多一对分不清的近义积木。 - 实测:真实应用(objectstack 示例、hotcrm)零使用。 - **风险与代价(含回滚)**: - 没有公开契约变化:`PUBLIC_BLOCKS`、manifest、类型都不动,七个标签照常渲染、照常通过校验。 - 代价是客户技能包里少了 `section` 这一行教学。 - 回滚方式是 revert 本 PR。 - **席位意见**:建议批准。 - at-tier 契约复审 PASS(`5860159692`),逐句核对裁决 B 的参数 1–4:账本理由每句为真,`PUBLIC_BLOCKS` / manifest / 类型零改动,指南与 `semantic.mdx` 与渲染器一致。 - 第二轮只改指南一段(席位在 `containers.tsx` 核对了三处类名)。 - 未复核项:hotcrm 的零使用读数来自开发者本地克隆,本容器没有 hotcrm,未复测;objectstack 示例与 objectui 示例已由复审复测为零。 - 裁决自带的置信缺口已有读数:控制台外壳已渲染 `main`(`SidebarInset`),所以 `page:header` / `page:footer` 在其中不算页面级 banner / contentinfo 地标。「地标」一词沿用裁决原文,不改结论。 - **你要做的**:审阅并批准(`skills/**` 属受管面,需 os-zhuang / hotlong 的 APPROVED 后由席位落地)。 --- _Generated by [Claude Code](https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Jack Zhuang <50353452+hotlong@users.noreply.github.com>
1 parent 4f38f39 commit 45dbf1c

4 files changed

Lines changed: 54 additions & 38 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
---
3+
4+
Docs and test-ledger change; no package is released. The seven HTML sectioning tags (`article`, `aside`, `footer`, `header`, `main`, `nav`, `section`) in the console's declared-layout-container ledger (`UNCURATED_LAYOUT_CONTAINERS`) no longer read "NOT YET RULED": they record the ruling on objectui#8775 (letter B). They are html-tier intrinsics that render on `kind:'html'` pages, the curated `page:section` / `page:header` / `page:footer` / `page:sidebar` blocks already carry the landmarks a JSON page needs, and curating one of the seven would add a near-synonym pair. The page-builder skill guide no longer teaches `section` as a JSON layout primitive and points to those four blocks instead, and the semantic-elements docs page no longer teaches the `body` child-list key that objectui#6771 retired. `PUBLIC_BLOCKS`, `sdui.manifest.json`, the generated intrinsics and every published type are unchanged, and every pin over the ledger keeps its assertion.

‎apps/console/src/__tests__/public-contract.test.ts‎

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,9 @@ const specCarried = (type: string): boolean =>
520520
* outside `LayoutSchema` — was refused deliberately: it would have removed seven
521521
* genuine layout containers from this population without changing anything about
522522
* what they are, which is a gate that stops looking rather than a gate that
523-
* passes. Ledgering them is the reviewable option; objectui#8775 holds the
524-
* decision itself, which is NOT this card's to take.
523+
* passes. Ledgering them was the reviewable option, and objectui#8775 has since
524+
* ruled on them (ruling 5857078807, letter B): they stay out, for the reason
525+
* their entry records.
525526
*
526527
* ⚠️ What an entry here COSTS, stated once so no entry has to re-argue it, and
527528
* corrected because objectui#8499 first shipped it wrong. Curating a ledgered
@@ -548,29 +549,30 @@ const specCarried = (type: string): boolean =>
548549
* `renderers/layout/semantic.tsx` over one `tags` array — so they share one
549550
* reason rather than seven paraphrases of it.
550551
*/
551-
const SECTIONING_TAG_UNRULED =
552-
'NOT YET RULED, either way — and promoting it is not a roster edit. One of the seven HTML ' +
553-
'sectioning tags the single loop factory in `renderers/layout/semantic.tsx` registers with ' +
554-
'`category: layout` and `isContainer: true` (objectui#6764). objectui#8499 armed them as ' +
555-
'`SemanticElementSchema`, which is what first brought already-declared containers into the ' +
556-
'population this file derives — none of them is newly a container, and none is newly ' +
557-
'authorable. What curating one WOULD move, measured rather than reasoned: it widens the ' +
558-
'curated AI-authoring vocabulary and it turns the ' +
559-
'"none of the eight is in the curated public contract" pin in ' +
560-
'`container-declaration-census.test.tsx` RED BY DESIGN — which is precisely what ' +
561-
'`semantic.tsx` means by re-opening the question THERE. (Since objectui#10735 the seven are ' +
562-
'ALREADY in `sdui.manifest.json` and the generated intrinsics, as html-tier entries stamped ' +
563-
'`tier: \'html\'` from `HTML_TIER_INTRINSICS`, so a `kind:\'html\'` page may author them; ' +
564-
'curating one would move it onto the curated tier, unstamped — a different fact from ' +
565-
'declaring it.) ⛔ It does NOT delete the tag from ' +
566-
'any react page, and an earlier revision of this entry said it did: `react-page.tsx` skips ' +
567-
"EVERY container config (`if (!tag || cfg.isContainer || cfg.tier === 'html') continue;`) and these seven already " +
568-
'carry `isContainer: true`, so a promoted config is skipped on exactly the same line an ' +
569-
'unlisted one never reaches — measured at 46 injected identifiers before and 46 after ' +
570-
'simulating the promotion of `main`, with `Main` absent from both. A lowercase `main` in a ' +
571-
'react page is a DOM intrinsic either way, because `react-runtime` never reads the registry. ' +
572-
'objectui#8775 measured the population and holds the decision: curate the family or a named ' +
573-
'subset and carry that consequence, or refuse on stated merits and replace this text with them.';
552+
const SECTIONING_TAG_REFUSED =
553+
'RULED: refused on stated merits (objectui#8775, ruling 5857078807, letter B). One of the seven ' +
554+
'HTML sectioning tags the single loop factory in `renderers/layout/semantic.tsx` registers with ' +
555+
'`category: layout` and `isContainer: true`. No real application authors any of the seven as a ' +
556+
"JSON block: the objectstack showcase and examples, hotcrm, and this repository's examples outside " +
557+
"the schema catalogue carry none, while the same grep shape finds each corpus's ordinary layout " +
558+
"blocks; the catalogue's own semantic fixtures are the renderer documenting itself, as " +
559+
"`aspect-ratio`'s are. " +
560+
'They are HTML elements, and HTML elements live on the html tier: all seven are in ' +
561+
"`HTML_TIER_INTRINSICS` and reach `sdui.manifest.json` stamped `tier: 'html'` (objectui#10735), " +
562+
'which the census pin "none of the eight is in the curated public contract" holds, and a ' +
563+
"`kind:'html'` page renders them. The curated tier already carries the landmarks an app page " +
564+
'needs, one spelling each: `page:section`, `page:header`, `page:footer` and `page:sidebar`, all ' +
565+
'four in `EXPECTED_COVERED` above, render a `section`, `header`, `footer` and `aside` element. ' +
566+
'Curating any of the seven would add a near-synonym pair an AI author cannot tell apart: each is a ' +
567+
'neutral wrapper that passes `className` through verbatim exactly as the curated `box` does, ' +
568+
'differing only in the element it emits, and four of them also emit the same element as a curated ' +
569+
'`page:*` block (`section` and `page:section` both render a `section`). Two spellings of one block ' +
570+
'is the ambiguity `record:chatter` is ledgered for. The seven still ship, render and validate on the ' +
571+
'JSON surface, as `aspect-ratio` does; they are simply not taught, and the published page-builder ' +
572+
'guide stopped teaching `section` in the same change. The pull, render and validate readings were ' +
573+
'taken once for objectui#8775 and live on its pull request; nothing in this file re-derives them. ' +
574+
'Curating one stays available on a named need, not on a census, at the cost the docblock above ' +
575+
'states once for every entry.';
574576

575577
const UNCURATED_LAYOUT_CONTAINERS: Record<string, string> = {
576578
'aspect-ratio':
@@ -585,13 +587,13 @@ const UNCURATED_LAYOUT_CONTAINERS: Record<string, string> = {
585587
'by "curates every shipped semantic block, or records why not", whose population is the four ' +
586588
'semantic namespaces, and `aspect-ratio` registers under `ui` — an entry there turns that pin red, ' +
587589
'and dropping this one turns "curates every declared layout container, or records why not" red.',
588-
article: SECTIONING_TAG_UNRULED,
589-
aside: SECTIONING_TAG_UNRULED,
590-
footer: SECTIONING_TAG_UNRULED,
591-
header: SECTIONING_TAG_UNRULED,
592-
main: SECTIONING_TAG_UNRULED,
593-
nav: SECTIONING_TAG_UNRULED,
594-
section: SECTIONING_TAG_UNRULED,
590+
article: SECTIONING_TAG_REFUSED,
591+
aside: SECTIONING_TAG_REFUSED,
592+
footer: SECTIONING_TAG_REFUSED,
593+
header: SECTIONING_TAG_REFUSED,
594+
main: SECTIONING_TAG_REFUSED,
595+
nav: SECTIONING_TAG_REFUSED,
596+
section: SECTIONING_TAG_REFUSED,
595597
};
596598

597599
describe('PUBLIC_BLOCKS ↔ the declared layout containers (derived, objectui#6879)', () => {

‎content/docs/components/layout/semantic.mdx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ interface SemanticSchema {
5252
type: 'header' | 'nav' | 'main' | 'aside' | 'section' | 'article' | 'footer';
5353
5454
// Content
55-
children?: SchemaNode | SchemaNode[]; // Child components
56-
body?: SchemaNode[]; // Alternative content prop
55+
children?: SchemaNode | SchemaNode[]; // Child components — the only child-list key
5756
5857
// Styling
5958
className?: string; // Tailwind CSS classes
@@ -65,6 +64,8 @@ interface SemanticSchema {
6564
}
6665
```
6766

67+
`children` is the one child-list key: the renderer takes its child list from `schema.children` only. The `body` spelling was retired by objectui#6771 — schema validation refuses it with a pointer to `children`, and a `body` list renders nothing.
68+
6869
## Examples
6970

7071
### Page Layout

‎skills/objectui/guides/page-builder.md‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,23 @@ off the node.
8484
| `grid` | a CSS grid | `columns` (number, or a breakpoint object), `gap` (`4`) | a fixed number of equal cells that must reflow by breakpoint — KPI cards, a tile wall |
8585
| `container` | a centred, width-capped block | `maxWidth` (`xl`; `false` cancels the cap), `centered` (`true`), `padding` (`4`) | you want page gutters and a reading width, once, near the root |
8686
| `box` | a bare `div` | none — `className` passes through **verbatim**, and the renderer injects nothing | you want a wrapper that adds no layout of its own: a Tailwind-only block, a positioning anchor |
87-
| `section` | a semantic `<section>` | none — `className` passes through **verbatim**, exactly like `box` | you want `box` with an outline landmark: a thematic grouping that carries its own heading |
8887

8988
Use whichever of `flex` / `stack` names your intent; do not set
9089
`direction: "col"` on a `flex`.
9190

92-
`box` and `section` exist because every other option injects layout — the props
93-
column above, plus `card`'s border, shadow and `CardContent` wrapper. When you
94-
want none of that, those two are the ones that give you none of it.
91+
`box` exists because every other option injects layout — the props column
92+
above, plus `card`'s border, shadow and `CardContent` wrapper. When you want
93+
none of that, `box` is the one that gives you none of it. It always renders a
94+
`div`, so it is never a landmark: when a JSON page needs one, use the curated
95+
page block — `page:section`, `page:footer` and `page:sidebar` render a
96+
`section`, `footer` and `aside` around their `children`, each with layout of
97+
its own (`page:section` spaces its children with `space-y-4`; `page:footer`
98+
draws a separator above a justified, muted row; `page:sidebar` is a
99+
`w-full md:w-80 shrink-0` column, fixed at 20rem from `md` up), and
100+
`page:header` renders the page's `header`, a title row (`title`, `subtitle`,
101+
`breadcrumb`, `actions`) that takes no `children`. The bare HTML sectioning
102+
tags (`section`, `header`, `nav`, …) are not curated blocks; they belong to
103+
`kind:'html'` pages.
95104

96105
### 4. Wire renderer and registry cleanly
97106

0 commit comments

Comments
 (0)