This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
test(plugin-grid): gate the schema-level held-key census on its entry condition - #7556
Merged
os-project-manager merged 2 commits intoSep 3, 2026
Merged
Conversation
… condition The schema-level census in `ObjectGrid.tsx` had no expiry gate. Its only pin asserted that the seam ACCEPTS `renderCellEditor` and `cellClassName` — true while the keys are held locally and equally true once they arrive through `DeclaredDataTableSchema`, so it stayed green on both sides of objectui#6882, the event that expired both holds. Transplants the column-level twin (`columnHoldsExpiry-6424.test.ts`) to the sibling census: a compile-time verdict per member of `ObjectGridDataTableSchemaHolds` recording whether `DataTableSchema` declares that key, plus a pin on the member set itself so the gate is per HOLD rather than per key somebody remembered. Two things the transplant could not copy literally, both measured: - The probe reads `DeclaredDataTableSchema`, not `DataTableSchema`. The raw type inherits `BaseSchema`'s `[key: string]: any`, so `string extends keyof DataTableSchema` and a membership probe against it is ALWAYS-TRUE — an instrument with no `false` to give. Pinned as its own control, so the choice is measured rather than asserted. - The verdict is recorded per hold rather than fixed at "is NOT declared". Both schema-level holds are already DECLARED upstream, so a one-directional "is NOT declared" would be false for both keys — a permanently red suite, not a gate. The precedent carries both polarities for the same reason. The verdict is a string literal, so a flip makes `tsc` print the old and the new one at the failing line, each naming the census prose that needs re-deriving. Census re-derived on this base rather than trusted: 46 flat-literal keys, 8 group-literal keys, all 47 distinct keys members of `DeclaredDataTableSchema` (zero undeclared), schema-level `cellClassName` folded at exactly three utility cell sites in `data-table.tsx`, and the docblock's `Equal`-vs-mutually-assignable distinction confirmed in both directions. Every claim held; the one paragraph corrected is the one this commit falsifies — "nothing above is mechanically checked". Part of #7201 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
…thing Compile-time assertions under `src/__tests__/` plus one census paragraph in `ObjectGrid.tsx`. No behaviour and no published API moves, so this is the empty frontmatter exemption `scripts/check-changeset-presence.mjs` documents — the declaration, not a release. Part of #7201 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
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-project-manager
marked this pull request as ready for review
September 3, 2026 21:13
os-project-manager
enabled auto-merge
September 3, 2026 21:13
os-project-manager
deleted the
claude/issue-7201-schema-slot-census-gate
branch
September 3, 2026 21:36
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 #7201
Clause-②: no
The schema-level held-key census in
packages/plugin-grid/src/ObjectGrid.tsxhad no expiry gate. Its only pin asserted that the seam ACCEPTSrenderCellEditorandcellClassName— true while the keys are held locally and equally true once they arrive throughDeclaredDataTableSchema— so it stayed green across objectui#6882, the ruling that expired both holds. This transplants the column-level twin (columnHoldsExpiry-6424.test.ts) to the sibling census.Scope is the narrow shape only, per the triage ruling in comment 5530018064. ⛔ No derivation gate over the census — that is the fourth-derivation-gate question the card reserves for a ruling, and the new docblock says so in the tree.
What landed
packages/plugin-grid/src/__tests__/dataTableSchemaSlot-6459.test.ts, three tests:ObjectGridDataTableSchemaHolds, recording whetherDataTableSchemadeclares that key — plus a pin on the member set itself, so the quantifier is per HOLD rather than per key somebody remembered.columns), a live undeclared one (accessorKey, a real key from the column vocabulary next door), and a synthetic one.ObjectGrid.tsx: one census paragraph, comment-only. It said "Nothing above is mechanically checked, which is how it went stale unseen", which this PR falsifies. Leaving that in place would be the exact defect class the card was filed against.Two places the transplant is deliberately NOT literal
1. The probe reads
DeclaredDataTableSchema, notDataTableSchema. This is the substantive finding of the card, and it is why the obvious gate would not have worked.DataTableSchemainheritsBaseSchema's string index signature, sostring extends keyof DataTableSchemaand a membership probe against it is ALWAYS-TRUE — an instrument with no false to give. Measured, not argued: asserting that a nonsense key is not a member of the raw type is red, and green against the stripped type. A gate written the obvious way — askingDataTableSchemawhether it declares the held key — would be green forever: the same failure this card was filed about, one level up. Pinned as its own control (test 3), so the choice is measured in the tree.DeclaredDataTableSchemaisObjectGrid.tsx's own existing strip, so this reuses the repo's machinery rather than adding a second one.2. The verdict is recorded per hold, rather than fixed at "is NOT declared". The card's wording presumes the holds are live. They are not: objectui#6882 declared both keys, and objectui#7196 / PR #7202 already re-derived the prose to say so. A one-directional "is NOT declared" assertion would therefore be false on this tree for both keys — a permanently red suite, which cannot land and which no reader can act on. ⛔ Nothing was weakened to make it pass: the precedent itself carries both polarities for exactly this reason (
headerIconpinned as DECLARED at:64,pinnedas NOT declared at:138), because its two keys are in different states. The recorded-verdict form is strictly stronger than the one-directional one — it reddens on the card's event (HELD to DECLARED) and on DECLARED to HELD, which is the event that would silently invalidate the "removing these members is inert" measurement objectui#6919 is waiting on. The "is NOT declared" shape is present and live in the suite; it runs on control keys, because there is no hold left to run it on.The failure message
The verdict is a string literal, so a flip makes
tscprint the old and the new one at the failing line, each naming the census prose that then needs re-deriving. Measured output of the first ablation below:An
Expectof false would only have said that false does not satisfy true.The census, re-derived rather than trusted
Counted on the tree at base
045d20ba8, ⛔ not read off the prose:DeclaredDataTableSchema(generated per-key probe, compiled clean)Equalto the upstream declared memberrenderCellEditoris the one visible trace — mutually assignable, notEqualEqualis false, mutual assignability true in both directions; the docblock's careful distinction is accuratecellClassNamefolds at exactly three UTILITY cell sitesdata-table.tsx:2209selection,:2226row-number,:2554row-actions; the data cell at:2312foldscol.cellClassName⇒ Every claim held. Nothing was edited to agree with the gate. The only prose changed is the paragraph this PR itself falsifies.
packages/types/src/data-display.ts:319and:504for the declaration. Those two lines areTableColumn.cellClassNameandStaticTableColumn.cellClassName— the per-column twins, ond04e79aas well as today. The schema-level declarations the census is about are:1039(renderCellEditor) and:1115(cellClassName), both insideDataTableSchema. The substance of the claim is unaffected; the citation points at the wrong key, and #7196's whole correction turns on those twocellClassNames being different keys that style disjoint cells.Reverse verification
Predicted red set first, then mutated. Every mutation proven on disk by anchor counts in both directions plus a blob-hash change; every restore proven by state (
git diff HEADempty and worktree blob equal to the HEAD blob), never by an exit code. Each leg ran from the committed implementation, under a restoretraponEXIT INT TERMwith absolute paths.packages/plugin-grid/tsconfig.test.jsonsets"paths": {}, so@object-ui/typesresolves throughpackages/types/dist/*.d.ts, not its source — verified with--listFiles. Ablation 1 is therefore rebuilt on both legs and the marker checked into and out ofdist.cellClassNameonDataTableSchema(line 1115 only, ⛔ not the column twins), rebuildpackages/typescellClassNameverdict pin reddens; the acceptance pin above stays green; all controls stay greendist1, out 0. The acceptance pin stayed green — that is the blindness this card is about, reproduced.ObjectGridDataTableSchemaHoldsrenderCellEditorfrom the holds (the objectui#6919 shape)Type '"renderCellEditor"' does not satisfy the constraint '"cellClassName"'Restores: sources byte-identical to HEAD,
distmarker back to 0,distreal key back to 3, type-check green again.Clause-② determination
Clause-②: no. Measured, not assumed:
ObjectGrid.tsxis comment-only — every added and removed line in that file matches a JSDoc or line-comment shape, zero non-comment lines changed. Declaration emit is a function of the declarations, so the published type surface is unchanged by construction. No key is declared, retired, widened or narrowed anywhere in this diff.src/__tests__/, whichpackages/plugin-grid/tsconfig.jsonexcludes from the build program by directory — re-confirmed green this run bycheck:published-tsconfig-excludeacross all 33 enforced packages.packages/typesis what the pin reads, ⛔ not what it changes; it is untouched in the final tree.⇒ Neither what any contract accepts nor the published surface moves. Draft, ⛔ no auto-merge, ⛔ no self-review.
Verification, on the final commit
016a44c81pnpm --filter @object-ui/plugin-grid type-check(tsc --noEmit && tsc -p tsconfig.test.json) — exit 0pnpm exec vitest run packages/plugin-grid/— 112 files, 1012 tests passedpnpm --filter @object-ui/plugin-grid lint— 0 errors (779 pre-existing warnings;--max-warningsis deliberately unset repo-wide)check:control-bytes✅ ·check:vi-mock-specifiers✅ ·check:vi-mock-inherit✅ ·check:phantom-deps✅ ·check:published-tsconfig-exclude✅ ·check:self-import✅check-changeset-presence.mjs✅ — empty-frontmatter changeset, the documented exemption for a change that releases nothingExit codes captured by redirect-then-read; ⛔ nothing judged through a pipe. Gate results quoted from each gate's own verdict line.
Declared narrowings — what was not measured, and what each could have caught:
pnpm lint(turbo run lint) not run;packages/plugin-grid's owneslint .was, which is the complete population for the only package this diff touches. It could have caught a lint error in another package — but eslint here is not type-aware (tseslint.configs.recommended, noproject/projectServiceineslint.config.js), so every rule is file-local and this diff cannot move a verdict on a file it does not contain. No config file and no shared import changed.type-checknot run. It could have caught a consumer of@object-ui/plugin-gridbreaking on a changed exported type — but no exported type changed (comment-only, above), andpackages/typesis untouched in the final tree.pnpm testnot run. It could have caught a suite elsewhere that reads these types; the plugin-grid suite that owns them is green in full, and no runtime value changed anywhere in this diff.CI runs the whole farm regardless; these three are the cheap half deliberately not re-run locally.
objectui#6919, read before writing — how it bears
#6919 is
pm:blocked, re-scoped by its PM disposition to the removal alone: deleterenderCellEditor(and any sibling entry now redundant) fromObjectGridDataTableSchemaHolds. Its first half — the docblock prohibition — was already discharged by PR #7202. The live blocker is theCONTRACT_REVIEW_TIERquota, ⛔ not a missing measurement.It changes this gate in three concrete ways, all handled:
ObjectGridDataTableSchemaHolds' docblock forbids the exact declaration the 2026-08-30 ruling authorised — and the seam hold itself is now redundant #6919's whole deliverable rests on "the hold is inert, the members are redundant". IfDataTableSchemaever stops declaring one of these keys, that measurement silently becomes false and the removal becomes a real narrowing. A one-directional "is NOT declared" pin cannot see that; the recorded verdict does.keyof ObjectGridDataTableSchemaHoldspinned tonever) so the removal is a two-line edit, not an obstacle.keyof ObjectGridDataTableSchemaHolds, whatever that is on the day. If both members go, the gate becomes the member-set pin alone and still guards the census against a hold silently reappearing.Stop-condition
Re-deriving turned up no further stale claims beyond the two keys the card names — every prose claim measured above held on
045d20ba8. #7196's earlier 7-of-16 finding had already been corrected by PR #7202. Nothing was fixed silently; the one triage citation correction is reported above and ⛔ not touched in this diff.🤖 Generated with Claude Code
https://claude.ai/code/session_01EMrWaQw3XS5DxTHxp4yRyC
Generated by Claude Code