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

fix(plugin-grid,components,react): row-menu and data-table row-action disabled gates fail closed while permissions load, and ActionProvider binds current_user on its runner (objectui#11242) - #11268

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-11242-disabled-legs-fail-closed
Sep 30, 2026

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11242
Clause-②: yes (widening)

Rider 1 of objectui#4421 on the last two authored-action disabled legs, and the "one bag" rule (objectui#6493) for the shared action runner. The ruling, verbatim: "permission-shaped bindings are fail-closed while the permissions payload has not loaded — the opposite of the predicate default — or the first-paint leak reappears. Pin this." For a disabled gate, closed means DISABLED.

What changed

Measured through the real MePermissionsProvider, ExpressionProvider, ActionProvider and the production renderers, one verb (delete), three states. The "before" column was measured at the base 615346d61 with the new pin copied into an unmodified tree, before any source edit: exactly the 6 arms marked in capitals were red there.

leg before: not loaded / granted / denied after
row menu item (RowActionMenu), disabled: !current_user.can('account', 'delete') ENABLED / enabled / disabled DISABLED / enabled / disabled
data-table row action (data-table, a related list's rows), same gate ENABLED / enabled / disabled DISABLED / enabled / disabled
built-in Delete disabledWhen, both menus (the control) enabled / enabled / disabled unchanged
runner disabled re-check through useAction(), no action-engine block on the page refused / REFUSED / refused refused / runs / refused
page:header click, granted, no action-engine block on the page button enabled, runner REFUSED button enabled, runner runs
  • Row menu item (@object-ui/plugin-grid) and data-table row action (@object-ui/components). The same mechanism PR objectui#11237 gave page:header's disabled leg: the caller passes its key's own fail direction (fallback: true) to the row-predicate entry, and the policy is per key, not a can() special case. That entry's fallback also answers an ABSENT predicate, so the verdict counts only where a gate is declared, read through core's one definition of that question (hasDeclaredPredicate). An absent, empty or blank disabled stays not disabled (pinned).
  • Scope question (not-loaded only, or every fault?). Every fault, as PR objectui#11237 did for page:header: a disabled that faults on an unbound root (nope.deep == 1) is DISABLED on both legs (pinned).
  • Built-in disabledWhen (RowActionMenu, data-table) is untouched and stays fail-soft, as documented and pinned since PR objectui#4515 (option B was not taken). The BuiltinRowActionPredicates docblock in RowActionMenu.tsx said that posture renders the item disabled; it leaves it enabled (the spec's own wording, and the existing RowActionMenu.test.tsx pin). The docblock is corrected in the file this PR already edits, and now says where the two families part.
  • ActionProvider (@object-ui/react) binds the predicate scope's subject (usePredicateScope().current_user) as current_user on its runner: the same object, not a copy, bound during render and keyed on the subject's serialisable fields and its permissions map, never on its identity (AGENTS.md [WIP] Enhance every detail of the designer #10). The runner's user / ctx.user / os.user stay the host's object. So every execute gate under a provider mounted inside the scope answers current_user, whatever else the page mounts.
  • useActionEngine's PR objectui#11237 write is KEPT, because it is measured still needed (ablation legs A4 and A5 below). Under a provider mounted inside the scope it only re-binds the object the provider already bound (A4: 0 red). It is the only writer for two runners: the hook's own standalone runner (A5: the standalone arm goes red), and a shared runner whose provider sits ABOVE the scope (probe P1: record:quick_actions GRANTED reads HIDDEN without it). The console's global provider is that shape: GlobalActionRuntimeProvider wraps the routes and ExpressionProvider is mounted inside them. Only its comment changed.
  • ActionRunner.execute's disabled-gate comment (@object-ui/core), comment only. It said a fault "defaults to NOT-disabled". evaluateCondition handles its own faults and answers its fail-soft true, which on this key refuses the action; the catch is reached only by a throw from outside that handling. The code is right.
  • Docs (content/docs/layout/page-header.mdx). The row menu's items now take the same disabled direction as the header, in a grid and in a related list's table, and the built-in disabledWhen is named as the exception. The page also states that on the runner's own gates current_user.can(…) answers while user.can(…), ctx.user.can(…) and os.user.can(…) fault (probe P3), as the review of PR objectui#11237 noted. No user binding is added.

Mechanism assumptions (PM Zone 2), measured

  • PR objectui#11237 is on main as 8bab1571d (merge-base --is-ancestor exit 0), and its diff and review were read first.
  • usePredicateScope is exported from packages/react/src/hooks/useExpression.ts, same package as ActionProvider: held.
  • The not-loaded reach is the one objectui#11212 measured (outside MePermissionsProvider: /forms/:name, standalone embeds). It was not re-measured through the real App here.

Ablation (HEAD 17a2920d9, fix committed first)

Every mutation went through ablation-replace.mjs (the anchor had to hit once, the landing was proven by the anchor count and the blob hash, and each restore was proven as blob == HEAD with an empty git diff HEAD). Each leg ran 7 files, 100 tests: this pin, the objectui#11212 and objectui#4421 pins, RowActionMenu.test.tsx, two data-table row-action suites, and the throwaway probe. The red counts were written down before the run, and all eight matched:

leg predicted red
A1 row-menu fallback: true back to false row menu NOT LOADED, unbound 2, exactly those
A2 data-table fallback: true back to false data-table NOT LOADED, unbound 2, exactly those
A3 ActionProvider binding off runner GRANTED, header click GRANTED 2, exactly those
A4 useActionEngine shared-runner write off 0; P1 prints HIDDEN 0; P1 HIDDEN
A5 useActionEngine standalone binding off standalone quick_actions GRANTED 1, exactly that
A6 row-menu declared-gate check off row menu NOT LOADED (companion), absent/blank 2, exactly those
A7 data-table declared-gate check off same two, data-table 2, exactly those
A8 A3 and A4 together A3's two, plus objectui#11212 quick_actions GRANTED and DENIED 4, exactly those

All four mutated files ended as their HEAD blobs, and the tree was clean afterwards.

Tests and gates (HEAD 17a2920d9, clean tree, heavy runs through the shared verify lock)

  • New pin packages/app-shell/src/providers/__tests__/currentUserCan-disabledLegs-11242.render.test.tsx, 23 tests: both legs × three states, plus unbound and absent/blank arms; the built-in control × two menus × three states; the runner gate × three states, plus a real page:header click; and record:quick_actions with no provider × three states. Each arm has an ungated companion and its own action name.
  • Union, pnpm exec vitest run from the root, in chunks under timeout 300, every chunk exit 0:
    • packages/plugin-grid/src/: 174 files, 1595 tests, all passed (two halves: 87 / 758 and 87 / 837). A first single-chunk attempt hit the timeout 300 wall after 125 files with 0 failures and was replaced by the two halves.
    • packages/components/src/__tests__/ and packages/components/src/renderers/complex/: Test Files 105 passed | 1 skipped (106), Tests 1158 passed | 7 skipped; then Test Files 106 passed (106), Tests 905 passed.
    • packages/react/src/ and packages/app-shell/src/providers/: Test Files 129 passed (129), Tests 1609 passed.
    • 87 consumer test files outside those trees that name ActionProvider, useActionEngine, RowActionMenu, DataTableRowActionItem or rowActionDefs (app-shell views, plugin-detail, plugin-view, plugin-dashboard, core, …): Test Files 87 passed (87), Tests 957 passed.
    • Root scripts/__tests__/ (this diff edits markdown): Test Files 177 passed | 2 skipped (179), Tests 5371 passed | 2 skipped.
  • Build: turbo run build --filter='@object-ui/app-shell^...' --concurrency=2, 28 tasks successful (after the plugin-grid^... closure, 13 tasks).
  • type-check exit 0 for @object-ui/core, @object-ui/react, @object-ui/components, @object-ui/plugin-grid and @object-ui/app-shell (its tsconfig.test.json includes src/**/*.test.tsx, so the new pin is typed).
  • eslint on the 6 changed source and test files: 0 errors. Warnings per file equal the base counts; the new pin has 2 (registered()'s ComponentType of any, as in the objectui#11212 pin).
  • Exit 0: node scripts/check-changeset-presence.mjs, check:control-bytes, check:new-line-citations, changeset:check, check:changeset-claims (report-only), check:pending-changeset-literals, check:doc-types, check:doc-fences, check:doc-example-ids, docs:check-links, node scripts/markdown-test-inputs.mjs --audit, check:action-forward-parity, check:test-path-roots. check-governed-queue-guard.mjs --test over the 8 paths: NOT GOVERNED.
  • NOT MEASURED: check:doc-snippets and check:doc-examples. Both printed PRECONDITION NOT MET (exit 2): they need the 36-package docs build filter, and this tree has the 28-package closure. The doc edit adds prose only, with no fenced code.

Acceptance notes (not filed)

  • Open for the seat: the console's global runner. ActionProvider binds only from a scope above it. The console's GlobalActionRuntimeProvider sits above ExpressionProvider, so probe P2 (provider above the scope, no engine block) still refuses a grant holder at this head. The routes that execute through that runner alone (dashboard, report, component, /forms/:name) answer current_user on execute gates only after an engine consumer has mounted, as before. No authored gate there was found to reach it: dashboard header defs carry only name, type, target and label. The options are in the report.
  • Inline primary row action ignores disabled. RowActionInlineButton (RowActionMenu.tsx) never reads the key. Probe P4: disabled: true and a denied disabled: !current_user.can(…) both render an enabled button, and only the runner refuses the click. This is the declared-gate class (objectui#3812), not this card's fault-policy class, and no producer of a primary list_item action with disabled was found. The docs above say "the row menu's items" deliberately. Carrier: none.
  • page:header renders a BLANK disabled disabled. Probe P5: disabled: ' ' and a { dialect: 'cel', source: ' ' } envelope render DISABLED. '' and the empty-source envelope render enabled. resolveDisabled tests !src without trimming, and since PR objectui#11237 the blank branch of the row-predicate entry returns the header's true fallback. Core's hasDeclaredPredicate (objectui#3850 / objectui#3960) calls both values not declared, as ActionRunner, action:button and now both row legs do. So on a blank disabled the header and the row menu disagree. containers.tsx is outside this claim. Carrier: none.

Generated by Claude Code

… disabled gates fail closed; ActionProvider binds current_user

Work in progress for objectui#11242 (Rider 1 of objectui#4421). The two
authored-action `disabled` legs pass their key's fail direction (`true`)
to the row-predicate entry, counted only where a gate is declared, and
`ActionProvider` binds the predicate scope's subject as `current_user`
on its runner. Pin added under app-shell providers.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…g writes, page-header docs and changeset (objectui#11242)

`ActionRunner.execute`'s `disabled`-gate comment said a fault defaults to
NOT-disabled; `evaluateCondition` answers its fail-soft `true` on a fault,
so the action is refused. The code is right; only the comment changes.
`useActionEngine` states which runners it still binds now that
`ActionProvider` binds its own. `page-header.mdx` covers the row-menu
`disabled` legs and the runner bag's `current_user` / `user` asymmetry.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 15 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/4730-retire-dead-locale-key-batch.md

  • names RowActionMenu.tsx → packages/plugin-grid/src/components/RowActionMenu.tsx — edited by this change

    • Superseded twin vocabularies. cellRender.* and rowAction.* duplicated a grid.* vocabulary that won. RowActionMenu.tsx is fully i18n-wired and reads grid.openMenu / grid.edit / grid.delete; ObjectGrid.tsx reads grid.empty / grid.yes / grid.no / grid.systemFields. The twins had no reader on either side. - Labels that outlived their control. calendar.agenda labelled a view mode b55a34647 retired from CalendarViewMode (now 'month' | 'week' | 'day'). home.quickActions.createApp*, layout.systemNav.createApp, actionDialog.defaultActionTitle / .ok and grid.bulk.selectPlaceholder sit in namespaces whose consumers are live and wired but demonstrably read other siblings. - Surfaces that left the product. map.* is the strongest form: @object-ui/plugin-map declares no @object-ui/i18n dependency and contains no t() call at all, so it cannot consume a locale string. home.stats.* and recordDetail.viewersTooltip name surfaces nothing renders.

.changeset/5453-retire-grid-column-wrap-forward.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    generateColumns() copied a per-column wrap onto every column object handed to data-table, and packages/components' data-table.tsx never read it. Measured on the current ref rather than inherited from the card, with comments stripped so prose mentions cannot be counted as reads: a column-level wrap scores 0, against accessorKey 34, align 5, header 4, className 4, width 8 and fitContent 2 in the same query shape. Those sibling counts are the positive control — the search style does find the keys that are genuinely consumed, so the zero is a measurement and not a mis-aimed grep. The raw string wrap does occur in that file; every occurrence is flex-wrap, whitespace-nowrap, or a variable named wrapper.

.changeset/5853-tablecolumn-type-canonical-union.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    @object-ui/types exports TABLE_COLUMN_TYPES (the canonical tuple — the single declaration the zod mirror builds its enum from, so the two cannot drift), the TableColumnType union, and normalizeTableColumnType() for producers. The as any cast in data-table.tsx is deleted and the read is typed, so re-introducing an undeclared spelling is a tsc error rather than a silent widening.

.changeset/5926-empty-action-visible-when.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    The fix is a route, not a new check: no visibleWhen test was added to data-table.tsx. A local check on this slot would have been a fourth evaluator, which is the drift page:tabs' item-level predicate already records on this card. The slot now mounts its authored node exactly the way the empty renderer's action slot always has.

.changeset/5993-button-shared-icon-resolver.md

.changeset/6175-column-state-persistence.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    • @object-ui/components — DataTableSchema has declared onColumnResize?: (columnKey, width) => void all along, and data-table.tsx invoked it nowhere: the resize drag updated the table's local columnWidths state and stopped there. It now reports the settled width once, at mouseup. Once, deliberately — the host turns this callback into a write to shared view config, so a per-mousemove callback would be a write storm. - @object-ui/plugin-grid — ObjectGrid emitted onColumnReorder (singular) while the renderer invokes the near-duplicate onColumnsReorder (with the s), a different declared key with a different signature. The producer now emits the spelling the renderer actually invokes, mapping the reported TableColumn[] to the accessorKey order columnState stores.

.changeset/6373-datatable-emit-boundary.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    The measured read set of the consumer (data-table.tsx, comments stripped) contains none of the six, so all six retire from the emit rather than being declared — declaring a key nothing reads is the same declared != enforced defect facing the other way. Rendering is unchanged because none of those keys was the live path for its own value: the FieldMeta the cell closure captures is what this widget's type-aware rendering has always read, and it is untouched. Authored spellings still pass through, so a column the author wrote as { format: '$0,0' } keeps its format exactly as before.

.changeset/6424-tablecolumn-declares-headericon.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    Scope of the enforcement claim, measured: the declaration, the parse road, and the renderer's behaviour now agree; the renderer's internal column reads remain any-mediated (the col: any normalization in data-table.tsx) — a standing instrument gap, not closed here.

.changeset/6881-retire-data-table-toolbar.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    What was measured. The key was declared on both published faces — data-display.ts (toolbar?: SchemaNode[], "Table toolbar actions/content") and the Zod mirror (SchemaNode | SchemaNode[]) — documented, mirrored, and read by NOTHING: data-table.tsx, the registered renderer for type: 'data-table', contains the word only in two prose comments and never reads schema.toolbar. The sibling emptyAction slot on the same interface IS mounted through SchemaRenderer, so the census zero is a reading, not a blind query. An author who wrote a toolbar got a green document and a blank result, with no signal anywhere that said so — the declared-vs-enforced failure mode that is worst for AI-authored metadata, which has nothing but the declaration to go on.

.changeset/6882-datatable-declare-render-cell-editor-and-cell-classname.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    data-table has read both keys on its production path all along — renderCellEditor through a (schema as any) cast, cellClassName by destructuring it into the class of its three utility cells (the selection checkbox, the row number, the row actions). Neither was declared, so authoring either one was unchecked: a misspelling produced no error and no widget, and no editor completion offered them. DataTableSchema now declares both, and the cast in data-table.tsx is gone rather than replaced.

.changeset/6909-fieldeditwidget-dom-pass-through.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    Also corrects a comment in @object-ui/components' data-table.tsx that this change falsifies. It justified the injected editor's document-level pointerdown listener partly with "FieldEditWidget forwards autoFocus and nothing else out of the DOM block, so a host handler could not reach the control through it even if one were passed" — no longer true. The listener is still load-bearing for the other half of that reason, which is untouched: the renderCellEditor context object has nowhere to put an onBlur in the first place. Comment only; no behaviour change in that package.

.changeset/7804-data-table-handler-key-arms.md

  • names renderers/complex/data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    BaseSchema is .passthrough(), so a key no arm declares is not refused — it stops being judged and the value is KEPT. All seven were in that state while renderers/complex/data-table.tsx read and INVOKED each one, so an authored { "type": "data-table", "onRowClick": { "action": "toast" } } parsed GREEN and that action object was handed to a call site expecting a function. Each key is now a named refusal on the mirror (handlerKeyRefusal, the objectui#6124 shape), and the arm's message says why JSON cannot author it and what to write instead.

.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/dashboard-stable-empty-rows-4629.md

  • names data-table.tsx → packages/components/src/renderers/complex/data-table.tsx — edited by this change

    Nothing rendered wrong before or after; this is wasted work in the empty window, plus the live react-hooks/exhaustive-deps warning the conditional raised. It is the same module-scope frozen empty data-table.tsx adopted for its own EMPTY_ROWS (objectui#4618), applied to the provider: 'object' siblings.

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 f4ed2387e (merge-base with origin/main): 7 file(s) changed outside .changeset/, read against 1841 pending declaration(s) that publish a body (2453 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3583.8 KB 3607.4 KB
Main entry chunk (gzip) 149.9 KB 350 KB
Entry file index-LEU9ycI0.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.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
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) 27.13KB 7.95KB
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) 570.09KB 136.40KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 228.91KB 63.54KB
fields (index.js) 261.24KB 66.29KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 41.23KB 11.53KB
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) 6.62KB 2.45KB
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.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
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) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 216.32KB 44.56KB
plugin-detail (index.js) 244.74KB 64.46KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 173.69KB 44.62KB
plugin-gantt (index.js) 173.03KB 43.07KB
plugin-grid (index.js) 231.41KB 63.57KB
plugin-kanban (index.js) 48.46KB 15.12KB
plugin-list (index.js) 116.42KB 28.89KB
plugin-map (index.js) 23.50KB 7.82KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 33.05KB 9.67KB
plugin-tree (index.js) 11.20KB 3.89KB
plugin-view (index.js) 90.32KB 22.76KB
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.81KB 3.58KB
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) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.06KB 2.68KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 21.42KB 7.05KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
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.26KB
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) 2.52KB 1.31KB
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) 19.82KB 7.15KB
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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 17a2920d98be1ebdc6cae65d2729b722acb7ff86
Local-runs: none

Inputs: card objectui#11242 (body, claim 5916838804, dev report 5919622186), PR objectui#11268 (body, 8 files, the net diff against main), and the 43 latest check-runs on the head: 40 success, 3 skipped (dependabot, Test (coverage), Test (coverage shard)), 0 failure, 0 in progress. Context reads at the head through the contents API only (ActionContext.tsx, useActionEngine.ts, RowActionMenu.tsx, containers.tsx, useExpression.ts, listConditional.ts, declaredPredicate.ts, predicateInput.ts, subjectPermissions.ts, ExpressionProvider.tsx, ConsoleShell.tsx, AppContent.tsx, the six route views) and the sibling changesets 11212-permission-gates-fail-closed.md / 4421-current-user-can-binding.md at the base. Nothing built, run or re-run.

① Derived judgments

  1. Fail direction of the two authored disabled legs: RIGHT. RowActionMenuItem (@object-ui/plugin-grid) and DataTableRowActionItem (@object-ui/components) hand useRowPredicate their key's own fail direction, fallback: true, the mechanism PR objectui#11237 gave page:header through evalHeaderPredicate / resolveDisabled. Every fault flips, not only not-loaded: the unbound-root arm (nope.deep == 1) is pinned DISABLED on both legs, as the 11237 changeset states for the header. This is Rider 1 5321072032 applied as the card's direction A asks, and the not-loaded arm additionally pins the engine's own reason (carries no permission data) in the report.
  2. The declared-gate test: RIGHT. useRowPredicate returns its fallback for an absent or '' predicate and evalRowPredicate returns it for a blank string, so a bare fallback: true would have DISABLED an undeclared gate. The guard hasDeclaredPredicate(gate) && verdict reads core's one definition of declaredness (objectui#3850 / objectui#3960): isBlankPredicateText is true for '', ' ' and the blank envelope, and toPredicateInput returns a boolean as-is, so a literal disabled: true stays declared and disabled while disabled: false stays enabled. Pinned for five undeclared spellings on both legs. Stricter than the header's own !src guard, which is the ③ observation below.
  3. The built-in disabledWhen control: RIGHT. BuiltinRowActionItem at the head still evaluates with fallback: false and predicates?.disabledWhen != null && isDisabled, the data-table twin the same, and the CONTROL pin holds both menus at enabled / enabled / disabled. Option B (flipping it) was not taken, as the card forbids. The BuiltinRowActionPredicates docblock said the fail-soft posture "renders the item disabled"; the code leaves it enabled, and the correction says so and names where the two families part. Comment-only, in a claimed file.
  4. The provider binding: RIGHT, including AGENTS.md [WIP] Enhance every detail of the designer #10. ActionProvider reads usePredicateScope().current_user, the ONE object buildExpressionScope publishes under all four aliases with its permissions under SUBJECT_PERMISSIONS, and writes it onto its runner with updateContext({ current_user }) during render, through a useMemo keyed on [runner, subjectKey, subjectPermissions]. subjectKey is the subject's JSON (the symbol-keyed map is not serialised, hence the second key); subjectPermissions is subjectPermissionsOf(subject), the EvalPermissions map ExpressionProvider caches per payload object in ADAPTED_PERMISSIONS, a WeakMap outside React. So a discarded-and-recomputed subject with the same content and payload triggers nothing it needs to, and a payload arriving or changing re-binds. The runner dependency is the discard-safe direction: a recomputed runner is a fresh, unbound object and its fresh identity is exactly what makes it get bound, while a same-identity runner already carries the binding on the object itself, not in React. Same shape as useActionEngine's engine memo since PR 11237 and as the runner memo above it. Only current_user is added; user / ctx.user / os.user stay the host's object, so the capability gate keeps reading systemPermissions. Pinned: runner re-check GRANTED runs, not-loaded and denied refused, and a real page:header click through the provider runner.
  5. useActionEngine's write kept: RIGHT, and measured rather than assumed. A4 (provider inside the scope, shared write off) 0 red, so it is redundant there; A5 (standalone runner, binding off) 1 red; P1 (provider ABOVE the scope) reads HIDDEN without it. The console's global provider is that above-scope shape, verified at the head: GlobalActionRuntimeProvider in ConsoleShell wraps AppContent, which mounts the ExpressionProvider inside it. The write is therefore the only writer for record:quick_actions under that runner. The comment now says exactly that.
  6. Base measurement and ablation: ACCEPTED as reported, not re-run. The six red arms at 615346d61 are the arms the card predicted (both row legs not-loaded and unbound, runner GRANTED refused, header click GRANTED refused), and each of the eight ablation legs matches its predicted red set, A8 covering the union of A3 and A4 plus the objectui#11212 quick-actions arms. The head's check-runs are the gate verdicts for the pin and the union.
  7. Accept-set and public-surface change: RIGHT, one widening. The runner bag of @object-ui/react's ActionProvider gains current_user: a runner gate spelled current_user.* now answers under any provider mounted inside the predicate scope where it faulted. No spelling is refused, no key or export moves, the disabledWhen posture and user.can on the runner bag are unchanged and now documented. Item 1 changes a gate's answer during loading and on any fault; it changes no accept set.
  8. ActionRunner.execute's comment: RIGHT and comment-only. evaluateCondition handles its own faults and answers true on this key, so a faulting disabled is refused ("Action is disabled"), which the runner pin measures in the not-loaded state; the catch is reached only by a throw from outside that handling. @object-ui/core publishes nothing.
  9. Docs, page-header.mdx: RIGHT. The row menu's items take the header's disabled direction in a grid and in a related list's table; the built-in Edit / Delete are named as the exception; the runner-bag asymmetry (current_user.can answers, user.can / ctx.user.can / os.user.can fault on the runner's own gates) is stated as the card asked, with no user binding added. The Doc Snippet Type Check and Skill Example Check runs on the head answer the two locally NOT MEASURED doc gates.

② Semver level

  • .changeset/11242-disabled-legs-fail-closed.md: @object-ui/components minor, @object-ui/plugin-grid minor, @object-ui/react minor. @object-ui/core is comment-only and correctly absent; Changeset Declaration, Changeset Bump Policy, Changeset Claim Re-read and Changeset Fixed Group Check are green on the head.
  • Clause-②: yes (widening) on the PR body's second line, copied from claim 5916838804, matches the one widening in ① item 7: yes takes at least minor, and @object-ui/react carries it.
  • minor on components and plugin-grid: item 1 widens nothing there and a stricter reading would give them patch. One changeset and one PR-level declaration, and the sibling 11212-permission-gates-fail-closed.md (components and plugin-detail at minor beside react's widening) is the precedent this repeats. Consistent and not under-declared: judged MATCHING.
  • The changeset prose carries the behaviour change an upgrader needs (an authored disabled that faults now disables; write current_user.can on runner gates). No narrowing arm, no migration or ADR-0087 marker owed.

③ Boundary flags

  • open_questions[0], the console's global ActionProvider above ExpressionProvider; the seat's answer A: SOUND. Verified at the head: PageView mounts ConsoleActionRuntimeProvider and RecordDetailView / ObjectView their own runtime inside the scope, while DashboardView, ReportView, ComponentNavView and RecordFormPage (its own ExpressionProvider, no provider) execute through the global runner only. On that runner the behaviour is the base's, no regression: current_user arrives with the first useActionEngine consumer, as before. The card's direction (bind at ActionProvider, same package) was executed as ruled; the residual is a property of the console's mount order, outside this claim's file surface, and B (the scope publisher binds upward) is the right named fix, with C rightly refused as console-only. PR body: TRUTHFUL. It names the four route families, says "as before", and scopes its zero to the dashboard header defs it read rather than claiming no gate can reach that runner. For the seat's record: that zero is a scoped reading, not a measured zero over an action:button or page:header an author could place on a component or dashboard page, so B is owed the day such a gate appears.
  • Deviation, PR title reworded (drops "on every page"): RIGHT; the residual makes it false for the console and the squash subject ships.
  • Deviation, docblock correction in a claimed file: ACCEPTED; same file, same defect family, named in the PR body, comment-only.
  • Deviation, model-free commit trailers and the removed comparison worktree: housekeeping consistent with the rules, nothing in the diff to judge.
  • Observation, the inline primary row action ignores disabled (RowActionInlineButton reads only visible, verified at the head): the declared-gate class (objectui#3812), not this card's fault-policy class. NOT owed under the filing gate at this head: probe P4 drove RowActionMenu with rowActionDefs directly rather than a public door (an object-grid / list_item schema through the console), and no producer of a primary list_item action carrying disabled is named, so reach: is unsupplied and Acceptance notes with carrier: none is the gate's own answer. Escalated to the seat as the nearer of the two: a literal disabled: true rendering an enabled button is a wrong answer from a spec-accepted key, and one render through object-grid with such a def is the single measurement that would supply reach: for a class-a card. The seat's call; not a finding against this PR.
  • Observation, page:header renders a blank disabled DISABLED: verified at the head. resolveDisabled tests !src without trimming and hands a whitespace source to evalHeaderPredicate with the true fallback, so since PR 11237 ' ' and the blank envelope disable the button while core's hasDeclaredPredicate and now both row legs call them not declared. NOT owed under the gate: no named producer of a whitespace-only disabled, no public-door measurement, and containers.tsx is outside this claim. It is residue of PR 11237 (before it the same blank read enabled), so it belongs on the seat's own note and rides the next containers.tsx claim; the fix shape is resolveDisabled asking hasDeclaredPredicate. Not a finding against this PR.
  • check:doc-snippets / check:doc-examples NOT MEASURED locally (docs build precondition): answered by the head's Doc Snippet Type Check and Skill Example Check, both success.

Implemented-by: claude/issue-11242-disabled-legs-fail-closed
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 30, 2026 21:15
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit 18d1a0a Sep 30, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11242-disabled-legs-fail-closed branch September 30, 2026 21:30
huangyiirene pushed a commit that referenced this pull request Sep 30, 2026
Carries main through PR #11267, #11268, #11269, #11271, #11273 and #11274.
No conflicts.

Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh
Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
…, mirror two chatbot keys, file eighteen runtime slots by name (objectui#6152, round 4) (objectstack-ai#11285)

Refs objectstack-ai#6152
Clause-②: yes (narrowing). The two mirrors widen `@object-ui/types/zod`
and the strict authoring face to keys the TypeScript face already
invited and the renderers read (`requestBody`, `floatingConfig`). The
four retirements (`label.content`, `report.chartConfig`,
`report.reportType`, `detail-view.autoDiscoverRelated`) narrow both
faces at once, under the startup no-gradualism rule. It is priced in
`.changeset/6152-unmirrored-round4.md` as `minor`, with the break
stated.

Round 4 of objectui#6152, dispatched under claim `5919877490` (the
`domain:devx` seat 2, session `session_01TdiauJaVCHuj45EzZGUxHh`, on the
maintainer's direct order). The rulings are the seat review
`5914490915`: Q1 B, Q2 A, Q3 B. ⛔ This is a draft from a dispatched dev:
do not mark it ready and do not enable auto-merge. The card stays open,
because `ObjectGridSchema`, the spec-derived pairs and three
`DataTableSchema` keys (below) are not this round's.

## What changed

1. **Q1 B: `LabelSchema.content` is retired.** It is `?: never` on
`form.ts` and a `retirementTombstone` on `form.zod.ts` that names the
kept spellings `text` and `label`. The `label` renderer drops its third
read limb (`schema.text || schema.label`). Re-measured: 0 documents
author it (JSON, Markdown JSON fences and typed literals); its only
author was a test in `form-renderers.test.tsx`, which now pins the
refusal. Which of `text` / `label` is canonical is not decided here.
2. **Q2 A: `DetailViewSchema` `activities`, `comments`, `history` and
`recordNavigation` go to `RuntimeOnlyDeclared` by name.** Each has a row
with its reason on `RuntimeOnlyNamedAllowList`, in round 3's shape. They
carry host-fetched runtime data, and `recordNavigation.onNavigate` is a
required function.
3. **Q3 B, under objectui#7654 ruling B: `displayMode` keeps its
TypeScript-only refusal.** It gets no zod arm, because stored designer
documents carry `displayMode: 'floating'` (pinned by
`chatbot-display-mode-retired.test.ts`). The ledger entries no longer
call the mirror half "owed"; the key stays listed by decision.
Separately, after a reader census for each:
- `ChatbotSchema.requestBody` is mirrored through the shared pick. All
three chatbot registrations read it (`body: schema.requestBody`).
- `ChatbotFloatingSchema.floatingConfig` is mirrored through a
module-private restatement of `FloatingChatbotConfig`. That restatement
judges the six members `FloatingChatbot` destructures, and carries the
`triggerIcon` tombstone's runtime half that the objectui#7654 tripwire
asked for.
4. **The three zero-read candidates are retired on both faces.** They
are `ReportComponentSchema.chartConfig`,
`ReportComponentSchema.reportType` and
`DetailViewSchema.autoDiscoverRelated`, each `?: never` plus a
`retirementTombstone`. `reportType`'s one in-code producer,
`specReportToPresentation` in `spec-report.ts`, no longer writes it, and
`LegacyReportPresentationLike` no longer declares it.
5. **`DataTableSchema`: 14 of 17 keys go to `RuntimeOnlyDeclared` by
name.** They are produced only in code, by `ObjectGrid`'s in-code
`data-table` node or `RelatedList`'s, and authored by no document. Three
keys fit none of the classes, so the round stopped at them (see
"Stopped" below).
6. **The pagination corpus fix, carried from round 3.**
`components-basic-pagination/with-item-count.json` no longer authors
`pageSize` / `totalItems`, which neither face declares and nothing
reads. The plaintext interface block on
`content/docs/components/basic/pagination.mdx` stops listing them, and
its section is retitled from "With Page Size" to "On a Later Page".
7. **Changesets.** One new: `.changeset/6152-unmirrored-round4.md`
(`@object-ui/types` minor, `@object-ui/components` minor, with the break
stated). Four dated, append-only corrections were added, each 2 lines
with frontmatter unchanged: `6639-objectgrid-title-mirrored.md` (the
stale "97 + 1 + 23" sentence),
`7654-floating-chatbot-trigger-icon-tombstone.md`,
`7655-chatbot-registration-authoring-faces.md` and
`9447-detail-view-handler-key-refusal.md`. Every other pending changeset
was re-read after the merges, including the 8 that landed since the
base, and none is made false by this round.

## Ledger totals, before and after

These are read by the file's own pins (`objectui#7279` derives every
figure) and re-counted with the TypeScript parser on the final head.

| ledger | before (`origin/main` `e420df3`) | after (`2cc4ab9`) |
| --- | --- | --- |
| `UnmirroredDeclared` | 9 entries / 44 keys: 3 / 14 spec-derived, 6 /
30 local | **6 / 20**: 3 / 14 spec-derived, 3 / 6 local |
| `RuntimeOnlyDeclared` | 4 / 9 | **4 / 27** |
| `RuntimeOnlyNamedAllowList` | 1 entry / 2 rows | 3 / 20 |
| cross-ledger | 2 of the 4 are in `UnmirroredDeclared`; union 11 = 9 +
2 | **1 of the 4**; union **9** = 6 + 3 |
| `KnownDrift` | 49 / 86 | 49 / 86, unchanged. This round does not edit
its total line; PR objectstack-ai#11269's 87 to 86 edit is kept as merged. |
| `WiderThanDeclared`, `MirroredUndeclared` | 3 / 3, 2 / 2 | unchanged |

The 24 keys that left `UnmirroredDeclared` moved by three routes, which
must not be added up as one repair: 2 were mirrored, 4 were retired, and
18 were reclassified by name. The reclassification is one move seen from
both ledgers: it is not new debt, and it mirrors nothing.

## Per-key table

| pair · key | measured (type-checker read census over 5548 sources;
authored census over tracked JSON, Markdown JSON fences and `type`
literals) | route |
| --- | --- | --- |
| `label` · `content` | 1 read (the third limb in `label.tsx`), 0
documents (1 test) | retired on both faces; the read is dropped |
| `report` · `chartConfig` | 0 typed reads. The untyped
`widget?.chartConfig` hits are plugin-dashboard's `DatasetWidget`
(`widget: any`, a dashboard widget), which plugin-report never imports.
0 documents | retired on both faces |
| `report` · `reportType` | 0 reads; one in-code producer
(`specReportToPresentation`); 0 documents | retired on both faces; the
producer write is removed |
| `detail-view` · `autoDiscoverRelated` | 0 reads (typed or untyped), 0
documents | retired on both faces |
| `chatbot` · `requestBody` | 3 reads (all three chatbot registrations)
| mirrored (shared pick) |
| `chatbot-floating` · `floatingConfig` | 1 read
(`floatingConfig={schema.floatingConfig}`); 6 of 7
`FloatingChatbotConfig` members read, and `triggerIcon` 0 | mirrored,
with a `FloatingChatbotConfig` restatement |
| `chatbot`, `chatbot-floating` · `displayMode` | 0 reads; stored
documents carry it | unchanged by ruling (TypeScript-only refusal) |
| `detail-view` · `activities` (7 reads), `comments` (4), `history` (7)
| host-fetched rows; 0 documents | `RuntimeOnlyDeclared` by name |
| `detail-view` · `recordNavigation` | 11 reads; its value carries a
required function | `RuntimeOnlyDeclared` by name |
| `data-table` · `disableInnerScroll`, `manualPagination`,
`manualSearch`, `manualSorting`, `page`, `rowActionDefs`,
`rowClassName`, `rowCount`, `rowStyle`, `search`, `selectionResetKey`,
`showAddRow`, `showSelectionCount`, `sort` | read by `data-table`;
produced only in code (`ObjectGrid`, `RelatedList`); 0 docs and 0
catalog documents | `RuntimeOnlyDeclared` by name; the reasons are on
the allow-list |
| `data-table` · `editable`, `singleClickEdit` | read; produced in code
by `ObjectGrid`; 0 documents, but `data-table.mdx` lists both and
teaches `editable: true` | **stopped**, ruling needed |
| `data-table` · `selectionStyle` | read; 0 producers and 0 documents (0
hits in objectstack too) | **stopped**, ruling needed |

## Runtime probe for the three zero-read retirements

AGENTS.md requires more than a source census, because leftover keys
reach a renderer as spread props. So the probe used the real
`SchemaRenderer` and the real registry, and varied only the key. It was
a one-off: the files were deleted afterwards and `git diff HEAD` is
empty.

- `report`: the DOM is identical with and without `chartConfig` plus
`reportType` (797 = 797 characters, byte-equal). Lit control: changing
`title` changes the DOM (805).
- `detail-view`: the DOM is identical with and without
`autoDiscoverRelated: true`, after normalising React's `useId` tokens.
The only raw difference was `radix-_r_5_` against `radix-_r_d_`. The
data-source and `fetch` call log is identical:
`getObjectSchema(account)` and two `security/explain` fetches. Lit
control: changing `title` changes the DOM (5943 against 5951).

## Ablations

The predictions were written at `4c272dc` before any run, and every leg
was restored with the blob equal to `HEAD` and `git diff HEAD` empty.

- **A1:** plant a `LabelSchema` literal carrying `content` into
`label.tsx`. Components `tsc --noEmit` exits 2 with exactly one TS2322
there (`'string' is not assignable to type 'undefined'`), as predicted.
This red direction also shows the consumer read the rebuilt `.d.ts`.
- **A2:** restore the four `zod/*.zod.ts` files to base `f61dab1`.
`unmirrored-declared-round4-6152.test.ts` reads `27 failed | 6 passed
(33)`, exactly as predicted, and `tsc -p tsconfig.test.json` exits 2
with its only error in the ledger reconciliation of
`zod-mirror-parity.test.ts`.
- **A3:** rename the allow-list row `rowCount` to `rowCountRenamed`.
`tsc -p tsconfig.test.json` exits 2 with exactly two TS2344, at the two
allow-list pins, as predicted.

## Verification on the final head `2cc4ab9`

This round resumed after two container restarts, so every run below was
redone on `2cc4ab9`. That head carries `origin/main` `e420df3`, merged
twice (never rebased): once through PR objectstack-ai#11275, and before that through
PRs objectstack-ai#11267, objectstack-ai#11268, objectstack-ai#11269, objectstack-ai#11271, objectstack-ai#11273 and objectstack-ai#11274. Each run went
through the shared verify lock with at most 2 workers.

- `@object-ui/types`: `type-check` (the `--noEmit`,
`tsconfig.examples.json` and `tsconfig.test.json` legs) exits 0; `vitest
run packages/types/` gives 299 files and 7498 tests passed; `build`
exits 0 (138 emitted files verified).
- Consumers, from the type-checker census: `type-check` exits 0 with 0
TS errors for `components`, `plugin-report`, `plugin-detail` and
`plugin-chatbot`. `vitest run packages/plugin-report/
packages/plugin-chatbot/` plus `form-renderers.test.tsx` gives 78 files,
827 passed and 7 skipped. All 228 `plugin-detail` test files, run in two
halves, give 227 files passed plus 1 skipped, and 2264 tests passed plus
8 skipped.
- Zod-face consumers: `vitest run examples/schema-catalog/
packages/cli/` plus the 17 app-shell files that import
`@object-ui/types/zod` or sit in `metadata-admin/previews/__tests__`
give 77 files and 2741 tests passed.
- Gates, all exit 0: `check:changeset-claims`,
`check:pending-changeset-literals`, `check-changeset-presence` (16
source files of 2 released packages, 1 changeset),
`check-changeset-no-major`, `check-changeset-fixed`,
`check-changeset-overwrite` (report-only; its 4 findings are the 4 dated
appends above), `check:control-bytes` (9717 files), `check:doc-fences`,
`check:doc-snippets` (697 of 697 blocks judged, 0 failed),
`check:doc-examples`, `check:doc-types`, `check:doc-example-ids`,
`check:doc-example-readers`, `check:skill-examples`,
`check:handler-key-reads`, `check:component-surface-parity`
(report-only), `check:designer-field-key-parity`,
`check:element-data-source-declaration`, `check:new-line-citations` (0
new), `check:prompt-keys`, `check:readme-exports`, `check:spec-symbols`,
`check:test-path-roots`, `check:unreferenced-sources` and
`check-type-check-coverage`. `doc-snippets` and `doc-examples` ran after
the scoped build their own `--build-filter` names (35 turbo tasks, all
successful).
- Lint, narrowed: `eslint --no-inline-config --format json` over the 16
lintable changed files gives 0 errors. All 16 were judged and 0 were
ignored, a population read from eslint's own output. The 39 warnings are
pre-existing `no-explicit-any`, and the diff adds no explicit `any`.
`eslint.config.js` declares no `parserOptions.project` or
`projectService`, and no custom rule in `eslint-rules/` reads the disk,
so this diff cannot move any untouched file's verdict. The repo-wide
`pnpm lint` is CI's.
- Governed surface: `check-governed-queue-guard.mjs --test` over the 23
paths reports NOT GOVERNED.
- NOT MEASURED:
- `check:sdui-registration-pins`: it needs a console build, and this
diff changes no registration.
  - The full `pnpm test` farm and repo-wide lint: CI's.
- `plugin-grid`: its code and tests are untouched. The 14 reclassified
keys moved between two test ledgers and no declaration changed.

## Stopped (ruling needed; reported in the card report with options)

- `DataTableSchema.editable` and `singleClickEdit`. `data-table` reads
both and `ObjectGrid` sets both in code, while no document authors them.
But `content/docs/components/complex/data-table.mdx` lists both in its
interface block and teaches `editable: true`. Filing them runtime-only
would contradict that page. Mirroring them would rest on no authored
document, and, from the source, an authored `editable: true` stages cell
edits locally and persists nothing without the `onRowSave` /
`onCellChange` function slots.
- `DataTableSchema.selectionStyle`. `data-table` reads it (`'always'` or
`'hover'`), and nothing authors or produces it in either repository.
- Noted, not narrowed: `ChatbotSchema.floatingConfig` has 0 reads on the
`chatbot` node (only `chatbot-floating` reads it), which makes it an
ADR-0049 narrowing candidate. The `chatbot` half of
`floating-chatbot-trigger-icon-retired.test.ts` pins its absence as a
tripwire.

## Parallel discipline

PR objectstack-ai#11269 and PR objectstack-ai#11273 edited `zod-mirror-parity.test.ts` in disjoint
hunks: the `KnownDrift` total line, the Kanban entry and one
`EXCLUSIONS` row. Both merges were clean. This round's ledger edits stay
in the `UnmirroredDeclared` / `RuntimeOnlyDeclared` /
`RuntimeOnlyNamedAllowList` blocks, their prose totals and its own
pairs' entries. Every prose total was reconciled to the measured count
above. The diff does not touch `zod/objectql.zod.ts`,
`zod/index.zod.ts`, `zod/nested-component-walk.ts`,
`strict-authoring-face.ts`, `zod/README.md`, `field-types.ts`, the
`DetailViewField` member, or `data-table.tsx` (read only).

## Acceptance notes

- 23 files, under the ~25-file size guard, so no pair was cut.
- Every pending changeset this round made false carries a dated append.
The ones it leaves true were re-read:
`7654-chatbot-display-mode-tombstone.md`, `6150-…`, `7804-…`, `6175-…`,
`7722-…`, `7947-…` and `8072-…`.

Session: `https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh`

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

---------

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

Projects

None yet

2 participants