Repository navigation
feat(types)!: retire WidgetInput.label / defaultValue / advanced as ADR-0049 tombstones (objectui#7911) - #9619
Conversation
…` as ADR-0049 tombstones The same three keys were retired on `ComponentInput` by objectui#7493 / objectui#7781. `WidgetRegistry.load()` -- the only consumer of a widget manifest's `inputs` in this repository -- forwards `name`, `type`, `required`, `options` (as `enum`) and `description` and never these three, and the seam copy that used to carry them across went with that earlier retirement. That left them declared and unread on their own face. Maintainer ruling A of 2026-09-15 carries the retirement to the second face: `?: never` on all three, and the `widget.ts` divergence doc block rewritten in the same stroke to record that the two faces now AGREE. The limit is pinned rather than assumed: `WidgetInput` has no zod mirror, so this retirement has no runtime face. It is a `tsc` error at a TypeScript authoring site and nothing else -- a widget manifest that arrives as JSON is never parsed through this type, so an out-of-repo author who writes `label` still has the key ignored silently. Option C (a runtime mirror for the manifest face) was offered and deliberately not opened. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
|
Served-tier: CONTRACT_REVIEW_TIER Contract reviewReviewed in an isolated review subagent fed only objectui#7911 (body + all 7 comments), PR #9619 (body, diff, 1 commit, 36 check runs), the tree at the head sha (detached worktree), and the cited prior ruling #7493. The governing ruling is objectui#7911 comment ① Derived judgmentsEvery change to the accept set or the published surface in this diff, judged one by one against that ruling:
Narrows more than ruled? No. The types artifact diff base→head touches one file ( Narrows less than ruled? No. All three members are tombstoned; the docblock is rewritten; the ruling's "no zod mirror to move" reading reproduces ( Stop condition (ruling §Execution). The PR answers NO; I re-derived it independently rather than trusting the body: ② Semver and changesetFrontmatter:
③ Boundary flags
Reads: 0 MCP calls; REST proxy only. Writes: this comment (1 of 1). Implemented-by: claude/issue-7911-widget-input-retire-dead-keys PASS Generated by Claude Code |
Clause-② provenance — review of record, carriers cleared
Record: ⭐ This is the first review rendered under the maintainer's 2026-09-16 ruling 「起达档复核子代理」 (objectstack#18418), which overturned How the independence was actually obtained, ⛔ not assertedThis seat is served Tier, verified by transcript — the only channel that is a reading here:
⛔ Not ⭐ And the checker agrees without being told: Landing pre-checks
One judgment in the record worth surfacing rather than buryingThe reviewer accepted the changeset's ⇒ proceeding to ready + enqueue. Generated by Claude Code |
Fixes #7911
Carries maintainer ruling A of 2026-09-15 (objectui#7911 comment 5689209770) to the
second input face:
WidgetInput.label,WidgetInput.defaultValueandWidgetInput.advancedinpackages/types/src/widget.tsbecome ADR-0049 retirementtombstones (
?: never), and thewidget.tsdivergence doc block is rewritten in thesame stroke to say the two faces now agree. Option B (keep and document as inert)
was refused on record; option C (a runtime zod mirror for the manifest face) was
offered as a separate card and deliberately not opened.
Why these three keys are dead
WidgetRegistry.load()is the only consumer of a widget manifest'sinputsin thisrepository, and it forwards five keys —
name,type,required,options(renamed toenumat the seam) anddescription. It never forwarded these three. The copy that usedto carry them onto
ComponentInput.label/defaultValue/advancedwas deleted whenthose became tombstones (objectui#7493 / objectui#7781, ruling A of 2026-09-06), and that
copy was the one non-test write of the three. Since then they have been declared and
unread on their own face.
Re-derived on this branch by symbol, each zero paired with a firing control on the same
instrument (the card's own line references were stale — they came from
6a9ee323):input.label/.defaultValue/.advanced, non-test.ts/.tsxinput.options2 ·input.type10 ·input.name7 ·input.required4 ·input.description1manifest.inputs, tree-scopedWidgetRegistry.ts)manifest.typefires in the same walkWidgetInputinpackages/types/src/zod/ComponentInput22WidgetInputSchema/RuntimeWidgetManifestSchema, tree-wideComponentInputSchemapresent in 7 filesnew WidgetRegistry(...)is constructed nowhere outsidepackages/core's own tests, andnone of those tests authors an
inputsarray, so no in-repo authoring site breaks.The tombstone has no runtime face, and that is the whole cost of ruling A.
WidgetInputhas no zod mirror, so unlike theComponentInputretirement — which pairs?: neverwith aretirementTombstone()parse refusal — this one is atscerror at aTypeScript authoring site and nothing else.
WidgetRegistrydoes no deserialization andno validation: it reads five keys off whatever object it is handed. So a widget manifest
that arrives as JSON is never parsed through this type, and an author outside this
repository who writes
labelgets exactly what they got before — the key is ignored,silently. Making that refusal loud for the authors who actually exist is option C,
which is not in this PR.
The in-repo zero is the measurable half only. Widget manifests are authored outside
this repository by design (the card says so, and the triage seat and the
domain:specseat both carried it forward). Whether anyone out there writes these keys was never
measured and is not measurable from here. ⛔ A green run of the new pin does not mean
nobody writes them; it means nothing in this repository reads them or may author them.
The pin's own header says this so a later reader cannot mistake one for the other.
The stop condition the ruling named, answered
The ruling made this an explicit precondition: "The report states whether any runtime
loader reads manifest JSON through this type — if one does, it stops and reports before
changing behaviour."
Answer: NO runtime loader in this repository reads manifest JSON through
WidgetInput.Four readings, each with a control:
ComponentInput22) ⇒ no validator derives from it.WidgetRegistry.tscontains noJSON.parse, nofetch(, nosafeParse, nozod(
JSON.parse|fetch(= 0 inpackages/core/src/registry/, control 21 acrosspackages/core/src; controlmanifests.set= 1 fires in the file itself).@object-ui/typesreaches the seam throughimport type, which is erased at build.⇒
?: neverchanges the declared face only. Runtime acceptance is byte-for-byte whatit was. Readings 1, 2 and 4 are pinned in the new test so this answer can be re-derived
rather than believed.
What changed
packages/types/src/widget.ts— the three members become?: never, each with a namedmigration note (what to write instead: nothing;
descriptionis the published place totell an author anything about an input). The divergence doc block's item 3 flips from
"three keys this face DOES declare are tombstones on
ComponentInput" to "BOTH FACESAGREE", and carries the runtime-face limit above so it cannot be re-opened by accident.
packages/types/src/__tests__/widget-input-retired-keys-7911.test.ts— new, 21assertions in six directions (below).
packages/core/src/registry/WidgetRegistry.ts— comment only. The seam comment asserted"they stay writable there", which this PR makes false.
packages/types/src/__tests__/component-input-retired-keys-7493.test.ts— the new pin isadded to that census's
SKIPPEDset, with the reason stated inline: it authorsdefaultValueinside aRuntimeWidgetManifest.inputsliteral under@ts-expect-error,which that walk's
inputs: [regex cannot tell apart from a component registration. Thefile's header prose was updated in the same stroke so it does not keep claiming a
two-entry skip list.
.changeset/7911-widget-input-retire-label-defaultvalue-advanced.md.Pins, in both directions
tscerror, on a bareWidgetInputandthrough the
RuntimeWidgetManifestdoor.never.RuntimeWidgetManifest.label(a different key, which the loader does read) isasserted still live, so the retirement cannot be over-applied.
?: neveris pinned as source text, with each key's docblock required to name the ruling, the ADR, and
@deprecated.an equality, so a seam that quietly started forwarding a retired key goes red.
ComponentInputhas one), and no parse orvalidation sink in the loader.
Reverse verification (one-off, not a committed test)
Ran from the committed state; the mutation put the three members back to
label?: string,defaultValue?: unknown,advanced?: boolean, with atrap ... EXIT INT TERMrestore.3 → 0, pre-retirement lines0 → 3; blob457b6661→9724faa2.pnpm --filter @object-ui/types buildre-emitteddist/widget.d.tswithlabel?: neveroccurrences1 → 0andlabel?: string0 → 1.3 failed | 18 passed— the three?: neversource-text pins.tsc -p tsconfig.test.jsonexit 2 with fourTS2578: Unused '@ts-expect-error' directive— the refusal assertions are real enforcement, not decoration.457b6661(equal to theHEADblob),git diff HEADfor the path empty, rebuild green, and the file re-runs21 passedwithtscexit 0.Gates
scripts/pm/dispatch-gates.mjslives in the siblingobjectstackcheckout andrefuses cross-repo by design, so it cannot answer for this repository and
--ranreconciliation was unavailable. The list below was hand-derived from this repo's own
root
check:*scripts and.github/workflows/. Exit codes captured before any pipe.pnpm --filter @object-ui/types build(includescheck-dist-completeness)pnpm --filter @object-ui/types type-check(tsc+ examples + tests)pnpm --filter @object-ui/core type-checkpnpm exec vitest run packages/types/ packages/core/pnpm --filter @object-ui/types lint·--filter @object-ui/core lintcheck:control-bytescheck:test-path-rootscheck:new-line-citationscheck:unreferenced-sourcescheck:comment-mask-corpuscheck:spec-symbolscheck:vi-mock-override-shapecheck:changeset-claims(report-only)check-changeset-presence·check-changeset-no-major·check-changeset-fixedcheck:readme-exportscheck:readme-exportsexits 1 in this worktree for a prerequisite reason, not afinding: its four complaints all read "its type entry
./dist/index.d.tsis not on disk— run
pnpm buildfirst" and nameplugin-calendar/plugin-gantt/plugin-kanban,packages this diff does not touch; it then reports its own population as COLLAPSED
(
packagesRead: found 2, floor is 25). 1 of 40 packages is built here.readme-exports.ymlruns
turbo run build --filter='./packages/*'before the gate, so CI measures it on abuilt tree. This diff changes zero README files.
Declared narrowing of local scope. The repository-wide runs —
pnpm test,pnpm lint,pnpm type-checkover all 40 packages, and the fullturbobuild — are CI's,not this seat's. The narrowing above is a measurement rather than a gap because the blast
radius was enumerated by symbol:
WidgetInputandRuntimeWidgetManifestare referencedby exactly two packages,
@object-ui/typesand@object-ui/core, and both were built,type-checked, linted and tested in full here.
Changeset
minorwith a BREAKING banner, per the gate's verdict rather than the ruling's prose:check-changeset-presencescored the change "minor at most, never major" (every packagesits in one fixed group pinned to the
@objectstackmajor — AGENTS.md §版本号策略, enforcedby
check-changeset-no-major.mjs). The banner is earned: the published.d.tsmember setmoves, confirmed on the built artifact —
packages/types/dist/widget.d.tsnow emitslabel?: never,defaultValue?: never,advanced?: neverwhere it emittedstring,unknownandboolean.Every figure above was taken on
598c45ffb, the final commit on this branch.🤖 Generated with Claude Code
Generated by Claude Code
Generated by Claude Code