This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
test: converge the last two tombstone-judge copies onto the shared judge (#4947) - #5871
Merged
Merged
Conversation
…st-support (#4947) `packages/plugin-detail`'s `recordDetailsInputs` spec-parity test and `packages/app-shell`'s `block-config` preview test each carried a local ADR-0087 D2 tombstone criterion — `unwrap()._def.type === 'never'` — written out by hand. Both were correct, and both carried the STRUCTURAL channel alone. They now import the shared judge, which OR-s that channel with the `[REMOVED]` description channel `retiredKey()` stamps, so neither channel can go quietly permissive on its own. No assertion changes meaning. The README paragraph tracking these two sites as outstanding copies is folded into the consumer list. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EuPCi56cnGyykygi3z9w4m
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 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 #4947
Retires the last two local copies of the ADR-0087 D2 tombstone criterion onto
@object-ui/test-support's shared judge. Both copies were correct today and bothcarried the structural channel alone (
unwrap()._def.type === 'never'); the sharedjudge OR-s that with the
[REMOVED]description channelretiredKey()stamps, soneither channel can go quietly permissive on its own.
Pure convergence — no assertion changes meaning, no shipped code touched.
packages/plugin-detail/src/__tests__/recordDetailsInputs.spec-parity.test.tsshapeKeys/shapeMember/isTombstonedlistedShapeKeys,authorableShapeKeys,isShapeKeyTombstoned,resolvePropsShapepackages/app-shell/src/views/metadata-admin/previews/__tests__/block-config.test.tsmemberTypelistedShapeKeys,isShapeKeyTombstoned,shapeMemberTypeNamepackages/plugin-detailgains the"@object-ui/test-support": "workspace:*"devDependency the README's Conventions section prescribes (
app-shellalready hadit). The README paragraph tracking these two sites as outstanding copies is folded into
the consumer list — no copy of the judgement is left in-tree.
Net −25 lines across the two test files (
-14/+8and-30/+20).Premise re-measured on the installed pin
The card measured on
17.0.0-rc.6and the GA pin; the tree installs a later@objectstack/spec. Re-probed there — the premise holds, with one number moved:The card's "eight tombstones, both channels" is now sixteen, still both channels —
so the OR is still not about coverage, and both target pins still have a real tombstone
to stand on.
Is the shared judge equivalent to the copies it replaces?
That is the real risk in a convergence refactor, so it was measured rather than
asserted. A throwaway probe ran the deleted criterion verbatim beside the shared
judge:
verdicts are identical. The swap is behaviour-preserving on today's contract.
a member carrying the
[REMOVED]marker but not typednever— a tombstonehand-written without
retiredKey(), or one left behind by a Zod internals rework.The old copies call it a live authoring surface; the shared judge calls it a
tombstone. That is the widening the copies were exposed to, and the only reason the
card is worth landing while both copies are still correct.
Reverse-verification
On the commit, mutating the shared judge and re-running both converged files. Each
mutation was confirmed on disk by grepping the changed text (injected hits ≥ 1,
removed hits = 0) before any result was read; the script restores through an
EXIT INT TERMtrap.Mutation A —
isTombstone()recognises nothing (the card's named plan). Predictedred at the
layoutandiconpins:Mutation B —
isTombstone()recognises everything (the opposite direction, addedbecause A alone cannot exercise the non-vacuity legs):
Restored:
git diff HEAD --statempty,Test Files 2 passed (2) | Tests 45 passed (45).Legs that do NOT discriminate — named, because a green leg proves nothing
expect(offSpec).toEqual([])(declares no top-level input the spec does not accept)stays green under Mutation A. Un-recognising
layoutonly puts it back on theaccepted side, so the set can only shrink. This is exactly the false-green direction
the judge exists to close, and it only goes red in the B direction.
expect(isTombstoned(key)).toBe(false)forinlineEdit/showHeader— green underA, red under B.
expect(listedShapeKeys(PageHeaderProps)).toContain('icon')— green under both. Itreads the raw listing, which no verdict change can move.
expect(shapeMemberTypeName(PageHeaderProps, 'title')).toBeTruthy()— green underboth; it probes the reader, not the verdict.
Gates run — on the final commit
1bef8f62a, tree cleanQuoting each gate's own verdict line, not a bare
$?:vitest run× 5 judge consumersTest Files 5 passed (5)·Tests 146 passed (146)type-check(plugin-detail, app-shell, test-support)type-check: Done× 3, after building the dependency closurecheck-changeset-presence.mjs✅ 2 source file(s) of 2 released package(s) changed … Every one of them has an EMPTY frontmattercheck:control-bytes✅ OK (scanned 4881 tracked text file(s))check:phantom-deps✅ Every in-scope import is declared by the package that publishes it.check:self-import✅ No package names itself inside its own src/.check:spec-symbols✅ spec symbol derivation: 1300 files scannedcheck:esm-specifiersno un-ledgered package emits an extensionless relative specifiercheck:published-dist✅ No published package's build output carries tooling material.doc-version-claimsTests 18 passed (18)The five vitest consumers are the two converged files plus the three gates that already
imported the judge (
apps/consoleregistry parity,packages/layoutpage-headerauthorable keys, and the judge's own calibration suite) — the convergence has to leave
those green too.
ESLint was narrowed to the two changed lintable files, and here is why that is a
measurement rather than a skipped run: ① the population came from ESLint's own
isPathIgnoredagainst the repo config, not from a guess about what counts; ② the countis read from
--format json—files linted = 2, errors = 0, warnings = 4; ③ thisrepo's
eslint.config.jsconfigures noparserOptions.project/projectService,so linting is not type-aware and this diff cannot move the verdict of any file it does
not touch. The 4 warnings are pre-existing
@typescript-eslint/no-explicit-anyatblock-config.test.tslines 45/82/84/212 — all outside both hunks (@@ -6,6 +6,7 @@and
@@ -335,24 +336,17 @@). The repo-wide sweep is CI's run.The dispatch held #4918 behind this card on the premise that its two subjects are
different files that merely consume the judge. They are not: #4918's second subject
is
recordDetailsInputs.spec-parity.test.ts, one of this card's own two namedtargets. #4947 cannot be implemented without editing it.
Resolved by region rather than by refusing the card, and #4918 was not absorbed:
it('publishes hideFields …')— line 268, untouched, verified by grep after theedit.
@@ -47,29 +47,29 @@(helpers) and the call sites, ~12+ linesclear of 268 — outside git's 3-line context window, so no textual conflict.
recordRelatedListInputs.spec-parity.test.ts, is not touchedat all.
#4918 remains open and fully doable; nothing in it is addressed here.
Generated by Claude Code