This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
[WIP] Fix component registration issue in documentation page - #137
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
|
@copilot 文档的组件页面,每个组件都不能显示,应该是组件都没有注册 unknown component type |
- Updated icon component to properly convert kebab-case names to PascalCase for Lucide lookup - Fixed component registration by making @object-ui/core external in Vite build - Added `sideEffects: true` to package.json to prevent tree-shaking - Added explicit initializeComponents() export to ensure registration - Enhanced icon component to handle size, color, and className properties properly - Updated Next.js config to remove unnecessary transpilePackages configuration Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
huangyiirene
marked this pull request as ready for review
January 21, 2026 16:42
Copilot stopped work on behalf of
huangyiirene due to an error
January 21, 2026 16:43
This was referenced Sep 15, 2026
This was referenced Sep 16, 2026
hotlong
added a commit
that referenced
this pull request
Sep 16, 2026
Ruling A on objectui#8572 (decision batch #137, item 4): the chat API's body params are authored as `requestBody`, and `body` means the content slot on every component. The record-shaped arm on the zod mirror becomes an ADR-0049 retirement tombstone and the TypeScript face gains the matching `?: never`, so `tsc` and the parse face say the same thing. The two load-bearing pins in node-recursion-point-8344.test.ts are INVERTED, not deleted: the root case asserts the refusal (path, code and the named replacement) and `ArmsNotAssignableToSchemaNode` reads `never` — with an empty-set guard, because the bare projection resolves to `unknown` on an empty exclusion set. zod-mirror-parity.test.ts drops the key from `KnownDrift` and the whole `WiderThanDeclared` entry, header figures re-derived by that file's own pins. Two pending changesets whose paragraphs this falsifies are amended in place, prose only. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 17, 2026
…pe (objectui#8800) (objectstack-ai#9622) Fixes objectstack-ai#8800 Retires `AIInsightsSchema` and the `ai-insights` node type from the published type face, under ADR-0049 enforce-or-remove. ## The ruling this executes — quoted, not summarised Director seat, decision batch objectstack-ai#137 item 2, 2026-09-15, maintainer verbatim 「同意」, on objectui#8800. **Letter A** of the three the card offered: > - **A** — `AIInsightsSchema` and the `ai-insights` node type are retired from the published type face under ADR-0049 enforce-or-remove: the declaration and its barrel export go; the objectui#8178 exclusion pin (`ai-zero-read-members-retired-8178.test.ts` :115 / :120 `Equal<…>`) is rewritten **by this ruling**, ⛔ not by refactor. `Clause-②: yes` (a published `.d.ts` member retires, objectui#8178 precedent). > - **B** and **C** are refused. and, on execution: > Changeset `minor` on `@object-ui/types` with the **BREAKING** banner and the ADR-0087 disposition line (pre-GA retirement ships `minor`); the retirement follows the `spec-property-retirement` shape as objectui#8178 did. ⇒ **B** (write a renderer) and **C** (keep it as a documented forward declaration) are closed. ⛔ Neither is re-proposed here.⚠️ **The objectui#8178 exclusion pin is rewritten by that ruling, and by nothing else.** That is an authorisation for one paragraph in one file. Every other line of `ai-zero-read-members-retired-8178.test.ts` — the seven `?: never` member tombstones objectui#8178 ruled on, their controls, their literals — is byte-untouched, and the diff shows it. ## What changed — five files | file | what | |---|---| | `packages/types/src/ai.ts` | the `AIInsightsSchema` interface is gone; a tombstone comment stands where it was, carrying the ruling, the boundary against the three AI schemas that DO render, and the in-repo limit on the census | | `packages/types/src/index.ts` | the barrel re-export is gone; the same shape objectui#4895's block-family retirement left behind — GONE, not emptied, with the reason at the site | | `packages/types/src/__tests__/ai-zero-read-members-retired-8178.test.ts` | the exclusion paragraph, rewritten by ruling. Nothing else in the file moved | | `packages/types/src/__tests__/ai-insights-retired-8800.test.ts` | NEW — the successor pin | | `.changeset/8800-retire-ai-insights.md` | `minor` on `@object-ui/types`, BREAKING banner, `Clause-②: yes (narrowing)`, FROM/TO and the one-line fix | No renderer, no registration, no zod file and no document changed, because none of them ever carried this spelling. ## Premises, re-derived on this branch — every zero with a control that fires Taken on this branch's base `3ecc369bf`, ⛔ not inherited from the card. | premise | verdict | reading, with its control | |---|---|---| | the spelling occurs exactly once under `packages/**` + `apps/**` | **HOLDS, and is tighter** — exactly once **tree-wide**, the `type` literal inside the declaration itself | `git grep -l` subject **1 file**; controls in the same run: `detail-view` **55**, `ai-recommendations` **8**; absent-token control, minted for this run, **0**. Population `git ls-files` **7833** | | `AIInsightsSchema` is re-exported from the package barrel ⇒ on the PUBLISHED type surface | **HOLDS** | present in `dist/ai.d.ts` and in `dist/index.d.ts`'s re-export list on the base build, before the change | | there is NO zod mirror for it | **HOLDS, and the instrument was made discriminating** | a bare grep of `src/zod/` scores **0** for the subject AND **0** for the sibling AI control, so that zero does not discriminate. The structural reading does: `src/zod/` mirrors a module as `NAME.zod.ts`, **18** modules are mirrored, and `ai` is not one of them — there is no `ai.zod.ts` at all. Control: `views` IS mirrored. Pinned as a standing leg in the new test | | `AIInsightsSchema.objectName` was deliberately NOT retired by objectui#8178 | **HOLDS** — the pin asserted a type-level `Equal` holding that member at string-or-undefined, on the stated ground that the ruling named three schemas and the fourth "was neither screened nor decided". Both halves of that ground are discharged by objectui#8800, which screened it and decided it | the paragraph that replaces it says exactly this | ⭐ One reading the card did not have, measured here and worth the reviewer's attention: the published zod validator `AnyComponentSchema` refuses `ai-insights` — and refuses `ai-recommendations`, `ai-form-assist` and `nl-query` too, all four `false`, against a `button` control that is `true`. So the runtime half of this defect was never the zod face at all; the zod face never accepted this node. `tsc` was the only thing that said yes. That is pinned as a PREMISE leg, labelled as such, because it is green before and after this change and is therefore ⛔ not evidence for it. ## The BREAKING banner, earned on the BUILT artifact The banner is a claim about what consumers receive, so it was verified on `dist/**.d.ts` after a clean rebuild (`tsconfig.tsbuildinfo` removed — `check-dist-completeness` caught a partial dist first and named the repair, which is the gate working), ⛔ not on the source. ``` AFTER · declaration of the symbol in dist/**.d.ts 0 AFTER · the `type: 'ai-insights'` member in dist/**.d.ts 0 AFTER · the symbol in dist/index.d.ts's re-export list 0 LIT CONTROL · sibling declaration still emitted 1 LIT CONTROL · sibling `type: 'ai-recommendations'` member 1 ``` The external-consumer refusal, measured against the built face from outside the repo tsconfig — one import of the retired symbol and one of a live sibling, same module, same run: ``` error TS2305: Module '"./dist/index.js"' has no exported member 'AIInsightsSchema'. ``` exactly one error; the sibling import raised none. That is what an external TypeScript consumer gets, and it is why the changeset spells out the FROM/TO. ⭐ The tombstone comment travels: `tsc` emits it into `dist/ai.d.ts`, so the reasoning arrives in the consumer's own `node_modules` beside the absence. ## Reverse verification — the pin can fail, and it fails in the predicted direction Predicted before running: RED. Run from the committed fix, mutation appended to `ai.ts`, restored by an `EXIT INT TERM` trap that compares the blob hash back to the `HEAD` blob and refuses an empty hash. ``` ON-DISK BEFORE: declaration anchor 0 · tombstone anchor 1 ON-DISK AFTER: declaration anchor 1 · tombstone anchor 1 <- the mutation really landed VITEST_EXIT=1 FAIL "the DECLARING module no longer declares the interface or the spelling" TSC_EXIT=2 error TS2578: Unused '@ts-expect-error' directive. (the `../ai` leg) RESTORED: blob 70bc057 == HEAD blob ``` ⭐ Exactly **one** of the two `@ts-expect-error` legs went unused, not both — the mutation re-added the declaration but not the barrel re-export, and the barrel leg stayed used. The two directives discriminate two different faces rather than duplicating one reading.⚠️ **What the ablation shows the census does NOT cover, stated rather than glossed:** the tree census excludes the two files this change edited (they carry tombstone comments that name the symbol on purpose), so a re-add *in those two files* is caught by the source-text and `tsc` legs, and the census is what catches a re-add *anywhere else*. The exclusion list lives beside its reasons in the test, ⛔ not in an allow-list file. ## Gates — hand-derived, because `dispatch-gates.mjs` cannot answer for this repo `scripts/pm/dispatch-gates.mjs` lives in the sibling `objectstack` checkout and refuses cross-repo by design, so there is no `--ran` reconciliation for this branch and none is claimed. The roster below was derived by hand from this repository's own `check:*` scripts and from `.github/workflows/` enumerated off `origin/main` (⛔ not off the working tree). Exit codes captured by redirecting first and reading `$?` after, ⛔ never across a pipe. | gate | exit | |---|---| | `pnpm --filter @object-ui/types build` (clean, incl. `check-dist-completeness`) | 0 | | `pnpm --filter @object-ui/types type-check` (`tsc --noEmit` + examples + `tsconfig.test.json`) | 0 | | `pnpm exec vitest run packages/types/` — 193 files, 4559 tests | 0 | | `turbo run build` across the workspace — 43/43 tasks | 0 | | `check-changeset-presence` · `check-changeset-no-major` · `check-changeset-fixed` · `check-changeset-claims` | 0 | | `check-readme-exports` | 0 | | `check-type-check-coverage` | 0 | | `check-doc-component-types` · `check-doc-snippet-types` · `check-prompt-component-keys` | 0 | | `check-component-surface-parity` · `check-designer-field-key-parity` · `check-spec-symbol-derivation` | 0 | | `check-unreferenced-sources` · `check-package-self-import` · `check-phantom-dependencies` · `check-side-effects-array` | 0 | | `check-node-esm-load` · `--specifiers-only` · `check-published-dist-tooling` · `check-dist-completeness --all` | 0 | | `check-control-bytes` · `check-new-cross-file-line-citations` · `check-test-path-roots` · `check-vi-mock-override-shape` | 0 | | `check-lint-coverage` (46/46) · `pnpm --filter @object-ui/types lint` | 0 | | `check-governed-queue-guard --test` on all five paths | 0 — **NOT GOVERNED** | | `node packages/cli/dist/cli.js check` | 0 |⚠️ `check-readme-exports` was red on the first attempt with a **PREREQUISITE NOT MET**, not a finding: it refuses to measure when packages are unbuilt, and said so in its own output. It is recorded green above only from the run after the workspace build.⚠️ eslint on `@object-ui/types` reports 0 errors and 288 pre-existing warnings. The retirement *removed* one of them (the `data?: any[]` member went with the interface); it added none.⚠️ **Deliberate local narrowing, declared:** the repository-wide `pnpm test` shards, `pnpm type-check` across every package, `pnpm lint` over the whole workspace and `pnpm test:dist` are CI's runs and were not repeated here. The workspace `turbo run build` above compiles every package with `tsc`, and the tree census scores zero references to the retired symbol outside the two edited files and the record — so no importer can break on a name nothing imports. CI still runs the farm. ## Changeset level: taken from the gate, not from prose `minor` on `@object-ui/types`, with the breaking semantics spelled out in the body. `check-changeset-no-major` is what forbids `major` here (this repository's fixed group rides `@objectstack`'s major), and `minor` is its verdict. The disposition line is `Clause-②: yes (narrowing)`, written into the changeset body.⚠️ Measured while writing it: this repository has **no** `check:adr-0087-registration` gate — zero matches in `scripts/` and `.github/`, against a control of three changeset gates that do resolve — so the line is carried per the ruling and the sibling repository's spelling, ⛔ not because a local gate parses it. ##⚠️ The limit this change does NOT close The card recorded that its zero covered `packages/**` and `apps/**` only and that it did **not** enumerate customer applications or published documents. That limit stands, and the ruling was taken with it attached. ⇒ Everything above is the **IN-REPO HALF**. `git grep` reads this repository's tracked files: ⛔ not customer applications, ⛔ not published documents, ⛔ not tenant metadata at rest, ⛔ not untracked files. It is ⛔ **not** proof that nothing in the world authors `type: 'ai-insights'`. `@object-ui/types` is published, so an external consumer that authored the node is structurally unobservable from here — it gets the TS2305 above, which is why the FROM/TO is in the changeset. Such a consumer's document was already being refused at run time by both the OBJUI-001 panel and the CLI validator. ## Acceptance notes - **Noted, ⛔ not filed.** The published zod union `AnyComponentSchema` refuses all four AI spellings, including the three that ARE registered and rendered (`ai-recommendations`, `ai-form-assist`, `nl-query` — measured above, with a `button` control that passes). That is the *opposite* direction from this card — registered but undeclared — and it already has a carrier: objectui#8499 measured 505 registered keys with no arm, on that exact gap. Successor reader exists, so no new card. ⛔ Out of scope here and untouched. - **Noted, ⛔ not filed.** `check-readme-exports` and `check-dist-completeness` both failed loudly and correctly on unbuilt/partial state during this work, each naming its own repair in its output. Working as designed; recorded so the two red lines in this branch's logs are not read as findings. --- _Generated by [Claude Code](https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE)_ Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 17, 2026
… — the protocol's all-empty section contract (objectstack-ai#9627) Fixes objectstack-ai#8603 `record:details` honours `hideEmpty` on a section again. An all-empty section hides itself; `hideEmpty: false` keeps its heading and label skeleton. That is what `@objectstack/spec` declares and describes, and what this renderer had stopped delivering. ## Patch round — the four corrections an at-tier contract review required The first at-tier contract review of this branch returned FAIL on head `8d8523e0d` and named four corrections. All four are prose, release notes and one docblock; ⛔ no behavioural line moved, and everything that review ruled right is untouched — the renderer read, the `?? true` placement and its deliberate non-reach into the fallback body and the `detail-section` node, the `!isEditing` gate, both pins, the ablation, the ledger edit, the file surface and the semver level. **1. The `hideEmpty` docblock claimed a default that is false on the other consumer.** `@default true` and "Omitted behaves as `true`" were written on a member of `DetailViewSection`, and that type is read by TWO authorable renderers. `record:details` maps every authored section with `hideEmpty ?? true`; `detail-view` — registered with its own `sections` input — hands each section to `DetailSection` unchanged and applies no default. Re-measured here rather than taken from the review, with a sibling control section that must render present in every case, and it rendered in all six: | consumer | omitted | `true` | `false` | |---|---|---|---| | `detail-view` | heading + 4 rows | hidden | heading + 4 rows | | `record:details` | hidden | hidden | heading + 4 rows |⚠️ The first attempt at that measurement read all zeros, including for the control — `DetailView` has no `data` prop (the record arrives as `schema.data`), so the component took its record-not-found branch and rendered nothing. A vacuous zero, caught by the control and discarded rather than read. The tag and the sentence are gone and the prose now names both consumers and which one resolves the default; the removal is proven by extracting the JSDoc block that precedes this member specifically and finding zero default tags in it, against a lit control (`showBorder`'s own block, same file, same idiom, still carrying exactly one). A file-wide count could not have answered it — there are other `@default true` tags in that file, on other members. objectui#7361 / objectui#7735 class. **2. A sentence in the `RENDERER_ONLY_SECTION_KEYS` hunk asserted a falsehood.** It restated "the spec's section object does not declare it" of `showBorder`, which the installed 17.4.0 does declare among the section entry's 12 keys. The previous revision of this PR noted that and deferred it; this PR authored the sentence, so it is corrected here. The list is now described as what it is — a hand-kept CANDIDATE set of keys this renderer honours on a section, whose forbidden members are derived per run by filtering it through the installed schema — so neither name's status is written down as a verdict anywhere in the file. The membership itself is unchanged. Commandment objectstack-ai#9 class. **3. Two pending changesets contradicted this release, and they are corrected in place rather than rebutted.** Both go verbatim into the same CHANGELOG as this one. `7129-retire-detailviewsection-hideempty.md` published "Migration: delete `hideEmpty` from any `record:details` section you author"; `7064-empty-section-default.md` published "a sparse record keeps its section skeleton instead of collapsing". ⭐ **Route taken: correct the two bodies. Prose only, frontmatter and declared packages untouched.** Why this route and not naming the superseded paragraphs from the 8603 entry: the `7129` paragraph is a MIGRATION STEP, an instruction a reader performs, and performing it now deletes the very spelling that keeps an all-empty section's skeleton. A rebuttal elsewhere in the same file does not stop someone acting on it. The route is also the one this repository's own history sanctions: `check-changeset-overwrite`'s header measured every modification of a pre-existing changeset on `main` and found 19 for 19 legitimate — bump corrections and "factual corrections to prose" — with the narrower signal being whether declared package NAMES survive. They do here: the gate reports this change under its own case 2 and prints "declared at base" identical to "declares now" for both files. The `7064` correction keeps what still holds (the fallback body and the `detail-view` node keep the skeleton with zero authoring; the label-graveyard guard is intact) and marks what does not. The 8603 entry additionally states the net delta against the last PUBLISHED release, which is what a consumer upgrading actually sees. **4. The `record-details.tsx` comment rewrote a maintainer ruling's ground.** It said objectui#7064's objection was that an all-empty section vanished "with no way for a spec-validated page to ask it back, because the spec refused the key". Read first-hand from that card: the ruling of 2026-08-31 held that an empty detail body is a PLATFORM concern and that a metadata application should not have to author its way out of one, the deliverable being a sparse record keeping a full structural skeleton with zero app-side authoring. The objection was to the AUTHORING SHAPE — every application hand-writing `hideEmpty: false` per section as per-app tax — and it was made KNOWING the key was declared upstream by objectstack PR objectstack-ai#11662. The spec-refusal reading came out of that card's own execution afterwards and was routed onward. The comment now records that ground, records that this change reverses the ruling's behavioural half, and leaves the standing of that reversal to the review that ruled it. ⛔ It does not argue the reversal.⚠️ Also in this round, and not one of the four: the CJK this branch had added to the `-7129` pin header is removed, per AGENTS.md commandment #-1 (English-only codebase). Measured across the branch's whole diff with a lit control: net CJK introduced is zero. Pre-existing non-English strings in these files are left alone. ⛔ **Two further items from that review are NOT in this diff and are not the implementer's**: the dated note owed on objectui#7064, and naming the hotcrm#1247 consequence on the card. Both belong to the director seat. ## The ruling this executes Director seat, batch objectstack-ai#137 item 3, maintainer 「同意」 2026-09-15 — objectui#8603 comment `5689202410`, **letter A**, quoted: > **The protocol is correct.** `@objectstack/spec` `RecordDetailsProps.sections[].hideEmpty` was declared on objectstack-ai#11289 (maintainer ruling 2026-08-23, direction 1) from a measured symptom and with 「the renderer is unchanged」 written into the declaration; an author-declarable section-level empty-hide is an ordinary capability of record layouts. objectui#7129's Q1-A (2026-09-01, batch objectstack-ai#28) retired the read on the premise 「spec refuses it」, which was already false upstream (the pin sat at 17.2.0). ⇒ **A**: objectui aligns to the protocol and restores the `record:details` read of `hideEmpty` with the behaviour the describe() promises (`true` / renderer default: an all-empty section renders nothing; `false`: heading and skeleton stay). > > objectui#7129 Q1-A is thereby superseded for this key; a dated note is added on that card, ⛔ its text is not rewritten. Q2-C of that ruling is untouched.⚠️ **Q2-C is untouched, and that is a scope line, not a footnote.** The empty ROWS of a section that still has a filled row stay with `DetailSection`'s auto-hide heuristic and the reader's show-empty toggle, with no authored override in either polarity. This change does not touch that branch. The two domains are disjoint by construction: the heuristic requires `filledCount` greater than zero, `hideEmpty` applies only where it is zero. ## Premises, measured against the installed artifact before writing Read from the installed `@objectstack/spec` in this worktree, not transcribed from the card. **Version.** `node_modules/@objectstack/spec/package.json` reads **17.4.0**; the lockfile resolves the same. **The key, and its `describe()`.** Read off the shipped `json-schema/ui/RecordDetailsProps.json`, at `properties.sections.items.properties.hideEmpty`, verbatim: > Hide this section's empty fields (renderer default: on — and a section whose fields are ALL empty then renders nothing at all: no heading, no skeleton). Set `false` to render empty rows, keeping the section's label skeleton on an all-empty record (e.g. a brand-new one). The entry declares **12** member keys and `additionalProperties: false`. ⇒ premise 1 CONFIRMED, and the ruling's parenthetical is the describe's own words. **Distinct from the reference rail's same-named key**, which is component-level and says something else entirely ("Fold entries whose related count is 0 into a single + N empty expander chip…"); `RecordReferenceRailProps.entries[]` does not carry `hideEmpty` at all. **Runtime polarity probe**, with controls, exit 0: ``` SUBJECT hideEmpty:true success=true sections[0] = {"label":"Contact","fields":["phone"],"hideEmpty":true} SUBJECT hideEmpty:false success=true sections[0] = {"label":"Contact","fields":["phone"],"hideEmpty":false} CONTROL+ declared sibling columns success=true value survives CONTROL- minted absent key success=false codes=["unrecognized_keys"] keys=["os8603_absent_probe_qhx"] ``` The minted control token was verified absent from the tracked corpus first (`git grep -lI` returns 0 files, exit 0), against a positive control on the same instrument (`RecordDetailsProps` returns 30 files). ⇒ the key parses because it is DECLARED, not because the object went permissive, and the value reaches `parsed.data`. **What objectui#7129 actually deleted** (premise 2, read from the retirement commit rather than assumed): from `DetailSection`, the `!section.hideEmpty` limb of `shouldAutoHideEmpty`, the `section.hideEmpty ||` limb of `hideEmptyEffective`, and the same limb in `showEmptyToggle`; from `RecordDetailsRenderer`, the `hideEmpty: s.hideEmpty` slot. The restoration below matches the DECLARED behaviour, ⛔ not that deleted code — the old read tested truthiness, so a written `false` was indistinguishable from unauthored, which is the paradox objectstack-ai#7129's Q2 measured. **`RENDERER_ONLY_SECTION_KEYS`** (premise 3) did list `hideEmpty`; verified before editing, and it no longer does. ## What changed, and the one design decision in it **Where the default lives is the decision.** `RecordDetailsRenderer` resolves it on an AUTHORED section (`hideEmpty: s.hideEmpty ?? true`) and `DetailSection` tests `section.hideEmpty === true`. That placement is load-bearing. `DetailSection` also renders sections nobody can author the key on: the `record:details` direct-`fields` fallback body and the `detail-section` node each synthesize one, and neither surface declares `hideEmpty`. A default read as `!== false` inside the component reaches those too — and a hide there is a hide with **no declarable spelling to ask the skeleton back**, which is the exact defect upstream declared this key to fix, reintroduced one surface over. It is also what "the renderer default" in that `describe()` means: the default of the renderer the key is declared on.⚠️ This was measured, not reasoned about after the fact. The first implementation put `!== false` in `DetailSection` and it reddened four pins across the package — every one of them a section the author never wrote (two emptiness-predicate amplifications, the credential-gate blast radius on a deliberately valueless `signature` sample, and the unresolved-identity fail-closed pin, whose ghost row is a synthesized body). Moving the default to the mapping leaves all four untouched.⚠️ Precisely: outside the two pins the ruling names, the only other test file this diff touches is the ruling-named `recordDetailsInputs.spec-parity.test.ts`; the four that reddened under the first implementation are not in the diff at all. `?? true` is the spelling objectui#7064 removed (maintainer ruling 2026-08-31) and it is back deliberately. That ruling's objection was to the BEHAVIOUR — an all-empty section vanishing while a spec-validated page had no way to ask it back, because the spec refused the key. This ruling reverses the behaviour and the way back now exists and parses; the spelling is what CONFINES the default to the authored surface. **One boundary this renderer draws, stated rather than buried:** the hide is gated on `!isEditing`. Inline-edit mode is where those empty rows are the INPUTS, so hiding an all-empty section there would put its fields out of reach entirely — a new defect rather than a restored behaviour. The contract governs what a reader sees. Files: - `packages/types/src/views.ts` — `hideEmpty?: boolean` declared again, replacing the retirement tombstone. Mechanically required: `DetailSection` cannot read a key the interface does not declare, and the four-party pin's compile-time assertion is precisely about this declaration. - `packages/types/src/zod/views.zod.ts` — `DetailViewSectionSchema` mirrors it, so the zod-mirror parity ledger neither grows nor gains an entry. - `packages/plugin-detail/src/renderers/record-details.tsx` — the slot, and the default. - `packages/plugin-detail/src/DetailSection.tsx` — the read. - `packages/plugin-detail/src/index.tsx` — the manifest's `sections` description teaches the key instead of warning that authoring it does nothing; `hideEmpty` leaves the never-teach note. - `packages/plugin-detail/src/__tests__/recordDetailsInputs.spec-parity.test.ts` — `RENDERER_ONLY_SECTION_KEYS` drops it (the criterion is "keys the spec REFUSES", and it no longer is), plus a live control asserting it is on the declared side of that line. - the two pins the ruling names. - `scripts/check-installed-spec-pin-claims.mjs` — the ledger entry for the rewritten paragraph goes 2 sites to 1. That gate named the mismatch itself; the count moving DOWN is its ratchet. - `.changeset/8603-record-details-hide-empty-restored.md` — `minor`, taken from the gate's verdict (`check-changeset-presence` names 2 released packages; `check-changeset-no-major` caps at minor). ## Pins, in both directions, with non-vacuity `record-details.hideEmptyRetired-7129.test.tsx` — the four-party alignment pin. All four now declare and honour the key: the spec declares it, `@object-ui/types` declares it (compile-time, with a minted absent probe as the non-vacuity leg), the zod mirror carries it, and 4/4 reads it end to end in BOTH directions. ⭐ The filename is deliberately kept: it is this key's lineage pin, and its routing target moves to this card, away from objectui#7122 — a card that is no longer open, and whose subject was `CalendarConfigSchema.titleField`, unrelated to this key. `record-details.emptySectionDefault.test.tsx` — the two domains, stated separately: the empty-row default (unchanged, objectstack-ai#7064 / Q2-C), the all-empty default (moved), and a third block pinning that the default reaches only the surface that declares the key.⚠️ **Non-vacuity.** Every case whose verdict is "nothing rendered" carries a sibling CONTROL section that MUST render, so an absence assertion cannot pass by the tree having rendered nothing at all. That control needed a fixture repair to work: the pin's object schema had no `name` field, so the page-H1 dedupe ladder consumed `industry` — the record's one filled value — and the control section rendered no fields and took the all-fields-hidden exit. Measured, and the reason is written where the fixture is. ## Ablation — three legs, each mutated on disk, proven, run, and restored Each leg proves the injected text landed and the removed text is gone before reading any result, restores with `git checkout HEAD -- path`, and verifies the restore by blob hash against the HEAD blob plus an empty `git diff HEAD`. Run on the committed tree. | leg | mutation | result | |---|---|---| | CONTROL | none | 2 files / 11 tests pass | | 1 | delete the `DetailSection` read from `hideEmptyEffective` | **4 tests red** — 4/4 both directions, both all-empty cases, the authored-section case | | 2 | delete the renderer default (`?? true`), keep the pass-through | **2 tests red** — the UNAUTHORED default and the authored-vs-fallback pair | | 3 | widen the `DetailSection` test to `!== false` | **1 test red** — the direct-`fields` fallback body loses its skeleton | Leg 3 is what makes `=== true` a measured choice rather than a stylistic one.⚠️ Leg 2's first attempt did not land on disk (a bad substitution wrote a placeholder instead); the on-disk proof caught it, the run was declared void rather than read, and the leg was redone — the table is the redone reading. ## Gates — hand-derived, since the derivation tool refuses cross-repo `scripts/pm/dispatch-gates.mjs` lives in objectstack and answers only about the tree it lives in, so there is no `--ran` reconciliation for this PR.⚠️ **Stated as a gap, not as coverage**: the list below was hand-derived from this repo's own `check:*` scripts and `.github/workflows/`, and a hand-derived list can be short. Final head `f8388535d` (the patch round; the first review judged `8d8523e0d`). Green (exit 0) at `f8388535d`, the changeset gates re-run after the two corrections: `check-changeset-presence` · `check-changeset-no-major` · `check-changeset-overwrite` (report-only; it reports this change under its own case 2 and confirms both corrected declarations keep every package name they had at base) · `check:changeset-claims` · `check:control-bytes` · `check:new-line-citations` · `check:component-surface-parity` · `check:spec-symbols` · `check:handler-key-reads` · `check:vi-mock-override-shape` · `check:vi-mock-specifiers` · `check:test-path-roots` · `check:registry-bare-names` · `check:prompt-keys` · `check:unreferenced-sources` · `check:i18n-dead-keys` · `check:doc-types` · `check:designer-field-key-parity` · `check:element-data-source-declaration` · `check:comment-mask-corpus` · `check:metadata-write-doors` · `check:upstream-port-parity` · `check:installed-pin-claims` (red first, on a mismatch this branch caused; repaired, re-run green). Tests and types, re-run at `f8388535d`: `pnpm exec vitest run packages/plugin-detail/ packages/types/ scripts/__tests__/check-installed-spec-pin-claims.test.ts` → **373 files / 6309 tests passed**; the three pin and parity files on their own → 3 files / 27 tests passed. `type-check` for both packages → Done, `TYPECHECK_EXIT=0`, after `BUILD_EXIT=0` on the dependency closure — the first attempt in the recreated worktree reported `TS2307: Cannot find module` across the package, which is an unbuilt-closure prerequisite and ⛔ not a reading about this diff. The gate script's own suite is included above, because this branch edits a gate script. ESLint, re-run at `f8388535d`: the FULL population, not a narrowing — `eslint . --no-inline-config --format json` judged **5012 files**, and the 9 files this branch touches carry **0 errors / 89 warnings**, every warning a pre-existing `no-explicit-any` or `react-refresh` on a line this branch does not touch. Of the 79 files that do carry an error, **0 are files this branch changed** — computed by intersecting the error set with this branch's own diff, not by reading the package name. The config declares no `projectService` and no `parserOptions.project`, so linting is not type-aware and this diff cannot move the verdict on a file it does not contain. (The repo-wide run reports 95 errors across 79 files, none of them in this diff; that population is CI's, and `pnpm lint` is a different, per-package command.) NOT MEASURED, with the reason: `check:sdui-registration-pins` (exit 2, its own "no console build to weigh" prerequisite), `check:spec-floors` and `check:readme-exports` (both report `no-artifact` / a collapsed population without a full workspace build). All three are prerequisite readings, ⛔ not failures of this diff; none reads a file this branch changes except through built output. ## Risk, and how to roll back **The user-visible change is the unauthored default**: an all-empty AUTHORED section used to render its skeleton and now renders nothing. On a brand-new or very sparse record, a page that authors `sections` will show fewer sections than before unless it writes `hideEmpty: false`. That spelling parses green on the strict section object at spec 17.3.0 and later, which is exactly what it could not do when the read was retired — the escape hatch is real this time. Two surfaces deliberately keep the old rendering, because neither gives the author that spelling: the direct-`fields` fallback body, and the `detail-section` node. Inline-edit mode also always renders. Rollback is one revert of this branch; nothing is generated, no baseline moves, no lockfile changes. ## Acceptance notes - **Docs.** No `content/docs/guide/*.md` and no package README enumerates `record:details` section member keys (grep for `hideEmpty`, `showBorder`, `headerColor` across `content/docs/**`, `docs/**` and `packages/*/README.md` returns nothing for this surface), so the manifest `inputs` description is the author-facing surface that moved, and it did. Measured, ⛔ not assumed. - **`showBorder` — RESOLVED in the patch round, no longer deferred.** The earlier revision of this body deferred it to "the next PR that touches this file"; the contract review escalated that, correctly, because this PR touches the file and authored the sentence asserting it. The list's words now describe a candidate set whose forbidden members are derived per run, so no name's status is asserted in prose. See patch-round item 2. - **Noted, ⛔ not filed — `packages/plugin-detail` declares `@objectstack/spec` at `^17.1.0` while its pin asserts a key the spec declares only from 17.3.0.** That assertion has been in the tree since 2026-09-05 and predates this branch, which neither widens nor narrows a range; the lockfile resolves 17.4.0. `check:spec-floors` is the instrument that owns this question and could not judge it here without a workspace build. - **objectui#7129's dated note already exists** — the director seat posted it at ruling time (comment `5689202985` on that card), so this branch adds no second note and ⛔ does not rewrite the ruling's text. --- _Generated by [Claude Code](https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE)_ --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 17, 2026
…ctui#8572) (objectstack-ai#9639) Fixes objectstack-ai#8572 Executes maintainer ruling **A** on objectui#8572 (decision batch objectstack-ai#137, item 4, 2026-09-15, verbatim 「同意」 — comment 5689209004): `ChatbotSchema.body` becomes an ADR-0049 retirement tombstone on **both published faces**, pointing the author at `requestBody`. **B** (keep and document) and **C** (narrow to the children slot) were refused by that ruling and are not built here. ## What landed, file by file | file | change | |:--|:--| | `packages/types/src/complex.ts` | new `body?: never` member on `ChatbotSchema`, beside the `children` tombstone objectui#9256 / ADR-0049 already put there | | `packages/types/src/zod/complex.zod.ts` | `body: z.record(z.string(), z.unknown()).optional()` → `retirementTombstone(…)`; the `ChatbotSharedMirrorShape` note that said the ruling was "a separate question and is not decided here" now records that it was decided | | `packages/types/src/__tests__/node-recursion-point-8344.test.ts` | the two load-bearing pins **INVERTED, not deleted** | | `packages/types/src/__tests__/zod-mirror-parity.test.ts` | `KnownDrift` row loses `body` and records the ruling; the `WiderThanDeclared` entry goes (its whole content left); `WIDER_ARMS` row goes; header figures re-derived by this file's own pins | | `.changeset/8572-chatbot-body-retired.md` | `minor` on `@object-ui/types`, **BREAKING** banner, ADR-0087 D2 disposition line | | `.changeset/8344-…` · `.changeset/9256-…` | prose-only amendments — see the changeset-claim section below | | `packages/types/src/__tests__/content-channel-family-d-9256.test.ts` | **surface extension, granted** — the two hold-out controls RE-POINTED at a twin face | | `packages/types/src/__tests__/strict-authoring-face-8345.test.ts` | **surface extension, granted** — the root half of one case INVERTED | | `packages/types/src/zod/base.zod.ts` | **prose only** — the comment block whose three sentences this diff falsifies, including a live instruction citing this card | | `content/docs/plugins/plugin-chatbot.mdx` | **prose only** — the `requestBody` row's mechanism half (AGENTS.md objectstack-ai#2, docs-driven) | ## ⭐ The ruling's last sentence, answered with measurements > The report names the delivery surface of the refusal (parse-time) and whether any consumer path skips the root parse. **Delivery surface: parse-time on the zod mirror, compile-time on the TypeScript face — and nowhere else.** **YES — a consumer path skips the root parse, and it is the one authors hit most.** The runtime render path never parses through these mirrors at all. `SchemaRenderer` (`@object-ui/react`) validates **in dev builds only**, through `@object-ui/core`'s hand-written `validateSchema`, which walks base keys and recurses into content and knows **no per-component key**. Traced to the end: | consumer path | engine it validates with | does the tombstone arrive? | |:--|:--|:--| | `objectui validate` / `objectui check` (`@object-ui/cli`) | `safeValidateSchema` = `AnyComponentSchema.safeParse` on the **document root** | **YES** | | a TypeScript author writing a `ChatbotSchema` literal | `tsc` | **YES** (compile-time) | | `SchemaRenderer` render path (dev build) | `@object-ui/core`'s `validateSchema` — hand-written, no mirror | **NO** | | `SchemaRenderer` render path (production build) | nothing — `__DEV__` gates the whole pass | **NO** | | VS Code extension `SchemaValidator` | its own walker (recurses `body` only), never imports the zod face | **NO** | | `plugin-map` / `plugin-view` / `plugin-list` / `plugin-detail` imports of `@object-ui/types/zod` | `ObjectMapConfigSchema.shape` **key lists**, not parses | n/a — no parse on the path | ### The readings, with their controls **1. The refusal, on the BUILT artifacts** (`@object-ui/cli` and its dependency closure built from this branch — the `dist` bytes a consumer installs, not `src`): ``` objectui validate FIXTURE: root chatbot + body: { model: 'gpt-4', temperature: 0.2 } exit 1 · "Path: body" · "Code: invalid_type" · message names `requestBody` <- SUBJECT objectui validate FIXTURE: the same document spelled requestBody exit 0 · "✓ Schema is valid!" <- LIT CONTROL objectui validate FIXTURE: the same chatbot nested in card.body[] exit 1 · refused through the node union <- DEPTH ``` **2. The render path, rendered** (`@testing-library/react`, dev build, `console.warn` spied): ``` chatbot + body: { model: 'gpt-4' } warns "schema.children.type: type is required" chatbot + requestBody: { … } (no warning) <- LIT CONTROL chatbot, neither key (no warning) <- LIT CONTROL card + body: [{ label: 'x' }] warns "schema.children[0].type: type is required" <- FIRING CONTROL ```⚠️ That warning is **not this retirement arriving**. It is the generic child walker mistaking the API params for a child node: it names `children` for a key the author spelled `body`, and it prescribes adding a `type` to the params. It says the same thing before and after this change. (The probe rendered through the fallback component — `plugin-chatbot` is not registered in it — which does not affect the validation reading, since validation runs before component resolution. Only the warnings are cited.) **3. The same document through the render-path validator directly** (`@object-ui/core`'s `validateSchema`): ``` SUBJECT chatbot + record body valid:false ["schema.children.type: type is required" MISSING_REQUIRED] SUBJECT the same node in card.body[] valid:false ["schema.children[0].children.type: …"] CONTROL chatbot, no body valid:true <- LIT CONTROL FIRING validateSchema(null) valid:false INVALID_SCHEMA FIRING form field without a name valid:false MISSING_FIELD_NAME FIRING card child without a type valid:false MISSING_REQUIRED ``` ⇒ the retirement is delivered where documents are **authored and checked**, and ⛔ not where they are **rendered**. Making the render path agree is a change to `@object-ui/core` on a different card and is **not** made here. ## Re-taken reachability (the card's own table, re-measured on this branch — ⛔ not cited from the card) `AnyComponentSchema.safeParse`, this branch's source: | document | before this change | after | |:--|:--|:--| | chatbot + record `body` at the ROOT | ACCEPTED | **REFUSED** — `invalid_type` at path `body`, message names `requestBody` | | the same node inside `card.body[]` | REFUSED | REFUSED | | the same node inside `div.children[]` | REFUSED | REFUSED | | the same node with `requestBody` instead | ACCEPTED | ACCEPTED (LIT CONTROL) | | chatbot with neither key, root and nested | ACCEPTED | ACCEPTED (NON-VACUITY) |⚠️ The card's older reading said the width was reachable "at the root **and** in child slots". That half is no longer the tree's state and was **not** cited: PR objectui#8501 had already eliminated the nested half with a `superRefine` on the installed arm, so what this card actually retires is the ROOT. ## Corpus impact: zero documents Every tracked file carrying a `chatbot` node is in `examples/schema-catalog/src/schemas/plugin-chatbot/` (3 files). Each was parsed and its node key sets read **structurally** (⛔ not grepped — a tombstone leaves a comment behind and `grep -c` counts it): ``` basic-chatbot.json body:absent requestBody:absent messages:present <- LIT CONTROL chatbot-with-timestamps.json body:absent requestBody:absent messages:present <- LIT CONTROL customer-support-chat.json body:absent requestBody:absent messages:present <- LIT CONTROL ``` ## Pin inventory — what moved, and in which direction **`node-recursion-point-8344.test.ts`, two pins INVERTED (⛔ neither deleted):** 1. `is still ACCEPTED at the ROOT — the published mirror is untouched` → `is REFUSED at the ROOT too — objectui#8572 retired the published record arm`. The inverted leg asserts the issue's `code` and that the message names `requestBody` — the named remedy, ⛔ not the sentence carrying it. 2. `ArmsNotAssignableToSchemaNode ≡ 'chatbot'` → `≡ never`.⚠️ **Measured, not assumed:** the alias's bare projection — the exclusion projected through an `extends { type: infer K }` conditional — resolves to `unknown` — not `never` — when the exclusion set is empty, because `never` satisfies the probe shape and `K` is inferred from nothing. Written that way the inverted pin could only ever be red. It now answers the empty case first with a tuple-wrapped `extends [never]` guard and keeps the projection for its diagnostic value: it still NAMES the arm when there is one. **Unchanged and still green** (the legs that make this a measurement rather than an echo): `is REFUSED one slot down`, `NON-VACUITY: the same node without body is accepted at both depths`, `names body in the refusal`, and the whole `the fill is LIVE` suite. **`zod-mirror-parity.test.ts`:** `KnownDrift['complex.zod.ts#ChatbotSchema']` 'body' | 'onError' | 'onSend' → 'onError' | 'onSend' (the entry survives; the ruling is recorded in its docblock — this is the row the ruling says "becomes 「ruled」"); `WiderThanDeclared['complex.zod.ts#ChatbotSchema']` and its `WIDER_ARMS` row are **gone**, per that ledger's own clause 4 ("a key DISAPPEARED — the faces agree again; correct or delete the entry"), with the departure recorded in place as a standalone note in the ledger's own convention. Header figures were corrected to the derived ones with the cumulative history sentence each bullet keeps. ## Ablation — both halves proven load-bearing, from the committed state⚠️ **The first attempt was a NULL MEASUREMENT and is declared rather than quietly re-run.** Its mutation was anchored on the first `body: retirementTombstone(` in the file, which belongs to `CalendarViewSchema`, not to `ChatbotSchema` — so it reddened pins about a different pair and said nothing about this change. The re-run below anchors on this card's own guidance string, which occurs exactly once in the file, and carries scoped structural counters (the declaration block only, comments stripped) plus untouched-neighbour controls. | leg | mutation, proven on disk before any colour was read | result | |:--|:--|:--| | **baseline** (head `24b009d08`) | chatbot zod arm: tombstone 1 / record 0 · TS member `body?: never` 1 | vitest **exit 0** — 4 files, **807 passed** · tsc **exit 0** | | **A** — zod arm back to the record | tombstone 0 / record 1; chatbot `children` arm still 1 and the four other schemas' `body` tombstones still 4 (CONTROLS); on-disk hash ≠ HEAD blob | **RED in the claimed direction**: the inverted root pin fails, the strict-face case fails, `ArmsNotAssignableToSchemaNode ≡ never` fails, and the parity WIDER ratchet names `complex.zod.ts#ChatbotSchema` and its key `body` | | **B** — delete the TS `body?: never` (zod tombstone kept) | member 0; chatbot `children?: never` still 1 and four other interfaces' `body?: never` still 4 (CONTROLS); on-disk hash ≠ HEAD blob | **RED in the OTHER direction**: vitest stays green (a `?: never` is erased before a test runs) and the `KnownDrift` ratchet fails naming `complex.zod.ts#ChatbotSchema` — the mirror refuses what the declaration admits | ⭐ One reading is worth naming because it is evidence about the surface extension itself: under leg A the two RE-POINTED controls in objectui#9256's file stay **green**. They are aimed at a twin, so they are insensitive to this card's arm — which is what re-pointing rather than inverting buys, and it is the difference between borrowing another card's file and writing this card's verdict into it. Both legs restored from `HEAD` (⛔ never a bare `git checkout --`), each verified by `git diff HEAD` being empty **and** the file hash returning to its HEAD blob.⚠️ Honest asymmetry worth reading: leg A does **not** redden `KnownDrift` and leg B does **not** redden the WIDER ledger — each ledger sees one direction, which is why the entry left one and the whole row left the other. ## Local verification | check | verdict | |:--|:--| | `pnpm exec vitest run packages/types/` | **exit 0 — 195 files, 4607 tests, all passing** | | `pnpm --filter @object-ui/types run type-check` | **exit 0** (`tsc --noEmit` + the examples project + the tests project) | | `pnpm --filter @object-ui/types run build` | exit 0 · dist completeness: 130 emitted files verified | | `node scripts/check-changeset-presence.mjs` | exit 0 — 1 changeset declared for 4 published source files | | `pnpm changeset:check` | exit 0 — fixed group intact, no `major` | | `pnpm check:changeset-claims` | exit 0 (report-only) — 20 pending changesets named; answered below | | `pnpm check:new-line-citations` | exit 0 — **0 new** cross-file line citations | | `node scripts/check-control-bytes.mjs` | exit 0 — 7,760 tracked text files scanned | | `pnpm check:doc-snippets` | first run **PRECONDITION NOT MET (exit 2)** — it measured nothing; after the scoped 35-task build it was **re-run**: exit 0, 670/670 blocks compile | | `pnpm check:doc-types` · `check:prompt-keys` · `check:component-surface-parity` | exit 0 (the last is report-only by its own ruling) | | `pnpm check:doc-types` · `check:doc-fences` · `check:doc-example-ids` | exit 0 — re-run after the docs row changed | | whole-repo gate farm (`pnpm lint` and the rest of the `check:*` roster) | **NOT MEASURED** locally — left to CI | | `--ran` reconciliation against a derived gate list | **UNAVAILABLE** — `dispatch-gates.mjs` lives in objectstack and refuses cross-repo; this list was hand-derived from this repo's own `check:*` scripts and `.github/workflows/`, and ⛔ `check-expected-skips.mjs` was not pointed at this repo (it carries objectstack's roster and would answer about the wrong board) |⚠️ Every figure above is read at the FINAL head (`24b009d08`), after the surface extension, not at the first commit. One reading is explicitly a re-run and says so; one gate invocation in between exited 1 for a reason that is **not** a red — `pnpm run check:changeset-presence` is not a script name in this repo (the script is run directly), which is "I could not run", and it was re-run correctly to exit 0.⚠️ **Declared narrowing.** The ablation legs and the final runs were executed **without** the shared heavy-verify lock. Two consecutive acquisitions timed out (9m00s each, `exit 99` = never acquired, place kept) behind a live holder — a sibling worktree's full `packages/` vitest run, held for 22+ minutes and still running at the second timeout. The narrowed runs are two named test files plus one `tsc` project, and every reading cited here is a **verdict** (exit code, FAIL line, error identity), not a wall-clock figure, so contention cannot move it. ## Surface extension — granted, reasoned, and bounded The ruling names four files. Four more are in this diff. Each is here because the ruling **reaches** it, not because it was convenient; the alternative for each is stated so the choice is reviewable, and the ground is the one an at-tier reviewer already ruled on this round (objectui#8801 / PR objectstack-ai#9621): *"the ruling authorised narrowing this arm's accept set, and a pin that asserts the old accept set is reached by that ruling as a matter of necessity, not of choice."* **1. `content-channel-family-d-9256.test.ts` — two hold-out controls, RE-POINTED (⛔ not inverted).** Both were aimed at `ChatbotSchema.body` precisely *because* objectui#9256 held that key out pending a ruling: the runtime `LIVE CONTROL` kept the chatbot rows "a reading about `children`", and the type-level `CONTROL` pinned the two-meanings collision. This ruling ends that hold-out — for **one** of the three chatbot faces. Measured: the two TWIN faces still accept `body` as the content channel (`chatbot-enhanced` and `chatbot-floating` parse `body: CONTENT`; `chatbot-enhanced` refuses a record `body` and refuses `children`, which objectui#9256 narrowed). ⇒ both controls are re-pointed at a twin, where the hold-out this card recorded is **still true**, and neither line says anything about `ChatbotSchema.body`. **The alternative was to invert them** — to assert the refusal — and that is exactly the residual the objectstack-ai#9621 reviewer named: restating a retirement inside another card's file. Dropping them was the third option and was refused: the file's header leans on that control by name. **2. `strict-authoring-face-8345.test.ts` — one case, root half INVERTED.** Here re-pointing is not available and dropping does **not** suffice. The case asserts that the derived strict twin keeps the clause the tolerant face carries; its two root legs asserted acceptance. Dropping them would leave a case that no longer reads the root at all — it would stop noticing if the two faces ever disagreed there. So the root legs are inverted, and⚠️ the comment records the honest consequence: this input **no longer discriminates** the clause, because the arm refuses it with or without the wrapper. That clause's disposition is not this ruling's and is not touched. **3. `packages/types/src/zod/base.zod.ts` — prose only, three sentences.** That block does not only describe behaviour: it **instructs** readers not to narrow `ChatbotSchema` *because objectui#8572 has not ruled*. Shipping a live instruction, in a published package's source, citing this card and saying the opposite of what it decided, is the silent-misinformation shape this board exists to stop. The block now records what the clause was for (past tense), that it is **REDUNDANT** after this ruling, and — the sentence that matters for the next reader — **why it nevertheless stays**: the wrapper is load-bearing independently of what it checks (`node-recursion-point-8344.test.ts`'s `the fill is LIVE` leg reads that slot 0 holds the WRAPPED union, and the read-back assertion throws when the recursion point did not take), so removing the clause is surgery on objectui#8344's recursion point, not a deletion. ⛔ The `superRefine` clause, its installation and the pin that reads it are untouched — `git diff` on this file is comment lines only. **4. `content/docs/plugins/plugin-chatbot.mdx` — prose only, one table row.** The `requestBody` row told authors that writing `body` "sets the base schema's children container and never reaches the API". The remedy was right and the mechanism is now wrong. AGENTS.md objectstack-ai#2 makes this a required companion edit, not optional scope. ### The host cards' own claims survive — checked suite by suite Both files run whole and green (758 cases across the two): | file | suites | cases | |:--|:--|--:| | `content-channel-family-d-9256.test.ts` | `family D refuses the content channels its renderers never read` · `a nested family-D node is refused too` · `the TypeScript face refuses both channels at the AUTHORING site` · `CONTROLS: the node itself, and the held-out channel, are untouched` | 525 · 2 · 3 · 203 | | `strict-authoring-face-8345.test.ts` | `(a) a known-good document parses under the strict face` · `(b) one invented top-level key is refused, and the key is named` · `(c) the tolerant face is behaviourally unchanged` · `a nested node is judged by its own component schema` · `checks survive the clone` · `the barrel is the sole entry into the module cycle` · `the node face (child slot) twin` · `the population is closed` · `the strict authoring face — positive controls` · `the type-level pins are reachable` · `what strict could not close is enumerated, not claimed` | 2 · 2 · 2 · 2 · 3 · 2 · 2 · 4 · 2 · 1 · 3 | ⇒ objectui#9256's narrowing rows, its nested refusal, its authoring-site `@ts-expect-error` block and its other live controls (`button` family C, the `tabs` and `list` ITEM channels, `div`) all still assert what they existed to assert; objectui#8345's strict-face suites likewise, including the closed-population pin its own header calls the one whose absence let a real defect ship. ## The `changeset-claim-re-read` answer The gate named **20 pending changesets** on the first commit and **29** once the surface extension widened the diff (`base.zod.ts` and the docs page bring their own). Read paragraph by paragraph: **29 still true, 0 falsified.** The near calls, stated so the reading is checkable: - `6687-chatbot-surface-authorable.md` quotes "`ChatbotSchema` … declared 34 keys" — a count this diff moves, but the paragraph frames it explicitly as "measured on both declaration faces **before the fix**", so it is a historical reading and cannot rot. Closest call of the twenty. - `8338-retire-toast-action.md` quotes ledger deltas (`KnownDrift` 42/64 → 41/63, `WiderThanDeclared` 23/36/47 → 22/35/45). Those are that card's own move at its own head, not live totals; this change moves the live totals and leaves those sentences true. ⛔ My changeset deliberately quotes **no** ledger digit for the same reason. - `8478-zod-pins-complex.md` says the published `.describe()` strings in `complex.zod.ts` carry no source-line citations. Still true: the describe string this PR replaces carried none and the one it adds carries none — 0 of 167 `.describe()` strings in that file contain a line address, and `check:new-line-citations` reports 0 new. - `7703-chatbot-dark-keys-retired.md` states the `?: never` + `retirementTombstone()` lockstep convention; this change follows it rather than falsifying it. - The other sixteen of the first twenty name `zod-mirror-parity.test.ts` or the two schema files for ledgers, keys and pairs this diff does not touch (`EXCLUSIONS`, `RuntimeOnlyDeclared`, `UnmirroredDeclared`, `KanbanColumn`, `FilterBuilderCondition`, `ChatMessage`, `CalendarView`, …). - The nine added by the widened diff all name `base.zod.ts`, and every one of them is about a part of that file this change does not touch: `ComponentInput`'s tombstones (`5905` ×2, `7493`), the `disabled` twin symmetry (`7087`), the `ExpressionWireSchema` hoist (`7530`), the `z.lazy` spelling census (`7918` — this diff changes comment text only, not a single `z.lazy` initializer), the node-slot `z.number()` arm (`9162`) and `ComponentMetaSchema` (`5893`). The four naming the docs page (`6169`, `6687`, `7295`, `7703`) are the chatbot ones already read above. ⭐ **The gate's list and the falsified set were DISJOINT here, which is the gate's own stated blind spot.** It judges name resolution, and the two paragraphs this diff actually falsifies name no file at all: - `.changeset/8344-node-recursion-point-redirect.md` §2 — "accepted at the root before and after" and "the published `ChatbotSchema` is untouched". Both halves sit in ONE paragraph. **Route taken: corrected in place, prose only, frontmatter untouched** — an AMENDED note naming this card, which keeps that card's own measurements (the nested verdict, the installed check, "narrows at 109, widens at none") intact because those are readings of a fixed head. - `.changeset/9256-content-channel-family-d.md` — this key recorded as "a naming collision **awaiting a ruling**". **Route taken: corrected in place, prose only** — the hold-out has ended for one of the three chatbot faces, and the reason that card gave for holding it out stays true. - `.changeset/7655-chatbot-registration-authoring-faces.md` — "the twins … do not copy `ChatbotSchema`'s `body` naming collision". **Route taken: left as written and named in my own changeset**, because its claim about the TWINS is still exactly true; only the collision it refers to is the thing retired here. ## Deviations from the ruling's literal wording, declared 1. The ruling names the `KnownDrift` row as the one that "becomes 「ruled」". Mechanically, a ruled key **leaves** that ledger (the faces agree, so the row would be stale and its own ratchet would fail on "a listed key that has been fixed"). The row therefore keeps the entry, drops the key, and **records the ruling in its docblock** — that is the reading of 「ruled」 taken here. 2. The same change forces two things the ruling does not name, both inside the file it does name: the `WiderThanDeclared` entry and its `WIDER_ARMS` row go, per that ledger's own clause 4, and the header figures move with them. Both are the file's own pins refusing a stale ledger, not scope taken on. 3. The `ArmsNotAssignableToSchemaNode` pin is inverted to `never` **with an added empty-set guard** — measured, not preferred: without it the inverted pin can only ever be red. ## 维护者速读 聊天机器人节点上的 `body` 从今天起会被**当场拒绝**,并在拒绝文案里告诉作者该写 `requestBody`(渲染器一直读的就是它)。本仓三份聊天机器人文档一份都没写过 `body`,所以没有任何现存文档受影响。⚠️ 一句不能省的话:这个拒绝**只在解析与编译时到达** —— `objectui validate` / `objectui check` 会拒,TypeScript 会拒;而**运行时渲染路径根本不走这套镜像**(它走 `@object-ui/core` 手写的校验器,且只在开发构建里跑),所以在渲染路径上写错的人得到的仍然是一条**指错键名**的旧警告,生产构建里则什么都没有。要让渲染路径也说同一句话,是另一个包、另一张卡。 ⛔ 另有四处被本裁决推翻、但在本 PR 文件面之外的位置(两条 hold-out 对照、一处 `base.zod.ts` 注释、一处文档行),已在上面逐条点名,等 PM 决定是否扩面。 --- _Generated by [Claude Code](https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE)_ --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This was referenced Sep 17, 2026
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 28, 2026
…objectui#9625) (objectstack-ai#9694) Fixes objectstack-ai#9625 Clause-②: no A prose-only correction to **one paragraph** of a pending release declaration, `.changeset/8178-ai-schemas-retire-zero-read-members.md`. No package code, no schema, no exported name. One file, 13 insertions / 4 deletions. ## The defect That entry's closing paragraph made three claims about `AIInsightsSchema.objectName`. objectui#8800 — landed as objectui#9622, squash `1bd1be7e2660` — falsified all three, and **both declarations are still pending, in the same release**. So the false sentence and the change that falsifies it would publish into the CHANGELOG together, where the sentence becomes a permanent record of a pin that never shipped. The window ends the moment release PR objectui#5400 merges; that PR is open as of this writing. ## Each claim re-measured on this branch's base, `29a8a95261ce` | claim in the paragraph | reading on the base | instrument | | --- | --- | --- | | "is deliberately untouched" | **false** — the schema is gone | `AIInsightsSchema` reads **0** in comment-stripped `packages/types/src/index.ts`; **lit control** `AIRecommendationsSchema`, same file, same query, reads **1**. The tombstone comment standing where the interface was is in `packages/types/src/ai.ts` | | "A pin holds it at string-or-undefined" | **false** — the pin is gone | the docblock that replaced it in `packages/types/src/__tests__/ai-zero-read-members-retired-8178.test.ts` says so in those words: the exclusion was "REWRITTEN BY RULING" | | "was neither screened nor decided" | **false** — it was both | objectui#8800's own pending entry records director decision batch objectstack-ai#137 item 2, 2026-09-15, letter A |⚠️ The unreleased check is **structural, not a CHANGELOG grep**: `git cat-file -e origin/main:.changeset/8178-…md` exits 0 ⇒ the file is present, and `changeset version` *consumes* a declaration, so a present file is an unconsumed one. A negative control (a name that is not in the tree) exits 128 in the same query. A CHANGELOG grep for a card number is a dark instrument on this board and was deliberately not used. ## What was kept, and why The paragraph had a half that is **still true**: objectui#8178's ruling named three schemas, and this entry retires seven members on those three and touches no fourth. That half is kept and named explicitly as the load-bearing one, so a reader can tell which part was the real claim and which part was the spent reason. The replacement is past tense for what was true when the entry was written, plus a forward pointer to what changed and where to read it. Shape follows the precedent already on `main`: `c9f9baedf` (PR objectui#9495) corrected three falsified sentences in a pre-existing pending changeset in place, prose only, frontmatter byte-identical. ## Scope, asserted - **Frontmatter byte-identical** — `sha256` of the file's first five lines compared against the base blob: `5285f233de7cd6fd83f1d0520a688081e9928771bee8df89cdea64e19e112f38`, equal before and after. - Level unchanged (`minor`), package list unchanged (`@object-ui/types`, `@object-ui/plugin-ai`). - ⛔ No other paragraph in the file is edited, ⛔ no other changeset is touched, and ⛔ no new changeset is added — this edits a pending entry and ships no package code, which `check-changeset-presence` confirms ("no changeset is owed").⚠️ A `.changeset` body publishes verbatim into a CHANGELOG that renders on GitHub, where tag-shaped fragments are deleted — including inside backticks. The replacement prose was scanned for them and contains none; the type it names is written as the words string-or-undefined rather than with a bar between two bare type names in brackets. The sibling entry `.changeset/8655-…md` uses the spaced form for the same reason. ## Gates — re-derived by hand against the actual changed file⚠️ `scripts/pm/dispatch-gates.mjs` lives in the sibling repository and refuses objectui paths by design, so this list comes from objectui's own `package.json` and `.github/workflows/changeset-guard.yml` / `changeset-presence.yml`. Exit codes were captured to disk before any pipe. | gate | exit | reading | | --- | --- | --- | | `pnpm changeset:check` | 0 | fixed group OK; no `major` declared | | `node scripts/check-changeset-presence.mjs` | 0 | 1 file changed, 0 published source, "no changeset is owed" | | `node scripts/check-changeset-overwrite.mjs` | 0 | reports this edit as its legitimate **case 2** (correcting a declaration on purpose). "declared at base" and "declares now" are identical, so no declaration was lost. That report is the expected shape, ⛔ not a failure | | `pnpm check:changeset-claims` | 0 | 0 files changed outside `.changeset/` ⇒ no pending body names a file this change touches.⚠️ Vacuous by construction for a changeset-only diff, and reported as such rather than as coverage | | `pnpm check:pending-changeset-literals` | 0 | no test source names a pending changeset | | `pnpm check:control-bytes` | 0 | 7801 tracked text files scanned | | `pnpm check:new-line-citations` | 0 | 0 new cross-file line-address citations added | No vitest run: no package source, test or manifest changed, so no suite is owed. **Declared deviation:** `pnpm install` was not run in this worktree. Every gate above is a plain Node script or a `pnpm run` of one, and all seven ran green without `node_modules`. Nothing in this diff can be built or tested, so the install would have bought no reading on a shared container. ## 维护者速读(草稿) **改了什么** —— 只改一段话。待发布的 changeset `8178-ai-schemas-retire-zero-read-members.md` 最后一段声称 `AIInsightsSchema.objectName` "刻意未动"、"有一个 pin 钉着它"、"那第四个 schema 既没筛也没裁"。这三句今天全是假的。本 PR 把这一段改写成:哪一半仍然成立(本条目的范围是三个 schema 上的七个成员),哪一半已经作废,以及作废它的是哪条裁决、读者该去哪里看。frontmatter、 发版级别、包清单、以及文件里其它任何一段,一律未动。 **为什么改** —— changeset 正文是**逐字**发布进 CHANGELOG 的。推翻这三句话的那次改动 (objectui#8800,以 objectui#9622 落地)和这段假话**在同一次发布里**。release PR objectui#5400 一合并,这段话就永久冻进已发布的 CHANGELOG,变成一条"某个 pin 存在过"的错误记录——而那个 pin 从未发运。窗口现在开着,这是这张卡此刻被做的唯一理由。 **风险与代价(含回滚)** —— 风险接近于零:不含任何包代码、schema 或导出名,发版级别与包清单 逐字节未动,frontmatter 的 sha256 与基点一致。回滚就是 revert 这一个 commit,发布内容不受影响。 唯一需要维护者过目的是**措辞**:替换后的段落对 objectui#8800 的转述是否准确、是否越出了 objectui#8800 裁决的授权范围(本席的判断:没有——那条裁决管的是 pin,本 PR 改的是 prose)。 **席位意见** —— **你要做的** —— 只需确认两件事:① 替换段落的事实转述无误;② 它赶在 release PR objectui#5400 合并之前落地。此外无需任何操作。 ## Acceptance notes Two things were checked in the same file and ⛔ deliberately **not** changed, per the card's ask (one paragraph only) — both are reported for the seat rather than fixed here: - The "Nothing behavioural changes" census paragraph, the "Why not Enforce" paragraph and the "Why tombstones and not deletions" paragraph were each re-read against today's tree and are **still true**: the seven `?: never` tombstones are present in `packages/types/src/ai.ts`, all three schemas still extend `BaseSchema`, and `BaseSchema` still carries its string-index signature. - "a fifty-item render pins it in both layouts" — the pin (`AIRecommendations.rendersEveryItem-8178.test.tsx`) does use fifty items and does cover two layouts, and the component has exactly two render branches, so the sentence matches the code.⚠️ Worth a seat's eye only because the declared union has **three** spellings (`list` / `grid` / `carousel`) while "both" names two — a reader could take "both" as "all there are". Not false, so ⛔ not filed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L --- _Generated by [Claude Code](https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L)_ Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Oct 14, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Icon Component Not Displaying in Documentation
Root Cause
The icon component and all other components were showing "unknown component type" error in the documentation because:
@object-ui/coreinto the components package, causing the ComponentRegistry singleton to not work properly across module boundaries.Changes Made
sideEffects: trueto components package.json to prevent tree-shakinginitializeComponents()export function to ensure registrationTechnical Details
Icon Component Enhancement:
toPascalCase()utility to convert names like "arrow-right" → "ArrowRight"Build Configuration:
@object-ui/core,@object-ui/react,@object-ui/types) external in Vite buildsideEffects: trueto prevent bundlers from tree-shaking registration codeResult
✅ All components now register and display correctly in the documentation
✅ Icon component properly renders Lucide icons
✅ Component registry shows 70+ registered components
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.