…ating its count (objectui#9603)
A docblock clause in `zod-mirror-parity.test.ts` restated the `Tests N passed (N)`
line vitest prints for this file. AGENTS.md #9 forbids exactly that — name the
instrument that re-derives a claim, never write down its answer — and the figure had
rotted, in the one file whose job is to stop a restatement drifting from what it
restates.
Removed rather than refreshed, and the measurement is what decided it: the clause said
12, true when objectui#6705 wrote it; the filing seat measured 32 on `origin/main`;
`vitest run` printed `37 passed (37)` at `4b577229` two days later. A replacement number
would have been false again within about one merge. The reason generalises — this suite
grows whenever a pin is added, which is this file working, so a restated case count rots
on good news and only deleting it makes the sentence durable.
The header's LIVE / HISTORICAL split governs which half moves: the restated figure sat
in the GUIDANCE clause, which a later card must amend and must name itself doing; the
two RECORD clauses beside it are left byte-identical. No assertion, ledger entry or
runtime behaviour changed.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xm4WFhEe5mwcgyqHjxR2hn
Fixes #9603
Clause-②: no
The defect
zod-mirror-parity.test.tscarried a docblock clause that RESTATED a live figure — theTests N passed (N)line vitest prints for this file — and the figure had rotted.AGENTS.md#9 forbids exactly that: point at the instrument that re-derives a claim, and never write down its answer.⭐ The irony is the finding, not decoration. This is the file whose entire job is to stop a hand-written restatement drifting away from what it restates, and it carried that defect in its own prose.
Both numbers re-measured here, not taken from the card
Tests 37 passed (37)pnpm exec vitest run packages/types/src/__tests__/zod-mirror-parity.test.tsat4b577229it(/test(at line startdescribe(→ 12 hitsTests 999999 passed→ 0origin/mainon 2026-09-16; the instrument prints 37 at4b577229on 2026-09-18. Two days, five cases. That reading is what decided the shape below — it is evidence, not taste.Which shape, and why it is the right one for a file with THIS job
Chosen: remove the restated figure. ⛔ Not "update the figure to 37".
37would have re-created the defect with a fresher number and handed the next reader the same trap, in the file least able to afford it.WiderLedgerMismatchclause makes the same claim about the same instrument — "their passing test counts do not move when this reddens" — carrying no number. That isAGENTS.md完善设计器的每一个细节 #9 already applied once, by this file's own author, to this file's own sentence. Restating the count in one clause while naming the instrument in its sibling was the whole defect, visible on one screen.The card's option 2 — pin it — was considered and rejected on cost. The number is vitest's own output; no in-file constant can read it. A pin would have to assert the suite's own case count, so it would redden on every legitimate test addition. A ratchet that fires on good news is the defect restated as machinery, not a remedy.
What was deliberately NOT touched
This file's header splits a docblock by CLAUSE: a clause that RECORDS a measurement is historical and ⛔ may never be rewritten by a later card; a clause that GIVES GUIDANCE must be true now, and a later card MAY and MUST amend it, naming the card that moved it.
5 passed (5)until objectui#6705 added the seven-fixture suite — are left byte-identical; the diff renders them as unchanged context lines.The figures the new prose does carry, and why they cannot rot
The replacement clause writes 12, 32 and 37. Each is anchored to a named past event — "true when objectui#6705 wrote it", "when the card was filed", "at
4b577229" — which is the HISTORICAL form the header explicitly permits: readings of a tree that is fixed.headerFigures()guards the header's ledger figures only, and this clause sits about a thousand lines below the header. That is the whole point of removing the live figure rather than refreshing it — a historical figure needs no guard; a live one in an unguarded clause is the defect being repaired.Verification
All runs at⚠️ Exit codes were captured by redirecting to a file first, never read across a pipe.
a8c07118, on a worktree byte-identical to HEAD.pnpm exec vitest run packages/types/src/__tests__/zod-mirror-parity.test.tsTest Files 1 passed (1),Tests 37 passed (37)pnpm --filter @object-ui/types type-checktsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json— so the compile-time assertions in this file were actually readpnpm --filter @object-ui/types lintnode scripts/check-changeset-presence.mjsnode scripts/check-changeset-no-major.mjsnode scripts/check-changeset-claims.mjspnpm check:pending-changeset-literalsnode scripts/check-control-bytes.mjspnpm check:new-line-citationspnpm check:test-path-rootsDoes any citation move? ⛔ No.
git grep -nE 'zod-mirror-parity\.test\.ts:[0-9]+'over the whole tree returns nothing: no file anywhere cites this one by line address, so a twelve-line insertion at about 3370 moves no pointer. The cross-file mentions that do exist are all in.changeset/*.mdand cite this file by filename and symbol, which isAGENTS.md#11's required form.Repo-wide lint, declared as a measured narrowing rather than skipped.
eslint . --no-inline-config --format jsonreports a universe of 5104 files — read from eslint's own config, not assumed — of which 79 carry errors; this file is not among them, and its own targeted run is 0 errors with 2 pre-existingno-explicit-anywarnings, both far above the diff. Invariance:eslint.config.jsdeclares noprojectServiceand noparserOptions.project, so type-aware linting is off and this diff cannot move the verdict on any untouched file.The file's figure-guard is live — proved, then reverted
Since the new prose still carries figures, it is worth knowing whether anything here can catch a duplicate. One-shot ablation, run against the committed tree:
Tests 2 failed | 35 passed (37), both failures naming the guard verbatim:git hash-objectequals the HEAD blob (cb3d5f08...),git diff HEADis empty, and the ablation marker greps to 0. Atrapon EXIT/INT/TERM using absolute paths covered the crash path.⇒ the guard exists and it fires, and it covers the header — which is exactly why the clause a thousand lines below it needed its figure removed rather than refreshed.
Acceptance notes
No sibling instance of this defect class remains in the file — swept rather than assumed. The only other
N passedfigures sit in the objectui#6058 ablation record, which is anchored to a named card and written in the past tense (HISTORICAL, and ⛔ not to be rewritten), and the two "85 keys ... today" clauses are both pinned byheaderFigures()at the runtime leg. The repaired clause was the only unpinned live one.Labels.⚠️ In this repo labelling is CI-owned and destructive:
.github/workflows/labeler.ymlrunsactions/labeleronopened/synchronize/reopened, and that action applies its whole set in ONEsetLabelscall, which REPLACES rather than adds..github/labeler.ymlderivespackage: typesandtestsfrom these paths. An additive write from this seat would therefore be silently clobbered by the next sync, so none was made; the label set is reported as read back in the delivery report instead.Out of scope, noted and ⛔ not filed:
path:lineaddress, and that address is already false — the line it names reads 3371 today.AGENTS.md[WIP] Update documentation for project #11 bans cross-file line addresses, but its carrier list is comments, assertions, failure messages, docs, changesets and script headers; an issue title is not among them, andcheck:new-line-citationsscans tracked files only. So this is a live illustration of why the ban exists rather than a breach of it. Carrier: the next seat editing that card — and if none comes, none is needed.⛔ Nothing filed under the three classes: no reproducible defect, no other declared contract measured false, and no trap that would lead an author to write metadata the runtime rejects or silently drops.
Generated by Claude Code