This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit dded788
feat(types): the four page: containers take their child list in properties.children, and objectql.zod.ts shares propsBag (objectui#10872, batch 6) (#11222)
Part of #10872
Clause-②: yes
**objectui#10872 batch 6: the four `page:` containers take their child
list in `properties.children`.** `page:card`, `page:section`,
`page:footer` and `page:sidebar` now refuse a node-level `children` by
name, and restate `body` with the same message. The message's first
sentence names `properties.children`, the member each block's
`@objectstack/spec` row declares. Also in this PR, with no behaviour
change: `objectql.zod.ts`'s two public-block arms import the one
`propsBag` helper instead of keeping a byte copy of it.
The card stays open. `record:line_items` (no spec row yet) and the rest
of the flat-props / envelope-key batch remain, as the claim and release
`5909279008` list them.
## The ruling this executes, and the premises it rests on
The seat applied triage's `action:*` answer (`5906817482`: "The
`properties` bag is the contract", "B is not taken … a second dialect")
to this branch. The ruling holds only on premises 1–4 of the order, so
each was measured before the first edit to the four arms. All four hold
for all four containers.
| # | premise | reading (objectui `origin/main` `cfc9b6db98`, installed
`@objectstack/spec` 17.5.0) | holds |
|:--|:--|:--|:--|
| 1 | the installed spec refuses a node-level `children` on all four |
`PageComponentSchema.safeParse({ type, children: [node] })`:
`unrecognized_keys` with keys `["children"]` on each of the four. The
message reads "Unrecognized key(s) on this page component: `children`.
Before ADR-0089 D3a these were dropped silently…". `{ type, properties:
{ children } }` and a bare `{ type }` both pass. Control: `page:tabs`,
`page:header` and `record:details` give the same refusal, so the
instrument is live. | yes, 4 of 4 |
| 2 | each row declares `children` inside `properties` |
`ComponentPropsMap['page:card']` is `PageCardProps`, with keys `title`,
`bordered`, `actions`, `children`, `body`, `footer`, `aria`. `actions`
and `body` are `[REMOVED]` tombstones, and `body`'s text says "Rename
the key to `children`". The other three rows are all
`PageContainerProps` (identity checked), whose one key is `children`.
Every `children` is `z.array(z.unknown())` and optional, and each row
parses `{ children: [node] }`. | yes, 4 of 4 |
| 3 | a spec-shaped node renders its children through objectui today |
This was a one-off runtime probe, never committed, through the real
`SchemaRenderer`, `ActionProvider`, `I18nProvider` and the
`@object-ui/components` registry (happy-dom). Each container got two
`element:text` markers in `properties.children`. **All four rendered
both markers, in order, and the DOM was byte-identical to the node-level
spelling.** The roots were `div.rounded-lg.border.bg-card` (card),
`section.space-y-4`, the separator-led footer and
`aside.flex.flex-col.gap-4`. Control: with no children, the render had 0
markers. The mechanism is `SchemaRenderer`'s `properties` hoist, which
copies every bag key except `type` / `id` onto the node the renderer
reads. | yes, 4 of 4 |
| 4 | no objectui or objectstack writer emits a node-level `children` on
the four | Census: `node scripts/body-dialect-census.mjs --keys
page:card,page:section,page:footer,page:sidebar,page:tabs,page:accordion,grid,flex,card
--json`. **objectui** (9440 files): 7 nodes of the four types carry a
node-level `children`, all in the `test` bucket (six `page:section` and
one `page:card`, in app-shell render tests). There are 0 in `apps` /
`examples` / `content/docs` / `skills` / `packages/*/src`. Lit control:
`card` has 88 node-level `children` in `example-app` and `flex` has 251.
**objectstack** (`origin/main` `72f8c38201`, `apps` / `examples` /
`packages` / `content` archived into the scratchpad, 8379 files): 109
nodes of the four types (83 `page:card`, 20 `page:section`, 1
`page:footer`, 5 `page:sidebar`), and **0** carry a node-level
`children`. Lit control: `flex` has 2. The showcase's own `my-work` page
writes `page:card` with `properties.children`, and the spec lint's
`page-walk` says "`PageComponentSchema` is `.strict()`, so a component
carries no `children` key of its own". **Writers read directly:** the
page designer's canvas addresses `properties.children` for `page:card`
and `page:section` (`childGroups` in `PageBlockCanvas`), and for any
block that already carries that array. The inspector writes every prop
into `properties` (`patchProp`). The default page synthesizer
(`buildDefaultPageSchema`'s `componentNode`) emits `{ type, properties
}` and none of the four types. | yes, 4 of 4 |
| 5 | `objectBlockPropsBag` is a byte copy of `propsBag` | With only the
function name normalised, the two 8-line bodies have the same md5
(`d7a54fe8…`) and `diff` exits 0. Folded: `propsBag` is exported from
`public-blocks.zod.ts` and `objectql.zod.ts` imports it. There is no
third copy, and the barrel still does not re-export it. | yes |
| 6 | `NAMESPACED_REFUSED_AT_TYPE` does not move | The diff of the
ratchet file against the base is empty, and
`registered-types-validate-ratchet-10859.test.ts` is green in the sweep
below. | yes |
## What changed
- `packages/types/src/zod/public-blocks.zod.ts`
- Each of the four arms declares `children` and `body` as
`retirementTombstone` members. Both are fed ONE string from a new local
composer, `pageContainerChildListGuidance(type, row)`. This is the
objectui#9256 construct with a different message: these blocks do render
their child list, so the neither-channel text would be false for them.
The first sentence names `properties.children`, the row (`PageCardProps`
/ `PageContainerProps`) and the node to write. The message also says the
spec refuses the node-level spelling, and that the hoist makes the move
a no-op at render time.
- `propsBag` is exported, and its docblock says it is the one copy,
internal, and not re-exported from `index.zod.ts`.
- The module docblock's "content channels" section gains a paragraph for
the four containers. The flat-key paragraph no longer says a flat `body`
on the containers is refused by the base's objectui#6771 retirement,
"whose `children` remedy they do render": this diff makes that false.
- `packages/types/src/zod/objectql.zod.ts`: the `objectBlockPropsBag`
copy is deleted, and `object-metric` and `object-master-detail-form`
build `properties` with the imported `propsBag`.
-
`packages/types/src/__tests__/container-children-channel-10872.test.ts`
(new, 102 tests), in four groups:
- (a) Refusal, on both faces. `invalid_type` at the key's own path, and
a first sentence naming `properties.children`, the block, the row and
the node to write. Neither the neither-channel text nor the "Did you
mean `body` → `children`?" remedy appears. One string feeds
`.describe()` and the issue message, every value is refused, and both
keys are members.
- (b) Positive controls, on both faces. `properties.children` parses,
the bare node parses, the bag spelling parses nested in a `page` while
the node-level spelling is refused there at `children.0.children`, and
`page:card`'s full row (`title`, `bordered`, `children`, `footer`)
parses.
- (c) The installed spec. It refuses the node-level spelling and passes
the bag spelling, and each row still declares `children`, so the remedy
names a real member.
- (d) The fold. Both `objectql.zod.ts` arms' `properties` description is
word-for-word the helper's text, from the same composer as the
`public-blocks.zod.ts` arms.
- `.changeset/10872-container-children-channel.md`: `'@object-ui/types':
minor`, `Clause-②: yes (narrowing)`, see below.
## Surface beyond the order's file list, each forced by this diff and
declared
- `content-channel-public-blocks-9256.test.ts`: its "CONTROL — `%s`
renders the node's child list, so it still takes `children`" rows
asserted that the four ACCEPT a node-level `children`, which is the
exact behaviour this batch narrows. The control keeps its purpose, which
is to show that a reader keeps its channel. It now asserts
`properties.children` parses on the arm and on `AnyComponentSchema`, and
that the node-level refusal is not the neither-channel text. Text of the
other rows is untouched.
- `record-alert-flat-body-remedy-10872.test.ts`: its "CONTROL arm —
`page:card` … keeps `BaseSchema`'s objectui#6771 refusal" asserted the
old `body` message on `page:card`, which this batch restates. The
control moves to `card`, which reads the node-level `children` and keeps
the objectui#6771 remedy. It asserts the same three facts, and a comment
records the move.
- `packages/types/src/zod/README.md`: one sentence. "Every arm except
the four `page:` containers … refuses `children` and `body`" would now
misdescribe the four, so it gains a sentence saying they refuse both
with a message naming `properties.children`. This follows AGENTS.md #2,
and batch 5's README hunk was ratified on the same ground.
- `.changeset/10872-public-block-zod-arms.md` (pending, batch 1): a
dated note only, with the frontmatter untouched. Its flat-props bullet
says `children` on the four is "judged against the base's own types",
and that `body` on `page:card` is refused "by the base's objectui#6771
retirement". Neither describes the release as a whole any more. This is
the dated-note precedent of batches 2–4 on that same file.
- `zod-mirror-parity.test.ts`: the four `EXCLUSIONS` reason strings name
the new members (text only, the order's allowance).
## Changeset: `minor`, and why
- The accept set narrows against `main` on four exported arms: a
node-level `children` is refused where it parsed. Hence `Clause-②: yes
(narrowing)`.
- The arm is `minor`, on the objectui#9256 / batch-5 precedent. This
repo forbids `major` in any changeset (one `fixed` group) and spells a
narrowing as `minor` with an explicit note.
- It is not breaking against the last release. The published
`@object-ui/types` 17.6.0 (npm `latest`, 2026-08-24) carries no
public-block arm: its dist has 0 hits for `PageCardBlockSchema` /
`PageSectionBlockSchema` / `PublicBlockComponentSchema`, against 1 each
for the controls `CardSchema` / `FlexSchema`. Its `safeValidateSchema`
answers `invalid_union` for `{ type: 'page:section' }`, with or without
children and with a bag, and for `page:footer` / `page:sidebar`, while
the control `{ type: 'card', children: [...] }` passes. So across the
release the accept set only widens.
## Tests (final head `573373f931`, `main` `e6bc087a30` merged in; all
heavy runs through `os-verify-lock`)
| command | verdict |
|:--|:--|
| `pnpm --filter '@object-ui/types^...' build` | exit 1
`ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT`. The closure is empty
(`@object-ui/types` has no workspace dependency), so nothing ran. Not a
red build. |
| `pnpm --filter @object-ui/types build` | exit 0, "dist completeness: 1
package(s) complete (136 emitted files verified)" |
| `pnpm --filter @object-ui/types type-check` | exit 0: three `tsc`
legs, and `tsconfig.test.json --listFilesOnly` lists the three edited or
new test files |
| `pnpm exec vitest run packages/types/` | exit 0, `Test Files 290
passed (290)`, `Tests 7012 passed (7012)` |
| arm-shape consumer sweep, 13 files: every non-`packages/types` hit of
`git grep -lw` on `AnyComponentSchema` / `StrictAnyComponentSchema` /
`PublicBlockComponentSchema` in tests (the `packages/types` hits run in
the row above), plus the app-shell `block-config-schema-parity-8216`
oracle, `check-handler-key-read-sites.test.ts` and
`registry-inputs-spec-parity.test.ts` | exit 0, `Test Files 13 passed
(13)`, `Tests 396 passed (396)`. Includes
`registered-types-validate-ratchet-10859.test.ts`. |
The same matrix ran green on `8e2dd4e1ed` before the merge of `main`:
290 files / 6984 tests, and the 13-file sweep with 396 tests.
**Ablation (proves the pin can fail; nothing permanent left behind).**
`node /home/user/objectstack/scripts/ablation-replace.mjs` ran nested
four deep in WRAP mode, one leg per arm, each with `--delete` of that
arm's two member lines. Each leg reported "ok mutation landed", with the
anchor count going from 1 to 0. During the mutation, `grep -c` for the
four constants' tombstone calls read 0. The pin files live in
`packages/types` and import the arms by relative source path, so there
is no `dist/` leg.
- Predicted: 60 red in the new pin, from the 16 children-refusal, 16
first-sentence and 16 remedy-text rows (8 + 16 + 16), the 8 one-string
rows, the 4 every-value children rows and the 8 nested-page rows. Also
predicted: 4 red in the objectui#9256 control, and 0 red among the
member, positive-control, spec and fold rows.
- Observed: `container-children-channel-10872.test.ts (102 tests | 60
failed)` and `content-channel-public-blocks-9256.test.ts (230 tests | 4
failed)`, which is `Tests 64 failed | 268 passed (332)`.
- Restored: each leg printed "ok restored: blob == HEAD (b6d53f2)
and `git diff HEAD` is empty", and the outer script's own check read
"git diff HEAD empty: yes".
## Gates (head `573373f931`, each exit captured before any pipe)
- `node scripts/check-changeset-presence.mjs`: exit 0. "7 source file(s)
of 1 released package(s) changed, and this change declares 1
changeset(s): .changeset/10872-container-children-channel.md."
- `pnpm changeset:check`: exit 0. "No changeset declares a `major`
bump."
- `check-changeset-overwrite`: exit 0, report-only. "1 changeset(s)
added, 1 modified, 0 deleted"; the modified one is the dated note, and
its frontmatter is unchanged.
- `check:changeset-claims`: exit 0, report-only. None of the 32 flagged
pending changesets names the four containers or the helper.
- `check:pending-changeset-literals`: exit 0.
- `check:control-bytes`: exit 0, "OK (scanned 9615 tracked text
file(s))". A `grep -naP` self-scan over the nine changed files found 0
lines.
- `check:new-line-citations`: exit 0, "0 new citation(s)".
- `check:handler-key-reads`: exit 0, "OK 139 arm(s) … 57 judged, 0 left
unjudged on an arm with an unresolved spread".
- All exit 0: `check:spec-symbols`, `check:test-path-roots`,
`check:installed-pin-claims`, `check:doc-types`, `check:doc-fences`,
`check-doc-links`, `check-type-check-coverage` ("43/43 packages compile
their tests"), `check:unreferenced-sources`, and
`markdown-test-inputs.mjs --audit` ("107 candidate test files, all
adjudicated"). This batch adds no markdown reader.
- eslint, narrowed, with `--no-inline-config --format json` over the six
changed TS files: 6 files, 0 errors. There are 3 pre-existing
`no-explicit-any` warnings outside the hunks. Invariance:
`--print-config` shows no `parserOptions.project` / `projectService`, so
linting is not type-aware and this diff cannot move a verdict on an
untouched file. The repo-wide `pnpm lint` is left to CI.
- `check-governed-queue-guard --test` over the nine paths: "NOT
GOVERNED".
- NOT MEASURED: `check:doc-snippets`, reason "PRECONDITION NOT MET (exit
2)". It needs 34 packages built, and the README change is prose outside
any fence. Left to CI.
- NOT MEASURED: `check:readme-exports`, reason exit 1, "531
self-import(s) could not be judged … the population COLLAPSED". Other
packages' `dist` is missing. Left to CI.
## Serial / overlap
`main` moved while this ran: PR objectui#11207 (`app.zod.ts` and its
pins) and five others landed. None touches a file of this diff. `git
merge-tree` was clean, `main` was merged in (merge, no rebase), and the
matrix above was rerun on the merge. The seat named an in-flight branch
for objectui#9547 that edits `objectql.zod.ts` (its `onNavigate` region)
and `zod-mirror-parity.test.ts` (its own rows). This diff's hunks there
are the helper region and the four container rows only.
## Acceptance notes (not filed; for the seat)
1. **The bag's nested nodes are not judged by objectui's validator.**
This predates the batch, and the batch makes the bag the only channel on
these four. The spec rows type `children` (and `page:tabs` /
`page:accordion` `items[].children`) as `z.array(z.unknown())`. So `{
type: 'page:section', properties: { children: [{ type:
'no-such-type-xyz' }] } }` parses green on both faces, and so does a
malformed `element:text` there. The same child written at node level was
refused (`invalid_union` at `children`). The spec's lint walks those bag
arrays by hand (`page-walk`), so `os validate` still judges them. What
this batch moves is only which spelling is accepted, not whether nested
content is judged by the publish gate. The pre-existing gap belongs in
its own card. Dedupe words: `properties.children nested node not
validated` · `bag slot children z.array(z.unknown()) objectui validate`
· `items[].children unjudged safeValidateSchema`.
2. **The parser tier still accepts the node-level spelling.**
`@object-ui/sdui-parser`'s `BASE_PROPS` lists `children`, and
`isContainer` authorises it on the four, so the manifest tier and the VS
Code validator pass a node-level `children` that both zod faces now
refuse. This is batch 3's `record:alert` pattern. The carrier is this
card's flat-props / envelope-key batch, whose order names both tiers. ⛔
Not touched here: the order excludes `packages/sdui-parser` and
`packages/vscode-extension`.
3. **A committed runtime pin for premise 3 is not in this PR.** Zone 3
suggested one. It would need `@object-ui/react` and
`@object-ui/components` in a DOM project, but `@object-ui/types` imports
no renderer and its tests run in the `unit` (node) project. Its home
would be `packages/components/src/__tests__/`, which is outside the
claimed surface. The probe's readings are in premise 3 above. If the
seat wants it pinned, a follow-up with that surface is a small test.
4. `skills/objectui/guides/page-builder.md` says the three thin
containers "render a `section`, `footer` and `aside` around their
`children`". That is prose, true at runtime, and names no node spelling.
It is governed, so it is only noted here.
---
_Generated by [Claude
Code](https://claude.ai/code/session_0122Knsowci76D2rBWReCzzZ)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2e3da72 commit dded788
9 files changed
Lines changed: 376 additions & 37 deletions
File tree
- .changeset
- packages/types/src
- __tests__
- zod
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
| |||
0 commit comments