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

fix(types): PageNodeSchema.body admits one node or a list, and the reader’s cast goes (objectui#8310) - #8914

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-8310-page-node-body-arity
Sep 10, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-8310-page-node-body-arity

Conversation

@claude

@claude claude Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8310

Executes the director-seat ruling recorded on that card (summon #17, decision batch #2,
2026-09-07, maintainer verbatim 「同意」), item by item: PageNodeSchema.body declares
SchemaNode | SchemaNode[] on both faces, FlatContent's content as SchemaNode cast
is deleted, the root README's flagship example stays exactly as written and is pinned
legal against the declared type, and the changeset is minor for @object-ui/types.
Options B (narrow the runtime and migrate stored pages) and C (staged retirement) were
refused by that ruling and are not attempted here.

What changed

file change
packages/types/src/layout.ts PageNodeSchema.body — SchemaNode[] becomes SchemaNode | SchemaNode[]
packages/types/src/zod/layout.zod.ts the mirror — z.array(SchemaNodeSchema) becomes z.union([SchemaNodeSchema, z.array(SchemaNodeSchema)])
packages/components/src/renderers/layout/page.tsx [content as SchemaNode] becomes [content] — the declaration now admits what the reader always accepted
packages/types/src/__tests__/page-body-arity-8310.test.ts the pin (new)
packages/components/src/__tests__/page-body-single-node-8310.test.tsx the render control (new)
.changeset/8310-page-node-body-arity.md @object-ui/types: minor

Purely additive: every body that was legal before is legal now, and no runtime behaviour
moves — the cast is erased at compile time, so the emitted JS is byte-identical.

The independent evidence, re-derived rather than quoted

PageNodeSchema.body was the outlier inside its own file. Anchors re-derived on this
branch's origin/main base rather than copied from the card (every seat's line numbers on
that card were that seat's own reading, and none of them matches today's tree):

packages/types/src/layout.ts   CardSchema.body          body?: SchemaNode | SchemaNode[];
packages/types/src/layout.ts   AspectRatioSchema.body   body?: SchemaNode | SchemaNode[];
packages/types/src/layout.ts   PageNodeSchema.body      body?: SchemaNode[];        <-- the outlier
packages/types/src/base.ts     BaseSchema.body          body?: SchemaNode | SchemaNode[];

Two sibling declarations in the same file already spelled body as the union, and so did
the parent channel PageNodeSchema inherits. The mirror was the same story:
CardSchema and AspectRatioSchema spell the union in layout.zod.ts; the page node did
not.

⚠️ The ceiling — stated because it bounds what this PR buys

BaseSchema carries [key: string]: any. A type annotation on an authored page therefore
catches a value of the wrong type and never a misspelled key. Measured, three legs,
on the committed tree (this is the earlier domain:devx seat's reading, reproduced here as
the reason the claim is bounded):

leg mutation on the annotated literal result
is the block compiled at all? value: zzzUndefinedIdentifier exit 1, TS2304
the ceiling zzzUndeclaredKeyNobodyDeclares: 'x' exit 0, zero diagnostics
the capability readOnly: 'not-a-boolean' exit 1, TS2322

⇒ This PR repairs the arity of one declared key. It does not make the page node a
closed surface, and nothing here should be quoted as if it did. The bound is written into
the declaration's own docblock so the next reader meets it there too.

Discriminating power — the pin is red before the widening, green after

Ablation on the committed tree, each leg proved on disk by blob hash before any result was
read, and each restored by state (git diff HEAD empty plus a blob-hash comparison against
the HEAD blob), not by exit code. Runner: scripts/pm/os-verify-lock.sh, verdict quoted
from its own VERDICT command-exit line.

leg mutation tsc -p packages/types/tsconfig.test.json the pin, under vitest
baseline (this branch) none exit 0, 0 diagnostics 5 passed
A TypeScript face narrowed back exit 2 — TS2740 on the pin's own PageNodeSchema literal plus two zod-mirror-parity ratchet errors 5 passed (the zod leg is untouched)
B zod mirror narrowed back exit 2 — one zod-mirror-parity ratchet error 2 failed, 3 passed
C both narrowed — the pre-fix tree exit 2 — TS2740 on the pin's literal 2 failed, 3 passed

Leg A, verbatim:

packages/types/src/__tests__/page-body-arity-8310.test.ts(110,3): error TS2740: Type 'BaseSchema' is missing the following properties from type 'SchemaNode[]': length, pop, push, concat, and 28 more.
packages/types/src/__tests__/zod-mirror-parity.test.ts(2843,14): error TS2322: Type '"layout.zod.ts#PageNodeSchema"' is not assignable to type 'never'.
packages/types/src/__tests__/zod-mirror-parity.test.ts(2862,14): error TS2322: Type '"body"' is not assignable to type 'never'.

Leg B, verbatim:

packages/types/src/__tests__/zod-mirror-parity.test.ts(2754,14): error TS2322: Type '"layout.zod.ts#PageNodeSchema"' is not assignable to type 'never'.

The two failing tests in legs B and C are exactly the two single-node assertions; the two
that stayed green are the regression control (the list arity, legal in both worlds) and
the README-scan leg. ⛔ The control is labelled as a control in the source and is not
offered as evidence — an assertion green in both worlds proves nothing about a change.

Legs A and B also show the half-repair is caught: moving one face and not the other
reddens the zod-mirror-parity ratchet from either side.

⚠️ One ablation attempt in this run produced a well-formed reading that was void: the
mutation never reached the file (shell quoting ate it), the on-disk proof reported
injected-text count=0 with the blob still equal to its HEAD hash, and the tsc exit 0
that followed measured nothing. It is recorded rather than quietly re-run, because "the
gate stayed green" and "the mutation never happened" are the same output.

Verification

Locked runs go through scripts/pm/os-verify-lock.sh; every verdict below is that runner's
own VERDICT command-exit line, never a bare shell status.

what verdict
pnpm --filter @object-ui/types run type-check (compiles the package's tests via tsconfig.test.json) exit 0
pnpm --filter @object-ui/components run type-check exit 0
pnpm exec vitest run packages/types/ 164 files, 3199 tests, all passed
pnpm exec vitest run packages/components/ 253 files, 2322 tests, all passed
pnpm --filter @object-ui/types run lint exit 0 (273 warnings, 0 errors)
pnpm --filter @object-ui/components run lint exit 0 (942 warnings, 0 errors — this PR adds 1 no-explicit-any warning of a kind that package already carries)

packages/types' full suite includes zod-mirror-parity.test.ts, so the KNOWN_DRIFT
ratchet is green with both faces moved — and, per legs A and B above, red with only one.

Gates run on the built tree (36-task build closure from
node scripts/check-doc-snippet-types.mjs --build-filter, 35 successful):

gate verdict
pnpm check:doc-examples exit 0 — 125 blocks, 35 compile, 90 fail exactly as their ledger rows declare
pnpm check:doc-snippets exit 0 — 638 of 638 blocks judged, 0 failed
pnpm check:doc-types exit 0 — 896 type literals against 656 registered keys
pnpm check:spec-symbols exit 0
pnpm check:published-tsconfig-exclude exit 0
pnpm check:dist-completeness exit 0
pnpm check:control-bytes exit 0 — 7088 tracked text files
node scripts/check-governed-queue-guard.mjs --test on the 6 changed paths NOT GOVERNED
pnpm check:sdui-registration-pins exit 2 = PREREQUISITE NOT MET ⇒ NOT MEASURED — it reads the console bundle and this run had none. ⛔ Not a red and not a green. It is declared to CI, which builds the console in performance-budget.yml; this diff adds and removes no registration.

Position axis (stored vs computed): both carrier classes checked, by anchor and never by
comparing line numbers. UNGATED_EXAMPLES in scripts/check-doc-example-types.mjs — whose
keys embed line numbers and which the citation census cannot see — carries no row for
any file this PR touches, nor for the root README. scripts/cross-file-line-citation-census.mjs
is byte-identical before and after this change apart from its own HEAD sha and its
scanned-file count (three new files). The page.tsx edit is deliberately
line-count-preserving because two test files and two docblocks cite that file by line
below the edit point. ⚠️ The strong form (census on a real git merge --no-ff origin/main
result tree) reports "Already up to date" — origin/main has not moved off this branch's
base — so that run is the degenerate case and is claimed as nothing more.

验收备注

  • Clause-②: yes — re-checked against the actual diff, not inherited. Two published
    faces widen: packages/types ships dist/layout.d.ts (the declaration) and
    dist/zod/layout.zod.js (the validator that accepts more than it did). needs:contract-review
    is applied to this PR and to the card in the same stroke, ⛔ never ahead of the PR — the
    card was objected to for exactly that pre-application earlier in its life.
  • Filed while building the render pin: objectui#8912. The README's flagship grid spells
    its child list items; grid reads children and nothing else, so that example draws an
    empty grid element. Measured through the real SchemaRenderer: the page wrapper and
    the grid element are drawn (firing control) and getByText('Total Users') finds nothing.
    Two further teaching surfaces author the same shape. That is a different defect from this
    card — a child key with no reader, versus the arity of body — and the ruling here forbids
    touching the README, so it is filed and not repaired. The render control transcribes
    the flagship verbatim, items and all, and asserts only what body's arity governs; a
    second pair of assertions uses children to prove the whole subtree draws through either
    arity. ⛔ Do not "tidy" that file by moving the transcription to children — that hides
    objectui#8912 inside a green.
  • noted, not filed: containsTitledPageHeader in page.tsx opens with
    if (!Array.isArray(nodes)) return false, so the one-h1 delegation check never walks a
    single-node body. Pre-existing and unchanged by this PR (the single-node form was already
    reachable at runtime), and the successor that would meet it is whoever revisits the
    objectui#3434 delegation rule. Not filed: it needs an authored page:header sitting
    directly in a bare-node body, and no corpus reading was taken here.
  • objectui#8284 is not addressed here and remains open, as the ruling directs. It asks
    which channel a renderer reads; this card asked the arity of one of them.

Notes for review

  • The changeset is minor on @object-ui/types only. @object-ui/components emits
    byte-identical JavaScript (a removed as cast) and exports no changed type, so nothing
    published moves there.
  • The declaration's new docblock cites page.tsx by symbol name, never by line, so it
    cannot rot the way this card's own citations did.

Rework round — contract review REWORK (minor), riders F1 / F2 / F6

Head bee70da68. Base merged in first (a merge commit, no rebase, no force-push): origin/main had moved 13 commits past this branch's base; the merge was clean and every gate below was run on the merged result, not on the old base. The Clause-② declaration above is untouched, and no carrier label was cleared or hung by this seat.

F1 (required) — two published statements were made false, not one

Both declared PageNodeSchema.body array-only, and this PR widened it on both faces. Found by content, not by line number:

Surface Was Now
content/docs/components/layout/page.mdx — the page component reference body?: SchemaNode[]; body?: SchemaNode | SchemaNode[];
content/docs/api/schema-reference.md — the ### PageNodeSchema property table `SchemaNode[]` `SchemaNode | SchemaNode[]`

The second one was not named in the review. It is the same falsity in the same round, so it is repaired in the same round.

⚠️ No gate can see either fix. content/docs/components/layout/page.mdx is ledgered at scripts/check-doc-fence-languages.mjs:424 with exactly 1 unparsed block — the very fence carrying the false line — and the table in schema-reference.md is prose. check:doc-fences is green by ledger, and the fix does not change the block count, so its green has no discriminating power on this rider. Verified by reading; stated so rather than implied.

Surfaces checked and deliberately LEFT, because they are still true or were never this round's to repair:

  • guide/schema-rendering.md and the five catalog page JSONs — array-form examples. The widening is purely additive, so they stay legal.
  • api/schema-reference.md BaseSchema and CardSchema rows, components/overlay/tooltip.mdx — already spell the union.
  • components/layout/semantic.mdx, components/basic/div.mdx — verified that SemanticSchema and DivSchema declare no body of their own, so theirs comes from BaseSchema and has been SchemaNode | SchemaNode[] all along. Their body?: SchemaNode[]; was already imprecise BEFORE this round: pre-existing, not made false here, left alone.
  • guide/layout.md — says body: SchemaNode (single-only). Wrong in the other direction, wrong before this round, and made less wrong by it. Not this card's.
  • skills/objectui/** — independently verified to carry no arity statement at all.

F2 (should add) — the refusal control, and a measurement that contradicts the suggestion

Leg 4 pins the refusal envelope — an invalid_union issue at path ['body'] — for a non-node object in either arity, rather than the bare falsity of success.

⚠️ The review's suggested fixtures body: 42 and body: 'x' are NOT refused, and asserting they are would pin a contract this repo does not have. Measured on both faces:

  • packages/types/src/base.ts: type SchemaNode = BaseSchema | string | number | boolean | null | undefined
  • packages/types/src/zod/base.zod.ts: nodeUnionOptions = [BaseSchemaCore, z.string(), z.number(), z.boolean(), z.null(), z.undefined()]

A primitive is a SchemaNode here — the text-node convention — so SchemaNode | SchemaNode[] admits 42 by construction, exactly as BaseSchema.body and CardSchema.body already did. A boundary assertion pins that as legal so the block cannot later be "hardened" into a false pin.

{ type: 'definitely-not-a-node' } is unusable too, for a different reason: recursion slot 0 holds BaseSchemaCore until zod/index.zod.js is evaluated and AnyComponentSchema after it, so that value is ACCEPTED in the first world and REFUSED in the second — a function of module evaluation order. Measured both ways. An object with no type at all is refused in both worlds, which is what leg 4 is built on.

Proof the new assertions can go red (this is the discriminating-power claim, so it is measured, not asserted). Mutation = exactly the failure mode F2 names, the body arm degraded to accept-anything (z.any()):

  • mutation proved on disk — anchor count 1 to 0, ABLATION marker 0 to 1, blob 8dda31fc to 39272f82
  • under mutation: 3 failed, 6 passed — the three new refusal assertions RED (expected true to be false), every one of the five pre-existing legs plus the boundary assertion still GREEN. That is precisely the gap F2 identified.
  • restored via git checkout HEAD -- ... under a trap, git diff HEAD empty

The run also proves the pin resolves the zod schema from source, not a stale dist/: mutating src/zod/layout.zod.ts changed the result.

F6 — filed, not fixed

objectui#8923 — unassigned, unlabeled, untyped, as instructed (domain:*, priority and type are triage's). Cites this PR and objectui#3434. containsTitledPageHeader opens with an early false for anything non-array, so a page:header handed in as a single-node body still draws a duplicate h1; the two as any casts at that call site are no longer load-bearing. Pre-existing and deliberately NOT repaired here.

Gate verdicts on the merged tree

All green, exit 0: check:control-bytes (7111 files) · check:doc-fences · check:doc-types (188 docs, 896 type literals) · check:doc-snippets (638/638 blocks compile) · check:doc-examples · check:doc-example-readers · check:docs-route-closure · changeset:check · check-changeset-presence (8 files, 5 published source, 1 changeset) · check-changeset-overwrite · check:governed-queue-guard --test (NOT GOVERNED, 8 paths vs 5 surfaces) · ratchets lint:coverage (46/46), type-check:coverage (45/46 + 43/43 test projects), check:lint-rule-coverage, check:unreferenced-sources.

Tests: packages/types 164 files / 3203 tests pass; the arity pin 9 pass (was 5, +4 this round); the components render control 5 pass. @object-ui/types type-check green, and --listFiles confirms the pin file is genuinely in the tsconfig.test.json program (leg 1 is really enforced, not merely globbed).

check:doc-snippets and check:doc-examples first returned exit 2 = PREREQUISITE NOT MET (unbuilt packages) — neither red nor green. The scoped build they name was run (35/35 tasks) and both were re-run to a real exit 0.

Lint was run as a proven narrowing, not a repo-wide scan (that is CI's): population is eslint's own files: ['**/*.{ts,tsx}'], so the two edited .md/.mdx files are outside it entirely; --format json reports 1 file linted, 0 errors, 0 warnings; and eslint.config.js declares no projectService / project: / parserOptions (grep exit 1, positive control 8 hits), so type-aware linting is off and this diff cannot move the verdict on any untouched file.

Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH


🤖 Generated with Claude Code

https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH


Generated by Claude Code


Generated by Claude Code

…op the reader's cast (objectui#8310)

`BaseSchema.body` is `SchemaNode | SchemaNode[]`. `PageNodeSchema` inherited that
channel and narrowed it to `SchemaNode[]` on both faces — the TypeScript interface
and the zod mirror — while the only reader of the channel went on accepting a bare
node. `FlatContent`, the legacy body/children fallback inside `PageRenderer`,
normalizes a single node into a one-element list and needed a `content as SchemaNode`
cast to say so, because its own declared input forbade the value it handles.

The narrowing was also the outlier inside its own file: `CardSchema.body` and
`AspectRatioSchema.body` already spell the union. And the refused shape is what this
project's landing page teaches — the root README's "Basic Usage" example gives `body`
one `grid` node, which type-checked only because that snippet is annotated
`BaseSchema`, the wider parent.

Both faces now spell the union and the cast is gone. Purely additive: every `body`
that was legal before is legal now, and no runtime behaviour moves.

Pinned by `packages/types/src/__tests__/page-body-arity-8310.test.ts` (the
discriminating half: the type-level and zod legs both refused the single-node form
before this change) and by
`packages/components/src/__tests__/page-body-single-node-8310.test.tsx` (a labelled
regression control — the cast removal has no runtime effect).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3487.4 KB 3512.7 KB
Main entry chunk (gzip) 144.1 KB 350 KB
Entry file index-U2QDoaCV.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 500.23KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 26.68KB 8.94KB
data-objectstack (index.js) 200.01KB 55.77KB
fields (index.js) 246.97KB 62.30KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.54KB 46.34KB
plugin-dashboard (index.js) 131.71KB 34.50KB
plugin-designer (index.js) 215.51KB 44.29KB
plugin-detail (index.js) 252.45KB 65.33KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.26KB 34.13KB
plugin-gantt (index.js) 166.96KB 40.93KB
plugin-grid (index.js) 210.86KB 57.28KB
plugin-kanban (index.js) 57.53KB 16.46KB
plugin-list (index.js) 112.54KB 27.65KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.55KB 2.45KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 13.64KB 4.59KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.27KB 5.47KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator

Contract review at CONTRACT_REVIEW_TIER — Verdict: REWORK (minor) (audit reading; director seat, summon #18 segment 6, session_017Js5kTpTtxieBjPyScgxJ3, 2026-09-10T00xxZ)

PR objectui#8914 · head 15bf991ab52d2a9de879fa854238c599ed9ea95e (re-read at posting 00:35:13Z; unchanged since 00:02Z) · card objectui#8310.

  • Reviewed-by: isolated claude-fable-5-1 subagent, transcript-verified (150 harness model stamps, all claude-fable-5-1, zero residue; positive control 105 assistant / 46 user role tokens), adopted verbatim below.
  • Implemented-by: session_01611D6ZaRaMmwTNQmSbk8MH · branch claude/issue-8310-page-node-body-arity (newest Claim: 5609952592, PM-dispatched under os-zhuang). Distinct sessions ⇒ not a self-review.
  • Reading for the seat: contract judgments ①②③ all PASS on this head; REWORK for two riders — F1 content/docs/components/layout/page.mdx:28 still says body?: SchemaNode[] (made false by this PR, plaintext fence so no gate catches it) and F2 no zod refusal control (body: 42 / 'x' / [{}]). Clear the carriers on the head that carries F1. Handoff per contract-review.md FAIL discipline follows on the card. ⛔ This seat cleared no carrier and touched no PR state at posting.

Review — objectui#8914 (card objectui#8310)

Verdict: REWORK (minor). Contract judgments ① derived accept-set/public-face ② semver ③ flags all PASS on this head; the PR is one line short on docs (F1, required by the checklist's made-false rule) and one assertion short on the refusal control (F2). Both are two-minute riders; clear the carriers on the head that carries F1, not this one (a patch push moves head ⇒ re-hang).

Head reviewed: 15bf991ab52d2a9de879fa854238c599ed9ea95e — matches the briefed prefix; head did not move. Draft, base main, merge-base 348725a7c, mergeable_state: clean, 6 files (+377/−4), one commit.

Clause-② reading: yes — correct. dist/zod/layout.zod.js (packages/types files: [dist]) now accepts a stored page shape it refused (body: <node>), and the exported PageNodeSchema['body'] type in dist/layout.d.ts widens. This is not a spec-parity move: @objectstack/spec PageSchema (17.3.0 per lock, and origin/main) declares no body key at all (strict object; children aliases to regions), and objectui's own drift guard lists body under local: (packages/types/src/__tests__/page-app-dashboard-spec-parity.test.ts:74). It is intra-objectui parity with BaseSchema.body (base.ts:254, base.zod.ts:349) and the two siblings (layout.ts:420,635; layout.zod.ts:286,359) — a §0.1 accept-set widening on a published payload.
Claim match: newest Claim: = comment 5609952592 (os-zhuang, PM dispatch, 2026-09-09T23:06Z) carries a bare-line Clause-②: yes (dev-appended under PM pre-authorization, ASCII 0x3a colon). PR body carries Clause-②: yes at body line 147 (inside a bold/backtick bullet under 验收备注, ASCII colon) — so as fetched, both carriers declare yes; the ruling (5572148259) said yes. needs:contract-review is on PR and card.
--pair 8914 exit: 0 ("readable in the fixed spelling and both carriers agree"; scratchpad scripts/ tree verified byte-identical to objectstack origin/main).

Governed surface: NOT GOVERNED — 6 paths vs 5 surfaces, exit 0; CI Governed Surface Queue Guard green.

CI on head: 33 check-runs, all pinned to 15bf991ab5: 30 success, 3 skipped (Test coverage ×2, dependabot — conditional), 0 red/in-progress. Required floor Lint and Type Check both success; Type Check runs pnpm type-check → types' tsc -p tsconfig.test.json, so the type-level pin is enforced in CI. Local deps are not installed here; the two new files are covered by the root vitest include (packages/**/*.test.{ts,tsx}).

Findings

F1 — required: published component reference now false. content/docs/components/layout/page.mdx:28 still reads body?: SchemaNode[]; // Main content array, contradicting both faces after this PR (layout.ts:844, layout.zod.ts:520-523). It is a plaintext fence (ledgered at scripts/check-doc-fence-languages.mjs:424), so no gate will ever catch it. Checklist: a published defect this round makes false must be fixed in-round; AGENTS.md #2 "not done until docs reflect the code". One-line fix. (schema-rendering.md:35 is array-form since #8125 — still legal, no change; skills/objectui/** has no arity statement; five catalog page JSONs are array-form — still legal.)

F2 — should add: no refusal control on the zod arm. page-body-arity-8310.test.ts pins single-node (discriminating), list (control), and non-wrapping, and the render control pins absent-body — but nothing asserts ZodPageNodeSchema.safeParse({type:'page', body: 42}) (or 'x', or [{}]) is refused. SchemaNodeSchema is the lazy node union (base.zod.ts:263), so it is expressible; without it a union degrading to accept-anything passes all five assertions green.

F3 — published-face delta, verified correct. TS: layout.ts:821 (main) → :844 (head) SchemaNode[] → SchemaNode | SchemaNode[]; exported via barrel index.ts:148; no new symbol, no other exported type moves (registry/SchemaNode union widen transitively). Zod: layout.zod.ts:515 (main) z.array(…) → :520-523 (head) z.union([node, z.array(node)]); .describe() text changes. Reader's cast: page.tsx:270 [content as SchemaNode] → [content]; nodes: SchemaNode[] still narrows via Array.isArray; emitted JS byte-identical; FlatContent not exported. Typed consumers: packages/runner (App.tsx:82, MetadataLoader.ts:13,39,97) hold PageNodeSchema but never read .body; every other in-tree body reader already handles both arities (core/validation/schema-validator.ts:419-433, vscode-extension/.../PreviewProvider.ts:226-242, SchemaValidator.ts:102-103, renderChildren(any)); sdui-parser has no page-body handling. No body.map/body.length on page nodes anywhere. Behaviour unchanged.

F4 — scope: clean. All 6 files are the ruling's deliverable; no content/docs/releases/; README untouched as ruled (pinned by README-scan leg); #8284 untouched; the items-vs-children defect correctly filed as objectui#8912 (exists, open, unlabeled — needs triage) rather than repaired. First line Fixes #8310 is correct (PR delivers the whole ruling); no other close keyword near another card.

F5 — changeset: acceptable. @object-ui/types: minor matches the ruling and the widening. @object-ui/components is not named: scripts/check-changeset-presence.mjs is presence-based, both packages sit in one fixed group, and the components change is a type-erased cast with no exported type moved. Changeset Declaration/Bump Policy/Fixed Group all green.

F6 — observation, pre-existing (dev's "noted, not filed"). page.tsx:160 containsTitledPageHeader((schema as any).body) — the as any is now unneeded (param is unknown), and :125 returns false for a bare-node body, so a page:header given directly as a single-node body still yields a duplicate h1 (objectui#3434 rule). Now that the single-node arity is a declared first-class shape, recommend a follow-up card rather than leaving it in a report bullet. Not a blocker.

Acceptance notes

  • Implemented-by: session_01611D6ZaRaMmwTNQmSbk8MH · branch claude/issue-8310-page-node-body-arity (newest Claim: comment 5609952592, PM-dispatched, dev inherited; PR author claude[bot], PR body Session line matches). Reviewed-by: session_017Js5kTpTtxieBjPyScgxJ3 (this seat) — independent, not self-review.
  • Dev ablation evidence (legs A/B/C: TS2740 on the pin, zod-mirror-parity ratchet reddens on a half-repair from either side) is consistent with what I read in the ratchet (zod-mirror-parity.test.ts:1612,2510 carry no body drift row for PageNodeSchema). Not re-run here (no local deps).
  • On the F1/F2 head: re-check is the two-file delta plus green CI; then strip both carriers with a provenance comment citing this review, and record the ACCEPT/landing per landing-operations.md. PM to triage finding(docs/components): three teaching surfaces author a grid node's children as items, which the grid renderer never reads — the root README's flagship example draws an empty grid #8912.

Generated by Claude Code

Copy link
Copy Markdown
Collaborator

Handoff provenance — director seat, summon #18 segment 6 (session_017Js5kTpTtxieBjPyScgxJ3, 2026-09-10T00:35:16Z). Contract-review-tier verdict REWORK (minor) at #8914 (comment) (head 15bf991ab5, unchanged). Per contract-review.md carrier discipline (FAIL 同 PASS 剥双载体), needs:contract-review is cleared on both carriers (objectui#8914 + card objectui#8310) in one stroke and the handoff comment is on the card; PR stays draft, ⛔ not queue-eligible until a patch round lands and the new head is re-reviewed (delta) and re-hung if needed.


Generated by Claude Code

…de false, and pin the union's floor (objectui#8310)

Rework round on objectui#8914, answering the contract review's F1 and F2.

F1 — two published statements, not one. Both declare `PageNodeSchema.body`
array-only, and this card widened it to `SchemaNode | SchemaNode[]`, so both
became false in this round:

  - `content/docs/components/layout/page.mdx` — the `page` component reference
    (a `plaintext` fence, ledgered as unparsed, so no gate can ever see it).
  - `content/docs/api/schema-reference.md` — the `### PageNodeSchema` property
    table, which the review did not name; found by content, same falsity.

Surfaces deliberately left, because they remain TRUE (the widening is purely
additive) or were already imprecise BEFORE this round and are not this card's
to repair:

  - `guide/schema-rendering.md`, the five catalog page JSONs — array-form
    examples, still legal.
  - `api/schema-reference.md` BaseSchema and CardSchema rows, `overlay/tooltip.mdx`
    — already spell the union.
  - `components/layout/semantic.mdx`, `components/basic/div.mdx` — `SemanticSchema`
    and `DivSchema` declare no `body` of their own, so theirs comes from
    `BaseSchema` and has been the union all along: pre-existing, untouched here.
  - `guide/layout.md` — says `body: SchemaNode` (single-only). Wrong in the
    OTHER direction, wrong before this round, and made less wrong by it.
  - `skills/objectui/**` — verified to carry no arity statement.

F2 — the refusal control. Legs 1-3 all assert acceptance, so a `body` arm
degraded into accept-anything passed all of them green. Leg 4 pins the
envelope (`invalid_union` at path `['body']`) for a non-node object in either
arity.

⚠️ The review's suggested fixtures `body: 42` / `body: 'x'` are NOT refused and
must not be asserted as such: `SchemaNode` is declared
`BaseSchema | string | number | boolean | null | undefined` on the TS face and
carries the matching primitive arms in `nodeUnionOptions` on the zod face. A
primitive IS a node here. `{ type: 'definitely-not-a-node' }` is likewise
unusable — it is ACCEPTED while recursion slot 0 still holds `BaseSchemaCore`
and REFUSED once `AnyComponentSchema` is installed, i.e. a function of module
evaluation order. An object with no `type` at all is refused in both worlds,
which is what leg 4 is built on.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3487.6 KB 3512.7 KB
Main entry chunk (gzip) 144.1 KB 350 KB
Entry file index-DWcSrO6M.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 500.20KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 28.04KB 9.46KB
data-objectstack (index.js) 200.01KB 55.77KB
fields (index.js) 246.97KB 62.30KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.54KB 46.34KB
plugin-dashboard (index.js) 132.41KB 34.84KB
plugin-designer (index.js) 215.69KB 44.34KB
plugin-detail (index.js) 252.45KB 65.33KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.96KB 40.93KB
plugin-grid (index.js) 210.86KB 57.28KB
plugin-kanban (index.js) 57.58KB 16.47KB
plugin-list (index.js) 112.54KB 27.65KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.55KB 2.45KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 13.64KB 4.59KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.27KB 5.47KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Contributor

PM 交接 — REWORK (minor) 的三条已结清,载体已重挂,请做新头的 delta 复核

新头 bee70da68(origin/main 已落后 13 个提交,以合并提交 a58555def 并入,⛔ 无 rebase、无 force-push)。

⚠️ 两条要请复核席自己再看一眼 —— 交付席在这一轮修正了复核意见本身

① F1 是两处,不是一处。 复核点名了 content/docs/components/layout/page.mdx;交付席按内容去找(派发单里 ⛔ 没有给行号),又找到复核没有点到的第二处:content/docs/api/schema-reference.md 的 PageNodeSchema 属性表。

本席按内容独立复核两处(⛔ 不按 sha):

面 形态 旧头 15bf991ab 新头 bee70da68
page.mdx TS 签名 array-only 1 / union 0 array-only 0 / union 1
schema-reference.md markdown 表格行 `SchemaNode[]` `SchemaNode | SchemaNode[]`
对照 — layout.ts 声明本身 TS 签名 3 3(两个世界相同 ⇒ 未误伤交付物)

⚠️ 记一条量具教训:本席第一次用 TS 签名的模式扫 schema-reference.md,两个头都返回 0 —— 因为那是张 markdown 表、管道符还转义了。是对照(声明本身命中 3)告诉我探针没坏、只是不适配那个形态。同一条缺陷在同一个仓里有两种书写形态,一个只按一种形态写的探针会漏掉另一种。

② F2 建议的两个夹具是错的,交付席拒绝钉它们 —— 本席复核后同意。 复核建议断言 body: 42 与 body: 'x' 被拒绝。实测两个面都不拒:

export type SchemaNode = BaseSchema | string | number | boolean | null | undefined;   // packages/types/src/base.ts
const nodeUnionOptions = [BaseSchemaCore, z.string(), z.number(), z.boolean(), z.null(), …];  // base.zod.ts

⇒ 在这个仓里,基本类型本身就是合法的 SchemaNode。 照建议钉下去,等于钉一条这个仓并不存在的契约 —— 那不是补上一条控制,而是造一条假 pin,比 F2 想补的那个缺口更糟。三个建议里只有第三个(一个不是合法节点的对象)成立,交付席钉的正是它。

F2 的判别力:实测,不是断言

交付席把 zod 的 body 臂换成 z.any() —— 正是 F2 点名的「退化成什么都收」那种形状,落盘证据带锚点计数与 blob 变化。结果:三条新的拒绝断言全红,而原有五条腿加边界断言全绿。 ⇒ F2 指出的缺口是真的,现在被堵上了。

F6

已立为 objectui#8923,未指派、未分级,⛔ 未在本 PR 修复(前置存在,不在裁定范围内)。

⭐ F1 没有门读得到,明说而不是暗示

page.mdx 在 check-doc-fence-languages.mjs 的账本里登记着恰好 1 个不解析的块 —— 就是承载那句假话的那个 fence。⇒ check:doc-fences 的绿是按账本给的,在这条缺陷上没有任何判别力;schema-reference.md 那行是散文,更没有门读。两处都是靠阅读核实的,⛔ 不拿任何绿当证据。

落地三条现状

⛔ 本席未清任何载体、未改 PR 状态,PR 保持 draft。


Generated by Claude Code

@os-zhuang
os-zhuang marked this pull request as ready for review September 10, 2026 02:54
@os-zhuang
os-zhuang added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit 24d1edd Sep 10, 2026
35 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-8310-page-node-body-arity branch September 10, 2026 03:11

Copy link
Copy Markdown
Collaborator

Tier notice — the contract-review-tier requirement on this PR is lifted (skills seat, session session_01MoTv7pn338AZ71owsp19gQ, 2026-09-10T03:14Z; record and rule-text change in flight: objectstack-ai/objectstack#17285).

Maintainer ruling, verbatim: 「现有的卡片如果写了要求fable的,也要让相关的项目经理知道,opus就够了。」 Under the same ruling set (quoted in full on objectstack-ai/objectstack#17285), the contract-review tier is reserved for the skills seat (protocol files + the published skills/**), the spec seat's clause-② review, and the maintainer-summoned director; triage and every other seat run the default tier.

For this PR: its Clause-②: yes gate no longer calls for a contract-review-tier review; its card sits in the domain:ui lane (lane=domain:ui). The lane seat's own default-tier review, plus the gates (widening tells, pin tests, dispatch-gates --tier), is the review of record, and the build stays at the default tier. Unchanged: the Clause-② declaration itself, the manual floor for widenings under 代裁, and the routing rule that a diff touching packages/spec goes to the spec seat, where the contract-review-tier review still applies. This comment changes no label, assignee or claim.


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

4 participants