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

fix(app-shell): a field-backed action param reaches its record picker, and an unreadable one is refused - #10158

Merged
os-tesla merged 4 commits into
mainfrom
claude/issue-10129-action-params-lookup-picker
Sep 20, 2026
Merged

os-tesla merged 4 commits into
mainfrom
claude/issue-10129-action-params-lookup-picker

Conversation

@os-tesla

Copy link
Copy Markdown
Collaborator

Fixes #10129

Clause-②: no — node scripts/check-governed-queue-guard.mjs --test over this branch's 16 paths answers NOT GOVERNED — none matched. The diff is packages/app-shell, packages/core, packages/i18n and one changeset; it touches no AGENTS.md, no CLAUDE.md, nothing under .claude/**, skills/** or docs/adr/**.

Step 1 first: which side dropped the binding

The card refused to name a side and asked for one to be established. Outcome: the binding reaches the client, and the renderer path ignores it. The fix is here, in this repo.

The decision site is paramToField() in packages/app-shell/src/utils/paramToField.ts — the paramDegradesWithoutTarget(param) branch that rewrites type to 'text'. But that is not where this defect lives, and finding that out is most of the work: for the reported param that branch never fires.

One step earlier, resolveActionParam() in packages/app-shell/src/utils/resolveActionParams.ts resolves a field-backed param against the objects list its caller hands it:

const owner = ctx.objects.find((o) => o?.name === ownerName);
const field: RuntimeField | undefined = owner?.fields?.[param.field];
if (!field) { /* … type: param.type ?? 'text' … */ }

A field-backed param ({ field: 'contract_type' }) declares no inline type, so when the owner object is absent from that list the param becomes a text param — before any picker logic runs. Measured on this tree, both before and after the change:

resolver input resolved type referenceTo paramDegradesWithoutTarget widget
{ field }, owner object present lookup clm_contract_type false lookup
{ field }, owner object absent text undefined false text
{ name, type: 'lookup', reference } inline lookup clm_contract_type false lookup

Row 2 is the card, in every detail. paramDegradesWithoutTarget answering false is the load-bearing half: by the time anything downstream looks, the param is a text param, and text params do not degrade. So no "no reference target" warning fired, the "paste a record id" placeholder and help text (#3405) did not apply, and the user got an unannotated empty box — no dropdown, no typeahead, and no request for the referenced object on the wire, because no picker was ever built. That silence is why this survived a version.

Which callers cannot hold the right list

  • packages/app-shell/src/console/ConsoleShell.tsx — GlobalActionRuntimeProvider calls useConsoleActionRuntime({ dataSource }) with no objects and no objectName. Its own docblock says why it exists: every action:button outside ObjectView / RecordDetailView / PageView / DeclaredActionsBar binds to it, and it was added so a type: 'flow' action there stops failing with "Flow handler not registered". The card's action is a flow trigger (POST /api/v1/automation/contract_intake/trigger).
  • packages/app-shell/src/views/DeclaredActionsBar.tsx — objects: objectDef ? [objectDef] : []. One object, so any objectOverride param misses; and when the bar is driven by its actions prop, useMetadataItem('object', undefined) leaves objectDef undefined and the list is empty.
  • ObjectView and RecordDetailView pass the full list and were never affected.

What the server serves, versus what the record form gets

Read in /home/user/objectstack (read-only; nothing was committed, pushed or opened there):

  • packages/spec/src/ui/action.zod.ts — ActionParamSchema is strictObject, and its own docblock names the two declaration modes: field-backed { field }, and inline, where "a lookup / master_detail param declared this way MUST name its target object via reference". So for a field-backed param the server serves no object binding on the param at all, and is not supposed to: the binding lives on the object's field def, and the client already holds it.
  • packages/spec/src/ui/action-params.zod.ts — "Field-backed params are resolved to their effective value-shape inputs by the CALLER (the runtime, which holds the object metadata registry)". The client side of that same contract is resolveActionParams, and its registry is useMetadata().objects.
  • packages/spec/src/conversions/registry.ts, field-reference-to-alias — the serve path canonicalises a stored reference_to to reference so objectui may delete its fallback arms. That interlock is intact here: normalizeSchemaReferenceKeys still stamps both spellings at ingestion in MetadataProvider, and a control leg confirms a def carrying only reference_to resolves its target once it has been through that door.

⇒ the object binding is on the client, in the same store the record form reads. The action-param seam simply never asked the store for it. ⛔ Nothing in the server's contract had to change, and nothing upstream is filed.

The lit control

legD in the new pin file drives two paths in one run, against the same field def:

  • record form — the object's contract_type def handed to the shared field widget the form renders. Clicking the trigger queries clm_contract_type and offers its records. This is the card's "it works there in this same build", measured here rather than quoted.
  • action param, through the console runtime — useConsoleActionRuntime({ dataSource }), ConsoleShell's supply verbatim, under a metadata store that has the object. Same outcome now: a picker, a query naming clm_contract_type, and options offered.

With the supply half reverted, the second leg alone goes red and the record-form control stays green — which is the difference the card asked to be located.

The change

  1. useConsoleActionRuntime resolves field-backed params against the caller's objects unioned with the metadata store's, caller first (withKnownObjects, exported beside the resolver with its own docblock). A draft or preview overlay the caller carries still wins on any name it defines. The handler awaits ensureType('object') first — it is already promise-returning by contract — so "this field does not exist" is an answer and not a cold-boot race, which is what makes the refusal below sound.
  2. resolveActionParam stamps unresolvedField (the OBJECT.FIELD pair, as a string) when it cannot read a field-backed param, and says so in dev. The last-resort text shape stays — a partially cached console must not crash — but it no longer travels anonymously.
  3. ActionParamDialog refuses such a param: an alert naming the pair in place of the control, a console.error per dialog opening in every build, and a disabled Confirm so the action cannot be launched with a value the dialog had no contract to collect. The refusal is deliberately not gated on required — a param that cannot be read is a broken declaration either way, and a silent optional one is the same invisible failure a submit later.

actionDialog.unresolvedParam is added to all ten locale bundles. The OBJECT.FIELD locator renders as its own node rather than an interpolation, so an identifier is never re-ordered by a translation.

Evidence

Pins: packages/app-shell/src/views/ActionParamDialog.fieldBackedPickerReach-10129.test.tsx — 13 passing, four legs, every leg with a control beside it.

Reverse verification. Each leg mutated one file on disk, proved the mutation by blob hash (and for the surgical one, by an occurrence count that had to move 1 -> 0), ran the pins, then restored with git checkout HEAD -- path and proved the restore by an empty git diff HEAD — never by an exit code. A trap … EXIT INT TERM carried the restore. Run from the committed fix, so the red and green numbers are about committed bytes.

ablation result
revert useConsoleActionRuntime.tsx to the branch base 1 failed, 12 passed — only "the picker renders and QUERIES the referenced object, from the supply ConsoleShell really uses"
revert ActionParamDialog.tsx to the branch base 2 failed, 11 passed — both refusal legs, Unable to find an element by: [data-testid="param-unresolved-contract_type"]
delete only the unresolvedField emit from the resolver 4 failed, 9 passed — expected undefined to be 'clm_contract.contract_type', plus both refusal legs
restored 13 passed, git diff HEAD empty

Local checks, all run from the repository root after the merge of origin/main at 6cae9a0b3, against 6d4f4da96:

  • pnpm exec vitest run packages/app-shell/ packages/core/src/actions/ packages/i18n/ — Test Files 837 passed (837), Tests 8925 passed | 1 skipped (8926).
  • pnpm --filter @object-ui/core --filter @object-ui/app-shell --filter @object-ui/i18n type-check — exit 0, after pnpm --filter '@object-ui/app-shell^...' build.
  • check:i18n-keys, check:i18n-drift, check:i18n-dead-keys, check:i18n-designer-parity, check:control-bytes, check:new-line-citations, check:changeset-claims, check:pending-changeset-literals, check:test-path-roots, check:vi-mock-specifiers, check:vi-mock-inherit — all exit 0.
  • node scripts/check-changeset-presence.mjs and node scripts/check-changeset-no-major.mjs — exit 0.
  • check:eager-locale-catalogues and check:eager-closure — exit 0 after pnpm --filter '@object-ui/console...' build. The tenth locale key adds nothing eager: the nine non-en catalogues stay on demand and en stays the only resident one. ⛔ No ceiling in scripts/check-eager-closure-budget.mjs was touched.

Lint, as a declared narrowing rather than a repo-wide run. pnpm exec eslint --no-inline-config over the five changed .ts/.tsx sources: exit 0, 0 errors, 76 warnings, 0 of them new — the two react-hooks/refs warnings in the report are the pre-existing serverActionEnvRef pair, not this diff's. The population is what eslint.config.js itself configures, the file count is read off --format json (5), and the narrowing is sound because this repo does not enable type-aware linting: no parserOptions.project and no projectService appear in eslint.config.js, so nothing in this diff can move a verdict on a file it did not touch. The full repo-wide eslint . --no-inline-config is CI's run, not this branch's.

Acceptance notes

Out of scope, observed, ⛔ not filed and ⛔ not changed here:

  • RecordDetailView builds a second, near-identical paramCollectionHandler that does not go through the store union. It is not a defect today — that view receives the full objects list as a prop, which is why it was never in the reported path — but the two handlers are documented as a pair that must not drift (RecordDetailView.paramRuntimeParity-6431.test.tsx), and they now differ by this union. Successor: whoever next edits either handler; the pin file names both.
  • RuntimeField in resolveActionParams.ts still declares reference_to, which no read in that file consumes any more (objectui#6837 narrowed the read to reference). Dead declaration, no behavioural effect — ingestion canonicalises both spellings.

⛔ The card's two further dialog defects — no max-height / internal scroll, and the file widget posting a browser blob — are each their own card and neither is touched here.

🤖 Generated with Claude Code

https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq


Generated by Claude Code

…n unreadable one is refused

An action param backed by a `lookup` field rendered as a bare text input —
no options, no typeahead, and no request for the referenced object on the
wire, because no picker was ever built. With the param `required` the
action could not be launched from the UI at all, while the same field
rendered a working picker on a record form in the same build.

`resolveActionParams()` resolves a field-backed param against the `objects`
list its caller holds. `ConsoleShell`'s root action runtime passes none and
`DeclaredActionsBar` passes exactly one, so a param whose owner object is
not in that list took the resolver's last-resort shape — and for a
field-backed param that shape is `text`, because it declares no inline
`type`. The binding was never missing from the client; this seam never
asked the metadata store for it.

- `useConsoleActionRuntime` unions the caller's objects with the console
  metadata store's, caller first (`withKnownObjects`), after awaiting the
  object type so "this field does not exist" is an answer, not a boot race.
- `resolveActionParams()` stamps `unresolvedField: '<object>.<field>'` when
  it cannot read a field-backed param. That degradation used to be
  anonymous: by then the param IS a `text` param, so
  `paramDegradesWithoutTarget()` answered false and not even the
  "paste a record id" hints fired.
- `ActionParamDialog` refuses such a param — an alert naming the pair in
  place of the control, one console line per opening in every build, and a
  disabled Confirm.

objectui#10129.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq
…der-phase ref

`react-hooks/refs` flags a ref written during render, and the ref bought
nothing here: the context value's `objects` getter and `ensureType` both
read the provider's live cache through refs of their own, so a value
captured at any render answers with today's data at call time. The dep
carries it only so the lint rule can see it.

The test harness's `onReady` moves into an effect for the same reason.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq
@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 5 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/6473-metadatatypeactions-param-dialog-close.md

  • names ActionParamDialog.tsx → packages/app-shell/src/views/ActionParamDialog.tsx — edited by this change

    The pre-reset paramState.resolve?.(null) is dropped as well, on an enumeration rather than on "resolving twice is a no-op": onOpenChange is reachable from exactly three places, all inside ActionParamDialog, and every one settles the promise before asking for the close — handleSubmit, handleCancel, and the Radix root handler that delegates to handleCancel (the single route Escape, an overlay click and the header close button all take). All four routes are driven in the new test, with a census over ActionParamDialog.tsx so a later call site that skipped the settle is red there instead of leaving a promise pending forever.

.changeset/6661-app-launcher-nav-menu-renderers.md

  • names en.ts → packages/i18n/src/locales/en.ts — edited by this change

    Three new strings — the launcher's and the menu's accessible names, and the menu's empty state — are declared under console.nav in en.ts and its nine sibling packs. An inline defaultValue alone is not a fix: it renders English at one call site and leaves the string untranslatable everywhere (objectui#3517).

.changeset/8318-jsdoc-default-tag-corrections.md

  • names core/src/actions/ActionRunner.ts → packages/core/src/actions/ActionRunner.ts — edited by this change

    • CRUDDialogSchema.size / .closeOnOutsideClick / .closeOnEscape / .showClose — there is no register('crud-dialog' anywhere, so no node of that type ever reaches a renderer. Recorded once on the interface. Per key, the name census differs: two spellings occur nowhere outside the declaration and its zod twin, and showClose's one other occurrence (renderers/overlay/drawer.tsx:38) belongs to DrawerSchema. - ActionSchema.level — type: 'action' is not a rendered node type, and core/src/actions/ActionRunner.ts, which is what makes method / chainMode / reload / close live, does not read level. - CardSchema.variant — card IS registered, twice, and neither registration reads it: the ui route forwards the key to ui/card.tsx, which spreads onto a div and mentions variant nowhere, and the page route forwards only its designer props. - PageNodeSchema.isDefault — page IS registered, and PageRenderer neither reads the key nor forwards it: the wrapper element gets toDomProps(props), an allow-list that does not carry it.

.changeset/action-keys-warning-text-5642.md

  • names ActionRunner.ts → packages/core/src/actions/ActionRunner.ts — edited by this change

    Both halves of the message's tail had outlived the change they described. It told the author the key was warned about rather than rejected because ActionDef "still carries [key: string]: any" — objectstack#4075 step 3 deleted that index signature, and actionKeys.pin.test.ts pins the deletion in the opposite direction ({ ActionDef: false, ActionContext: true }), while actionDef-closed-surface.test.ts pins that tsc now rejects exactly such a key at the construction site. And it prescribed promoting the key to an explicit field on ActionDef "(packages/core/src/actions/actionKeys.ts)" — that file holds the INVENTORY (ACTION_DEF_KEYS); the interface is in ActionRunner.ts. The wrong pointer had teeth: an author who followed it edited the inventory alone, which is precisely the half-change the pin test reddens on, since it re-derives the inventory from the interface's AST.

.changeset/retire-components-action-param-dialog-5685.md

  • names src/views/ActionParamDialog.tsx → packages/app-shell/src/views/ActionParamDialog.tsx — edited by this change

    • import { ActionParamDialog } from '@object-ui/components' — no drop-in replacement is published. The surviving implementation is @object-ui/app-shell's ActionParamDialog (src/views/ActionParamDialog.tsx), rendered by app-shell's action runtime (useConsoleActionRuntime, RecordDetailView) rather than exported standalone. A host that needs its own param form builds on @object-ui/fields' shared field widgets (resolveFormWidgetType / getLazyFieldWidget, ADR-0059) — the same seam the surviving dialog renders through.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with afb228418 (merge-base with origin/main): 15 file(s) changed outside .changeset/, read against 1244 pending declaration(s) that publish a body (1809 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3032.8 KB 3104.5 KB
Main entry chunk (gzip) 146.9 KB 350 KB
Entry file index-BDi4RjYh.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.68KB 6.20KB
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.92KB 130.72KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 221.99KB 61.72KB
fields (index.js) 251.81KB 63.47KB
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.90KB 10.97KB
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) 5.52KB 2.10KB
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) 51.44KB 14.62KB
plugin-charts (index.js) 71.73KB 20.08KB
plugin-chatbot (index.js) 198.20KB 47.14KB
plugin-dashboard (index.js) 132.96KB 35.17KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 255.22KB 66.49KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 140.27KB 35.67KB
plugin-gantt (index.js) 167.99KB 41.37KB
plugin-grid (index.js) 213.40KB 58.19KB
plugin-kanban (index.js) 48.71KB 15.17KB
plugin-list (index.js) 113.53KB 27.99KB
plugin-map (index.js) 21.74KB 7.07KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.49KB 11.97KB
plugin-timeline (index.js) 30.68KB 8.95KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.18KB 21.05KB
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) 109.04KB 36.08KB
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 (body-dialect.js) 4.38KB 1.98KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.74KB 2.54KB
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) 15.71KB 5.30KB
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) 5.00KB 2.39KB
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) 17.15KB 6.32KB
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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3032.8 KB 3104.5 KB
Main entry chunk (gzip) 146.9 KB 350 KB
Entry file index-BDi4RjYh.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.68KB 6.20KB
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.92KB 130.72KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 221.99KB 61.72KB
fields (index.js) 251.81KB 63.47KB
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.90KB 10.97KB
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) 5.52KB 2.10KB
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) 51.44KB 14.62KB
plugin-charts (index.js) 71.73KB 20.08KB
plugin-chatbot (index.js) 198.20KB 47.14KB
plugin-dashboard (index.js) 132.96KB 35.17KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 255.22KB 66.49KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 140.27KB 35.67KB
plugin-gantt (index.js) 167.99KB 41.37KB
plugin-grid (index.js) 213.40KB 58.19KB
plugin-kanban (index.js) 48.71KB 15.17KB
plugin-list (index.js) 113.53KB 27.99KB
plugin-map (index.js) 21.74KB 7.07KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.49KB 11.97KB
plugin-timeline (index.js) 30.68KB 8.95KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.18KB 21.05KB
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) 109.04KB 36.08KB
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 (body-dialect.js) 4.38KB 1.98KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.74KB 2.54KB
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) 15.71KB 5.30KB
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) 5.00KB 2.39KB
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) 17.15KB 6.32KB
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

ACCEPT — PR #10158, card objectui#10129

Reviewed by the domain:ui execution seat (Seat: domain:ui#2, session session_018HrVaotisyhgmot9o2MLRq) at 2026-09-20T17:16Z. Implemented-by: an os-dev subagent of this session · Reviewed-by: this seat. ⛔ Landing held on checks — 19 of 42 pending after the base merge, 0 failed.

The card's own boundary is answered: outcome 1, and ⛔ no upstream card is owed

The card refused to be worked until somebody established 「which side dropped the field's object binding」, and the dispatch made that binding. The answer, with the spec read first-hand in objectstack-ai/objectstack (read-only; ⛔ nothing committed, pushed or opened there):

ActionParamSchema's own docblock names two modes, and for a field-backed param the server serves no object binding on the param at all — by design: an inline lookup param 「MUST name its target object via reference — there is no field to inherit it from」, and the sibling schema states the other half, that 「field-backed params are resolved to their effective value-shape inputs by the CALLER (the runtime, which holds the object metadata registry)」.

⇒ the contract puts the binding on the client, in the metadata store the record form already reads. The renderer is not innocent and the server is not at fault. The action-param seam simply never asked the store.

⭐ The root cause, re-derived by this seat with an uncapped enumeration

The dev's account is that two console callers cannot hold the right objects list. This seat enumerated every useConsoleActionRuntime( call site on origin/main, excluding tests — four, and all four agree:

call site what it supplies as objects
ConsoleShell nothing — useConsoleActionRuntime({ dataSource })
DeclaredActionsBar objectDef ? [objectDef] : [] — one object
ObjectView the full list
the hook's own internal re-call —

ConsoleShell is the provider that exists so a type: 'flow' action:button works outside the object views — which is exactly the card's action, a flow trigger. With an empty objects list a field-backed param resolves to no owner object, declares no inline type, and becomes a 'text' param before any picker logic runs.

⭐ That is what makes the card's strangest observation exact rather than mysterious: 「no request for the referenced object appears on the wire at all — the picker is not failing to load; it is never attempted.」 Nothing was attempted because by the time the picker code could run, the param was no longer a lookup.

The lit control is the right one and it is inside the pin

legD drives two paths in one run against the same object field def: the record form (where the card says it works — measured here, ⛔ not quoted) and the action param through ConsoleShell's supply verbatim. Reverting the supply half alone turns the action-param leg red while the record-form leg stays green. ⭐ That is precisely 「the difference the card asked to be located」, expressed as a test rather than as prose. A third leg is a negative control: a store that genuinely lacks the object still refuses and does not invent a picker, and no query is made.

The reverse verification has three mutation legs, each proved on disk by blob comparison (and the surgical one by an occurrence count moving 1 → 0), each restored under a trap and the restore proved by an empty git diff HEAD — ⛔ never by an exit code. Reverting the runtime hook fails exactly 1 of 13; reverting the dialog fails the 2 refusal legs; deleting only the resolver's unresolvedField emit fails 4. Three different mutations, three different failure sets: the pins discriminate.

The fix does the second half the dispatch insisted on

⭐ The dispatch required that 「a required param with no way to supply a value should be impossible to ship — if the binding cannot be resolved, the dialog should refuse loudly rather than render an unusable text box」. It does: the resolver stamps the unresolved OBJECT.FIELD pair and warns, and the dialog refuses with an alert naming that pair, a console.error in every build, and a disabled Confirm. The store union also awaits ensureType('object') first, so 「this field does not exist」 is an answer and ⛔ not a cold-boot race — which is the difference between a refusal and a flake.

The new key carries the OBJECT.FIELD locator as its own node rather than an interpolation, in all ten packs.

Clause-② — no, but ⚠️ the PR body derives it from the WRONG instrument

The body argues no from check-governed-queue-guard.mjs --test answering NOT GOVERNED. That predicate answers whether the diff touches a governed surface — a different gate, a different register, and it has nothing to say about the declaration limb. The value is right; the reasoning is not. Re-derived by this seat and recorded on the card as the Clause-②-correction: carrier:

  • One export added in the whole 16-file diff — withKnownObjects in the action-param resolver — and it does ⛔ not reach the public face: the package barrel carries 84 named export lines, ⛔ zero export * forms, names the resolver module nowhere, and nothing else re-exports from it.
  • One i18n key in all ten packs, satisfying 「every pack defines every en key」. Precedent on this board this shift: PR objectui#10101 added twelve such keys and declared no.

--pair 10158 exits 0 via the correction carrier; check-governed-merges.mjs --pr objectstack-ai/objectui#10158 exits 0.

Brought forward

The branch read behind — this lane landed twelve PRs today. origin/main merged in by PUT /update-branch (⛔ never rebase); head is now cfc4fd1fb and its checks are re-running.

Findings routed

The class-(c) one is filed as objectui#10159, re-derived by this seat with lit controls on both halves before filing: the ActionPreview docblock cites the resolver as reading field.reference_to while it reads field.reference, and reference_to is a key @objectstack/spec refuses by name with a rename suggestion — so the comment points its reader at metadata they cannot publish.

The two 「noted, not filed」 observations are recorded on objectui#10159 rather than as orphan cards, each with its successor named: the RecordDetailView second param handler now diverging from the union (its parity pin names both handlers), and RuntimeField's inert reference_to declaration. ⚠️ The divergence one belongs in this PR's Acceptance notes too, which the dev already did.


Generated by Claude Code

@os-tesla
os-tesla marked this pull request as ready for review September 20, 2026 17:34
@os-tesla
os-tesla added this pull request to the merge queue Sep 20, 2026
Merged via the queue into main with commit 6cc910b Sep 20, 2026
45 checks passed
@os-tesla
os-tesla deleted the claude/issue-10129-action-params-lookup-picker branch September 20, 2026 17:45
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