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

feat(types)!: retire WidgetInput.label / defaultValue / advanced as ADR-0049 tombstones (objectui#7911) - #9619

Merged
hotlong merged 1 commit into
mainfrom
claude/issue-7911-widget-input-retire-dead-keys
Sep 16, 2026
Merged

hotlong merged 1 commit into
mainfrom
claude/issue-7911-widget-input-retire-dead-keys

Conversation

@hotlong

@hotlong hotlong commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #7911

Carries maintainer ruling A of 2026-09-15 (objectui#7911 comment 5689209770) to the
second input face: WidgetInput.label, WidgetInput.defaultValue and
WidgetInput.advanced in packages/types/src/widget.ts become ADR-0049 retirement
tombstones (?: never), and the widget.ts divergence doc block is rewritten in the
same 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's inputs in this
repository, and it forwards five keys — name, type, required, options (renamed to
enum at the seam) and description. It never forwarded these three. The copy that used
to carry them onto ComponentInput.label / defaultValue / advanced was deleted when
those 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):

reading value control on the same instrument
input.label / .defaultValue / .advanced, non-test .ts/.tsx 0 / 0 / 0 input.options 2 · input.type 10 · input.name 7 · input.required 4 · input.description 1
structural reads of manifest.inputs, tree-scoped 1 (WidgetRegistry.ts) manifest.type fires in the same walk
WidgetInput in packages/types/src/zod/ 0 ComponentInput 22
WidgetInputSchema / RuntimeWidgetManifestSchema, tree-wide 0 ComponentInputSchema present in 7 files
a minted absent token on the same greps 0 —

new WidgetRegistry(...) is constructed nowhere outside packages/core's own tests, and
none of those tests authors an inputs array, so no in-repo authoring site breaks.

⚠️ The limit of this change — please read this before judging it

The tombstone has no runtime face, and that is the whole cost of ruling A.

WidgetInput has no zod mirror, so unlike the ComponentInput retirement — which pairs
?: never with a retirementTombstone() parse refusal — this one is a tsc error at a
TypeScript authoring site and nothing else. WidgetRegistry does no deserialization and
no 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 label gets 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:spec
seat 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:

  1. No zod mirror of the face (0, control ComponentInput 22) ⇒ no validator derives from it.
  2. WidgetRegistry.ts contains no JSON.parse, no fetch(, no safeParse, no zod
    (JSON.parse|fetch( = 0 in packages/core/src/registry/, control 21 across
    packages/core/src; control manifests.set = 1 fires in the file itself).
  3. No type-to-runtime-schema codegen is configured anywhere (exit 1, control fires).
  4. @object-ui/types reaches the seam through import type, which is erased at build.

⇒ ?: never changes the declared face only. Runtime acceptance is byte-for-byte what
it 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 named
    migration note (what to write instead: nothing; description is the published place to
    tell 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 FACES
    AGREE", 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, 21
    assertions 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 is
    added to that census's SKIPPED set, with the reason stated inline: it authors
    defaultValue inside a RuntimeWidgetManifest.inputs literal under @ts-expect-error,
    which that walk's inputs: [ regex cannot tell apart from a component registration. The
    file'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

  1. Refusal — authoring each retired key is a tsc error, on a bare WidgetInput and
    through the RuntimeWidgetManifest door.
  2. Control — the five live keys still author cleanly, and none of them is never.
    RuntimeWidgetManifest.label (a different key, which the loader does read) is
    asserted still live, so the retirement cannot be over-applied.
  3. Tombstone, not deletion — ?: never is pinned as source text, with each key's doc
    block required to name the ruling, the ADR, and @deprecated.
  4. Why they are dead — the seam's forwarded key list is read off disk and asserted as
    an equality, so a seam that quietly started forwarding a retired key goes red.
  5. The limit — no zod mirror (control: ComponentInput has one), and no parse or
    validation sink in the loader.
  6. The doc block — asserts the agreement is recorded and the limit stays visible.

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 a trap ... EXIT INT TERM restore.

  • Landed on disk: tombstone lines 3 → 0, pre-retirement lines 0 → 3; blob
    457b6661 → 9724faa2.
  • Reached the published face: pnpm --filter @object-ui/types build re-emitted
    dist/widget.d.ts with label?: never occurrences 1 → 0 and label?: string 0 → 1.
  • Predicted direction: RED. Observed: RED, on both legs.
    • vitest 3 failed | 18 passed — the three ?: never source-text pins.
    • tsc -p tsconfig.test.json exit 2 with four TS2578: Unused '@ts-expect-error' directive — the refusal assertions are real enforcement, not decoration.
  • Restored and proved it: blob back to 457b6661 (equal to the HEAD blob),
    git diff HEAD for the path empty, rebuild green, and the file re-runs
    21 passed with tsc exit 0.

Gates

⚠️ scripts/pm/dispatch-gates.mjs lives in the sibling objectstack checkout and
refuses cross-repo by design, so it cannot answer for this repository and --ran
reconciliation 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.

gate exit
pnpm --filter @object-ui/types build (includes check-dist-completeness) 0
pnpm --filter @object-ui/types type-check (tsc + examples + tests) 0
pnpm --filter @object-ui/core type-check 0
pnpm exec vitest run packages/types/ packages/core/ 0 — 347 files / 7829 tests passed
pnpm --filter @object-ui/types lint · --filter @object-ui/core lint 0 · 0 (warnings pre-existing, 0 errors)
check:control-bytes 0
check:test-path-roots 0
check:new-line-citations 0
check:unreferenced-sources 0
check:comment-mask-corpus 0
check:spec-symbols 0
check:vi-mock-override-shape 0
check:changeset-claims (report-only) 0
check-changeset-presence · check-changeset-no-major · check-changeset-fixed 0 · 0 · 0
check:readme-exports NOT MEASURED — see below

check:readme-exports exits 1 in this worktree for a prerequisite reason, not a
finding: its four complaints all read "its type entry ./dist/index.d.ts is not on disk
— run pnpm build first"
and name plugin-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.yml
runs turbo run build --filter='./packages/*' before the gate, so CI measures it on a
built tree. This diff changes zero README files.

Declared narrowing of local scope. The repository-wide runs — pnpm test,
pnpm lint, pnpm type-check over all 40 packages, and the full turbo build — 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: WidgetInput and RuntimeWidgetManifest are referenced
by exactly two packages, @object-ui/types and @object-ui/core, and both were built,
type-checked, linted and tested in full here.

Changeset

minor with a BREAKING banner, per the gate's verdict rather than the ruling's prose:
check-changeset-presence scored the change "minor at most, never major" (every package
sits in one fixed group pinned to the @objectstack major — AGENTS.md §版本号策略, enforced
by check-changeset-no-major.mjs). The banner is earned: the published .d.ts member set
moves, confirmed on the built artifact — packages/types/dist/widget.d.ts now emits
label?: never, defaultValue?: never, advanced?: never where it emitted string,
unknown and boolean.

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

…` 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
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 2 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/5905-componentinput-inputtype-tombstone.md

  • names widget.ts → packages/types/src/widget.ts — edited by this change

    Stale wording corrected in the same pass, because this change falsifies it: base.ts and zod/base.zod.ts both said the fork was "recorded for a ruling; until then this stays a live, writable key", and widget.ts called it "the open fork". All three now record the ruling. A reader who greps the source instead of the card thread was meeting an open fork that no longer existed.

.changeset/7493-componentinput-retire-label-defaultvalue-advanced.md

  • names packages/types/src/__tests__/component-input-retired-keys-7493.test.ts → packages/types/src/__tests__/component-input-retired-keys-7493.test.ts — edited by this change

    The retirement kit: ?: never on ComponentInput (packages/types/src/base.ts), so authoring one is a tsc error at the registration site; retirementTombstone() on ComponentInputSchema (packages/types/src/zod/base.zod.ts), so an authored value is REFUSED at parse time with code: 'invalid_type', the key named in the issue path, and the migration note as the message (one string, both channels). Pinned in packages/types/src/__tests__/component-input-retired-keys-7493.test.ts, which also holds a tree-scoped absence census over every inputs: array under packages/** and apps/**.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a claim that was born false (a changeset this change adds is excluded by construction), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with 716bc245e (merge-base with origin/main): 4 file(s) changed outside .changeset/, read against 1099 pending declaration(s) that publish a body (1601 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3063.9 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-D8aznyFY.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) 544.93KB 130.50KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.98KB 59.97KB
fields (index.js) 249.19KB 62.88KB
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) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
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.83KB 10.95KB
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.99KB 14.24KB
plugin-charts (index.js) 71.33KB 19.90KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 252.65KB 65.65KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.64KB 57.91KB
plugin-kanban (index.js) 46.63KB 14.53KB
plugin-list (index.js) 112.67KB 27.68KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 84.89KB 20.96KB
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) 104.82KB 34.67KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
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.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
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.04KB 5.36KB
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

hotlong commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Served-tier: CONTRACT_REVIEW_TIER
Transcript reading: /root/.claude/projects/-home-user/ad6404ab-6ca0-56fb-a695-03e747dc4eeb/subagents/agent-abec5659945f0c9db.jsonl (first user record is this review's dispatch prompt, matched by content) — every type:"assistant" record carries message.model = claude-fable-5-1 (5 of 5 at the time of reading, no other value). ⛔ Not get_session, not the model: input, not the system prompt.

Contract review

598c45ffbb2fa40f95807364a5923d6705fdc82a

Reviewed 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 5689209770 (director seat, maintainer 「同意」 2026-09-15T22:57Z): letter A — ?: never on WidgetInput.label / defaultValue / advanced, the widget.ts divergence docblock rewritten in the same stroke to say both faces agree, no zod mirror to move, minor + BREAKING banner per the gate, and a stop condition: report whether any runtime loader reads manifest JSON through this type, stop if one does.

① Derived judgments

Every change to the accept set or the published surface in this diff, judged one by one against that ruling:

# Change in the diff Surface Ruled? Judgment
1 WidgetInput.label?: string → label?: never (packages/types/src/widget.ts) published .d.ts member narrows; TS accept set loses label A, explicitly Right. Verified on the built artifact: dist/widget.d.ts base→head changes exactly this line (string → never).
2 WidgetInput.defaultValue?: unknown → defaultValue?: never same A, explicitly Right. Same verification (unknown → never).
3 WidgetInput.advanced?: boolean → advanced?: never same A, explicitly Right. Same verification (boolean → never).
4 Divergence docblock item 3 rewritten from "three keys stay declared and WRITABLE here" to "BOTH FACES AGREE", carrying the no-runtime-face limit doc comment on the published .d.ts (projects into dist/widget.d.ts) A, explicitly ("rewritten in the same stroke to say both faces agree") Right. The existing vocabulary pin's docblock assertions (options/enum, the five ComponentInput-only keys, NOT NOW) still hold on the new text — ran locally, green.
5 Per-member RETIRED docblocks with @deprecated and a named migration note doc comments on the same .d.ts implied by the #7493 tombstone shape the ruling carries Right. No accept-set effect; matches the ComponentInput precedent.
6 packages/core/src/registry/WidgetRegistry.ts — 12 comment lines inside load() none. Built core at base and head: dist/**/*.d.ts byte-identical (0 differing); the only differing file is dist/registry/WidgetRegistry.js, and every differing line is a // comment not ruled, not needed Right to correct it — the old comment asserted "they stay writable there", which this diff makes false. No accept-set change.
7 New pin widget-input-retired-keys-7911.test.ts (21 assertions) none (**/__tests__/** excluded from the build by tsconfig.json; files is dist only) ruling names no pin; repo convention for tombstones Right. Ran it: 21/21 green. Mutation probe (three members put back to string/unknown/boolean): 3 failed / 18 passed and tsc -p tsconfig.test.json exit 2 with 4× TS2578, so the @ts-expect-error refusals are live enforcement; restored, clean.
8 component-input-retired-keys-7493.test.ts — the new pin added to that census's SKIPPED set, header prose updated none (test instrument) not ruled Right, and harmless to the #7493 census. The new file authors defaultValue under @ts-expect-error inside an inputs: [ literal, which that walk's regex cannot distinguish from a registration; the skip is reasoned inline and the skipped file authors nothing on ComponentInput.
9 .changeset/7911-widget-input-retire-label-defaultvalue-advanced.md release record ruled ("per the gate's verdict") see ②

Narrows more than ruled? No. The types artifact diff base→head touches one file (dist/widget.d.ts) and, in declaration lines, exactly the three ruled members. RuntimeWidgetManifest.label (manifest-level, read by the loader) is untouched — label: string at both src and dist — and the label inside options?: Array<{ label; value }> is untouched; the new pin asserts both. The five live members (name, type, required, options, description) are unchanged.

Narrows less than ruled? No. All three members are tombstoned; the docblock is rewritten; the ruling's "no zod mirror to move" reading reproduces (WidgetInput absent from packages/types/src/zod, ComponentInput present — pinned with that control).

Stop condition (ruling §Execution). The PR answers NO; I re-derived it independently rather than trusting the body: manifest.inputs is read in exactly one non-test file tree-wide (WidgetRegistry.ts); that file contains no JSON.parse, fetch(, safeParse or zod — its one dynamic import() (line ~294) loads a component module for a source.type === 'module' URL, not a manifest; new WidgetRegistry / registerAll( appear nowhere outside packages/core's own tests; RuntimeWidgetManifest / WidgetInput are referenced by exactly two packages (types, core); no published doc or skill under content/, skills/, docs/, apps/ documents the widget-manifest face at all (0 hits for RuntimeWidgetManifest / WidgetRegistry / WidgetInput), so no in-repo guidance teaches an author to write these keys. The stop condition did not fire; behaviour is unchanged.

② Semver and changeset

Frontmatter: @object-ui/types: minor, @object-ui/core: minor, body opens with a BREAKING banner.

  • Level for @object-ui/types: matches. The published .d.ts member set changes (verified on the built artifact, above). The repo's rule (AGENTS.md §版本号策略; check-changeset-no-major.mjs, CI "Changeset Bump Policy" green on this head) is that objectui's own breaking changes are declared minor with the break stated in the body — which this changeset does, with the migration ("write nothing; description is the place") and the limit stated.
  • Level for @object-ui/core: matches the effective impact, though not for the reason the PR body gives. Core's built .d.ts is byte-identical and its JS differs only in comment bytes, so "core's published source file changed" would on its own justify at most an empty/patch claim (AGENTS.md line 171: 纯内部改动 → empty frontmatter; the [finding] ComponentInput.defaultValue?: any (packages/types/src/base.ts:550) is why the marked plugin example in skills/objectui must carry a bare any — tighten the contract to unknown and the baseline row retires with the guide #7493 precedent claimed core: patch for a real code deletion). What makes minor + BREAKING correct for core is that WidgetRegistry.register(manifest: RuntimeWidgetManifest) / registerAll(...) import that type from @object-ui/types (dist/registry/WidgetRegistry.d.ts line 17, import type), so the accept set of core's own public methods narrows for every TypeScript caller in the same fixed-group release. A patch claim would have under-declared that. Not a defect; recorded so the adopter does not read the PR body's weaker reason as the rule.
  • Declared packages: complete. The narrowing reaches nothing outside types and core (symbol census above); no app or plugin references the type or the registry.
  • Body claims re-checked against the tree, not prose: "only consumer of a manifest's inputs" (1 file, verified); "no zod mirror" (verified); "tsc error and nothing else" (verified: no runtime sink). CI "Changeset Declaration", "Changeset Fixed Group Check", "Changeset Claim Re-read", "Changeset Overwrite Report" all green on 598c45ff.

③ Boundary flags

  1. The card's own limit — widget manifests are authored OUTSIDE this repository; can an in-repo zero justify this retirement? My answer: no, and this PR does not claim it does; the ruling does. The zero was carried to the maintainer with the limit attached three times (card body, triage 5557246012, the seat's analysis 5673943806 §二/§七 confidence gap), and the ruling was taken with B refused and C offered-and-not-taken. What the ruling therefore accepted is an unmeasured population, and its exposure splits cleanly: (a) out-of-repo TypeScript authors compiling against @object-ui/types/@object-ui/core who write one of the three keys get a tsc error on upgrade, loud and named (@deprecated, migration note) — this is the irreversible cost the card's "A" paragraph feared, and it is the cost the maintainer chose; (b) out-of-repo JSON manifest authors see no change at all — the key was silently ignored before and is silently ignored after, because nothing in this repository parses a manifest through this type (verified). The PR records exactly that split in the docblock, the changeset and the pin header, and the pin header refuses the misreading "green means nobody writes them". That is the most an in-repo change can do under this ruling; I do not escalate it. ⚠️ What remains open is by ruling, not by omission: the maintainer did not order the out-of-repo measurement (option C) and none was done — accepted risk, not closed risk. If the seat wants that risk retired rather than carried, the path is the C card the ruling left available, not a change to this PR.
  2. Stop condition — answered NO by the PR, re-derived here (①). Not fired.
  3. check:readme-exports not measured locally (PR body) — CI "README Export Check" is green on this head, on a built tree; resolved.
  4. Repo-wide runs left to CI (declared narrowing) — all 36 check runs on 598c45ff are converged at 2026-09-16T12:39Z: 33 success, 3 skipped, 0 failures, including "Type Check" and all four "Test" shards. Locally I ran the three pins (56/56), @object-ui/types tsc -p tsconfig.test.json (exit 0), @object-ui/core type-check (exit 0), and both package builds at base and head.
  5. PR's open question on label writes — a process budget conflict, not a contract matter; outside this review. The PR's out-of-scope findings (option C, the options/enum spelling ruled NOT NOW by [finding] WidgetInput restates the input vocabulary a third time, and the deferral tracking it is about to be closed with #4972 #5675) are correctly left unfiled.
  6. Independence. The commit's Claude-Session: trailer names session_01VCpmqvacV4BypY48QdoxcE — the same session recorded below as adopter. The pair still holds at the level that matters: the implementing agent (Co-Authored-By: Claude Opus 5, its own subagent transcript, dispatch order not given to me) and the reviewing agent (this subagent, agent-abec5659945f0c9db, claude-fable-5-1, fed only card + rulings + PR) are different agents at different tiers, and I did not write, run or read the implementation's instructions. Not SELF-REVIEW; stated so the shared session id cannot be misread later.

Reads: 0 MCP calls; REST proxy only. Writes: this comment (1 of 1).

Implemented-by: claude/issue-7911-widget-input-retire-dead-keys
Reviewed-by: session_01VCpmqvacV4BypY48QdoxcE

PASS


Generated by Claude Code

hotlong commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Clause-② provenance — review of record, carriers cleared

domain:spec @ objectui seat, session session_01VCpmqvacV4BypY48QdoxcE, 2026-09-16T12:43Z.

Record: 5697575520 · head judged: 598c45ffbb2fa40f95807364a5923d6705fdc82a · verdict: PASS · adopted VERBATIM.

⭐ This is the first review rendered under the maintainer's 2026-09-16 ruling 「起达档复核子代理」 (objectstack#18418), which overturned SKILL.md:523's prohibition on an under-tier seat doing this at all.

How the independence was actually obtained, ⛔ not asserted

This seat is served claude-opus-5, below CONTRACT_REVIEW_TIER = claude-fable-5-1. The review was therefore rendered by an isolated review subagent that was given only the card, its rulings and the PR — ⛔ never this seat's dispatch order, ⛔ never this seat's conclusions, ⛔ never the implementing dev's report. Its brief instructed it to locate the ruling itself rather than be told it.

Tier, verified by transcript — the only channel that is a reading here:

agent own-transcript message.model
reviewer (agent-abec5659…) claude-fable-5-1 ⇒ at tier
implementer (control) claude-opus-5

⛔ Not get_session (inside a subagent it returns the dispatching session), ⛔ not the model: input (传参), ⛔ not the system prompt (自述). The reviewer reported this reading itself, and this seat re-took it independently; the two agents reading different values through the same instrument is the control.

⭐ And the checker agrees without being told: check-clause2-carriers --pair 9619 reported C6-RECORD on the pre-clear run — "comment 5697575520 … is a ## Contract review comment naming 598c45ff … Its Served-tier: names the tier constant, so it reads at tier" — exit 0.

Landing pre-checks

  • ① Clause-② review PASS on record — above, same-form: Served-tier: first line, ## Contract review, head sha in its own fenced block, ①②③ sections, independence pair, PASS.
  • Independence pair — Implemented-by: claude/issue-7911-widget-input-retire-dead-keys / Reviewed-by: session_01VCpmqvacV4BypY48QdoxcE. ⚠️ The reviewer flagged, correctly and unprompted, that the implementing commit's Claude-Session: trailer names that same session. ⛔ Not SELF-REVIEW: the two lines are different kinds of identifier by the rule's own spelling (mode:subagent records the branch for the implementer), and the agents were distinct, at different tiers, with the reviewer isolated from the implementation's instructions. Recorded so the shared session id cannot be misread later.
  • ② Both carriers cleared in one act, each read back: card [finding] WidgetInput.label / defaultValue / advanced (packages/types/src/widget.ts) have no reader once WidgetRegistry stops copying them onto the retired ComponentInput keys — #7781's class, one face over #7911 → pm:dispatched, priority:p3, domain:spec; PR feat(types)!: retire WidgetInput.label / defaultValue / advanced as ADR-0049 tombstones (objectui#7911) #9619 → package: core, package: types, tests.
  • ③ CI — 36 check runs on this head: 33 success, 3 skipped, zero non-green, zero cancelled, mergeable_state: clean. ⚠️ The three skips were judged from objectui's own ci.yml (both coverage jobs carry if: github.event_name == 'push'; dependabot is the dependabot-only gate) — ⛔ not from check-expected-skips.mjs, whose roster is objectstack's and cannot judge this board (objectstack#18454).
  • Governed surface — check-governed-merges.mjs --test over the final five-path list: "0 of 5 path(s) hit the register … ordinary queue landing applies". Re-run on the final list, ⛔ not carried from earlier.

One judgment in the record worth surfacing rather than burying

The reviewer accepted the changeset's minor for @object-ui/core but rejected the PR body's reason for it: core's built .d.ts is byte-identical and its JS differs only in comment bytes, so "core's source changed" would justify at most a patch. What makes minor correct is that WidgetRegistry.register(manifest: RuntimeWidgetManifest) imports the narrowed type, so core's own public method accept set narrows for every TypeScript caller. ⇒ right level, wrong stated reason — recorded so the next reader does not adopt the weaker reason as the rule.

⚠️ And on the card's standing limit — widget manifests are authored outside this repository — the reviewer's answer is that an in-repo zero does not justify the retirement and this PR does not claim it does: the ruling does, with the limit attached and option C offered and not taken. ⇒ that is accepted risk, ⛔ not closed risk, and the path to retire it is the C card the ruling left available, not a change to this PR.

⇒ proceeding to ready + enqueue.


Generated by Claude Code

@hotlong
hotlong marked this pull request as ready for review September 16, 2026 12:43
@hotlong
hotlong added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit 335abea Sep 16, 2026
38 checks passed
@hotlong
hotlong deleted the claude/issue-7911-widget-input-retire-dead-keys branch September 16, 2026 13:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants