Repository navigation
fix(types): type ObjectGallerySchema.filter as its documented destination - #9540
Conversation
…tion The declaration read `filter?: unknown` under the docblock "Query filter, forwarded verbatim as `$filter`". `$filter` is `QueryParams['$filter']` (`Record<string, any> | FilterArray`, declared in `data.ts`), so the declaration named a destination it did not type: the documented forward did not compile, and the only way through was an assertion, which un-checks the destination's real type at that call site too. AGENTS.md 0.1 points the other way -- fix the declaration, do not widen the consumer. Both faces move together. The TS member is now an indexed access on `QueryParams` rather than a copy of its arms, so it cannot drift from the slot the docblock names. The zod mirror narrows in the same change because `zod-mirror-parity`'s `Unconstrained< T >` excludes an `unknown` mirror slot from its `WiderThanDeclared` comparison by definition -- measured, not assumed: with the mirror reverted to `z.unknown()` and the TS face narrowed, that suite stays green at 32/32. NARROWING of a published accept set, both faces: `filter: 'stage=won'` and `filter: 42` used to compile and to parse, and now do neither. Both object arms are unchanged and no runtime behaviour moves. Also drops the sibling census that `ObjectChartSchema.filter`'s docblock stated in prose, which this change falsified in the same file: it called that key the only `object-*` `filter` with a record arm, and the gallery now has one. The docblock points at the new census test instead of carrying a number (AGENTS.md 9). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5xpA5q533BgTTNADibEFt
✅ 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
|
⛔ Landing gate ② is blocked by a FALSE POSITIVE, and I am not clearing it the way the script says would clear itRead at
The tell's premise is false here, and the diff says so in the same hunk. ⇒ And the direction is inverted. The removed spelling is ⛔ I am not re-declaring
⇒ flipping the declaration would buy a green exit by writing a widening into the governance record that did not occur. The same docblock closes the other door too: "⛔ Nothing about this row is relaxed by saying so: the exit stays non-zero and stays a hard block." So the honest state of this PR is: the change looks right and the review is running, but gate ② cannot pass on my authority, and I will not enqueue without it. This is not a defect in the diff and ⛔ nothing here is asked of the dev. What happens next
Generated by Claude Code |
The matcher card is filed, and the false positive is now measured rather than arguedobjectstack#18234 — filed bare and unassigned; routing and grading are triage's. What changed since the comment above: I stopped arguing the direction and measured the matcher. Running
⭐ Row 2 is the whole finding: the same semantic change declines when the new value is spelled Root cause, read in the source:
State of this PR is unchanged and stated plainly: Generated by Claude Code |
Contract reviewIndependent review seat for objectui#9540 at head Merge-base derived here, not adopted. The shared checkout's Claims tested: 26, enumerated twice and agreeing ( 1. The census — 9 declarations, 4 spellings, counting rule beside the number⭐ Counting rule: every Two instruments, written independently of the PR's committed test and of each other:
Both print the same 9 rows, in the same order, with the same owners and spellings, at the merge-base and at head:
A third, cruder enumeration agrees: Firing control for the ownership rule. A fixture where proximity and the parser disagree (
2. The card's comparative claim — the refutation is CONFIRMED, and is stronger than statedThe card's raw counts both reproduce (6 ×
The defect itself survives untouched: 3. Direction — narrowing on both faces, measured with a control that firesTS face. So the four Zod face. ⛔ Not assumed from " Arm order. The comment's factual half is true: 4. The declared deviation — (a) genuinely falsified, (b) correctly repaired, (c) in scope
5. The claimed blind spot — CONFIRMED by reading the predicate AND by reversing the mirrorRead, not taken on report. export type Unconstrained< T > =
[unknown] extends [T] ? true : … ;
export type WiderThanDeclaredKeys< M, D > = {
[K in MirroredKeys< M > & DeclaredKeys< D >]:
Unconstrained< InputOf< ShapeOf< M >[K] > > extends true
? never // ← the key leaves the comparison
: …
}[…];
Reversed on disk to confirm it is live, not just documented (own clone; mutation proved by occurrence counts, restored and verified byte-identically by
And the narrowed mirror does more than the dev claimed. That same reversal shows the existing gate now covers this pair on its own: Four independent reds exactly as reported, and the two 6. Breakage — re-derived, and one dev premise does not hold
What this breaks downstream, plainly. For a TypeScript consumer of 7. The follow-up the dev refused — reading CONFIRMED, and stopping was right
Stopping was right:
8. Ancillary
③ Landing reading — polled to settlement
Verdict: PASSThe change does what it says on both faces, it is a strict narrowing measured rather than asserted, the mirror moves for a blind spot I reproduced rather than took on report, the census is re-derived by an instrument instead of written into prose, the one edit beyond the card's key is genuinely forced by this diff and correctly repaired, the scope stop at Two corrections that do not change the disposition and are recorded rather than held against it: the dev's "none of the three producers sets This seat's own errors, disclosed
Implemented-by: claude/issue-9309-object-gallery-filter-typed-unknown Generated by Claude Code |
Two gates met, one blocked — this PR is HELD, not stalled, and the blocker is namedRead at
⇒ not enqueued, and not enqueueable by me. ⛔ Two of three is not the bar; the bar is three of three. What the review found, since it bears on how long this should wait. It reproduced the census on two instruments written independently of the PR's own test and of each other, and confirmed the refutation is stronger than the card stated: restricted to actual view schemas, 8 of the 9 owners are view schemas and only 5 of those are It also corrected the dev on a premise: "none of the three producers sets Why I will not clear ② myself. The only mechanical clear is flipping This is now a maintainer item, and it is stated as one. A reviewed, green, correct PR is held out of the queue by a matcher defect of a class that has been fixed twice before (objectstack#16822, objectstack#16943) and has recurred in the one shape the successor's three-fact test cannot express. The seat's position, offered with the measurement attached: fix-first — land objectstack#18234, then re-run Generated by Claude Code |
Patrol input — a cross-lane same-file fence, recorded here because it lives nowhere elseHalf-state sweep run by this seat at 2026-09-15T08:43Z (
⇒ #8941 ( ⛔ Report-only, ⛔ not a gate verdict, and ⛔ no action is being taken on #8941 by this seat ( Generated by Claude Code |
…aces (objectstack-ai#8801) (objectstack-ai#9621) Fixes objectstack-ai#8801 Retires `ObjectKanbanSchema.allowCollapse` on the `object-kanban` arm, on both published faces, under ADR-0049 enforce-or-remove. Executes the director seat's class-1 self-adjudication of 2026-09-16 (letter A — retire; B, wiring a reader, was refused as a capability nobody asked for). ## What the key was Declared on the TypeScript face (`allowCollapse?: boolean`) and on the zod mirror (`z.boolean().optional()`), and read by **no registered board**. An author who wrote `allowCollapse: true` type-checked green, parsed green, and got a board that never collapsed anything off it — a published entry point with nothing behind it. ## What landed | face | before | after | | --- | --- | --- | | `packages/types/src/objectql.ts` | `allowCollapse?: boolean` | `allowCollapse?: never` (tombstone) | | `packages/types/src/zod/objectql.zod.ts` | `z.boolean().optional().describe(...)` | `retirementTombstone(...)` | An **ADR-0087 D2 tombstone, not a deletion**, and that is load-bearing: `BaseSchema` carries an index signature and its mirror ends `.passthrough()`, so a dropped member would be **kept, not refused** — one silent no-op traded for another. The member stays declared and unwritable, so the value is refused BY NAME with a prescription attached. ## Premises, re-measured on this branch rather than inherited Every one of the four the card rests on was re-taken here, each with a control firing on the same instrument in the same run. 1. **Upstream does not declare it.** Re-taken against the **installed** `@objectstack/spec` (17.4.0) in this worktree, not the shared checkout. `ObjectKanbanPropsSchema` — `ComponentPropsMap['object-kanban']` — declares `objectName groupBy columns filter limit data cardTitle titleField cardFields swimlaneField grouping quickAdd coverImageField conditionalFormatting`, and no `allowCollapse`. Token counts over the published package: `allowCollapse` **0** in `src` / `dist` / `json-schema`; controls `groupBy` **12 / 52 / 37** and `coverImageField` **1 / 4 / 2**; a minted absent token scored **0 / 0 / 0**.⚠️ One correction to the ruling's prose, which does not move the verdict: `groupField` appears in that schema as an **alias** entry (`groupField` to `groupBy`), not as a declared member. ⭐ And the schema is a `strictObject`, so the platform was **already** refusing an authored `allowCollapse` by name at publish while this face said yes. 2. **objectui declared it on both faces.** Re-derived by symbol, not by the line address the ruling quoted: one declaration inside `interface ObjectKanbanSchema` and one inside `export const ObjectKanbanSchema` on the mirror. CONFIRMED. 3. **No registered board reads it.** Zero files under `packages/plugin-kanban` name the token, against firing controls in the same pass — `groupBy` **45 files**, `conditionalFormatting` **8**, `quickAdd` **6**, `coverImageField` **3** — and a freshly minted absent token at **0**. Repo-wide, no file under any `packages/*/src` names it at all. 4. **Batch objectstack-ai#70's retirement did not reach here, and still does not.** What survives of it is an explanatory block on the `kanban` mirror recording that its refusals were arm-scoped by construction and that an `object-kanban` document "is judged exactly as it always was". The tombstone landed here agrees with that rather than contradicting it: this is a separate ruling on this arm's own protocol row. ### ⭐ The grep is not the reading — both unnamed channels were traced to their ends A renderer can consume a key it never names, so a source grep alone cannot answer the inertness question. Both channels terminate before any sink: - **PROP channel.** `SchemaRenderer` spreads every non-metadata key as a React prop; `ObjectKanbanRenderer` destructures `schema` and forwards its rest into `ObjectKanban`, whose first statement after its own destructure is `void _props;`. The rest is discarded, never spread onward. - **SCHEMA channel.** The key **does** ride `ObjectKanban`'s `{ ...schema }` spread into `effectiveSchema`, and reaches `KanbanRenderer` — which destructures `schema` / `objectFields` / `onCardMove` and **names every key** it hands to the lazy board. An unnamed key stops there. Both terminators are pinned as source text in the new test, so the reading is re-derived on every run rather than remembered. ## Evidence on the BUILT artifact The BREAKING banner is earned on `dist` — the bytes a consumer installs — not on `src`. `dist/objectql.d.ts` carries `allowCollapse?: never;` and `dist/zod/objectql.zod.d.ts` carries an OPTIONAL of `z.ZodNever`; the previous spelling survives nowhere under `dist`. Parsed through the built entry: ``` { allowCollapse: true } | { allowCollapse: false } | { allowCollapse: 'yes' } RED invalid_type at `allowCollapse` { groupField: 'status' } RED invalid_type at `groupField` <- OTHER TOMBSTONE { quickAdd: true } · { coverImageField: 'cover' } · { limit: 50 } GREEN <- LIVE CONTROLS { allowCollapsing: true } GREEN <- NEAR-MISS CONTROL ``` Live members parse green, so the arm is not refusing everything. ⭐ The near miss parsing **green** is the discriminator that makes the tombstone load-bearing: this arm is not strict, so a never-declared neighbour is kept rather than refused — which is exactly what deleting the member would have shipped. ## Pins, in both directions New: `packages/types/src/__tests__/object-kanban-allow-collapse-retired-8801.test.ts`. - **Refused by name** — an issue at the key's OWN path, code `invalid_type`, for `true` / `false` / a string alike; the message asserted for the ruling's own required content (that lane collapse is `KanbanColumn.collapsed`'s and **not a board-level authored toggle**), not frozen as a whole paragraph. - **The declared members still parse** — nine live members each accepted, plus the bare node as the firing control, plus this arm's OTHER tombstone (`groupField`) still refusing, so the narrowing did not sweep the arm. - **One string, both channels** — the `.describe()` metadata is asserted to be the parse message, the invariant `retirementTombstone()` exists for. - **Type-level** — the member evaluates to exactly `undefined` and is not `any` (deleting it instead would fall through the index signature to `any`, and that pin would go red), with a live member as the non-vacuity control and an unused-directive `@ts-expect-error` literal that goes red with TS2578 if the tombstone is ever widened back. - **Tree-scoped absence** — no property read of the key anywhere under `packages/` or `apps/`, with a firing control in the same walk. Tree-scoped on purpose: a file-scoped pin sees only the files its author thought of. Moved, not deleted: `bare-kanban-node-key-retired-8802.test.ts` suite 3 asserted that this arm still **accepted** the key. That row is now a refusal assertion with its reason stated at the site; its three sibling rows stay accepting, because the claim that suite makes — batch objectstack-ai#70's refusals were arm-scoped and cannot cross an arm — is still true, and this retirement is not that claim. ## Region fence The claim released this lane at **region** granularity, not file granularity: `packages/types/src/objectql.ts` and `packages/types/src/zod/objectql.zod.ts` are both held by open PR objectstack-ai#9540, frozen head, whose region is `ObjectGallerySchema.filter`. **The fence held.** Both hunks fall inside the `ObjectKanbanSchema` region of their file and carry that symbol as their hunk context header; `ObjectGallerySchema` sits several hundred lines further down in the declaration file and is untouched, as is that PR and its branch. Nothing here required stepping outside the region. ## Gates Hand-derived from this repo's own `check:*` scripts and workflows — `dispatch-gates.mjs` refuses cross-repo and cannot answer for this repository, so `--ran` reconciliation is unavailable here and is stated as such rather than faked. Exit codes captured to disk as each ran, before any pipe. ## Acceptance notes - **Owed follow-up, deliberately not taken here.** `content/docs/api/schema-reference.md` carries a note that reads, in part, that `@object-ui/types` "still declares both on its mirror of this face, so a reader will find them there; that half is objectui#8801, not this table." This pull request lands that half, so the sentence is now stale. The file is **outside the file surface this lane was released on**, and the claim's instruction on a breach is to stop and report rather than widen — so it is reported instead of edited. It is a prose staleness, not a gate failure: no gate reads it, and the note fails loudly rather than silently for anyone who acts on it (the key is now refused by name). Dedupe words: schema-reference, allowCollapse, object-kanban, mirror, stale. - **Recorded, not filed.** The doc note's sibling subject `quickAdd` — retired by objectui#8285 on the strict authoring face while this mirror still declares it live — is the other half of that same paragraph and is **not** this card. No action taken, named here only so the next reader of that note knows which half moved. --- _Generated by [Claude Code](https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE)_ Co-authored-by: Claude <noreply@anthropic.com>
Contract reviewServed-tier: ① Derived judgmentsIdentity and scope, derived here. TS face — NARROWED. Zod face — NARROWED. Nothing widened, nothing else moved. My own AST census (parent-pointer owner resolution, catches quoted keys and type aliases too) over Clause-② declaration, what exists. PR body: 0 occurrences of PR-body claims falsified or confirmed. (a) Census — CONFIRMED above. (b) "Three producers … none of them sets Who breaks, plainly. No consumer in this repository: the sole importer casts to the identical type. Out of repo: any TypeScript consumer of ② Semver levelThe change is a breaking narrowing of two published faces. Under objectui's enforced convention — AGENTS.md at ③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
…ey, and hand the direction back (objectui#9729) (objectstack-ai#9735) Fixes objectstack-ai#9729 Clause-②: no — and the declaration is about THIS PR's diff, which is test-only and moves no published accept set.⚠️ The REMEDY the card asks about is `Clause-②: yes`, per key, and is deliberately **not** taken here: this branch measures, proposes, and hands back for the at-tier contract review. ## What this PR is The card carries two LOCAL entries of the `MirroredUndeclared` ledger — a key the published zod mirror states and the published TypeScript twin does not. Either remedy moves a face `@object-ui/types` already ships, so the dispatch forbade picking one. What was missing for the review was the per-key evidence, so that is what landed: four readings, each with a lit control on the same instrument, plus the pins that keep them honest. ## The four readings the card asked for ### 1. Who reads each key at runtime ⛔ A source grep cannot answer this in this tree — `SchemaRenderer` hands a node's leftover keys to the component as props, so a renderer can consume a key it never names. Both readings below are therefore **rendered**, and both landed as tests rather than being pasted here. - **`dueLike` is READ.** `DetailSection` spreads the authored field into the enriched bag (`enrichDetailField` opens with a spread of the view field) and hands that bag to the resolved cell renderer, where `resolveDueLike` reads it. Measured on a field named `end_date`, which deliberately does **not** match the due/deadline field-NAME convention that read falls back to, so the authored key is the only thing that can move the output: with the key the cell draws the overdue wording, without it the neutral relative wording. The control leg renders BY VALUE — it asserts the neutral wording is present, not merely that the overdue wording is absent, which would also be true of a document that drew nothing. Pinned by `DetailSection.dueLikeReachesTheCell-9729.test.tsx`. - **`operators` changes NOTHING drawn.** Measured with a byte ruler: the same `object-grid` document drawn twice and compared as markup. The ruler is pinned stable first (identical documents, identical bytes), then a LIT CONTROL on a key the renderer demonstrably does read (`label`, which moves the bytes and appears in them), and only then the measurement — taken twice, once on a plain grid and once with the filter surface on, since `operators` is a filtering word and a grid with no filter affordance would be the wrong corpus to ask. Both come back byte-identical.⚠️ The claim is bounded by the ruler: this is what the RENDERED output does with the key. Pinned by `ObjectGrid.operatorsInert-9729.test.tsx`. ### 2. What `@objectstack/spec` says on the corresponding surface Probed against the installed spec by parsing documents through it, not by grepping it — with a declared-key control and a nonsense-key control on the same schema: - **`operators` on the grid: the protocol REFUSES it by name.** `ObjectGridPropsSchema` for `object-grid` is a strict object, and a document carrying `operators` comes back RED with `unrecognized_keys` — and the refusal message itself proposes the rename to `operations`. Controls: the bare document and one carrying `operations` both parse GREEN. ⇒ the mirror admits a key the protocol rejects, and the protocol has already classified that spelling as a misspelling of a key both this block's authoring vocabulary and the twin declare. - **`dueLike` on the detail-view field: the spec has no such surface to declare it on.** `RecordDetailsProps` types its `fields` (and `sections[].fields`) as field NAMES — a string array. Every object-shaped field entry is refused there, carrying `dueLike` or not (control: a string entry parses GREEN, an object entry is RED whatever keys it carries). The whole object-shaped `DetailViewField` is objectui's own contract, so for this key there is no "toward the protocol" pull in either direction. ### 3. Who AUTHORS either key in-tree - **`dueLike` is authored** — in `content/docs/fields/date.mdx` and `content/docs/fields/datetime.mdx`, where the published docs tell an author to write it.⚠️ Read the (interface, name) carefully: those examples author it on `DateFieldMetadata` / `DateTimeFieldMetadata`, the object-field metadata faces, ⛔ not on a detail-view field entry. So narrowing the mirror would falsify no in-tree document by itself — while leaving the docs teaching a key the detail-view face would then reject. - **`operators` is authored NOWHERE** in the doc, example, app or e2e corpora on a grid node. Lit control on the same instrument and the same corpora: `operations` lights up in them. ### 4. The ledger, and its floor Both keys are already recorded, as the two LOCAL single-key entries the card describes: `objectql.zod.ts#ObjectGridSchema` names `operators`, `views.zod.ts#DetailViewFieldSchema` names `dueLike`. ⛔ The seeded entry and key totals are deliberately not repeated here: they live in exactly one place — the `MirroredUndeclared` docstring — and are re-derived from that ledger's own AST by the census at the bottom of `zod-mirror-parity.test.ts` ("the fourth direction is enumerated and sized at test time"). That ledger is a FLOOR that can only shrink, and the ratchet reddens on growth, on fresh drift and on a stale entry alike. ## ⭐ The third option the measurement produced: these are TWO decisions, not one The card allowed for a third option if the measurement showed one, and it does — the two keys are not the same defect wearing two names: | | `dueLike` on `views.zod.ts#DetailViewFieldSchema` | `operators` on `objectql.zod.ts#ObjectGridSchema` | |---|---|---| | mirror | judges the key and KEEPS it | judges the key and keeps it | | twin | `DetailViewField` has **no index signature**, so TypeScript REFUSES the key (`TS2353`) | `ObjectGridSchema` extends `BaseSchema`, whose index signature ABSORBS it as `any` — neither declared nor refused | | runtime | READ, and the read changes what is drawn | inert on the rendered path, by a ruler with a lit control | | `@objectstack/spec` | no counterpart surface — the field entry is a string there | REFUSES it by name, and names the rename to `operations` | | authored in-tree | yes, on the sibling metadata faces, taught by the published docs | no | | twin's neighbour | — | the twin already declares `operations`, the key everything else spells | ⇒ what the two faces DO differs in kind. For `dueLike` the two published faces actively CONTRADICT each other — the validator keeps the key, the compiler rejects the same document — and the runtime honours it. For `operators` they do not contradict; one is simply silent, nothing reads it, the protocol refuses it, and the key sits one letter away from the word the whole stack uses. ⭐ There is also a precedent in the tree for the `dueLike` direction, and it is worth the reviewer's attention: `DateTimeFieldMetadata.dueLike` was declared by objectui#8958, and its docblock gives the reason in the reviewer's own words — leaving it off "would keep the mismatch alive with the sign flipped — a key the renderer honours but the authoring type rejects." ⛔ Recommending is not deciding, and this PR decides nothing. Both remedies remain open on both keys. ##⚠️ The third key the card names is NOT this defect — re-derived, not inherited `complex.zod.ts#DashboardConfigSchema`'s `aria` was re-derived on this branch rather than taken from the hand-back: it is `z.never(...)` with an `error` message beginning "RETIRED (objectui#5852)" and an `.optional()`, and a document carrying the key comes back RED at path `aria` with that remedy. A LIT CONTROL on the same schema shows an unrecognised key is NOT refused, so the rejection is BY NAME and not a strictness the whole object has; a document that omits the key stays green. ⇒ its consequence is the OPPOSITE of the other two — they admit silently, it rejects loudly — and a sweep treating the three alike would ask a maintainer to repair something already doing its job. ⛔ It is untouched here, and it is pinned as the CONTRAST so the grouping cannot come back by accident. ## What landed - `packages/types/src/__tests__/mirror-only-published-keys-9729.test.ts` — the per-key consequence pins. Each key's pin is paired with an unrecognised-key control through the same schema, because a green parse proves nothing on its own: one mirror strips unknown keys, the other passes them through unexamined, so what distinguishes a MIRRORED key is that the mirror JUDGES it. The TypeScript side carries a `ts-expect-error` directive on the `DetailViewField` literal — that directive IS the assertion, and it fails in BOTH directions, since it also reddens as unused if the key ever becomes declared. - `packages/plugin-detail/src/__tests__/DetailSection.dueLikeReachesTheCell-9729.test.tsx` and `packages/plugin-grid/src/__tests__/ObjectGrid.operatorsInert-9729.test.tsx` — the two runtime readings, landed as tests beside the renderers that own the read paths rather than pasted into this body. - `packages/types/src/__tests__/zod-mirror-parity.test.ts` — two ledger docstrings corrected. The `dueLike` entry justified itself with "a `git grep` finds it in the mirror and nowhere in this package's TypeScript declarations", and that sentence is FALSE as written: `field-types.ts` declares that name on `DateFieldMetadata` and on `DateTimeFieldMetadata`, both in this package. ⭐ A NAME is not a KEY — a key is (interface, name) — and a package-wide grep for the name answers a question the ledger is not asking. The MEASUREMENT was right and stays; only its stated reason was wrong, and it is corrected rather than repeated. The `operators` entry gains the neighbouring-name reading. - `.changeset/9729-mirror-only-published-keys-measured.md` — empty frontmatter, the explicit "releases nothing" declaration. ## Gates Each exit code was captured to disk before any pipe. | gate | verdict | |---|---| | `pnpm --filter @object-ui/types type-check` | exit 0 — all three legs, including `tsconfig.test.json`, which is the leg that reads the directives above | | `pnpm --filter @object-ui/types test` | exit 0 — 204 files, 4769 tests | | `pnpm --filter @object-ui/plugin-detail --filter @object-ui/plugin-grid type-check` | exit 0, after building the dependency closure — the first attempt failed with TS2307 on every workspace import, which is a missing prerequisite and ⛔ not a reading | | the three new test files | exit 0 — 6 + 7 assertions across the three | | `node scripts/check-changeset-presence.mjs` | exit 0 — "4 source file(s) of 3 released package(s) changed … Every one of them has an EMPTY frontmatter" | | `pnpm check:control-bytes` | exit 0 — "check-control-bytes: OK"; also swept the changed files directly with a control-character grep, which found none | | `pnpm check:new-line-citations` | exit 0 — "0 new citation(s), enforcement report-only" | | `pnpm check:changeset-claims` | exit 0, report-only — 10 pending changesets name `zod-mirror-parity.test.ts`. Read, as the gate asks: every one of them describes `EXCLUSIONS`, `RuntimeOnlyDeclared`, `KnownDrift` or `UnmirroredDeclared`, and none mentions the fourth ledger or either key this branch touched. ⇒ nothing went false, so nothing is corrected | | `node scripts/check-governed-queue-guard.mjs --test` (5 paths) | exit 0 — "NOT GOVERNED — 5 path(s) checked against 5 governed surface(s); none matched"⚠️ the dispatch spelled this script under `scripts/pm/`; it lives at `scripts/check-governed-queue-guard.mjs`, and the first invocation was a MODULE_NOT_FOUND, ⛔ not a red gate | | targeted `eslint` over the changed files | exit 0.⚠️ Repo-wide `pnpm lint` is CI's run and is ⛔ not measured here | ## Reverse validation — both pins were made to fail, then restored Run from the committed state, each leg with an on-disk anchor count before and after the edit, and each restore proven by an empty `git diff HEAD` plus a blob hash identical to the HEAD blob: 1. **Delete the mirrored `dueLike` member from `views.zod.ts`** — anchor count 1 to 0, then the new pin goes RED: 2 of its 7 assertions fail. ⇒ the pin measures the mirror, not itself. 2. **Delete the `ts-expect-error` directive from the pin** — anchor count 1 to 0, then `tsc -p tsconfig.test.json` exits 2 with `TS2353: … 'dueLike' does not exist in type 'DetailViewField'`. ⇒ the refusal is real and the directive is load-bearing. Both mutations are gone; nothing from them is in this branch. ## Serial constraint — re-taken against the LIVE pull requests Re-taken at 2026-09-17T22:16Z, after the sibling appeared: objectui#9637 is now PR objectstack-ai#9734, and its file list is two changesets, one new changeset and `packages/plugin-detail/src/__tests__/recordDetailsInputs.spec-parity.test.ts` — it does **not** touch `zod-mirror-parity.test.ts`, so the warning's stop condition did not trigger. PR objectstack-ai#9732 (plugin-grid) lists `ObjectGrid.tsx`, `hooks/useBulkExecutor.ts`, one test and a changeset; the file added here is a different file. PR objectstack-ai#9540 does list `packages/types/src/objectql.ts` and `packages/types/src/zod/objectql.zod.ts` — ⛔ neither is edited here, since no accept set moves on this branch.⚠️ **Surface delta, declared:** the claim named `packages/types/src/{views,objectql}.ts` and their zod twins. None of those four is edited — the measurement outcome is that nothing on a published face should move without the review. Two test files outside the declared surface were added instead, in the packages that own the two runtime read paths, because the card's first question cannot be answered from `packages/types`, which has no renderer. --- _Generated by [Claude Code](https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L)_ Co-authored-by: Claude <noreply@anthropic.com>
… pronoun blindness (objectui#9727) (objectstack-ai#9752) Fixes objectstack-ai#9727 Clause-②: no The first step on this card is not repairing 53 changeset entries. It is rebuilding the instrument, because both tables the card carries are transcribed and the filing seat marked them NOT MEASURED: the producing script was cleaned up with its author's worktree, so no number on that card is re-derivable. **This pull request edits no changeset body.** It adds a measurement instrument, its pins, and one adjudication. ## The rebuilt instrument `pnpm census:changeset-polarity` (`scripts/changeset-polarity-census.mjs`), report-only, wired into no workflow — `census:*` is this tree's spelling for runnable, reported, not blocking. **P, the population.** Every sentence of every pending `.changeset/*.md` except `README.md`, matched when the sentence names a schema symbol and carries a present-tense declaration verb. Bare past `declared` is excluded on purpose: a historical sentence cannot rot, which is the distinction objectui#9713 turns on. Present-tense passive (`is declared`) is included, because it is a live claim and rots like the active voice. **V, the verdict.** For each (schema, key) pair a matched assertion predicates, membership is resolved against that schema's member set and compared with the sentence's polarity. A positive claim is contradicted when the key is absent; a negative claim when it is present. Four properties the rebuild has that the transcribed instrument did not: 1. **Whole-file, whitespace-tolerant read.** This corpus wraps near eighty columns, so a line-anchored probe is structurally blind to any claim that wraps — and a claim naming a schema *and* a key is long enough that most of them do. Lines are joined per paragraph, continuation prefixes (blockquote markers, list bullets, table pipes) stripped first, all whitespace runs collapsed before a sentence is cut. Backticked spans are masked during the cut so `foo.md` never splits a sentence. 2. **Assertion position distinguished from quoted position.** A count over prose is *not* invariant under quotation, and treating it as invariant is how a repaired site gets re-flagged forever. objectui#9713's repair quotes, in guillemets, the very sentence it retires. A sentence reached through a fence, a blockquote or quotation marks is counted, reported, and never flagged. Measured on this tree: that repaired 8802 sentence is the corpus's **one** quoted match, and it draws **zero** flags. 3. **A name is not a key — a key is (interface, name).** Membership is built with the TypeScript parser over `packages/types/src`, across both published faces (the `interface` and its zod mirror), with `extends` resolved transitively. The zod walk is **structural**: only the literal passed to `z.object()` / `.extend()`, the arms of a union, and the base of a `.merge()` / `.and()` count. A schema named in a member's *value* (`columns: z.array(ObjectKanbanLaneSchema)`) is a different object — walking into it read a lane's `cards` as a member of the *board*, which is the over-approximation this rule forbids, and fixing it is what removed those flags. An inherited index signature (`[key: string]: any`) is deliberately **not** membership: a key riding it is admitted and never examined, which is the condition the whole family of cards is about. 4. **The cross-sentence pronoun** — below. ## The blindness closed, and its pin The transcribed instrument missed **the site that motivated the card**. The claim in `.changeset/8802-8257-8008-kanban-gantt-family-retirement.md` reads, across a sentence boundary: > ... the only one that refused `allowCollapse` / `cardTemplates` / `columnWidths` / `titleField` / `draggable` / `onColumnAdd` / `onCardAdd` by name, and — through `columns: KanbanColumn[]` — the only one that judged a lane's `cards`. **The surviving `ObjectKanbanSchema` face declares none of them.** The object is `them`. A matcher that reads only the sentence carrying the verb finds a schema, finds no key of its own, and reports nothing. An instrument blind to the shape that produced it reports a **floor**, not a census. The rebuild resolves a pronoun object (`them`, `these`, `those`, `none of them`, `either`, `both`) from the nearest preceding sentence in the same paragraph that names any key. The pin lives in `scripts/__tests__/changeset-polarity-census.test.ts` and carries the **pre-repair** text of that site as a fixture, so it survives a shallow clone where `adf581278` is unreachable. ⭐ **The pin is stronger than "found".** Run against that pre-repair text, the rebuilt instrument returns exactly `columns`, `cardTitle`, `titleField`, `allowCollapse` — the four keys objectui#9713 adjudicated, and no others. The other keys that sentence names are genuinely absent from the surviving face, so a negative claim about them is *true* and is correctly not flagged. Reproducing a known-good human adjudication from a fixture is the strongest available evidence that the rebuild reads correctly. Both halves are asserted: the flags are found, and every one of them is reached `viaPronoun`. ## The re-derived count, against the card's 154 Read these from a run, not from this paragraph (commandment objectstack-ai#9). At `1cfdff814` plus this branch, `pnpm census:changeset-polarity` prints: | | card (transcribed, `dea17b469`) | this rebuild | |---|---|---| | entries scanned | 1642 | 1654 | | matched, assertion position | 199 across 169 | 218 across 176 | | matched, quoted position | not distinguished | 1 (reported, never flagged) | | object resolved across a sentence boundary | 0 — the blindness | 9 | | **candidate contradictions** | **154 across 53** | **134 across 58** | | claims naming a schema this tree does not declare | not reported | 61 | Controls, same corpus and same instrument, on every run — the run exits 2 and voids its own numbers if either fails: | control | probe | reading | expected | |---|---|---|---| | corpus lit | present-tense declaration verb | 931 | > 0 | | corpus absent | `zzqqNoSuchMemberZZ` | 0 | 0 | | member lit | `BaseSchema.type` | 1 | 1 | | member absent | `BaseSchema.zzqqNoSuchMemberZZ` | 0 | 0 | **It differs from 154, and it differs in both directions.** Flags are **down** (154 → 134) while entries are **up** (53 → 58), which is not a contradiction — they move for different reasons: - **Down**, from precision. A backticked PascalCase token is a *type* name (`ObjectGridComponentProps`, `GanttConfig`), never a key, and reading one as a key inflated the count. The structural zod walk stopped a referenced schema's keys counting as the referrer's. And a sentence in quoted position is no longer flagged at all. - **Up**, from sensitivity. The whole-file whitespace-tolerant read and the pronoun resolution both find sites a line-anchored, sentence-local matcher could not see — nine flags on this tree are reached across a sentence boundary alone. The corpus also grew by 12 entries between the two readings. ⛔ 154 was never reproduced by construction, and the rebuild was not tuned toward it. The two numbers are readings of different instruments over different trees, and the card's own statement stands: its number was a floor. ## The ten adjudications Sample rule, fixed before looking: **the first ten distinct flagged entries in sorted filename order**. No cherry-picking. Seventeen flags across those ten entries. For each, the first question is whether the flag is a **true positive** at all. Only a true positive can be ROTTED or BORN FALSE — a sentence that is *true today* is neither, and saying otherwise would be a false record of its own. Write-time refs are given for all ten so any reader can re-derive; all ten lie inside this clone's shallow window (boundary `c35fed098`, 2026-08-07), and every reading here is an affirmative one, so no negative leg needs a control. | # | entry | flags | verdict | established at | |---|---|---|---|---| | 1 | `5632-svg-host-dom-passthrough.md` | `SpinnerSchema.icon`, `SpinnerSchema.color` | **TRUE POSITIVE → BORN FALSE** | write-time ref `e304a4ef7` | | 2 | `6011-tosortitems-order-spelling.md` | `SortUISchema.toSortItems`, `.direction` | false positive ×2 | `c5fbe0b99`; true at `1cfdff814` | | 3 | `6051-gantt-flat-config-declared-keys.md` | `ObjectGanttSchema.startDateField`, `.endDateField`, `.titleField` | false positive ×3 | `75bd83d6d`; true at `1cfdff814` | | 4 | `6067-component-meta-derive-from-canonical.md` | `ComponentMetaSchema.tier`, `.namespace`, `.skipFallback`, `.labelling` | false positive ×4 | `44d075ba0`; true at `1cfdff814` | | 5 | `6121-retire-report-data-source.md` | `ReportComponentSchema.data` | false positive | `6414dfd45`; true at `1cfdff814` | | 6 | `6132-undeclared-action-props.md` | `DropdownMenuSchema.onOpenChange` | false positive | `e28fbf92f`; true at `1cfdff814` | | 7 | `6150-undeclared-but-consumed-keys.md` | `TreeViewSchema.value` | false positive | `2c45966ff`; true at `1cfdff814` | | 8 | `6169-chatbot-authoring-face-type.md` | `ChatbotSchema.chatbot` | false positive | `52a43ded8`; true at `1cfdff814` | | 9 | `6235-mergedsort-wrap.md` | `ObjectGridSchema.sort` | false positive | `9caa7d474`; true at `1cfdff814` | | 10 | `6247-option-visiblewhen-metadata-admin.md` | `SelectOptionSchema.unrecognized_keys` | false positive | `0ea559e7c`; true at `1cfdff814` | **Entry 1, the one true positive, in full.** The sentence is: > `IconSchema` and `SpinnerSchema` declare only `icon` / `size` / `color`, and both renderers already consume all three by name, so the SDUI pass-through list withholds nothing they need. On `main` at `1cfdff814`, `SpinnerSchema` declares `type` and `size`, plus `body` / `children` as retirement tombstones. It declares neither `icon` nor `color` — those are `IconSchema`'s. The sentence is false of `SpinnerSchema`. **The verdict is BORN FALSE, and it is established at the write-time ref, not today.** At `e304a4ef7` (2026-09-03), the commit that added this entry, `SpinnerSchema` was exactly `{ type, size }`. Nothing later falsified the sentence; it was false the day it was written. Re-derived mechanically by running the rebuilt census with `--corpus` and `--types` both taken from that ref — two flags, `SpinnerSchema.icon` and `SpinnerSchema.color`, with all four controls passing at that ref.⚠️ That historical run is also what found a defect **in this instrument**, and it is recorded because it is this card's own class wearing the instrument's clothes. The member lit control was first spelled `ObjectKanbanSchema.groupBy` — a member objectui#7322 added. At any ref older than that card the control read 0, the run exited 2, and every historical reading voided itself — and a historical reading is *exactly* what establishing BORN FALSE requires. **A control pinned to a fact a later card moves is the defect this card is about.** It is now `BaseSchema.type`, the protocol's own recursion point, and the choice is pinned with its reason. **The nine false positives, and the three limits they name.** All are recorded in the script header so the next reader does not re-derive them: - **Window pairing** (entries 3, 4, 7, 8, 9, 10). The sentence names schema S and key K and predicates K of something else: a registry-local type (`ComponentMeta` in `Registry.ts`, objectstack-ai#4), another node's schema (`TextSchema.value`, objectstack-ai#7; the `list-view` node's `sort`, objectstack-ai#9), a spec schema (`GanttConfigSchema`, objectstack-ai#3), a registration name rather than a key (`chatbot`, objectstack-ai#8), or a zod issue code rather than a key at all (`unrecognized_keys`, objectstack-ai#10). This is the limit the card's own author stated first and it is still the largest source. - **Polarity by keyword** (entries 3, 5, 6, 9). Polarity is read from negation words anywhere in the sentence, so an unrelated clause inverts the verdict. Entry 6 is the clearest: *"None of the three menu schemas declares any event slot (`DropdownMenuSchema` declares `onOpenChange` and nothing else)"* — the parenthetical asserts exactly what the member set says, and `None` flipped it. - **Top-level membership only** (entry 2). `SortUISchema` declares `sort?: Array<{ field; direction }>`, so `direction` is a member of the inline sort *item*, not of the schema — and *"`direction` is the key `SortUISchema` legitimately declares"* is true in context. Descending into inline member objects would re-create the "a name is not a key" failure one level down, so the narrow reading is deliberate and the cost is named rather than paid silently. ⛔ None of the three is a reason to stop reporting a flag. They are the reason a flag is a **candidate**: each is resolved by a human reading the sentence, and none is resolvable by reading the count. ## Recommendation on the grade condition Triage's checkable condition was: true-positive rate materially non-zero ⇒ defect list, p2 confirmed, splittable; ≈ 0 ⇒ re-shape the card into "fix the instrument". **Measured: 1 of 10 entries, 2 of 17 flags.** That is not zero — there is a real, previously unrecorded BORN FALSE claim in the sample, and it is a *second* instance of a class objectui#9713 had already established twice. So the existence question stays answered and `priority:p2` is right. But it is nowhere near a defect list, and **⛔ the number must stop being carried as one**. At the measured yield, splitting the 58 flagged entries into dispatchable items would dispatch roughly fifty no-ops, each costing a history read — which is the same measurement error in a new coat. ⇒ **Re-shape the card to "fix the instrument, then triage its output".** Concretely: the instrument now exists, is re-derivable from a clean checkout, and its three false-positive sources are named and individually attackable — polarity-by-keyword is the cheapest and would clear four of the nine. The 154 (now 134) should be carried as *"whatever `pnpm census:changeset-polarity` prints"*, never as a figure in prose, which is commandment objectstack-ai#9 applied to this card. The one true positive found here is a candidate for its own small card; ⛔ it is **not** repaired in this pull request, because the fence on this dispatch is absolute. ## Boundaries honoured - ⛔ **No changeset body was edited** — not one of the 53, not any other. The only `.changeset/` file this branch touches is the one it adds. -⚠️ `.changeset/6051-gantt-flat-config-declared-keys.md` is in the candidate set and is adjudicated above as a **reading only**. It is being repaired right now by objectui#9743 on another branch, and nothing here touches it. (`.changeset/5903-objectgantt-declared-keys.md` left the candidate set entirely once PascalCase tokens stopped reading as keys.) - ⛔ No published face, mirror, declaration or accept set moved. No issues created. No labels written. - Open-PR intersection re-taken on this branch rather than inherited: nine open pull requests, of which four touch `scripts/` (objectui#9748, objectstack-ai#9584, objectstack-ai#9488, objectstack-ai#8941) and four touch `.changeset/` (objectstack-ai#9540, objectstack-ai#9391, objectstack-ai#8941, and the release PR objectstack-ai#5400). None touches any path this branch adds or modifies. The one shared file is `scripts/markdown-test-inputs.mjs`, which this branch adds one ledger row to and no open pull request edits. ## The changeset grade — measured, not assumed `.changeset/9727-changeset-polarity-instrument-rebuild.md` carries **empty frontmatter**, which is the explicit claim that nothing published moved. That claim is a gate reading: - **absent control / the real diff** — `node scripts/check-changeset-presence.mjs` on this branch: *"10 file(s) changed, 0 of them published source of a package the release covers, 0 of them a manifest whose published contract moved"*, exit **0**. - **lit control, same tree, same gate** — appending one comment line to a file under `packages/types/src` flips the same gate to exit **1** and demands an entry. Reverted in the same run and proven byte-identical by `git hash-object` before and after (`bcebba9b9` both sides), with `git diff HEAD` empty. Two zeros on one instrument would mean a broken instrument. This is one zero against a firing control. ## Gates Exit codes captured to disk before any pipe. | gate | exit | |---|---| | `node scripts/check-changeset-presence.mjs` | 0 | | `node scripts/check-changeset-overwrite.mjs` | 0 | | `pnpm changeset:check` | 0 | | `pnpm check:changeset-claims` | 0 | | `pnpm check:pending-changeset-literals` | 0 | | `pnpm check:control-bytes` | 0 | | `pnpm check:governed-queue-guard` | 0 | | `pnpm check:new-line-citations` | 0 | | `pnpm check:test-path-roots` | 0 | | `pnpm check:required-check-set` | 0 | | `pnpm lint:coverage` | 0 | | `pnpm check:lint-rule-coverage` | 0 | | `pnpm check:esm-specifiers` | 0 | | `pnpm check:node-esm-load` | 0 | | `pnpm type-check:scripts` | 0 | | `pnpm exec eslint` on the three added source files | 0, three files linted | | `pnpm exec vitest run` — the new suite plus `markdown-test-inputs`, `check-changeset-presence`, `check-changeset-claims` | 0 | The governed-surface guard was run at `scripts/check-governed-queue-guard.mjs`, not under `scripts/pm/`. ## The declared file surface, and the two increments beyond it The dispatch declared "a script under `scripts/` plus its test, and a new `.changeset/9727-*.md`". Two files land outside that, both required, both named here rather than left unexplained: - **`package.json` (+1 line)** — the `census:changeset-polarity` entry. Without it the instrument has no invocation the tree knows about, and `census:*` is the spelling that carries "runnable, reported, not blocking". It is a `scripts` key: not one of the eight publish-contract fields, and the root manifest is private, which is part of why the changeset grade measures as nothing-published. - **`scripts/markdown-test-inputs.mjs` (+10 lines)** — one ledger row. That ledger asserts every tracked markdown document is an input to some test, and the six fixture documents this change adds would otherwise be uncovered and red it. The row declares what the new test reads and that it walks a markdown tree; the scanner re-derives the same answer from the source, which is why the test spells its fixture paths as literal segment runs. Both are additive and neither is touched by any open pull request. ## The fixture names ARE the trap list They encode the failure modes this lane actually hit, not a happy path: | fixture | the trap it holds open | |---|---| | `01-pronoun-pre-repair.md` | the proven false negative — a claim whose object is a cross-sentence pronoun, carried at its pre-repair text | | `02-quotation-position.md` | a count is **not** invariant under quotation; a repaired sentence quoted in its own retirement note must never be re-flagged | | `03-wrapped-assertion.md` | prose wraps near eighty columns, and it carries its own **dark leg**: the pin asserts a line-anchored probe reads nothing on that exact file, so the lit reading proves the tolerance rather than assuming it | | `04-past-tense-only.md` | a historical sentence cannot rot and stays out of the population | | `05-referenced-schema-scoping.md` | a name is not a key — a referenced schema's members are its own | | `06-index-signature-is-not-membership.md` | a key riding `[key: string]: any` is admitted and never examined; counting it as declared erases the finding | ## ⭐ A hand-typed entry guard, caught by CI and fixed — the same defect, in this instrument The first push carried a hand-typed `process.argv[1]` entry guard, and `check:entry-guard` failed the Lint job on it. **It is this script's own defect class.** Node resolves symlinks for the module graph but leaves `process.argv[1]` as the caller typed it, so a census reached through a symlink compares two different paths, answers false, does nothing, and exits **0 with no output** — a clean-looking zero from an instrument that never ran, inside an instrument whose entire purpose is to stop false zeros being reported as measurements. A wrapper holding only `result.status` cannot tell that apart from a pass. It now routes through the one predicate, `isEntrypoint` from `scripts/invoked-as.mjs`, with the reason recorded at the guard. ⛔ `KNOWN_HAND_TYPED_GUARDS` was not touched — it is shrink-only, and adding a baseline line would have been the false record rather than the fix. | | exit | |---|---| | `node scripts/check-entry-guard.mjs` **before** | **1**, naming `scripts/changeset-polarity-census.mjs` | | `node scripts/check-entry-guard.mjs` **after** | **0** — 103 scripts, 0 hand-typed guards | | `node scripts/check-entry-guard.mjs --self-test` | 0 — 63 cases | | `node scripts/invoked-as.mjs --self-test` | 0 — 12 cases, real symlinks | | census re-run after the fix | 0, controls PASS, reading unchanged | | the instrument's own suite re-run | 0 — 47 pins | The remaining Lint-job guard steps were run locally rather than eslint alone: `check-lint-coverage`, `check-entry-guard`, `check-upstream-port-parity`, `check-bash32-floor`, `check-vi-mock-override-shape`, `check-test-path-roots`, `check-cross-repo-closer-outcome` — all exit 0.⚠️ One gate is **NOT MEASURED** here and is not this change's: `pnpm check:node-esm-load` (its own workflow, not Lint) exits 1 in this container because turbo shares one cache across every worktree of a checkout and two entries — `@object-ui/auth`, `@object-ui/react-runtime` — were replayed from a sibling agent's worktree. The gate refuses to grade artifacts this tree did not produce, which is correct behaviour; the refusal is about the shared cache, not about this diff, which touches no package source. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #9309
ObjectGallerySchema.filteris typed as the destination its own docblock names, on both faces. Drafted by an ObjectUI development agent seat (Claude Code) in sessionsession_01L5xpA5q533BgTTNADibEFt; every figure below was re-derived on this branch and each one carries the command that produced it.The defect — the half of the card that holds
packages/types/src/objectql.ts, inObjectGallerySchema:$filterisQueryParams['$filter']inpackages/types/src/data.ts—Record<string, any> | FilterArray. So the declaration named a destination it did not type: an author told to forward the value verbatim got a type error on the key the sentence had just told them to forward, and the way through wasas, which un-checks the destination's real type at that call site too. AGENTS.md #0.1 points the other way — repair the declaration, do not widen the consumer.The member is now an indexed access on
QueryParams, not a copy of its arms, so the declaration cannot drift away from the slot the docblock names.What does NOT hold — my own census, counting rule beside the number
The card calls this "the one view schema of six that is not
any[]". Re-derived on this branch, that framing does not survive.Counting rule: every optional
filterproperty signature inpackages/types/src/objectql.ts, charged to its owning interface by the TypeScript parser (nearest enclosinginterfacedeclaration in the AST) — never by proximity to the nearest precedingexport interfaceline. Line numbers are deliberately absent: two landings moved this file by +241 lines the day the card was taken.ObjectGridSchemaany[]NamedListViewany[]ObjectMapSchemaany[]ObjectGanttSchemaany[]ObjectCalendarSchemaany[]ObjectKanbanSchemaany[]ObjectChartSchemaany[] | Record<string, any>ObjectGallerySchemaunknown— this cardObjectDataTableSchemaanyNine declarations, four spellings. Two independent instruments agree: a comment-blanking brace walk and a TypeScript AST walk, both run on this branch, and both refuse the proximity answer on a fixture where the two rules differ. So one of the "six siblings" is
NamedListView, which is not a view schema at all, and the population is nine rather than seven.That kills a justification, not the finding. It specifically kills the card's first repair option as argued — "
any[](match the six siblings, one vocabulary)" — because there is no one vocabulary to match.The disposition, and the ground it was chosen on
Chosen:
filter?: QueryParams['$filter'], on the destination-typing ground — the type the docblock itself names, reached by indexed access so the two cannot drift. ⛔ Not on "the siblings all sayany[]", which is false.Two grounds were rejected, and both for measured reasons:
any[](array-only).QueryParams['$filter']accepts the ObjectQL field-keyed record too, anddata.ts's own docblock names both forms as normal. Declaring only the array arm would refuse the record form that the destination accepts — over-narrowing against the sentence being honoured.z.unknown(). Measured, not assumed: with the TS face narrowed and the mirror reverted,zod-mirror-paritystays green at 32/32 andtsc -p tsconfig.test.jsonexits 0, because that file'sUnconstrainedpredicate excludes anunknownmirror slot from its wider-than-declared comparison by definition. The split would have been real and unreported. Both faces move together for that reason.The census this PR removes from prose is re-derived instead by
packages/types/src/__tests__/object-gallery-filter-9309.test.ts, which walks the AST on every run (AGENTS.md #9 — point at the instrument, never write down its answer).Accept-set change, stated plainly
NARROWS, both faces.
unknownis the widest type there is, so every value the new declaration refuses used to compile:filter: 'stage=won'andfilter: 42are type errors now, and the mirror refuses them at parse time. Both object arms are unchanged and no runtime behaviour moves — the value still travels to$filterbyte-for-byte.The consumer count, measured
The card asserts nothing in this repository could read the key without asserting it first. Measured on this branch:
ObjectGallerySchemais imported by exactly one non-test source outside@object-ui/types:packages/plugin-list/src/ObjectGallery.tsx.ObjectQLComponentSchema, the union arm through which the type could otherwise be reached, is imported bypackages/cliand by tests only.{ type: 'object-gallery', ... }nodes —plugin-list/src/ListView.tsx,plugin-view/src/ObjectView.tsx,plugin-detail/src/RelatedList.tsx. None of the three literals is annotated with this interface.domain:ui#2execution seat. The sentence that stood here also said 「None of them setsfilteron the gallery node」, and that half is FALSE. It was falsified by the at-tier contract review on this PR and then re-derived by this seat onorigin/main:plugin-list/src/ListView.tsxbuildsconst baseProps = {carryingfilter: schema.filter,, and spreads...basePropsinto thetype: 'object-gallery'literal — so that node DOES carryfilter.ObjectGallerySchemaat all (0 occurrences; control, same command,ListViewSchema22), so the literal is never checked against this member — andListViewSchema.filterisz.array(z.any()), which is assignable to the new type either way. ⇒ the claim was wrong and the conclusion it supported is right for a different reason, which is exactly why it is corrected here rather than left to be discovered as a contradiction later.@object-ui/plugin-listtype-checks clean against the rebuilt declaration (exit 0), and@object-ui/clilikewise.Evidence
Reverse validation, both legs mutated on disk and restored byte-identically (
git hash-objectcompared before and after; trap-restored):unknownturns four independent things red: the census test (2 assertions), theEqualpin and itsunknowncontrol (TS2344 twice), both@ts-expect-errordirectives (TS2578 twice), andzod-mirror-parity.test.tsitself (TS2322 at the gallery pair) — the ledger sees the mismatch once the mirror is narrowed, which it could not before.z.unknown()turns the runtime refusal red onfilter: 'stage=won'while the parity suite stays green — the blind-spot measurement quoted above.plugin-listmakes that package's type-check red withTS2322 ... not assignable to type 'Record<string, any> | FilterArray | undefined', which is what proves the green above was read off the rebuilt.d.tsand not a cache. Probe removed; file restored byte-identically.Runs (all foreground, heavy ones serialised through the shared verify lock):
pnpm exec vitest run packages/types/ packages/plugin-list/pnpm --filter @object-ui/types run type-checkpnpm --filter @object-ui/plugin-list run type-checkpnpm --filter @object-ui/cli run type-checkpnpm --filter @object-ui/types builddist/objectql.d.tsnode scripts/check-changeset-presence.mjspnpm run check:control-bytesnode scripts/check-governed-queue-guard.mjs --testBaseline before any edit, same command, same tree:
packages/types/190 files / 4372 tests passed.Acceptance notes
Residuals named, ⛔ none of them done here. This card's scope is
ObjectGallerySchema.filterand nothing else.ObjectDataTableSchema.filterisany— the widest of the nine spellings, and the one that defeats the checker outright rather than merely under-describing. Worth its own card.ObjectChartSchema.filterisany[] | Record<string, any>— a hand-spelled near-copy of the same destination, and its own docblock says narrowing to the spec's array-onlyFilterArrayis now a deprecation rather than a defect (objectui#8944 removed the blocker). Worth its own card.NamedListView.filteris counted as a sibling view schema in at least three places — the card,ObjectChartSchema's docblock (repaired here, see below) andpackages/plugin-dashboard/src/ObjectPivotTable.tsx. It is the named-view interface, not a view schema. Category error.ObjectPivotTable.tsxnames an interface that declares nofilterat all. Its comment listsObjectViewSchemaamong six array-only owners; measured,ObjectViewSchemadeclares none, and the sixth owner isNamedListView. So that comment is wrong in both directions at once. Untouched — outside this PR's declared file surface.packages/plugin-list/src/ObjectGallery.tsxstill carriesschema.filter as QueryParams['$filter']plus a comment describing the key as "declaredunknown— the one view schema in@object-ui/typeswhosefilteris notany[]". After this PR the assertion is a redundant identity cast and the comment is false.plugin-listis outside the file surface this round declared, and the declared handling for a breach is to stop and report it rather than widen the PR. It wants a follow-up.packages/types/src/zod/objectql.zod.ts'sObjectChartSchemacomment still says narrowing is "blocked on the drill-down spread", which its TS twin says objectui#8944 already repaired. Pre-existing, untouched..changeset/objectchart-schema-anchor-7946.mdcarries the same "six siblingobject-*widgets ... are already array-only" sentence. It is a release note for work already done; not edited.One in-file repair beyond the gallery key, declared rather than smuggled.
ObjectChartSchema's docblock called that key "the onlyobject-*filterwith a record arm". This PR's own change makes that false — the gallery now has a record arm — so the sentence is repaired in the same commit, in the same file, and it now points at the census test instead of carrying a count. Nothing aboutObjectChartSchema's type moves.Attribution
Generated by Claude Code, session
session_01L5xpA5q533BgTTNADibEFt. Landing is the seat's: this PR stays draft, is not enqueued, and carries no auto-merge.Generated by Claude Code
Generated by Claude Code