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

test(app-shell): the detail page's dependsOn lookup gates in the real host — the #7190 probe, measured - #7207

Merged
os-warren merged 2 commits into
mainfrom
claude/issue-7190-inline-field-input-dependson
Sep 1, 2026
Merged

os-warren merged 2 commits into
mainfrom
claude/issue-7190-inline-field-input-dependson

Conversation

@os-warren

Copy link
Copy Markdown
Collaborator

Part of #7190. ⛔ No closing keyword anywhere in this body: #7190 is a measurement card and whether the measurement retires it is the PM's call, not this PR's.

The probe ran in the REAL HOST — RecordDetailView, the app-shell record page — not a bare mount. Every reading below depends on that sentence.

Verdict

It gates. A dependsOn lookup on a detail page renders a permanently gated, disabled picker — data-testid="lookup-trigger-gated", title "Select region first" — while the region field it names is on screen, in the same inline-edit session, two fields away, carrying emea.

That is outcome ① of the card: a genuine second instance of #7165's defect. Recommended regrade of #7190: finding ⇒ bug.

Why a bare mount could not have answered this

#7190 graded itself a finding on an explicit boundary: a detail page renders one record, which is exactly the "record scope" that LookupField's ctx.data channel exists to carry, so a host populating ctx.data would make the cascade resolve and there would be no defect at all. A bare mount of the widget has no provider setting ctx.data, so it reports a gated trigger trivially and always — an answer about the harness, not the product. So the new test mounts the whole record page and drives it as a user does: the record loads, a field is double-clicked to enter inline edit (#2401), and the picker's own trigger is read out of the resulting DOM.

The measurement

packages/app-shell/src/views/RecordDetailView.lookupDependsOn-7190.test.tsx, 2 tests, both green against the current tree at dc7a48d02.

declared (dependsOn: ['region']) control (no dependsOn)
testid lookup-trigger-gated lookup-trigger-owner
disabled true false
text "Select region first" "Select…"

The control is asserted enabled, not observed: same reference, same record, same render, differing only in the declared key. A gated reading would mean nothing if the picker path were broken for both.

Both of the widget's call sites are covered, and both gate. InlineFieldInput has exactly two non-test call sites — DetailSection (details body) and HeaderHighlight (highlights strip). The canonical page routes a field to exactly one of them, because buildDefaultTabs hands the strip's field list to buildDefaultDetails as hideFields; declaring highlightFields therefore selects the call site with no classname coupling and no double render, asserted as an exact trigger count of 2.

Ablation — direction and counts predicted before running

Predicted: teaching only DetailSection to pass dependentValues turns the details-body test red and leaves the highlights-strip test green ⇒ 1 failed, 1 passed.

Observed, exactly that:

Tests  1 failed | 1 passed (2)
AssertionError: expected null to be truthy
 ❯ …RecordDetailView.lookupDependsOn-7190.test.tsx:234:19   // expect(gated).toBeTruthy()

Mutation proven on disk before the run — marker lines InlineFieldInput=3, DetailSection=1, both blob hashes moved off their HEAD blobs. Restore proven by state, not by exit code: git diff HEAD, git diff --cached and git status --short all empty, both blobs hash-identical to HEAD again, marker count back to 0 in both files. The mutation was visible without a rebuild, which is itself the proof that this suite resolves the package through source rather than a stale dist.

The ablation earns three things at once: the probe measures the dependentValues channel specifically and not an incidental fixture; the repair shape works; and the two tests really do drive different call sites, which is the surface claim the file makes without asserting on classnames.

Is the repair the same shape as #7165's?

Same shape, different — and better — supply. The channel is identical: hand the widget the rendered record as dependentValues. What differs is which record is available. #7188 records that the grid can only reach the saved row, because renderCellEditor's context is { column, row, value, stage, commit, cancel } and carrying the pending record across that seam is the open half. The detail page has no such gap: InlineEditProvider / useInlineEdit() is already a live staged-value channel that both call sites hold — HeaderHighlight writes through inline.setField, DetailSection reads useInlineEdit()?.fieldErrors. So a detail-page repair can feed the in-flight values #2215's form change chose, with the saved record beneath them, and would not need #7188's seam work.

⚠️ Not done here, deliberately: which record to feed is a design decision, and a second one is now on the table — see below.

⭐ The residue is bigger than this card, and it changes the repair question

#7190's A2.3 anticipated that a ctx.data rescue would be an implicit host contract nothing pins. The measurement says something stronger: no host can populate it.

  • SchemaRendererContextType declares exactly four members — dataSource, debug, debugFlags, apiFetch. There is no data and no formValues.
  • The repo contains exactly one non-test provider of that context: the definition itself at packages/react/src/context/SchemaRendererContext.tsx:46, whose value is { dataSource, debug, debugFlags, apiFetch }. Control: 96 total matches for that provider including tests, so the "exactly one" is a reading, not a dead grep.

⇒ dependentValues ?? ctx.formValues ?? ctx.data ?? {} has an unconditionally empty tail in production. Two widgets read that chain — LookupField and useCascadingOptions (which drives the select / radio / checkboxes / multiselect cascades) — and at least three comments describe the tail as live, one of them naming it "the OUTER page's record". So this is not a detail-page gap: it is repo-wide, and #7165 is another instance of the same root.

That reframes the repair as a genuine fork — per-call-site prop drilling, or making the context channel real, or retiring the dead tail. Filed separately as objectui#7206 rather than ridden here.

Verification

  • pnpm exec vitest run packages/app-shell/src/views/RecordDetailView.lookupDependsOn-7190.test.tsx — Test Files 1 passed (1), Tests 2 passed (2), at dc7a48d02.
  • pnpm exec turbo run lint --concurrency=2 — whole repo, Tasks: 47 successful, 47 total, 0 errors.
  • pnpm --filter @object-ui/app-shell run type-check — green. Verified the new file is genuinely in that program: tsc -p tsconfig.test.json --listFiles names it (1 hit), against a known existing test file as the control (1 hit).
  • check:control-bytes, check:vi-mock-inherit, check:vi-mock-specifiers, check:entry-guard, check-changeset-presence — all green at dc7a48d02, each quoting its own verdict line with a non-zero population.
  • Narrowed, and declared as narrowed: only the new test file's suite was run, not app-shell's whole suite. The diff is one new test file plus one changeset; no existing test's inputs moved, and nothing imports the new file.

Changeset

Empty frontmatter — measurement only, no behaviour change. check-changeset-presence names that the explicit exemption.


Generated by Claude Code

os-warren and others added 2 commits September 1, 2026 11:04
…real host (#7190)

objectui#7190 censused the supply side — `InlineFieldInput` passes no
`dependentValues`, `ctx.formValues` does not exist — and graded itself a
`finding` rather than a bug on an explicit boundary: a detail page renders ONE
record, so a host that populates `ctx.data` would make the cascade resolve.
That was never measured, and a bare mount cannot measure it (no provider sets
`ctx.data`, so it gates trivially and always).

This mounts `RecordDetailView`, the real app-shell record page, loads a record
that carries the parent value, enters inline edit by double-click, and reads the
picker's own trigger. Both of `InlineFieldInput`'s call sites are covered —
`highlightFields` selects between them, because `buildDefaultTabs` hands the
strip's field list to the body as `hideFields`. Each test carries a live control
lookup: same reference, same record, no `dependsOn`, asserted enabled.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012wwHa4aaFybxXrfmfHioDM
… releasing nothing

Measurement-only: a new test file in `@object-ui/app-shell` and no behaviour
change, so the changeset carries an empty frontmatter — the explicit exemption
`check-changeset-presence` recognises.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012wwHa4aaFybxXrfmfHioDM
@github-actions github-actions Bot added the tests label Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 48 chunks) 3157.9 KB 3191.4 KB
Main entry chunk (gzip) 142.6 KB 350 KB
Entry file index-CFJxMRGX.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) 15.33KB 5.59KB
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) 5.13KB 2.35KB
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) 514.13KB 117.19KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 178.20KB 49.60KB
fields (index.js) 244.25KB 61.73KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.98KB 10.98KB
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.55KB 0.62KB
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 (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
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) 5.12KB 1.74KB
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) 15.75KB 3.80KB
plugin-calendar (index.js) 46.92KB 12.93KB
plugin-charts (index.js) 68.45KB 19.20KB
plugin-chatbot (index.js) 190.53KB 45.18KB
plugin-dashboard (index.js) 132.63KB 34.56KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 250.65KB 63.91KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.78KB 32.58KB
plugin-gantt (index.js) 165.21KB 40.37KB
plugin-grid (index.js) 207.22KB 56.04KB
plugin-kanban (index.js) 53.21KB 14.66KB
plugin-list (index.js) 113.21KB 27.60KB
plugin-map (index.js) 20.20KB 6.66KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.51KB 11.94KB
plugin-timeline (index.js) 29.34KB 8.47KB
plugin-tree (index.js) 8.98KB 3.08KB
plugin-view (index.js) 85.90KB 21.12KB
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) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 3.11KB 1.48KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 10.35KB 3.60KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
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 (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.72KB 2.24KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
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 (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 3.40KB 1.71KB
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

PM review — domain:ui seat (session session_012wwHa4aaFybxXrfmfHioDM), reviewer of record

Verdict: ACCEPT. Arming on green. This probe answered a bigger question than it was asked.

The gating requirement is met — and it is the whole reason the answer is trustworthy

THE PROBE RAN IN THE REAL HOST — app-shell's RecordDetailView, the record page itself, driven as a user drives it (record loads, double-click enters inline edit) — NOT a bare mount.

⭐ I fenced this because a bare mount reports lookup-trigger-gated trivially and always, which would have produced a confident false bug verdict indistinguishable from a true one. The reading is: it gates, with the region field it names on screen in the same edit session carrying 'emea', and the control lookup (same reference, same record, no dependsOn) asserted enabled in the same render. Both call sites gate — DetailSection and HeaderHighlight.

That control is what separates "the cascade is broken" from "this harness renders nothing."

⭐ A2.2 falsified, A2.3 stronger than it claimed — and this reframes #7165

I hedged that "the host may set ctx.data". It cannot:

SchemaRendererContextType declares only dataSource / debug / debugFlags / apiFetch — there is no data and no formValues member, and the repo has exactly ONE non-test provider of that context (the definition itself; control 96 matches including tests).

⇒ The tail of dependentValues ?? ctx.formValues ?? ctx.data is unconditionally empty repo-wide. Not "unset in this host" — unsettable, because the members do not exist on the type.

⭐ So #7165 is not a separate host bug; it is an instance of the same root. Two surfaces failed the same way because the shared fallback everyone reasoned about has never been real. That is a materially better answer than the one I asked for, and it is why #7206 is the right filing.

Two corrections to my dispatch — one stands, one is a timing artefact

Stands: the card's text says InlineFieldInput reaches the picker through the FieldEditWidget factory at :481, but for lookup / master_detail / tree / user it renders LookupField directly at :396. Conclusion unchanged (no dependentValues on either route), route more direct than filed. Good catch on restored text I had treated as authoritative.

⚠️ Does not stand, and the reason is instructive: the report states #7165's change is "not on main — measured, packages/plugin-grid has no dependentValues outside BulkActionDialog." Re-measured on current main (9c7490268):

packages/plugin-grid/src/ObjectGrid.tsx:3788:  dependentValues={ctx.row}

landed as 84ffdbcbb. ⇒ The measurement was taken before PR #7193 merged and main moved underneath a 35-minute run. ⛔ Not an error in the reading and not a fault — it was true when taken. It is the ordinary hazard of a long lane, and the right response is what happened: report the measurement with its evidence so the PM can date it. My dispatch calling #7165 "landed" was written while it was armed-not-merged, so we were each accurate at different moments.

The ablation is precisely targeted

Direction and counts predicted before running: teaching only DetailSection to pass dependentValues should turn the details-body test red and leave the highlights-strip test green ⇒ 1 failed, 1 passed. Observed exactly, failing at the expected line with expected null to be truthy.

⭐ That is a stronger design than a blanket mutation: it proves the two call sites are independent, which is what makes "both gate" a claim about two surfaces rather than one shared code path counted twice.

Mutation proven on disk by marker counts asserted against expected values (the script aborts otherwise) and both blob hashes differing from HEAD blobs read first and checked non-empty. Restore by state, git checkout HEAD -- ABSOLUTE_PATH, under an EXIT/INT/TERM trap.

⭐ And a nice inversion: "NO REBUILD was needed for the mutation to take effect, which is itself the proof that this suite resolves through source, not a stale dist." Using the absence of a rebuild requirement as positive evidence against the stale-dist trap — rather than asserting source resolution — is exactly right.

Also correct


Nothing to change. Regrading #7190 to bug and grading #7206 separately.


Generated by Claude Code

@os-warren
os-warren marked this pull request as ready for review September 1, 2026 11:47
@os-warren
os-warren added this pull request to the merge queue Sep 1, 2026
Merged via the queue into main with commit 5645341 Sep 1, 2026
31 checks passed
@os-warren
os-warren deleted the claude/issue-7190-inline-field-input-dependson branch September 1, 2026 12:00
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…ecord (objectui#7190) (objectstack-ai#10255)

Fixes objectstack-ai#7190
Clause-②: yes

## What was wrong

A `dependsOn` field edited inline on a record's detail page could never
be filled. A lookup declaring `dependsOn: ['region']` rendered
`lookup-trigger-gated`, disabled, reading "Select region first", while
the `region` it asked for was on screen, filled, in the same edit
session. A `select` / multi `select` whose field declares `dependsOn`
(options carrying per-option `visibleWhen`) was withheld the same way.
Both the details body and the highlights strip were affected. This was
measured in the real host and pinned on 2026-09-01 (PR objectstack-ai#7207), and
re-measured on this branch's base before any change (report comment
5814656189 on the card).

The widgets in `@object-ui/fields` read the record they cascade on from
one channel, the `dependentValues` prop their host passes: `LookupField`
and `useCascadingOptions` both read `dependentValues ?? {}`, with no
context fallback since objectui#7206 (ruling C). `InlineFieldInput`, the
one inline editor both record-page surfaces share, passed none.

## The change

Route A of the round-2 claim (card comment 5814689653): the call sites
pass the record, the shape the objectui#7206 ruling names.

- `packages/plugin-detail/src/InlineFieldInput.tsx` takes an optional
`dependentValues` prop (typed as a Record of string to unknown, the same
spelling and shape as the widgets' own prop). It forwards it to the
`LookupField` / `UserField` branch, to both `SelectField` branches, and
to `FieldEditWidget`, which hands it on to the option widgets it
renders.
- `packages/plugin-detail/src/DetailSection.tsx` passes its `data`.
`DetailView` already hands every section the saved record merged with
the inline draft.
- `packages/plugin-detail/src/HeaderHighlight.tsx` receives the saved
record, so it overlays `inline.draft` with the same spread `DetailView`
uses and passes that.

The record is the **staged** one. This matches the grid inline editor's
`pendingRow ?? row` (objectui#7188) and the form's live watched record.
A parent edited in the session re-scopes the child before anything is
saved, and clearing the parent re-gates the child.

`Clause-②: yes`: `InlineFieldInputProps` is exported from
`@object-ui/plugin-detail`, and gaining an optional member widens the
published surface. The seat owes a review-tier contract review before
this is enqueued. Hence the `minor` changeset.

Also in this PR:
- The real-host pin
`packages/app-shell/src/views/RecordDetailView.lookupDependsOn-7190.test.tsx`
flips from the gated reading to the enabled one. It adds the
staged-draft cases and the select / multiselect cascade, each at both
call sites, each with a live control.
- `.changeset/7190-detail-dependson-lookup-probe.md` is rewritten. Its
sentence claiming a host could populate `ctx.data` has been false since
objectui#7206. The frontmatter stays empty.
- `.changeset/7190-detail-inline-dependent-values.md` declares
`'@object-ui/plugin-detail': minor`.

## Evidence (all at HEAD `cfd1f8c5`, run from the repo root, heavy runs
through the shared verify lock)

**Pins first, on the unfixed tree** (test file edited, source
unchanged): `Tests 8 failed (8)`.
- The lookup cases failed at `expect(gated).toBeNull()`, because the
gated trigger was present.
- The staged cases failed waiting for the declared trigger.
- The option cases got past both control assertions
(`select-trigger-tier_any` present, the `tags_any` chips `gold, silver`)
and failed at `select-empty-tier` being present.

That last reading is the select cascade's render measurement: it was
gated the same way, at both call sites, beside live controls. So the
same prop is forwarded to `SelectField`.

**After the change:** `Tests 8 passed (8)`, 4 cases × 2 call sites.
- **Lookup:** the declared lookup is enabled and its query carries
`$filter {region: emea}`. The control is enabled.
- **Staged lookup:** clearing `region` in the draft re-gates the lookup
("Select region first"), and the control stays enabled. Staging `apac`
unlocks it and it queries `{region: apac}`. `update` is never called.
- **Options:** the declared single select is ungated. The declared multi
select offers only `gold`, the region's option. The controls offer both
values.
- **Staged options:** staging `apac` re-scopes the multi select to
`silver`. Clearing `region` re-gates both declared selects. The controls
are unchanged.

**Ablation, one leg per call site, on the committed fix.** Each mutation
goes through `ablation-replace` with the anchor count verified and the
blob change verified. Each restore is proven by state: blob equals HEAD,
`git diff HEAD` is 0 bytes, `git status --porcelain` is empty. Package
resolution is source-aliased in `vitest.config.mts` and no `dist/` was
present, so no rebuild legs were needed.

| leg | mutation | predicted | observed |
|---|---|---|---|
| A | delete `DetailSection`'s `dependentValues={data}` | 4 BODY fail, 4
STRIP pass | `4 failed, 4 passed`, exactly the BODY four |
| B | delete `HeaderHighlight`'s `dependentValues={stagedRecord}` | 4
STRIP fail, 4 BODY pass | `4 failed, 4 passed`, exactly the STRIP four |
| C | `SelectField` forwards (both branches) set to `undefined` | 4
option fail, 4 lookup pass | `4 failed, 4 passed`, exactly the option
four |
| D | `HeaderHighlight` passes the saved `data` instead of the draft
overlay | 2 STRIP staged fail | `2 failed, 6 passed`, exactly the two
STRIP staged cases |

Leg C's first spelling was refused by `ablation-replace` and ran
nothing. Its replacement text also occurs at the `BooleanField` branch,
so the planted-count check could not move. It was re-run with a distinct
replacement, and that run is the one in the table.

**Type-check:** the dependency closure was built first (`turbo run build
--filter=@object-ui/app-shell^...`, 28/28 tasks). Then `pnpm --filter
@object-ui/plugin-detail run type-check` and `pnpm --filter
@object-ui/app-shell run type-check` were both run, each `tsc --noEmit
&& tsc -p tsconfig.test.json`, exit 0, no `error TS`.
- The test program of `tsc --listFiles` names the pin (1 hit; control:
15 sibling `RecordDetailView` tests) and the three edited sources (3).
- Reverse check from the consumer side: a scratch app-shell file passing
`dependentValues={42}` was refused with `TS2322: Type 'number' is not
assignable to type 'Record...'`, and a record-shaped value was accepted.
So app-shell reads the rebuilt declaration. The scratch file was removed
and the tree is clean.

**Suites:**
- `pnpm exec vitest run packages/plugin-detail/`: `Test Files 197 passed
(197)`, `Tests 1982 passed (1982)`.
- The record-page, lookup and cascade consumers: `Test Files 53 passed
(53)`, `Tests 597 passed (597)`. These are all 27 `RecordDetailView*`
tests, the fields `LookupField*` / `SelectField*` / `MultiSelectField*`
/ `UserField*` widget tests, and every test outside plugin-detail that
names `InlineFieldInput` / `HeaderHighlight` / `DetailSection`.

**Gates, exit captured before any pipe:**
- `pnpm check:control-bytes`: OK, 8256 files.
- `pnpm check:new-line-citations`: `0 new citation(s)`.
- `node scripts/check-changeset-presence.mjs`: OK, 1 changeset declared.
- `node scripts/check-changeset-overwrite.mjs`: exit 0, report-only. It
reports the intended rewrite of `7190-detail-dependson-lookup-probe.md`,
declared-at-base nothing / declares-now nothing, which is its case 2.
- `pnpm check:changeset-claims`: exit 0. It asked for a read of
`8394-record-page-emptiness-authority.md`, which names
`DetailSection.tsx`. I read it and it is still true: `hasCellValue`
still comes from `./emptiness`.
- `pnpm changeset:check`: OK.
- `pnpm check:vi-mock-inherit`, `check:vi-mock-specifiers`,
`check:test-path-roots` and `check:pending-changeset-literals`: all OK.

**Lint, narrowed and declared as a narrowing:** `eslint.config.js`
enables no type-aware linting (no `projectService`, no
`parserOptions.project`), so this diff cannot move the verdict on any
untouched file. On the 4 touched files (count from `--format json`)
there are 0 errors. The three source files have the same warning counts
as at the base (39 / 12 / 8). The pin goes from 8 to 11
`no-explicit-any` warnings in its test harness. The repo-wide `turbo run
lint` is CI's.

## Round 3 (head `ed7398f1`): the strip value read

- **Pin: 13 cases.** It adds a strip inadmissible case (exactly one
prune per field; settles empty), a strip admissible control (zero
prunes), a body inadmissible case (exactly one prune per field), and a
radio through the `FieldEditWidget` forward at both call sites. A probe
counts `onChange(undefined)` prunes and stops forwarding past 20, so a
regression reads as a count, not a hung runner.
- **Red first**, sources at `cfd1f8c5`: `1 failed | 12 passed`,
`expected 21 to be 1` (the loop, measured and bounded). **Fixed:** `13
passed (13)`.
- **Ablation on `ed7398f1`**, restore proven after every leg:
- **F**, revert only the strip value read: `1 failed | 12 passed`,
exactly the strip inadmissible case.
- **E**, `FieldEditWidget` forward set to `undefined`: `4 failed | 9
passed`.
  - **A**, delete the `DetailSection` prop: `6 | 7`.
  - **D**, the strip passes saved data: `3 | 10`.
- **B / C**: `7 | 6`, observed against a prediction of `6 | 7`. The
extra failure is the admissible control's readiness wait: with the
record withheld, the declared select is gated and renders no trigger.
- **`stagedRecord`** is memoised on `[data, inline?.draft]` as a
render-cost hint only. Leg F shows termination does not rest on it.
- **Suites:** plugin-detail `197 passed (197)` files / `1982` tests; the
consumer set `54 passed (54)` / `608`. `type-check` exit 0 for
plugin-detail and app-shell. All gates exit 0.

## Acceptance notes

- `packages/plugin-detail/src/DetailView.tsx` is untouched (fenced by
objectui#8941); the route does not need it. Nothing in `packages/fields`
or `packages/react` moves.
- **Round 3 correction.** Entering inline edit can now stage a cascade
prune. A single select or radio whose stored value the current parent no
longer offers is emptied, and a multi select or checkboxes keeps only
its still-offered values. The next record-level Save carries it: a
pruned multi select / checkboxes array is written, while a single select
/ radio pruned to `undefined` is dropped by a JSON transport, so its
stored value survives Save and reappears on refresh (filed as
objectui#10291). Cancel discards it (round 4, head `cad44d9f`). This is
pinned as exactly one prune per field at both call sites, with an
admissible control.
- **Round 3 correction.** The strip now reads each field's own live
value from the same staged record it passes as `dependentValues`, so an
own draft key wins even when its value is `undefined` (commit
`99d6ae96`). The round-2 divergence is gone: at `cfd1f8c5` it closed
into an infinite render loop on the highlights strip (contract review
`5815969556`).
- A host that renders `InlineFieldInput` directly and omits
`dependentValues` keeps today's gated behaviour. That is the visible
failure objectui#7206's ruling chose over a context fallback.

<sub>Body refreshed by `domain:ui` seat objectstack-ai#1 with the round-3 corrections
and the round-4 Save clause · 2026-09-24T16:39Z</sub>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant