This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(types): declare title on ObjectGridSchema's zod mirror (census-directed declare branch) - #6869
Merged
Merged
Conversation
Census-directed ruling 2026-08-29, declare branch: authored object-grid.title nodes exist (2 confirmed per-hit in content/docs/api/schema-reference.md, positive control label = 2), so the key is declared rather than the read retired. The interface face already declared it (pre-card); the zod mirror now enforces the declared string instead of admitting any title unexamined through the passthrough base. UnmirroredDeclared ledger: title worked off (97 + 1 mirrored + 23 reclassified = the seeded 121); counts corrected everywhere the parity header quotes them. Both ObjectGrid read sites are reads of a declared member and stay as-is. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013hfmP9hoMd3dJwTh85J4yB
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 Aug 30, 2026
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 #6639
Executes the census-directed maintainer ruling of 2026-08-29 (both branches pre-authorized, census decides). The census came back non-zero, so this is the declare branch:
titlelands onObjectGridSchemain the #6424 family form — interface + zod mirror +zod-mirror-paritypairing.The census (ruling step 1 — recorded here as the ruling requires)
Parse-based and order-agnostic (exact JSON parse for
.jsonfiles; balanced-brace node extraction with depth-1 sibling keys for docs/code), run on base30266cfoverapps/,examples/,content/:object-gridnodesobject-gridnodes totaltitlelabel)Per-hit confirmation (the triage-mandated step): both hits are genuine
titlekeys at depth 1 of anobject-gridnode — not nested-object misattribution — incontent/docs/api/schema-reference.md: the canonical ObjectGridSchema reference example (authorstitle: "All Contacts", and the section's own property table documentstitle) and the full-page example (title: "All Leads"directly besidetype: "object-grid"). The prior census's proximity-heuristic "2" is thereby CONFIRMED, not merely inherited; an order-agnostic re-sweep (which the original single-line regex could not do — it also returns zero via plain grep on today's base because the doc examples are multi-line) found no additional hits and no title-before-type case.Authors exist ⇒ declare. Dropping the read would have silently cost those authored nodes their caption — under this reading "drop" was the destructive option, exactly as triage warned.
apps/,examples/,content/were scanned, per the card's own scope. External consumers and customer projects were NOT; the real authoring population can only be larger than these readings, never smaller. The census bounds this repo, not the world.Premise correction (measured, with the receipt)
The card states "
ObjectGridSchemadeclares notitle. The read compiles only becauseBaseSchema's index signature makes every key a member." That is half false, and was false when the card was filed: at5ef9c4f5f(the lastobjectql.ts-touching commit before filing), the interface already declaredtitle?: string(@deprecated Use label instead, in the LEGACY FIELDS block) — so both read sites compile through a declared member, not through the index signature. What genuinely was missing is the zod-mirror half of the family form: the published validator had never heard of the key, recorded as debt inzod-mirror-parity.test.ts'sUnmirroredDeclaredledger. The spec side (ComponentPropsMapfor object-grid) declarestitletoo, and the #4648 ruling already carved it out of the publishedinputsas a deprecated alias — the zod mirror was the one face out of lockstep. This PR closes exactly that face.What changed
packages/types/src/zod/objectql.zod.ts— the mirror declarestitle: z.string().optional()with the deprecation-pointing describe text. The gain is the typed refusal: the.passthrough()base was already admitting ANYtitleunexamined; the mirror now enforces the declared string.packages/types/src/__tests__/zod-mirror-parity.test.ts—titleleaves theUnmirroredDeclaredentry for the pair (the ledger's first shrink by REPAIR rather than reclassification), and every count the header quotes is corrected: 97 is the mirroring debt; 97 + 1 mirrored + 23 reclassified is what the seeded "121" now means.packages/types/src/objectql.ts— doc-comment only: the interface's existingtitledeclaration now cites the ruling, the census, and the mirror pairing. No type change.packages/types/src/__tests__/object-grid-title-mirrored.test.ts— new pin: shape membership (membership cannot be read off acceptance under passthrough), authored-string survival through the parse, typed refusal pointed at thetitlepath, and the before-state kept as a labelled control (an undeclared key of the wrong type is still admitted unexamined — which is whattitle: 123did before this change)..changeset/6639-objectgrid-title-mirrored.md— minor,@object-ui/types(same bump the finding(components):data-tablereads two column keysTableColumndoes not declare —headerIconandfitContent#6424 declarations used).Both read sites, same batch (the triage constraint): re-derived on this base, they are
ObjectGrid.tsx:2510(viewLabel) and:3524(caption), both spelledschema.label || schema.title. Under the declare branch both stay as-is — they are now reads of a key declared on every face — and they cannot diverge because neither is touched. #6269 stays out of scope:BaseSchema's index signature is untouched here, and no other key is declared as a rider.The framing that must survive (triage ruled it must not be lost)
This card is the terminal case of a rule the lane tracked from three directions: a pin enforced by a key's non-membership stops enforcing when the key becomes a member (#6626); a refusal derived from a key's membership stops enforcing when the member is deleted (#6625); and with an index signature there is no non-membership to enforce with, ever. This is not one key's problem —
BaseSchema's index signature costs the whole authoring surface its authoring-time checking. This PR repairs one key's validator face under that standing condition; the index signature itself is #6269's scope and remains open.Verification (union re-run at the final commit,
8d5629d)@object-ui/typestype-check(three tsc passes incl.tsconfig.test.json, which carries the compile-time parity assertions): exit 0. New test file confirmed INSIDE the compilation viatsc --listFiles(the excluded-tests trap checked, not assumed).packages/typestests: 73 files, 844 tests passed.@object-ui/plugin-gridtype-check(after rebuilding the types dist): exit 0;gridNonAuthorKeys+gridDataInputContract: 50 passed.check:control-bytesOK (5724 files),check:spec-symbolsOK,eslintonpackages/types0 errors.titleline (anchor count 1 to 0 on disk, diff names the file) turned exactly the predicted halves red — membership + typed-refusal tests failed while acceptance/survival stayed green (the passthrough vacuity the membership assertion exists for), andtsc -p tsconfig.test.jsonfailed naming the exact pair (Type '"objectql.zod.ts#ObjectGridSchema"' is not assignable to type 'never'). Restore proven by emptygit diff HEADand matching blob hash (a2b18b46…on both sides); both instruments green after restore. No dist in the loop: both instruments compile and run package-relative source.plugin-grid(the read-site consumer). The diff is an additive optional key on one zod object plus doc comments — no consumer's accept set narrows. Runtime consumers ofobjectql.zodoutside the types package (plugin-view,core/normalize-list-view) were read and neither iterates this schema's shape. CI runs the full farm.Census instrument accuracy note filed separately (see the issue's report comment) rather than fixed here.
Generated by Claude Code
Generated by Claude Code