This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
test(types): re-test the 16 @default keys objectui#8318 called unread — seven are live - #8718
Merged
Merged
Conversation
…d as unread objectui#8318 classified 16 of objectui#7735's 41 de-defaulted keys as having no registered renderer that reads them, so that their JSDoc `@default` describes nothing that runs. Triage (comment 5582715445) required a three-question re-test of all 16 before anything acts on that: is the key stripped by `SchemaRenderer`, does the registering renderer forward the rest-spread, does the primitive consume it. The re-test finds SEVEN of the 16 are read, each applying exactly the value its tag publishes: `ActionSchema.method` / `.chainMode` / `.reload` / `.close` in `ActionRunner`, `DetailSchema.showBack` and `DetailViewSchema.showBack` in `plugin-detail`'s `DetailView` (both node types register onto it), and `AppComponentSchema.layout` in `@object-ui/runner`'s `LayoutRenderer`. The original sweep looked only inside `packages/components/src/renderers/`; every reader above is a direct `schema.KEY` read in a package it never opened. Each row derives both sides off disk in this file's existing style, so it turns red if either the reader's fallback or the tag moves. Two extractions are negation-shaped (`x !== false`) and two match in more than one place, where the pin also requires the sites to agree. Nothing about the published surface changes: no `@default` is edited or deleted, which triage's ordering forbids until the re-test is complete and which its question 1 reserves to the maintainer. 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 01:17
os-warren
deleted the
claude/issue-8318-jsdoc-default-renderer-retest
branch
September 9, 2026 01:34
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.
Part of #8318
Draft. The primary deliverable of this card is the re-test, posted in full as a comment on #8318. This PR carries only what the re-test made pinnable. ⛔ No
@defaulttag is edited or deleted, no type moves, no runtime behaviour changes — triage's ordering forbids acting on the classification until the re-test is complete, and its question 1 is reserved to the maintainer.#8318 lists 16 keys as "no registered renderer reads the key at all", so that their published
@defaultdescribes nothing that runs. The three-question re-test triage required — (a) stripped bySchemaRenderer? (b) rest-spread destructured and forwarded? (c) primitive consumes it? — finds seven of the 16 are read, each by a directschema.KEY/action.KEYread:ActionSchema.method'POST'packages/core/src/actions/ActionRunner.ts:1787,1793action.method || 'POST'ActionSchema.chainMode'sequential'ActionRunner.ts:1226action.chainMode || 'sequential'ActionSchema.reloadtrueActionRunner.ts:1618(+ guard:1597)action.reload !== falseActionSchema.closetrueActionRunner.ts:1619(+ guard:1597)action.close !== falseDetailSchema.showBacktruepackages/plugin-detail/src/DetailView.tsx:1009,1028(schema.showBack ?? true)DetailViewSchema.showBacktrue(schema.showBack ?? true)AppComponentSchema.layout"sidebar"packages/runner/src/LayoutRenderer.tsx:124app.layout || 'sidebar'Every one of these tags is correct. The card's error is duller than the spread channel that triage suspected: its sweep looked only inside
packages/components/src/renderers/, and every reader above lives in a package it never opened —packages/plugin-detail,packages/runner,packages/core/src/actions.DetailSchema.loadingandDetailViewSchema.loadingare read atDetailView.tsx:992asif (loading || schema.loading), a bare disjunct — an omitted key renders no skeleton, so the effective default isfalsewhile the tag saystrue. That is a genuine #7735 instance hiding inside the population the card called referent-less. It is reported, ⛔ not fixed and ⛔ not pinned here: both candidate fixes (correct the tag, or give the reader the?? trueit promises) are somebody's ruling, and a pin on either side pre-empts it.The remaining seven of the 16 had no reader the re-test could find. That is the input to the card's question 1, which is order-locked behind this measurement and ⛔ not answered here.
What this PR changes
One test file plus one changeset.
packages/types/src/__tests__/layout-default-jsdoc-7361.test.tsgrows from 8 pinned rows to 15, in its existing row-by-row style, both sides derived off disk so a row reddens if either the reader's fallback or the tag moves. Two extractions are negation-shaped (x !== false, where the applied default is the negation of the compared literal); two match at more than one site and the pin requires the sites to agree, because a fallback that disagrees with itself has no single value for@defaultto describe.⛔ No general instrument was built — triage's ruling, and the shapes here confirm it: two of the seven are negation reads and one resolves through a second package's registration.
Ablations — every new row reddened, then restored
Each leg mutated the reader on disk, proved the bytes landed with a before/after
grep -con both the removed and injected anchors, ran the suite, restored withgit checkout HEAD -- path, and proved the restore by comparinggit hash-objectagainst the HEAD blob and requiringgit diff HEADto be empty. Atrap ... EXIT INT TERMcovered the crash path. Baseline:Tests 49 passed (49).action.method || 'POST'→'PUT'(x2)1 failed | 48 passed, row 8action.chainMode || 'sequential'→'parallel'1 failed | 48 passed, row 9result.reload = action.reload !== false;→!== true;1 failed | 48 passed, row 10result.close = action.close !== false;→!== true;1 failed | 48 passed, row 11(schema.showBack ?? true)→?? false(x2)2 failed | 47 passed, both rowsapp.layout || 'sidebar'→'header'1 failed | 48 passed, row 14schema.justify || 'start'→'end'inflex.tsxFlexLayoutProps.justifycontrol firesThe last leg is there because "the negative controls must keep firing" is a claim that has to be measured, not asserted: it shows the load-bearing control is still capable of failing rather than merely still green.
Gates, each with its exit code
pnpm exec vitest run packages/types/src/__tests__/layout-default-jsdoc-7361.test.tsTest Files 1 passed,Tests 49 passed (49)pnpm exec vitest run packages/types/Test Files 152 passed,Tests 2920 passed (2920)pnpm --filter @object-ui/types type-checktsc -p tsconfig.test.json; verified the new file is in that project with--listFiles(1 hit; controlrenderers/layout/card.tsx0 hits)pnpm --filter @object-ui/types lint266 problems (0 errors, 266 warnings), all pre-existingno-explicit-anynode scripts/check-changeset-presence.mjspnpm check:control-bytesgrep -naPcontrol-byte scan of both changed files (no match)pnpm check:handler-key-readscrud-dialoghalf: run as a tree reader, not because the diff touches itpnpm checkMODULE_NOT_FOUNDonpackages/cli/dist/cli.js— the CLI is unbuilt. This is the published app-validator command for user projects, not a repo gate, and it appears in no workflow. Not a failure reading.All the green gates above are per-PR CI checks in this repo (
ci.yml,lint.yml,control-bytes.yml,changeset-presence.yml, all onpull_request).NOT MEASURED
CardSchema.variantbeyond the DOM boundary. Measured:variantis not stripped,card.tsx:26-33destructures and:46forwards it, andpackages/components/src/ui/card.tsxcontains zero occurrences ofvariant(control: the same grep finds 5 inui/alert.tsx) —Carddestructures onlyclassNameand spreads the rest onto adiv. ⛔ Not measured: what a browser does with the resulting unknown DOM attribute. No test was rendered.DetailViewwas mounted.ActionSchema(as opposed toActionDef) atActionRunner. The keys are name- and type-identical andpackages/core/src/actions/actionKeys.tsrecords that stored metadata reachesrunner.execute()unparsed, but that path was ⛔ not exercised here.维护者速读(草稿)
改了什么 — 只加了一个测试文件的 7 行 pin 和一个空 changeset。没有改任何
@default标签、类型或运行时行为。为什么改 — #8318 说有 16 个键「没有任何注册渲染器读它」,所以它们发布的
@default描述的东西不存在。重测发现其中 7 个其实被读,而且读的正是标签写的那个值;另外 2 个也被读,但标签是错的。原来那次普查只扫了packages/components/src/renderers/,漏掉了plugin-detail/runner/core/actions三个包。风险与代价 — 近乎为零:只加测试。回滚就是 revert 这一个 commit。代价是这 7 行 pin 从此会因为读侧或标签任一侧移动而变红 —— 那正是它存在的理由。
席位意见 — (待评审填写)
你要做的 — 决定 #8318 的定级(重测证伪了它的核心分类,派发席说这触发 p1),以及
DetailSchema.loading/DetailViewSchema.loading那两个错标签怎么修(改标签为false,还是给读侧补上?? true这个行为变更)。🤖 Generated with Claude Code
https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w
Generated by Claude Code