Repository navigation
feat(types): a DataSource record id is a string on delete and the bulk pair (objectui#9511) - #9712
Conversation
`findOne`, `delete`, `bulkUpdate` and `bulkDelete` now declare the same `string` record id that `update` already declares, and the interface docblock states the one rule so the asymmetry need not be rediscovered. `UseViewDataResult.fetchOne` is the one-layer-in declaration the compiler forced: it hands its argument straight to `DataSource.findOne`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L
…ree closed doors The call-site pass measured `findOne`'s nine in-tree callers down to two authorable metadata keys whose zod mirrors accept a number today, so closing that door is either an accept-set change or a per-reader conversion — neither of which this card's ruling names. The door stays open, the reason lives in the `DataSource` docblock, and the pin covers the three doors that closed with no call site to repair. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L
Minor on `@object-ui/types` and `@object-ui/react`, BREAKING banner, and an ADR-0087 disposition line recording that nothing authored moves: the change is on the TypeScript call face only, so no conversion layer or metadata migration step applies. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L
✅ 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
|
Contract review — FAIL, and the failure is a published cardinal that was born falseServed-tier: Reviewed in isolation by a subagent fed only card objectui#9511, its ruling, and this PR — ⛔ none of the adopting seat's conclusions. Tier verified by the adopting seat from the reviewer's own transcript: 95 per-request model stamps, every one The four-doors stop: UPHELD⭐ The reviewer was asked the blunt question — is stopping at four of five doors a legitimate measured stop, or letter A under another name — and answered: legitimate, not letter A. Letter A leaves The three-door narrowing, the pin, the semver level, the BREAKING banner and the ADR-0087 disposition line are all correct and can stand unchanged. ⛔ The FAIL — F1, a census that is false as written and ships in three placesThe PR's docblock, changeset and body all say Re-measured by the adopting seat on
⇒ only one of the six plugin-form readers touches the authorable Why that is a FAIL and not a note. The sentence ships in the The other flags — recorded, none of them the FAIL
|
…ship The published sentence said `findOne`'s remaining readers resolve to two authorable metadata keys. Measured: only `ObjectForm` and `DetailView` do. `DrawerForm`, `ModalForm`, `SplitForm`, `TabbedForm` and `WizardForm` each read a `recordId` on their own exported schema face — no zod mirror (0 against a lit control of 5 for `ObjectFormSchema`) and no registered node type (0 against a lit control of 34 for `object-form`), so TypeScript-only. They still cannot narrow first, and that is measured too: `ObjectForm` builds all five schemas from its own authorable `ObjectFormSchema`, so narrowing the five alone moves the refusal to five hand-off sites (TS2322 at each). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L
✅ 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
|
Contract re-review — PASS on the contract; one CHANGELOG-bound clause goes backServed-tier: Tier verified by the adopting seat from the reviewer's own transcript: 92 per-request model stamps, every one F1 is fixed in all three carriersVerified by the reviewer with a whitespace-tolerant scan (the old census absent from docblock and changeset, exit 1; lit control — the NEW sentence — found in both, exit 0), and present in the PR body only inside an explicit retraction. The structural claim that replaced it was checked independently: This round's
|
The summary line claimed the narrowed consumer declaration fed the three doors this entry closes. It feeds `findOne`, the door the entry leaves open — which is what the bullet two lines lower already said. A changeset body publishes verbatim into the CHANGELOG, so the two halves have to agree there. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L
✅ 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
|
Contract review — record of the head the gate was cleared onHead-sha:
⛔ What this comment is NOT⛔ It is not a new contract verdict, and this seat ⛔ cannot issue one: it serves This comment records why that verdict reaches The delta between the reviewed head and the cleared head
⇒ the contract surface the at-tier review judged is byte-identical across the delta. The commit is exactly, and only, the clause that review sent back:
The corrected clause is true, re-measured here at the cleared head⛔ Not taken from the commit message. Read on
Lit control on the same instrument and corpus: ⇒ the clause the gate was held for is repaired, and the at-tier PASS carries to ⛔ Still open, and ⛔ not resolved by this comment
Read at 2026-09-17T19:33Z. Generated by Claude Code |
Contract reviewServed-tier: 92/92
Why this record exists at allThe at-tier verdict on this card was taken at head ① Derived judgments⛔ This is an adoption record, ⛔ not a second contract verdict, and this seat ⛔ could not issue one: it serves below What this record judges is the delta, which is a question about the diff and not about the contract.
⇒ the contract surface the at-tier round judged is byte-identical across the delta. The commit is exactly, and only, the one clause that round sent back:
The corrected clause is true, re-measured here at this head. ⛔ Not taken from the commit message: ② Semver levelUnchanged by the delta: ③ Boundary flags
Implemented-by: VERDICT: PASS Read at 2026-09-17T19:34Z. Generated by Claude Code |
|
Filed, as promised on this thread: the Every address in it was re-derived on ⭐ One reading is new and was not in the review that raised it: there is a second cast site, ⛔ Pre-existing, and ⛔ ⛔ not this PR's to fix. Recording that it is filed rather than merely noted — that distinction is the whole point of the fallback rule, and there is no note-carrier here: no open PR touches Generated by Claude Code |
|
Enqueued at 2026-09-17T19:46Z by the The three preconditions, each read rather than assumed:
Generated by Claude Code |
Part of #9511 — this branch lands the part of the ruling that measured clean and
carries the rest back to the card. ⛔ It does not complete the card: one of
the five doors is still open by measurement, so there is no closing keyword in
this body on purpose.
Clause-②: yes
Executing director batch #136 item 5, letter B (maintainer 「同意」
2026-09-15T15:20Z): a record id at the
DataSourceboundary is a string.objectui#9333 narrowed
update; this branch narrows three more doors.What landed
DataSource.delete—idDataSource.bulkUpdate—idsDataSource.bulkDelete—idsUseViewDataResult.fetchOne—id(@object-ui/react)OR,ReadonlyArray OF). GitHub's body sanitizer eats tag-shaped fragments even inside backticks,and it has previously collapsed both columns of exactly this kind of
before/after table into the same string.
Plus the thing the ruling's acceptance asks for: the
DataSourcedocblock nowstates the rule once, for the whole interface, including why the last door is
still open — so the next reader does not rediscover the asymmetry.
The three one-layer-in declarations the ruling names (
TransactionOperation.id,UserPreferenceRecord.id,resolveRecordId's return) were already narrowedby the merged objectui#9501; verified by symbol on this tree.
fetchOneis theone the compiler added to that list.
What did not land, and why
version. The earlier text said
findOne's remaining readers resolve to twoauthorable metadata keys, with six of them in
@object-ui/plugin-form. That wasfalse, and it shipped in the docblock and the changeset as well as here. What
follows is re-measured on this branch; the docblock and the changeset now carry
the same corrected reading.
DataSource.findOnekeepsstring OR number. The compiler enumerated ninein-tree call sites for it; one was
fetchOne(narrowed here), and the othereight split two ways.
Three read AUTHORABLE metadata keys.
⚠️ A sibling declaration of
ObjectForm.tsxreadsObjectFormSchema.recordId(packages/types/src/objectql.ts+ its zod mirror);DetailView.tsxreadsDetailViewSchema.resourceIdat two sites(
packages/types/src/views.ts+zod/views.zod.ts).the same key,
DetailSchema.resourceId, lives incrud.ts+zod/crud.zod.tsand is not read by either red site — four declaration sites of
resourceIdacross four files, owned by two symbols. Measured against the BUILT mirrors,
with a lit control in the same pass:
Five read a
recordIdon their OWN exported schema face —DrawerForm,ModalForm,SplitForm,TabbedForm,WizardForm, each declaring its ownFormSchemainterface in its own file and exporting it frompackages/plugin-form/src/index.tsx. Those faces are TypeScript-only, i.e. thesame class as
UseViewDataResult.fetchOne, which this PR narrows:ObjectFormSchema= 5packages/types/src/zod/'object-form'= 34packages/*/src,apps/*/srcBoth instruments fire on the control, so those zeros are readings rather than
dead queries.
They still cannot narrow ahead of the decision, and that is measured too.
ObjectFormBUILDS all five of those schemas from its own authorableObjectFormSchema. Narrowing the five alone was probed on this branch: the fivedeclarations were rewritten to
string(landing proven on disk — five filesinjected, zero left wide), the packages rebuilt, and
ObjectForm.tsxansweredTS2322at five hand-off sites, one per delegated form, each readingTypes of property 'recordId' are incompatible. The probe was restored withgit checkout HEAD --and an emptygit statusproves it.⇒ closing
findOnemeans either narrowing a published authoring face (authorJSON that validates today stops validating — an accept-set change the ruling does
not name) or converting at a reader (which the ruling's own "the conversion
lives in one typed place" argues against). Both are decisions, not
implementations, so they are carried to the card rather than picked here — and
the five TypeScript-only faces travel with that decision instead of ahead of it.
Second, independent block on the authorable half:
packages/types/src/objectql.tsand
packages/types/src/zod/objectql.zod.tsare the declared file surface ofin-flight card objectui#9606. The dispatch order for this card says to stop and
report rather than edit them, so this card yields on that half.
Measurements
Every exit code was captured to disk before any pipe.
turbo run build type-check --filter='!@object-ui/site' --concurrency=2 --continueTasks: 88 successful, 88 totalexamples/byo-backend-console→pnpm run type-checktsc --noEmit, no diagnostics@object-ui/core→pnpm run type-checktsc --noEmit && tsc -p tsconfig.test.json, no diagnosticsvitest run packages/types/ packages/react/Test Files 290 passed (290)·Tests 5778 passed (5778)vitest run packages/data-objectstack/+ the two bulk-path filesTest Files 68 passed (68)·Tests 918 passed (918)pnpm --filter @object-ui/types --filter @object-ui/react run lint362 problems (0 errors, 362 warnings)— all pre-existingnode scripts/check-changeset-presence.mjsnode scripts/check-changeset-no-major.mjsNo changeset declares a major bump.node scripts/check-changeset-fixed.mjsAll workspace packages are in the changeset fixed group.node scripts/check-new-cross-file-line-citations.mjs0 new citation(s)node scripts/check-control-bytes.mjsThe opposite-answer probe, per door
A temporary probe under
packages/types/src/__tests__/(removed before the firstcommit) called each door with a numeric id and was compiled by
tsc -p packages/types/tsconfig.test.json:⭐ Lit control in the same file and the same run:
update, already narrow onmain, produced exactly oneTS2345. So the instrument reports numeric-idrefusals; the four zeros were absence, not a dead query.
findOneTS2345,deleteTS2345,bulkUpdateTS2322,bulkDeleteTS2322, while the four string calls besidethem stayed legal.
Ablation of the new pin
packages/types/src/__tests__/data-source-id-surface-9511.test.tswas ablated bywidening
delete'sidback, from a committed tree:blob
805d1269→619d0d9avitest: exit 1 —Tests 1 failed | 8 passed, messageDataSource.delete declares a record id wider than the protocol.tsc -p tsconfig.test.json: exit 1 —TS2344on theEqualrow andTS2578(unused directive) on the@ts-expect-errorcall-site control, i.e.both designed failure modes
git checkout HEAD -- packages/types/src/data.ts; restorationproven by blob equality (
805d1269both sides) and an emptygit diff HEADProbe: can the five TypeScript-only form faces narrow on their own?
No, and the answer is a build, not an argument. The five
recordIddeclarationswere rewritten to
string; the mutation was proven on disk (five files carryingthe injected spelling, zero left wide) before anything was read.
plugin-formthen failed to build with
TS2322at fiveObjectForm.tsxhand-off sites —ObjectFormconstructs each delegated schema from its own authorableObjectFormSchema. (plugin-designer's failures in the same run are cascade:TS7016, noplugin-formdist.) Restored withgit checkout HEAD --, provenby an empty
git status.Cost attribution, per door
With
findOnealone widened back and the other three doors narrowed, the wholerepo builds:
Tasks: 43 successful, 43 total, exit 0. ⇒delete,bulkUpdateand
bulkDeletehave zero call sites in this monorepo that had to change;the entire call-site cost of this card belongs to
findOne.Acceptance notes
data.tsat three line addresses; all five members werelocated by symbol instead, and no line address was written into any
published text here.
data.tscarries an orphaned docblock — the"Universal data source interface" comment sits about seventy lines above
export interface DataSource, immediately before theGlobalSearchHitcomment, so
DataSourceitself had no attached doc at all. That is why therule went into a new block attached to the interface rather than into that
one. Left in place deliberately: moving it is a different defect class from
this card's, and no in-flight PR or reader is blocked by it. Successor: none
identified.
Review posture
⛔ Draft, ⛔ not enqueued, ⛔ no auto-merge — the PM runs an at-tier contract
review first.
needs:contract-reviewis hung on this PR as well as on the card.Generated by Claude Code in session
session_01UanLVj6xvbS6puBCewLr8L(sessionURL repeated here as prose because a later edit downgrades the footer below).
Generated by Claude Code
Generated by Claude Code