…wn header (objectui#9546)
The file is a TYPE-LEVEL ratchet judged by `tsc -p tsconfig.test.json`, while
wearing the extension of the command that does not judge it. Re-measured on
this branch: `.omit()`-ing both content channels off one registered mirror
(`data-display.zod.ts#StatisticSchema`) left `vitest` at exit 0 with its
summary line unmoved, while `tsc -p tsconfig.test.json` exited 2 with
`TS2322` on the identical tree.
The repair is exactly that narrow: the header now states which instrument
checks which assertion. It is ⛔ not a claim that vitest is wrong, and ⛔ not
a change to any assertion — no assertion, ledger or fixture is touched.
Wording follows the convention already standing in
`report-schema-authoring-face.test.ts` in the same directory, rather than a
new phrasing. Per AGENTS.md #9 the new text points at the instruments and
writes down none of their answers, and per #11 it cites `tsconfig.test.json`
by name, never by line address.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bzjQQsBrHdwBy17iHVVe9
Fixes #9546
Names the arbiter of
packages/types/src/__tests__/zod-mirror-parity.test.tsin thefile's own header. Option 1 of the three the card listed, ruled by the PM seat as a
verification-strategy / gate-blind-spot repair.
The defect, exactly as narrow as the card stated it
The file is a TYPE-LEVEL ratchet judged by
tsc -p tsconfig.test.json, while wearingthe extension of the command that does not judge it. It is not that vitest is
wrong, and not that the assertions are wrong — it is that the file never said which
command judges it. That is all this PR repairs. No assertion, ledger, fixture or
mirror is touched.
Re-measured on this branch, not inherited
Every figure the card carried was re-derived on today's tree before the header
sentence was written, because the sentence is only true if the ablation still
reproduces.
expect()calls: 53tsconfig.test.jsonincludes the file"include": ["src/**/*.test.ts", "src/**/*.test.tsx"]TS2322TS2322The 72 is a LINE count, reproduced with the card's own method (lines matching any of
the three type-level spellings). Counted as distinct assertion SITES it is smaller,
because that method also catches the two helper type definitions and the conditional
tails inside type helpers. Both readings are honest; they answer different questions.
The header this PR adds writes down neither, per AGENTS.md #9.
The ablation, both ways on one tree
Mutation:
.omit({ body: true, children: true })appended todata-display.zod.ts#StatisticSchema— a registered pair — removing both contentchannels from the mirror while the declaration still declares them.
viteston the violated tree: exit 0,Test Files 1 passed (1)/Tests 32 passed (32)— byte-identical to the summary line of the clean run. Theruntime half does not merely pass; its output does not move at all.
tsc -p tsconfig.test.jsonon the identical tree: exit 2, oneerror TS2322, firing at theassertionUnmirroredMatchesLedgerdeclaration.Green at rest was established first, both ways, so the exit code is a usable signal.
The mutation was proved to reach disk before either leg ran (injected-marker count
plus a blob-hash change), and the restore leg is proved byte-identical to the HEAD
blob with
git diff HEADempty. The ablation script carries atraprestoring fromHEADby absolute path. Both halves resolve through relative source imports, so nodist/is involved and no rebuild sits between the mutation and either instrument.Why a header sentence can carry it
The ruling hung on this and asked me to stop if it failed. It holds: the file is
hand-maintained and not generated, its header is an ordinary source docblock that is
never stripped, and the runtime half compiles and passes today. No fork to report.
The wording is borrowed, not invented
report-schema-authoring-face.test.ts, in the same directory, already carries thisexact habit under the heading "Which instrument checks which assertion (stated,
because they differ)". This PR reuses that heading verbatim and follows its two-
paragraph shape. A convention beats a better sentence.
Two repo rules shaped the text: AGENTS.md #9 — it points at the instruments and
writes down none of their answers, so nothing in it can rot into a stale figure; and
AGENTS.md #11 —
tsconfig.test.jsonis cited by name and by the content of itsinclude, never by a line address.The closing clause is marked as a RECORD of a measurement and the guidance above it
as LIVE, which is this file's own governing split.
Gates
dispatch-gates.mjslives in the sister repo and REFUSES for objectui paths(re-confirmed this run: exit 2, "asked for objectstack-ai/objectui, but this checkout
is objectstack-ai/objectstack"). The list below is therefore hand-derived from
objectui's own
package.jsonscripts and.github/workflows/, and every exit codewas captured on its own line after a redirect, never through a pipe.
pnpm --filter @object-ui/types type-check(all three legs; the arbiter itself)pnpm --filter @object-ui/types test— 191 files, 4530 testspnpm --filter @object-ui/types lintcheck-changeset-presence.mjscheck-changeset-fixed.mjs/check-changeset-no-major.mjs/check-changeset-claims.mjscheck-control-bytes.mjscheck-new-cross-file-line-citations.mjscheck-governed-queue-guard.mjs --testcheck-test-path-roots.mjsThe type-check, control-bytes, line-citation and changeset gates were re-run at the
final commit
b0a2320, after the last edit, so no gate reading predates the tree itdescribes.
Lint narrowing, declared. The repo-wide
eslint .is CI's run, not this PR's.The narrowed run is the package's own
lintscript, which is the unitturbo run lintinvokes. Three readings, so the narrowing is a measurement rather than a gatethat merely did not run: the population is 262 files, read from eslint's own
resolution of its config, not guessed; the count comes from
--format jsonoutputlength; and
eslint.config.jsenables no type-aware linting — noprojectorprojectServicekey — so a comment-only edit in one file cannot move the verdict onany untouched file. The changed file alone lints at 0 errors, 0 warnings. The 289
warnings in the package total are the pre-existing
no-explicit-anybaseline and areuntouched by this PR, which adds no code.
Changeset
A test file under
packages/*/srccounts as published source forcheck-changeset-presence, so the gate demands a changeset — confirmed by running itbefore adding one (exit 1). An EMPTY-frontmatter changeset is that gate's own named
exemption and a first-class pass, not a workaround, and it is the honest declaration
here: nothing published moves, because only a comment changed.
Serial constraint
objectui#9589 is ready and unlanded, and moves two of the mirrors this ratchet
asserts over. Checked at push time:
origin/mainhad not moved from the branch point,so there was nothing to merge and that PR has not landed. The coupling with it is
semantic rather than textual, so if it lands first this branch should be re-merged and
the type-check re-run before review — the ratchet, not the file list, is what would
notice.
Acceptance notes
Out of scope for this card, filed nowhere by me, recorded here:
above the ratchet section states that the runtime census reads a
Tests 12 passedline. It reads 32 today. Measured, not guessed: the clean baseline run printed
Tests 32 passed (32). This is AGENTS.md 完善设计器的每一个细节 #9's exact shape — prose that wrote downan instrument's answer — and nothing re-derives it. Scope note stated honestly: the
file header's own "every LIVE figure in this header is pinned" claim does not
formally cover it, because the header docblock closes long before that sentence;
the contract it does breach is AGENTS.md 完善设计器的每一个细节 #9, which is repo-wide. I did not
repair it in place: the neighbouring clause is a RECORD clause that this file's own
ruling forbids a later card to rewrite, and choosing between deleting the figure and
pinning it is a judgement, not a mechanical edit. Dedupe words:
zod-mirror-parity·
Tests 12 passed· stale live figure · runtime census · AGENTS.md 完善设计器的每一个细节 #9.ruling's standing question with a reading rather than an opinion. The runtime census
is not a separable second subject — it exists to pin the type-level half. Below the
first
describe, the census referencesUnmirroredDeclared27 times,MIRRORS19,KnownDrift18,RuntimeOnlyDeclared15,EXPECTED_MIRROR_PAIRS12,WiderThanDeclared10,SPEC_DERIVED_PAIRS10 andEXCLUSIONS4, and callsreadFileSync4 times to read source off disk. A split would have to export everyledger across a file boundary and keep the census reading the other file's header
text. Worth recording as evidence against the split being cheap; not worth a card on
its own.
includeby a line address, a form AGENTS.md [WIP] Update documentation for project #11 bans in codeand scripts. It was still accurate when I checked it. Noted only so the next reader
knows it was verified by content, not trusted. Not filed — issue bodies are not a
carrier that rule governs, and rewriting a correct card is the more expensive error.
Carrier for the next reader: the three bullets above are for whoever next opens this
file — the first is the only one that should become a card.
Generated by Claude Code