This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
docs(types): record the #6150 ledger's blind spot — complete only for the un-cast spelling - #8602
Merged
Merged
Conversation
… the un-cast spelling The ledger header describes a 76-page census and calls its result the 13 genuinely-read undeclared keys. Every read that census matched is spelled `schema.KEY`; it never looked for `(schema as any).KEY`, so a reader who takes the paragraph at face value concludes the class has been swept. It has not been, and that reading is how objectui#7105 stayed open as long as it did. Re-measured for objectui#8327 with the cast-aware `schemaReads` instrument the package already carries (widget-schema-anchors-6576.test.ts, objectui#6576), enumeration and reading both taken from `origin/main` 154fe2a: the cast spelling alone is 112 (file, key) reads, 88 distinct keys across 23 files, none of whose files is a reader listed in this ledger. 29 are undeclared on the type the renderer is handed, 8 are declared on one arm of a union only, and 5 cannot be answered because the renderer is handed `any`. The header now states that limit in its own words, and states equally plainly that those 29 are not pending rows here: 31 of the 112 are already ruled non-author surface (objectui#5091, objectui#5097) and must never be declared, and every row in this ledger is a published-type widening owing its own ruling. Comment only, in a test file; the changeset declares no release. Part of objectui#8327 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
|
This was referenced Sep 8, 2026
os-warren
marked this pull request as ready for review
September 8, 2026 15:51
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 #8327
⛔ That wording is deliberate: it is not one of the keywords that shuts a card on merge. This PR carries only the SECOND half of that card. The first half — the three-way classification of every cast read — is delivered as comment
5587605667on the card itself, and the card also holds the follow-ups that measurement raised, each of which is a ruling to route rather than work to do. Whoever routes those decides when the card is done.What changed
One docblock section in
packages/types/src/__tests__/undeclared-but-consumed-keys-6150.test.ts, plus an empty-frontmatter changeset. No code, no assertions, no ledger rows.That ledger opens by describing a census over the component docs pages and calling its result the 13 genuinely-read undeclared keys. Every read that census matched is spelled
schema.KEY; it never looked for(schema as any).KEY. A reader who takes the paragraph at face value concludes the class has been swept — which is how #7105 stayed open as long as it did. The header now says so in its own words.Why the numbers in it are what they are
Re-measured for #8327 with the cast-aware
schemaReadsinstrument the package already carries (widget-schema-anchors-6576.test.ts:199, from #6576 — ⛔ no second scanner), enumeration and reading both taken from one pinned ref:c842594, the census card's own ref154fe2a,maintoday⭐ The raw row reproduces exactly; the stripped row does not.
58/21describes that card's own per-file table, and the table is a strict SUBSET of the real read set —plugin-view/src/ObjectView.tsxalone has 31 cast reads and is absent from it. The header therefore quotes the re-measured figures, not the card's.Asked of the TypeScript checker rather than of a grep — because "genuinely undeclared" is an ABSENCE claim and #8410 is the standing card that grep-shaped absence claims are unsound — the 112 split: 29 undeclared on the type the renderer is handed, 8 declared on one arm of a union only, 38 declared (stale or forced casts), 31 already RULED non-author surface (#5091, #5097) that must never be declared, 1 the same key as one of those rulings but unpinned at its site, and 5 unanswerable because the renderer is handed
any. Full per-key table with evidence: comment5587605667.Non-vacuity control worth naming
The classifier was told nothing about
plugin-view's in-sourceOBJECT_VIEW_HOST_COMPOSITION_KEYS, and independently returned exactly those 27 keys as undeclared and exactly the 4 the file's docblock calls declared. Set difference in both directions: empty.Verification
pnpm --filter @object-ui/types type-check— exit 0, all three legs (tsc --noEmit,tsconfig.examples.json,tsconfig.test.json).vitest runcannot judge a type-map ledger, so the third leg is the instrument;tsc -p tsconfig.test.json --listFilesconfirms it compiles this very file (1 hit among 148 test files), so the green is not vacuous.pnpm --filter @object-ui/types lint— exit 0 (265 pre-existing warnings, 0 errors).eslinton the changeset file — exit 0.node scripts/check-control-bytes.mjs·check-changeset-presence.mjs·check-changeset-no-major.mjs·check-changeset-fixed.mjs·check-changeset-overwrite.mjs·check-type-check-coverage.mjs·check-comment-mask-corpus.mjs— all exit 0, each captured before any pipe.vitest runon the edited file — 77 passed. Reported as a smoke check only, ⛔ not as evidence about the type map.@object-ui/typeshas no workspace dependencies, so its^...closure is empty.⛔ Draft, targets
main, ⛔ not enqueued, ⛔ no auto-merge, ⛔ no self-approval.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w
Generated by Claude Code