This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
docs(types): point nine @default tags at a measured read site (objectui#8318) - #8756
Merged
Merged
Conversation
…ctui#8318) Maintainer ruling 2026-09-09 (decision batch #104 item 4): a documentation-vs-implementation mismatch is a documentation fix. No key is retired, no renderer's behaviour moves, no zod file is touched. `DetailSchema.loading` / `DetailViewSchema.loading`: `@default true` -> `false`. `DetailView.tsx:995` reads the key as a bare disjunct beside the component's own fetch state, so an omitted key contributes nothing and draws no skeleton. The `true` came from `6f132f29` (2026-07-13), a bulk JSDoc pass copying the zod mirror's old `.default(true)`. `CardSchema.variant`, `PageNodeSchema.isDefault`, `ActionSchema.level` and the four `CRUDDialogSchema` keys lose the tag: nothing applies those values. Each docblock carries its own evidence rather than one sentence copied nine times -- which is the same defect this card is about, one level up. The pin grows from 15 rows to 24, both sides still derived off disk. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w
Rows 18-20 shared one assertion title (`publishes NO @default block tag, and says why`), so an ablation report could not tell which row had reddened. The titles now carry the member. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w
Contributor
✅ 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
|
os-warren
marked this pull request as ready for review
September 9, 2026 04:13
This was referenced Sep 9, 2026
os-warren
deleted the
claude/issue-8318-jsdoc-default-tag-corrections
branch
September 9, 2026 04:31
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.
Fixes #8318
Maintainer ruling 2026-09-09 (decision batch #104 item 4, recorded at objectui#8318 comment 5595150523), verbatim and untranslated:
Ruled A1 + B1 — the documentation is what is wrong, so the documentation is what changes. No key is retired, no renderer's behaviour moves, no zod file is touched. Whether these keys should exist at all stays with the ADR-0049 liveness worklist (objectui#4631, objectui#7963).
Per-key table — every tag re-derived against a read site on this branch's base
3fbdd4a2, ⛔ not copied from the card. Two line numbers moved since the re-test at comment 5594082411 (DetailView.tsx:992is:995today), which is the reason for re-measuring rather than quoting.DetailSchema.loadingpackages/plugin-detail/src/DetailView.tsx:995—if (loading || schema.loading), a bare disjunct beside the component's ownuseStatefetch state at:269. An omitted key isundefinedand contributes nothing.@default falseDetailViewSchema.loadingregister('detail-view', DetailViewRenderer)(plugin-detail/src/index.tsx:284) is a data-source gate whose child isDetailViewwith the bound schema, so both node types land on:995.@default falseCardSchema.variantrenderers/layout/card.tsx:64(namespace: 'ui') forwards remaining keys through{...cardProps};ui/card.tsxdestructures onlyclassNameand spreads the rest onto a div element —grep -c variant ui/card.tsx= 0, exit 1. Second registrationcontainers.tsx:842(namespace: 'page') forwards only{...designer}.ui/alert.tsx= 5, exit 0 (a primitive that really consumes it, viacva). Also, in-file:schema.clickableandschema.hoverableboth resolve incard.tsx:35-36.PageNodeSchema.isDefaultpageIS registered (renderers/layout/page.tsx:692), andPageRendererneither reads nor forwards the key.schema.isDefaultrepo-wide = 0 hits, exit 1. The wrapper element getstoDomProps(props)(page.tsx:521), an allow-list —SDUI_DOM_PASS_THROUGH_KEYSincore/src/utils/dom-props.ts— withisDefaultabsent (0, exit 1).schema.pageTyperesolves, exit 0 (same renderer,page.tsx:291);classNameindom-props.ts= 5, exit 0.ActionSchema.levelregister('action'anywhere, exit 1 —type: 'action'is not a rendered node type. And the channel that makes its four siblings live never reads it:action.level/schema.levelrepo-wide = 0 hits, exit 1.register('detail'resolves toplugin-detail/src/index.tsx:387, exit 0;action.methodresolves toActionRunner.ts:1787and:1793, exit 0.CRUDDialogSchema.sizeregister('crud-dialog'anywhere, exit 1 (also matched with a quote-agnostic regex, exit 1)..sizeis a very common spelling, so a name census answers nothing here — the decisive fact is upstream of it: no node of this type ever reaches a renderer.register('detail'resolves, exit 0 (same regex shape).CRUDDialogSchema.closeOnOutsideClickcrud.tsand its zod twinzod/crud.zod.ts:195.CRUDDialogSchema.closeOnEscapecrud.tsandzod/crud.zod.ts:196only.CRUDDialogSchema.showCloserenderers/overlay/drawer.tsx:38,{schema.showClose && …}— which readsDrawerSchema.showClose, a different member on a different, registered node type.schema.showClosereally does resolve indrawer.tsx, exit 0, and that file namesDrawerSchema.⛔ The nine are deliberately not written as one sentence. That is the same defect this card is about, one level up: the
@default trueon the twoloadingkeys got there in6f132f29(2026-07-13), a bulk JSDoc pass that copied the zod mirror's.default(true)onto every key at once.The
dist/*.d.tsmeasurement, and what it forcedpackages/types' build istsc && vite build,tscpreserves JSDoc in the emitted declarations, anddistis in this package'sfilesarray. So these edits change published text.dist/crud.d.tsblock@defaulttagsdist/layout.d.tsblock@defaulttagsdist/crud.d.tsbytesdist/layout.d.tsbytesBlock tags preceding each of the seven dead keys in the emitted
.d.ts: 0 for all seven. Negative control: a string absent from source greps 0 in the emitted file, exit 1.What it forced: a real
patchchangeset, not the empty-frontmatter declaration a docs-only change might otherwise take..changeset/8318-jsdoc-default-tag-corrections.md. It is still not an accept-set change —Clause-②: nostands: no exported symbol, no validator behaviour, no payload key moves. Only the text an author reads in an editor tooltip, which was telling them the opposite of what the renderer does.The pin: 15 rows to 24
packages/types/src/__tests__/layout-default-jsdoc-7361.test.ts— 49it(to 75, both sides still derived off disk.loading) derive the applied value from a proved negative: the gate matches, and no literal fallback exists on the key, so the omitted key contributes||'s identity.bareDisjunctDefaultrefuses to answer if a literal fallback ever appears — so if someone later gives the reader the?? truethe old tag promised, these rows go red and ask for the tag back. The capture is the co-disjunct's identifier, checked to be aReact.useStatelocal in the same file.@defaultkeys objectui#8318 called unread — seven are live #8718 landed are untouched.register('action'/register('crud-dialog'match nothing) are not re-derived inside the test — it reads named files, and a repo-wide enumeration is a different instrument with its own failure modes. They are recorded in the declarations, incrud.zod.ts, and inhandler-keys-string-any-mirrors-7344.test.ts.Ablation — 12 legs, each reddening its own row
Each leg: mutate, prove the bytes landed on disk (anchor counts plus a byte-length delta), run the suite, restore against the
HEADblob, prove restoration by an emptygit diff HEADand blob-hash equality. Baseline green, post-ablation green.DetailSchema.loadingtag back totrueDetailViewSchema.loadingtag back totrueDetailView.tsxa literal fallback on the key@defaulttoCardSchema.variantui/alert.tsxevidence termui/card.tsxmentionvariant@defaulttoPageNodeSchema.isDefault@defaulttoActionSchema.level@defaulttoCRUDDialogSchema.size@defaulttocloseOnOutsideClick@defaulttocloseOnEscapedrawer.tsxevidence termRows 18-20 originally shared one assertion title, so an ablation report could not say which had reddened; a second commit gives each the member's name. That rename is why M4/M7/M8 are now distinguishable above.
Gates, with exit codes
Every exit code captured before any pipe.
pnpm checkis a per-PR CI gate (.github/workflows/lint.yml), and its first run was PRECONDITION NOT MET, ⛔ not a red.pnpm --filter @object-ui/types type-checkpnpm exec vitest run packages/types/(repo root)pnpm exec vitest run packages/types/src/__tests__/layout-default-jsdoc-7361.test.tspnpm --filter @object-ui/types lintno-explicit-anypnpm exec eslinton the four changed filesany, none on an added lineobject-ui/no-dynamic-import-in-test-hookviolation)node scripts/check-changeset-presence.mjspnpm check:control-bytesgrep -naPcontrol-byte self-scan of the 5 changed filespnpm check— first run, unbuiltpackages/cli/dist/cli.jsMODULE_NOT_FOUND= PRECONDITION NOT METpnpm --filter @object-ui/cli buildpnpm check— re-runpnpm --filter @object-ui/types builddist/*.d.tsmeasurement above)Heavy runs were serialised through the container's shared verify lock; every one printed
VERDICT command-exit 0.NOT MEASURED
variantattribute theuiroute spreads onto a div element is measured only as "the primitive's source contains novariant".Build Docs,check:node-esm-load,check:published-dist. Measured here or nowhere — and here they were not run. They are the three gates the dispatch names as not per-PR; this diff adds only comments to three.tsfiles, one test file and one changeset, so it moves no module graph, no ESM entry and no published tooling manifest. ⛔ That is a reasoned expectation, not a measurement.no-explicit-any) and their line numbers landing on declarations this diff does not touch — this diff adds comments only. ⛔ The base commit was not linted separately.pnpm checkwarnings (3 files carrying a registered component type that did not validate, 46 skipped). None of them is in this diff, and no baseline run was made to prove they pre-exist.ActionSchemavsUIActionSchemareachability atActionRunner. Inherited un-measured from the re-test at comment 5594082411, and untouched here.Anything that argues a key should be retired — ⛔ reported, not acted on
Routes to objectui#4631 / objectui#7963, ⛔ not to this PR:
CardSchema.variantis the strongest retirement candidate of the seven, and there is a second reason beyond "nothing reads it": on theuiroute the key is not dropped, it is forwarded —renderers/layout/card.tsxcloses its spread with a hand-rolled destructure of three designer props rather thantoDomProps, sovariantreachesui/card.tsxand is spread onto a div element as an unknown attribute. That is the shape objectui#4425 / objectui#7933 closed elsewhere with the allow-list.CRUDDialogSchemakeys are the cleanest ADR-0049 instances in the set — their node type has no registration at all, which is a strictly stronger fact than "the renderer does not read the key". The interface already carries anonClose?: nevertombstone for exactly this reason.ActionSchema.levelsits on a@deprecatedinterface whose modern twinUIActionSchemadoes not declare it.What this PR deliberately does NOT do
⛔ No key retired. ⛔ No renderer, registration or zod file touched. ⛔ The seven pinned rows from PR #8718 untouched (they pin the keys whose tags are correct; they do not overlap these nine). ⛔ Draft, and staying draft.
Session for this implementation, as a code span so it survives a body edit:
https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w🤖 Generated with Claude Code
https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w
Generated by Claude Code