Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

feat(types): a DataSource record id is a string on delete and the bulk pair (objectui#9511) - #9712

Merged
os-sales merged 5 commits into
mainfrom
claude/issue-9511-datasource-id-string
Sep 17, 2026
Merged

os-sales merged 5 commits into
mainfrom
claude/issue-9511-datasource-id-string

Conversation

@os-sales

@os-sales os-sales commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

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 DataSource boundary is a string.
objectui#9333 narrowed update; this branch narrows three more doors.

What landed

declaration before after
DataSource.delete — id string OR number string
DataSource.bulkUpdate — ids ReadonlyArray OF (string OR number) ReadonlyArray OF string
DataSource.bulkDelete — ids ReadonlyArray OF (string OR number) ReadonlyArray OF string
UseViewDataResult.fetchOne — id (@object-ui/react) string OR number string

⚠️ The type spellings in that table are written as WORDS (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 DataSource docblock now
states 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 narrowed
by the merged objectui#9501; verified by symbol on this tree. fetchOne is the
one the compiler added to that list.

What did not land, and why

⚠️ This section was re-derived after the at-tier review failed its first
version.
The earlier text said findOne's remaining readers resolve to two
authorable metadata keys, with six of them in @object-ui/plugin-form. That was
false, 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.findOne keeps string OR number. The compiler enumerated nine
in-tree call sites for it; one was fetchOne (narrowed here), and the other
eight split two ways.

Three read AUTHORABLE metadata keys. ObjectForm.tsx reads
ObjectFormSchema.recordId (packages/types/src/objectql.ts + its zod mirror);
DetailView.tsx reads DetailViewSchema.resourceId at two sites
(packages/types/src/views.ts + zod/views.zod.ts). ⚠️ A sibling declaration of
the same key, DetailSchema.resourceId, lives in crud.ts + zod/crud.zod.ts
and is not read by either red site — four declaration sites of resourceId
across four files, owned by two symbols. Measured against the BUILT mirrors,
with a lit control in the same pass:

ObjectFormSchema.safeParse({type:'object-form', objectName:'accounts', mode:'edit', recordId: 42})
  -> success = TRUE, and the parsed document KEEPS 42 as a number
ObjectFormSchema.safeParse({… recordId: '42'})            -> TRUE
LIT CONTROL  ObjectFormSchema.safeParse({… recordId: {}}) -> FALSE (invalid_union)
DetailViewSchema.safeParse({type:'detail-view', objectName:'accounts', resourceId: 42})
  -> TRUE
LIT CONTROL  DetailViewSchema.safeParse({… resourceId: {}}) -> FALSE (invalid_union)

Five read a recordId on their OWN exported schema face — DrawerForm,
ModalForm, SplitForm, TabbedForm, WizardForm, each declaring its own
FormSchema interface in its own file and exporting it from
packages/plugin-form/src/index.tsx. Those faces are TypeScript-only, i.e. the
same class as UseViewDataResult.fetchOne, which this PR narrows:

instrument the five lit control corpus
occurrences in the zod mirror tree 0 each ObjectFormSchema = 5 packages/types/src/zod/
node-type string literal outside tests 0 each 'object-form' = 34 packages/*/src, apps/*/src

Both 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.
ObjectForm BUILDS all five of those schemas from its own authorable
ObjectFormSchema. Narrowing the five alone was probed on this branch: the five
declarations were rewritten to string (landing proven on disk — five files
injected, zero left wide), the packages rebuilt, and ObjectForm.tsx answered
TS2322 at five hand-off sites, one per delegated form, each reading
Types of property 'recordId' are incompatible. The probe was restored with
git checkout HEAD -- and an empty git status proves it.

⇒ closing findOne means either narrowing a published authoring face (author
JSON 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.ts
and packages/types/src/zod/objectql.zod.ts are the declared file surface of
in-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.

gate exit printed verdict
turbo run build type-check --filter='!@object-ui/site' --concurrency=2 --continue 0 Tasks: 88 successful, 88 total
examples/byo-backend-console → pnpm run type-check 0 tsc --noEmit, no diagnostics
@object-ui/core → pnpm run type-check 0 tsc --noEmit && tsc -p tsconfig.test.json, no diagnostics
vitest run packages/types/ packages/react/ 0 Test Files 290 passed (290) · Tests 5778 passed (5778)
vitest run packages/data-objectstack/ + the two bulk-path files 0 Test Files 68 passed (68) · Tests 918 passed (918)
pnpm --filter @object-ui/types --filter @object-ui/react run lint 0 362 problems (0 errors, 362 warnings) — all pre-existing
node scripts/check-changeset-presence.mjs 0 3 source files of 2 released packages, 1 changeset declared
node scripts/check-changeset-no-major.mjs 0 No changeset declares a major bump.
node scripts/check-changeset-fixed.mjs 0 All workspace packages are in the changeset fixed group.
node scripts/check-new-cross-file-line-citations.mjs 0 0 new citation(s)
node scripts/check-control-bytes.mjs 0 scanned 7813 tracked text files

The opposite-answer probe, per door

A temporary probe under packages/types/src/__tests__/ (removed before the first
commit) called each door with a numeric id and was compiled by
tsc -p packages/types/tsconfig.test.json:

  • before the narrowing: exit 0 — all four numeric calls accepted.
    ⭐ Lit control in the same file and the same run: update, already narrow on
    main, produced exactly one TS2345. So the instrument reports numeric-id
    refusals; the four zeros were absence, not a dead query.
  • after the narrowing: exit 2 — findOne TS2345, delete TS2345,
    bulkUpdate TS2322, bulkDelete TS2322, while the four string calls beside
    them stayed legal.

Ablation of the new pin

packages/types/src/__tests__/data-source-id-surface-9511.test.ts was ablated by
widening delete's id back, from a committed tree:

  • mutation proven on disk: injected spelling present (1), byte size 53257 → 53266,
    blob 805d1269 → 619d0d9a
  • ablated vitest: exit 1 — Tests 1 failed | 8 passed, message
    DataSource.delete declares a record id wider than the protocol.
  • ablated tsc -p tsconfig.test.json: exit 1 — TS2344 on the Equal row and
    TS2578 (unused directive) on the @ts-expect-error call-site control, i.e.
    both designed failure modes
  • restored with git checkout HEAD -- packages/types/src/data.ts; restoration
    proven by blob equality (805d1269 both sides) and an empty git diff HEAD

Probe: can the five TypeScript-only form faces narrow on their own?

No, and the answer is a build, not an argument. The five recordId declarations
were rewritten to string; the mutation was proven on disk (five files carrying
the injected spelling, zero left wide) before anything was read. plugin-form
then failed to build with TS2322 at five ObjectForm.tsx hand-off sites —
ObjectForm constructs each delegated schema from its own authorable
ObjectFormSchema. (plugin-designer's failures in the same run are cascade:
TS7016, no plugin-form dist.) Restored with git checkout HEAD --, proven
by an empty git status.

Cost attribution, per door

With findOne alone widened back and the other three doors narrowed, the whole
repo builds: Tasks: 43 successful, 43 total, exit 0. ⇒ delete, bulkUpdate
and bulkDelete have zero call sites in this monorepo that had to change;
the entire call-site cost of this card belongs to findOne.

Acceptance notes

  • The ruling cites data.ts at three line addresses; all five members were
    located by symbol instead, and no line address was written into any
    published text here.
  • Noted, not filed: data.ts carries an orphaned docblock — the
    "Universal data source interface" comment sits about seventy lines above
    export interface DataSource, immediately before the GlobalSearchHit
    comment, so DataSource itself had no attached doc at all. That is why the
    rule 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-review is hung on this PR as well as on the card.

Generated by Claude Code in session session_01UanLVj6xvbS6puBCewLr8L (session
URL repeated here as prose because a later edit downgrades the footer below).


Generated by Claude Code


Generated by Claude Code

`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
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3049.0 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-CqfP7f5i.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 545.85KB 130.67KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.98KB 59.97KB
fields (index.js) 249.27KB 62.92KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.83KB 10.95KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.92KB 14.22KB
plugin-charts (index.js) 71.49KB 19.99KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 253.29KB 65.88KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.64KB 57.91KB
plugin-kanban (index.js) 46.41KB 14.49KB
plugin-list (index.js) 112.73KB 27.69KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.04KB 21.01KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 104.82KB 34.67KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.04KB 5.36KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator Author

Contract review — FAIL, and the failure is a published cardinal that was born false

Served-tier: claude-fable-5-1
Head-sha: c7dee5753444a67ef079f5006902192f8d9c7796

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 claude-fable-5-1, against CONTRACT_REVIEW_TIER (scripts/pm/dispatch-gates.mjs:10730). ⛔ get_session was not used. The reviewer again, correctly, flagged its own tier as runtime-declared rather than self-measured.

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 findOne, delete, bulkUpdate and bulkDelete wide; this head closes three of those four, carries Part of #9511 with no closing keyword, and the ruling's own text treats B as executed in steps. The blocking claim survives in substance: closing findOne does require touching authorable faces or converting at readers, and the ruling authorises neither by name.

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 places

The PR's docblock, changeset and body all say findOne's remaining call sites resolve to two authorable metadata keys, with "six readers in @object-ui/plugin-form" reading ObjectFormSchema.recordId.

Re-measured by the adopting seat on origin/main, independently of the reviewer:

form declares its OWN *FormSchema? local recordId decl zod mirror files
DrawerForm yes 5 0
ModalForm yes 5 0
SplitForm yes 3 0
TabbedForm yes 3 0
WizardForm yes 3 0
ObjectForm no — it uses the imported one 2 —
control, same instrument reading
lit — ObjectFormSchema in packages/types/src/zod/ 3 files ⇒ mirrors are visible to this probe
lit — 'object-form' registry literal outside tests 70
target — 'drawer-form' / 'modal-form' / 'split-form' / 'tabbed-form' / 'wizard-form' outside tests 0 each
absent — a nonsense schema name 0

⇒ only one of the six plugin-form readers touches the authorable ObjectFormSchema.recordId. The other five read locally-declared, TS-only interfaces with no zod mirror and no registry node type — the same class as fetchOne, which this PR already narrowed. They carry no accept-set cost and no objectui#9606 file overlap.

Why that is a FAIL and not a note. The sentence ships in the @object-ui/types published .d.ts docblock, in the changeset (which publishes verbatim into the CHANGELOG), and in the PR body — and it instructs the next implementer not to narrow five faces that carry none of the stated cost. It is a wrong number that also misdirects the next round's work.

⚠️ This is the shift's fourth instance of one shape: prose asserting a measurement, published as durable fact. The others are objectui#9704 (a count claiming "re-measured here"), objectui#9706 (present-tense claims about merged PRs), and objectui#9711 (a rationale naming a guarantee the instrument does not give). This one is the sharpest, because it was born false rather than rotting.

The other flags — recorded, none of them the FAIL

  • F3 — the PR rejects reader-side conversion as contradicting the ruling's "the conversion lives in one typed place". The reviewer reads that clause as describing the numeric-PK host's adapter, not reader normalisation, and notes the tree already does String(schema.resourceId) (4 sites, ⛔ not the 7 the dev's report claimed). The argument over-reaches; the fork is still real, because route B leaves an authoring face promising number to a boundary that refuses it.
  • F4 — further wide one-layer-in mirrors exist (useBulkExecutor, createOfflineDataSource, DataSourceMutationEvent.id). None is compelled by the compiler and none is named by the ruling. For the follow-up card, ⛔ not this PR's.
  • F5 — nothing moves outside the ruling except fetchOne, which is defensible under its one-layer-in clause.

⚠️ F2 — an error in the PM's own card comment, corrected

The reviewer caught it and it is mine, not the dev's. My comment on objectui#9511 labelled all four resourceId sites DetailViewSchema. Measured:

crud.ts  / crud.zod.ts   ->  DetailSchema.resourceId
views.ts / views.zod.ts  ->  DetailViewSchema.resourceId

The count — six declaration sites across four files — is right; two of the six labels were wrong. Corrected on the card. ⇒ the dev must not copy my labels either.

Disposition

⛔ The needs:contract-review carriers stay hung on both card and PR. A FAIL does not clear a gate.

The PR goes back for F1 and the F2 label only. ⛔ The three-door narrowing is not reopened, ⛔ nothing is widened, and the four-doors stop stands as upheld.

Implemented-by: claude/issue-9511-datasource-id-string
Reviewed-by: session_01UanLVj6xvbS6puBCewLr8L

VERDICT: FAIL — on F1 only.

Read at 2026-09-17T18:44Z.


Generated by Claude Code

…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
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3049.0 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-DSYnahgS.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 545.93KB 130.69KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.98KB 59.97KB
fields (index.js) 249.27KB 62.92KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.83KB 10.95KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.92KB 14.22KB
plugin-charts (index.js) 71.49KB 19.99KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 253.29KB 65.88KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.64KB 57.91KB
plugin-kanban (index.js) 46.41KB 14.49KB
plugin-list (index.js) 112.73KB 27.69KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.04KB 21.01KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 104.82KB 34.67KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.04KB 5.36KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator Author

Contract re-review — PASS on the contract; one CHANGELOG-bound clause goes back

Served-tier: claude-fable-5-1
Head-sha: 30badd8c0af31075ed7ae3d771dfa85097b267ba

Tier verified by the adopting seat from the reviewer's own transcript: 92 per-request model stamps, every one claude-fable-5-1, against CONTRACT_REVIEW_TIER. ⛔ get_session was not used. The reviewer again stated its tier as told rather than as measured, which is the honest answer and exactly why this check sits here.

F1 is fixed in all three carriers

Verified 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: ObjectForm hands its spread to all five delegated forms at :325 :397 :433 :468 :504, so narrowing the five alone relocates the refusal to exactly those hand-off sites. A sixth site is cast as any, consistent with the dev's five TS2322s and not six.

This round's .ts half is comment-only, verified: every changed line in data.ts begins with *, no declaration moved.

⚠️ My own contested count — adjudicated, and I was wrong TWICE

I wrote "six published declarations across four files". The reviewer's finding:

  • the six declarations are right — objectql.ts:1344, objectql.zod.ts:328, views.ts:701, views.zod.ts:150, crud.ts:283, crud.zod.ts:156
  • ⛔ but they sit in six files, not four
  • ⛔ and I labelled the crud pair DetailViewSchema when it is DetailSchema (already corrected separately)

The dev's "four sites, two symbols" answers a different question — which declarations the red readers' types resolve to — and is right for that one. ⇒ two counts, two questions, and mine carried two errors while answering its own.

⭐ New from the reviewer, and it is decision-input the dev's framing missed: DetailSchema does reach the red site at runtime. plugin-detail/src/index.tsx:414 registers 'detail' → DetailView, so an authored {type:'detail', resourceId: 42} validated by crud.zod.ts lands at DetailView.tsx:644. The dev's "not read by either red site" is true by TypeScript symbol and incomplete by data flow. That matters for option A on the open decision.

⛔ What goes back — one clause, and the reason it is not a nit here

.changeset/9511-datasource-record-id-string.md:9-10:

"objectui#9333 narrowed DataSource.update; this entry closes three more doors and the one consumer declaration that fed them."

fetchOne feeds findOne — the door this PR deliberately leaves open — not the three it closes. The bullet two lines below states it correctly, so the body contradicts itself, and the wrong half is the summary line.

⚠️ The reviewer called this non-blocking and it would be, in a code comment. It is not one: a changeset body publishes verbatim into the CHANGELOG. This board has repaired four instances of that exact class today (objectui#9704, objectui#9706, objectui#9711, objectui#9713), and this seat sent this very PR back once already for a false published census. Letting a known-false release-note line through because it is short would undercut every one of those.

⇒ ⛔ The needs:contract-review carriers stay hung until the clause is fixed. The contract verdict is PASS and ⛔ is not reopened — this is a prose fix, not a new review.

Also recorded, ⛔ not this PR's

  • The zero-cost claim is true-by-cast. plugin-grid/hooks/useBulkExecutor.ts:284-288 is the only in-tree bulk-door caller, its own face still declares ids: ReadonlyArray<string | number> (:70-80), and ObjectGrid.tsx:5328 feeds it dataSource as any. Under strict: true a real DataSource would not be assignable without that cast. Pre-existing; the PR did not add it. This seat will card it.
  • DetailViewSchema.recordNavigation.recordIds and onNavigate(recordId) (views.ts:911/915) are on the same authorable face and still wide — for whoever takes the decision.

Implemented-by: claude/issue-9511-datasource-id-string
Reviewed-by: session_01UanLVj6xvbS6puBCewLr8L

VERDICT: PASS on the contract; one clause to repair before the gate clears.

Read at 2026-09-17T19:20Z.


Generated by Claude Code

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
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3049.1 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-DX51GbAY.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 545.93KB 130.69KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.98KB 59.97KB
fields (index.js) 249.27KB 62.92KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.83KB 10.95KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.92KB 14.22KB
plugin-charts (index.js) 71.49KB 19.99KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 253.29KB 65.88KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.64KB 57.91KB
plugin-kanban (index.js) 46.41KB 14.49KB
plugin-list (index.js) 112.73KB 27.69KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.04KB 21.01KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 104.82KB 34.67KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.04KB 5.36KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator Author

Contract review — record of the head the gate was cleared on

Head-sha: 4cf1aff34a
Reviewed-by: session_01UanLVj6xvbS6puBCewLr8L
Served-tier of the verdict this record carries: claude-fable-5-1

⚠️ This comment exists because check-clause2-carriers.mjs --pair 9712 read a C6 half-state and it was right to. The at-tier verdict on this card names head 30badd8c0. The gate was then cleared on both carriers at 2026-09-17T19:23:42Z (PR) and 2026-09-17T19:23:43Z (card) — one second apart, the two-removal signature of a clear rather than a strip — but by then the head had moved to 4cf1aff34a, so the clearance named a head no review of record named. ⭐ A cleared gate with nothing behind it is indistinguishable from never reviewing, whatever actually happened. Recorded rather than quietly left standing.

⛔ What this comment is NOT

⛔ It is not a new contract verdict, and this seat ⛔ cannot issue one: it serves claude-opus-5, which is below CONTRACT_REVIEW_TIER (claude-fable-5-1, scripts/pm/dispatch-gates.mjs:10730). The verdict of record stays the at-tier PASS already on this thread, whose tier was verified by this seat from the reviewer's own transcript — 92 per-request model stamps, every one claude-fable-5-1, ⛔ get_session not used.

This comment records why that verdict reaches 4cf1aff34a, which is a question about the delta, not about the contract.

The delta between the reviewed head and the cleared head

30badd8c0a → 4cf1aff34a is one commit, docs(changeset): say which door fetchOne feeds:

reading value
files changed 1 — .changeset/9511-datasource-record-id-string.md
line delta +3 −2
declarations moved 0 — the file is a changeset body; no .ts is in the commit at all

⇒ 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:

⛔ before: 「… this entry closes three more doors and the one consumer declaration that fed them.」
✅ after: 「… this entry closes three more doors, and narrows one consumer declaration — UseViewDataResult.fetchOne — that feeds findOne, the one door this entry leaves open.」

The corrected clause is true, re-measured here at the cleared head

⛔ Not taken from the commit message. Read on refs/pull/9712/head = 4cf1aff34a:

packages/react/src/hooks/useViewData.ts:192-200 — fetchOne is async (id: string) and its single body call is resolvedDataSource.findOne(resource, id). It calls findOne — the door this entry deliberately leaves open — and calls none of delete / bulkUpdate / bulkDelete, the three it closes. The old summary line was false in exactly the direction the reviewer named; the new one is true.

Lit control on the same instrument and corpus: findOne reads non-zero in packages/react/src at this head (useViewData.ts 2, plus four other files). Absent control: fetchZzzNope reads 0.

⇒ the clause the gate was held for is repaired, and the at-tier PASS carries to 4cf1aff34a unchanged. The clearance at 19:23 stands, now with a record naming the head it cleared.

⛔ Still open, and ⛔ not resolved by this comment

  • The findOne half goes to the decision box on card objectui#9511 once this PR merges, with the counts as adjudicated against this seat: six declarations in six files (objectql.ts:1344, objectql.zod.ts:328, views.ts:701, views.zod.ts:150, crud.ts:283, crud.zod.ts:156), and the crud pair is DetailSchema, not DetailViewSchema. ⭐ The data-flow reading widens option A: plugin-detail/src/index.tsx:414 registers 'detail' → DetailView, so DetailSchema does reach the red site at runtime even though it reaches it by no TypeScript symbol.
  • The useBulkExecutor true-by-cast finding is this seat's to card, ⛔ not this PR's to fix.

Read at 2026-09-17T19:33Z.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Contract review

Served-tier: 92/92 CONTRACT_REVIEW_TIER
Head-sha: 4cf1aff34a

⚠️ Re-posted in the identifier-free spelling. The first attempt at this record (comment 5720086659) spelled Served-tier: as a model identifier. AGENTS.md — 「no model identifier lands in a PR title or body, a comment, a changeset, a doc or a code comment」 — refuses that beside an off-tier one, and check-clause2-carriers.mjs --pair 9712 read it as C7. The remedy it names for a round that WAS at tier is to post the record again, ⛔ never to widen the row. That earlier comment also left the authorship pair half written (C4) — Reviewed-by: with no Implemented-by:, which compares to nothing. Both are corrected here, and ⭐ the newest heading comment on this head governs.

Why this record exists at all

The at-tier verdict on this card was taken at head 30badd8c0. The gate was then cleared on both carriers at 2026-09-17T19:23:42Z (PR) and 2026-09-17T19:23:43Z (card) — one second apart, the two-removal signature of a clear rather than a strip — but the head had by then moved to 4cf1aff34a, so the clearance named a head no review of record named. ⭐ A cleared gate with nothing behind it is indistinguishable from never reviewing, whatever actually happened.

① Derived judgments

⛔ This is an adoption record, ⛔ not a second contract verdict, and this seat ⛔ could not issue one: it serves below CONTRACT_REVIEW_TIER. The verdict of record stays the at-tier one already on this thread, whose tier was verified by this seat from the reviewer's own transcript — 92 per-request served-model stamps, every one at tier, against the constant read from scripts/pm/dispatch-gates.mjs:10730. ⛔ get_session was not used, and ⛔ the dispatch model parameter is configuration, not a reading.

What this record judges is the delta, which is a question about the diff and not about the contract.

30badd8c0a → 4cf1aff34a is one commit, docs(changeset): say which door fetchOne feeds:

reading value
files changed 1 — .changeset/9511-datasource-record-id-string.md
line delta +3 −2
declarations moved 0 — no .ts is in the commit at all

⇒ 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:

⛔ before: 「… this entry closes three more doors and the one consumer declaration that fed them.」
✅ after: 「… this entry closes three more doors, and narrows one consumer declaration — UseViewDataResult.fetchOne — that feeds findOne, the one door this entry leaves open.」

The corrected clause is true, re-measured here at this head. ⛔ Not taken from the commit message: packages/react/src/hooks/useViewData.ts:192-200 declares fetchOne as async (id: string) and its single body call is resolvedDataSource.findOne(resource, id). It feeds findOne — the door this entry deliberately leaves open — and feeds none of delete / bulkUpdate / bulkDelete, the three it closes. Lit control, same instrument and corpus: findOne reads non-zero across packages/react/src at this head. Absent control: fetchZzzNope reads 0.

② Semver level

Unchanged by the delta: minor on @object-ui/types and @object-ui/react, as the at-tier round judged. The commit touches the changeset body only; frontmatter, level and package list are untouched — check-changeset-overwrite.mjs's legitimate case 2.

③ Boundary flags

  • ⛔ No accept set widens and no public surface enlarges in the delta — Clause-② is answered by the at-tier round, ⛔ not re-opened here.
  • ⚠️ The findOne half stays open by design and goes to the decision box on card objectui#9511 once this merges, with the counts as adjudicated against this seat: six declarations in six files (objectql.ts:1344, objectql.zod.ts:328, views.ts:701, views.zod.ts:150, crud.ts:283, crud.zod.ts:156), and the crud pair is DetailSchema, ⛔ not DetailViewSchema. ⭐ The data-flow reading widens option A: plugin-detail/src/index.tsx:414 registers 'detail' → DetailView, so DetailSchema reaches the red site at runtime even though it reaches it by no TypeScript symbol.
  • ⚠️ The bulk doors' zero-call-site claim is true-by-cast — plugin-grid/hooks/useBulkExecutor.ts:70-80 still declares ids: ReadonlyArray<string | number> and ObjectGrid.tsx:5328 feeds it dataSource as any. Pre-existing; ⛔ not this PR's to fix, and this seat's to card.

Implemented-by: claude/issue-9511-datasource-id-string
Reviewed-by: session_01UanLVj6xvbS6puBCewLr8L

VERDICT: PASS

Read at 2026-09-17T19:34Z.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Filed, as promised on this thread: the useBulkExecutor finding is now card objectui#9722, at 2026-09-17T19:45Z.

Every address in it was re-derived on origin/main by this seat with a lit control and an absent control, ⛔ not carried over from the re-review: the structural face at useBulkExecutor.ts:71-72 / :79-81, the inherited prop face at BulkActionDialog.tsx:53, the pass-through at :157, and the cast at ObjectGrid.tsx:5328.

⭐ One reading is new and was not in the review that raised it: there is a second cast site, ObjectGrid.tsx:4720. And the reason the cast is load-bearing rather than incidental is named there — both members use property syntax, so strictFunctionTypes checks their parameters contravariantly, and a narrowed door therefore ⛔ cannot stand in for the wider slot. Remove the cast and the narrowing does cost a call 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 useBulkExecutor.ts.


Generated by Claude Code

@os-sales
os-sales marked this pull request as ready for review September 17, 2026 19:46
@os-sales
os-sales added this pull request to the merge queue Sep 17, 2026

Copy link
Copy Markdown
Collaborator Author

Enqueued at 2026-09-17T19:46Z by the domain:spec @ objectui execution seat — turned ready, auto-merge on, into the merge queue.

The three preconditions, each read rather than assumed:

precondition reading
contract gate cleared on both carriers, with the review of record naming this head (comment 5720098169) and the provenance on card objectui#9511 (comment 5720103673). check-clause2-carriers.mjs --pair 9712 exits 0.
CI 36 check runs on head 4cf1aff34a, 0 pending, 0 non-green — job conclusions, ⛔ not the aggregate status.
mergeability mergeable_state: clean (it was behind an hour ago and is not any more).

⚠️ ⛔ Two things this merge does not do, stated here so the card's next reader does not have to reconstruct them:

  • ⛔ It does not settle the findOne half. That returns to card objectui#9511 as a decision, with the counts as adjudicated against this seat — six declarations in six files, and the crud pair is DetailSchema. ⭐ The data-flow reading widens option A: plugin-detail/src/index.tsx:414 registers 'detail' → DetailView, so DetailSchema reaches the red site at runtime though it reaches it by no TypeScript symbol.
  • ⛔ It does not fix the bulk doors' consumer face. That is now card objectui#9722 — pre-existing, true-by-cast, and correctly left out of this diff.

Generated by Claude Code

Merged via the queue into main with commit bbba098 Sep 17, 2026
38 checks passed
@os-sales
os-sales deleted the claude/issue-9511-datasource-id-string branch September 17, 2026 20:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants