This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
test(console): require a per-block member pin for every array/object input - #8094
Merged
Merged
Conversation
…input The repo-wide parity gate compares TOP-LEVEL KEY NAMES and delegates member shapes to per-block tests beside the renderers — but nothing required one. `page:header.actions` is the proof: array-typed, member shape in `description` prose only, spec `z.array(z.string())` while the renderer read the members as objects, and every layer green for a full contract cycle until a human filed it. A fourth direction now judges the same `covered` set: every array/object-armed input must name a pin whose file exists, is collected by the runner, and names both the block and the key — or carry an explicit, issue-backed exemption. Measured before the gate was written, as objectui#8068 required: 77 such inputs across 22 blocks, 19 already pinned, 58 not. That is the transition case, so all 58 are listed by name with a shared reason, self-deleting once a key acquires a pin, under a ceiling that may only ratchet down. objectui#8071 owns converting them, and records the wider registration surface this file has never judged. The locator reads pin files through Vite's `?raw` glob rather than `node:fs`: this app's tsconfig is browser-only, so a `node:fs` import passes under Vitest and fails the console's own `tsc` (measured here first). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DuzfS5chho38Yx1jxx9DEj
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-steve
marked this pull request as ready for review
September 6, 2026 15:25
os-steve
enabled auto-merge
September 6, 2026 15:25
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 #8068
Branch cut from
origin/main@3686a44cbbf66d85879b89edd7b4911ab0389162.What was voluntary, and what is not any more
apps/console/src/__tests__/registry-inputs-spec-parity.test.tscompares TOP-LEVELKEY NAMES and says so in its own LIMIT note, delegating member shapes to per-block
tests beside the renderers — naming three. All three pins are real. Nothing
required a fourth.
page:header.actionsis the fourth key of the same kind: array-typed, member shapein
descriptionprose only, specz.array(z.string())(action IDs) while therenderer read the members as
ActionDefobjects and resolved nothing. Every layerwas green — key names in parity both directions, the
'array'arm a kind thecontract accepts, no per-block test looking inside — until a human filed
objectstack#11592 and a maintainer ruled. The fourth pin
(
packages/components/src/__tests__/page-header-action-ids.test.tsx) arrived aspart of that fix, not from any mechanism.
A fourth direction now judges the same
coveredset: everyarray/object-armedinput must name a pin, or carry an explicit, issue-backed exemption.
MEASURED FIRST — 58 of 77
The card required the number before the gate, because the number picks the route.
Measured on this branch, over this file's own
coveredset:array/object-armed inputs on covered blocks58 is dozens, not single digits, so the route is the transition the card
prescribes — and the pattern this file already owns
(
OFF_SPEC_EXEMPTIONS/UNPUBLISHED_EXEMPTIONS/OFF_SPEC_ARM_EXEMPTIONS:explicit, reasoned, issue-backed, RED once stale). No second mechanism was
invented. All 58 are listed by name in
MEMBER_PIN_EXEMPTIONS, every entryciting #8071, which owns converting them one at a time;
carries no stale member-pin exemptiondeletes an entry the moment its key acquires a pin, and aCEILING constant stops the list growing — the cheap way to green a new array key
would otherwise be a 59th entry rather than a pin.
What a pin has to satisfy
The criterion (a pin must constrain the shape the renderer actually READS) is a
JUDGEMENT — the four exemplars do it four different ways — so it stays in a diff
someone reviews, and each registry entry states which assertion carries the claim.
What is MECHANISED is the half that rots silently: the file must exist, must be a
*.test.ts(x)the runner collects, and must NAME both the block and the key(word-boundaried, because
record:detailspinsfieldsandhideFieldsin onefile). A calibration test proves that locator discriminates rather than passing on
any file.
The locator reads through Vite's
?rawglob, notnode:fs: this app's tsconfig isbrowser-only, so a
node:fsimport passes under Vitest and fails the console's owntsc. Measured here first — that was this PR's first red. The glob is LAZY;eager: truewould inline ~3 MB of test sources into a gate that already loads thewhole registration graph.
Ablation + control — one run, restores proved by BLOB HASH
Script: mutation proved on disk before each leg,
trap ... EXIT INT TERM, absolutepaths, restore via
git checkout HEAD -- pathand verified by hash, never by exitcode.
page:header.actions -> packages/components/src/__tests__/page-header-action-ids.test.tsx: no such pin filegit diff HEADempty; blob029b5e98…== HEAD blob029b5e98…page:header pins the member shape of every array/object input it declares->[ 'page:header.actions' ]git diff HEADempty; blobafe10389…== HEAD blobafe10389…The anchor control was deliberately DECOUPLED from the pin registry after the first
ablation run: its
packages/witness used to be the very file leg A deletes, so adeleted pin reddened it too, and "the anchor is broken" and "one pin is gone" must
not share a signal. It now witnesses a non-pin neighbour plus a generic prefix test.
Verification
pnpm exec vitest run apps/console/src/__tests__/registry-inputs-spec-parity.test.ts— 147 passedpnpm --filter @object-ui/console type-check— exit 0 (affected set perturbo ls --affectedis@object-ui/consolealone)pnpm exec vitest run apps/console/— 89 files, 1018 tests passedpnpm exec eslint .inapps/console— 0 errors over 189 files (208 pre-existing warnings, none in the changed file). Narrowed to the one affected package, and the narrowing is measurable: noproject/projectServiceineslint.config.js, so type-aware linting is off and this diff cannot move any untouched file's verdict; the config itself is untouched. The rest of the farm is CI's.pnpm check:control-bytes·check:vi-mock-specifiers·check:vi-mock-inherit·check-changeset-no-major.mjs— all exit 0Scope
coveredset, unchanged. The wider graph (501 registered type names including aliases, 1539 inputs, 310 array/object-armed, 233 of them on blocks with noComponentPropsMapentry) has never been judged by ANY direction in this file — a member pin needs a published contract to compare against. Recorded in objectui#8068 的过渡背书:58 个 array/object 类 input 仍无 per-block 成员 pin(逐条转 pin,删豁免) #8071 rather than dropped quietly.@objectstack/spec; noComponentInputmember-shape slot (that is registry-inputs-spec-parity 对 array/object 类 key 降级成「只比名字」——ComponentInput没有承载成员形状的槽位,page:header.actions因此漂移了整整一个契约周期 #8067); the NARROWER-than-contract half stays un-gated ([finding] 声明的粗类型「臂」没有任何门禁与 spec 比对 —— #3832 让臂可写之后,一条假臂能让 manifest 门放行 spec 拒绝的值,且全绿 #4971); nothing incontent/docs/releases/.ComponentInput没有承载成员形状的槽位,page:header.actions因此漂移了整整一个契约周期 #8067 touches this same file. Edits here are confined to a new direction — one import-free module-level block before thedescribe, and newitblocks appended after the last one. Nothing existing was refactored.Generated by Claude Code