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

fix(plugin-form): never write the columns the server owns, and send only dirty cells in a master-detail batch - #10154

Merged
os-tesla merged 2 commits into
mainfrom
claude/issue-10108-batch-payload-system-managed-fields
Sep 20, 2026
Merged

os-tesla merged 2 commits into
mainfrom
claude/issue-10108-batch-payload-system-managed-fields

Conversation

@os-tesla

Copy link
Copy Markdown
Collaborator

Fixes #10108

Clause-②: no — measured from the diff, not asserted: the package publishes . only, built from index.tsx, and index.tsx does not re-export sanitize. After a build on this head, grep -c SERVER_OWNED_FIELD_NAMES packages/plugin-form/dist/index.d.ts prints 0, and filterSystemFields / the rest of the face keep their signatures. Nothing an author writes changes; no accept set is relaxed; no public surface moves.

Step 1 — what reproduced on today's main, and what did not

Everything on the card was relayed. It was re-derived here on 87af769e9 before a line was changed, with a probe that asserted the presence of the injected columns and the absence of ones the same filter already refused — so the finding is a live injection, not an absence a fixture invented.

The payload-building sites. Both paths the card names run through ONE builder, sanitizeFormData in packages/plugin-form/src/sanitize.ts:

  • master-detail POST /api/v1/batch — MasterDetailForm's submitViaBatch hands the parent values and each child collection to buildMasterDetailEditBatch / buildMasterDetailBatch in packages/plugin-form/src/masterDetailTx.ts; the child rows go through its toWritable, which calls sanitizeFormData. LineItemsPanel's save is the second caller of the same builder.
  • plain record edit PATCH — ObjectForm's submit chain calls sanitizeFormData(formData, objectSchema) and hands the result to saveWithOcc.

What reproduced, exactly as written. One filter, two answers, in the same call on the same fixture:

column before this branch
owner_id, owning_business_unit_id, created_by, updated_by emitted
created_at, updated_at, organization_id, id refused (the control)

That split is the whole diagnosis: the refusal is a hand-written NAME roster, and the emitted four were simply never in it. Nothing about the schema, the field types or the readonly flags distinguishes the two rows of that table — the injected columns are neither hidden nor readonly, because ownership is reassignable.

The card's two claims about the plain edit form both reproduced. A form declaring three business fields and no ownership column rendered two inputs and still sent owner_id — so the payload injects it rather than echoing a displayed field. And every child row was rewritten in full, including the two the user never touched.

What did not reproduce as stated: the card says the message naming the refused field "only appears in the network response". It also reaches the browser console — the renderer logs [form] write denied: with the whole error before it substitutes the user-facing text. See the secondary item below.

What shipped — both tiers

1. One roster, and the invariant it expresses. The write-side roster in sanitize.ts and the render-side roster in autoLayout.ts were two hand-written copies of the same list. They drifted: the render copy had learned to drop owner_id, the write copy never did. They are now the same object, SERVER_OWNED_FIELD_NAMES, whose header carries the rationale — a form never writes a field it refuses to render. The unified list adds owning_business_unit_id, company_id, space, _id, __v, created, modified, modified_by and the camelCase ownership spellings to both sides.

⚠️ That is an observable narrowing on the render side too: an auto-laid-out form that was rendering one of those as an editable input no longer does. It is declared in the changeset.

2. The flag, because a name list cannot shut the class. sanitizeFormData now refuses any field the object schema marks system: true — the registry's own mark on everything it injects, the same flag isSystemManagedField in @object-ui/types reads. The next injected column needs no edit here. This is the half the triage comment asked for: the roster alone would let the next one bite the same way.

3. Dirty fields only, in the batch. A master-detail edit batch now sends only the cells that differ from the loaded snapshot, and a row where nothing moved emits no operation at all (every row with an id used to be routed to "update" whether or not anything had moved). The comparison resolves everything it cannot settle towards SENDING — 1000 and '1000' read as different, objects compare by serialization, and a snapshot that does not show a row already linked still gets its FK re-asserted. Saying "changed" about an equal pair costs one column on the wire; saying "unchanged" about a changed pair would discard a user's edit with a 200 back, and that is the one failure this diff must not have.

4. The builder no longer trusts its caller. buildMasterDetailBatch / buildMasterDetailEditBatch apply the roster to the PARENT payload too. Both production callers already hand it a sanitized payload, but that is the caller's habit, not the builder's contract — and a payload builder trusting what it was handed is this card's whole defect.

The measured end state for the card's own scenario — one cell changed on one of three child rows:

{"operations":[
  {"object":"kpi_entry_sheet","action":"update","id":"SHEET1","data":{"subject":"bu_sw_sales","status":"draft"}},
  {"object":"kpi_entry_line","action":"update","id":"a","data":{"actual_value":900}}],
 "atomic":true}

Secondary item: NOT done, and why

The card asks for the server's message to reach the user. Left alone, per the dispatch's own instruction for when it needs more than a small local change — and it does, in the direction that matters: doing it here would reverse a ruling, not fill a gap.

The form renderer substitutes a localized form.noPermissionToSave for every permission denial on purpose. Its comment records why: rendering the server text verbatim put raw diagnostics in front of end users, untranslated and leaking the object's machine name and the record id, and that was ruled and repaired — the record is objectstack#3821, restated for a 403 at objectui#5210. Printing the refusal text again would reintroduce that for every permission denial in the product, not only this one.

⭐ And the seam for doing it correctly already exists, on the other side of the wire: declaredUserMessage reads userMessage, the producer-side marking a hook sets at throw time to say "this text is for the end user" (objectstack#9934). ⇒ The correct change is for the platform's ownership-transfer refusal to carry userMessage, after which this console surfaces it with no code change here at all. That is an objectstack change, outside this card's repo. Reported to the PM rather than filed.

Meanwhile the diagnosis is not invisible: the renderer logs the full error under [form] write denied: before substituting.

Scope boundary I did not cross

The parent operation of a master-detail batch, and the plain record edit PATCH, still send the full sanitized form values rather than a dirty diff. The card scopes "send only dirty fields" to the batch, and the batch's child rows are where the snapshot lives: the parent's persisted record is fetched inside ObjectForm and never handed back out, so a parent dirty diff needs a new seam through the form's submitHandler contract — a wider change than this card, on the most-used write path in the product, where a false-clean silently drops a user's edit. The 403 no longer happens either way: it was caused by the roster, not by volume.

Verification

Reverse verification, with the fix committed first so the restore leg has a real restore point. The three implementation files were reverted to the branch point, each mutation proven on disk by comparing git hash-object against the HEAD blob (three distinct hashes, no empty reads), restored under a trap, and the restore proven by git diff HEAD being empty:

MUTATED packages/plugin-form/src/sanitize.ts      HEAD=9bbbffaca432 -> disk=e6d07c267cfa
MUTATED packages/plugin-form/src/autoLayout.ts    HEAD=634f120185aa -> disk=9373fc11e754
MUTATED packages/plugin-form/src/masterDetailTx.ts HEAD=faa37e406e6c -> disk=d7ab7883d82a
grep -c owner_id packages/plugin-form/src/sanitize.ts  ->  0      (the defect itself: the roster never named it)
MUTATED RUN   Tests  11 failed | 11 passed (22)     exit 1
RESTORED      all three files match their HEAD blob, git diff HEAD empty
RESTORED RUN  Tests  22 passed (22)                 exit 0

All 11 reds are the new and retriaged pins, and they cover both paths — the /batch rows and the plain record edit form PATCH row both went red — plus two system-managed fields beyond owner_id (owning_business_unit_id, created_by / updated_by) and one that no roster in this repository names, refused by its system flag alone. No rebuild was needed for the ablation: all three files are consumed as sources through relative imports inside the same package, so nothing reads a dist/.

Checks on this head (origin/main merged in, so PR #10151's bundle-analysis repair for incident #10148 is included — that gate and its ceilings are untouched by this branch):

check command result
package tests pnpm exec vitest run packages/plugin-form/ 105 files, 1021 passed, 1 skipped, exit 0
typecheck pnpm --filter @object-ui/plugin-form run type-check (src + tsconfig.test.json) exit 0
lint pnpm --filter @object-ui/plugin-form lint exit 0 — 136 files, 0 errors, 899 warnings (the package's standing no-explicit-any baseline; the three in the new test file match its neighbours)
changeset presence node scripts/check-changeset-presence.mjs exit 0
changeset no-major / claims / pending-literals check:changeset-*, check:pending-changeset-literals exit 0
line citations pnpm check:new-line-citations exit 0 — 0 new citations
control bytes pnpm check:control-bytes exit 0
test path roots, unreferenced sources, metadata write doors, handler key reads the matching check:* exit 0

Declared narrowing on the repo-wide lint. pnpm lint is turbo run lint, i.e. each package's own eslint .; the run above IS that command for the one package this diff touches, over its whole tree rather than only the changed files. Every changed file lives in packages/plugin-form (plus one .changeset/*.md, which eslint does not read). eslint.config.js configures no parserOptions.project and no projectService, so type-aware linting is not enabled and no rule in this repository can read across a file boundary — a change inside this package therefore cannot move the verdict on any file it does not touch. The remaining packages' lint runs are CI's.

Every exit code above was captured before any pipe. What is NOT measured here: remote CI, which has not run on this head yet.

Acceptance notes

  • The lifecycle bookkeeping columns (locked, instance_state, deleted, is_deleted) are deliberately left OUT of the roster. They are plausibly author-writable — a workflow form driving record state writes business meaning, not provenance — and nothing has measured them refusing a write. Adding one on the strength of the pattern alone would silently drop a value a form was asked to persist, which is the failure direction this module must not take.
  • Three fixtures in masterDetailTx.test.ts were retriaged rather than deleted, because each pinned the pre-fix full-row rewrite. One of them, emits only the parent update when children are unchanged, was false under its own name before this branch: the batch also carried a full-row rewrite of the child. Its snapshot was also missing the back-reference FK the real loader always returns, so it has been given the runtime's shape, and a new row pins what the builder does with a snapshot that lacks it.
  • The sanitize half of update carries routing id but a sanitized data payload was kept able to fail: the computed columns it asserts absent DIFFER from the snapshot, so only the sanitizer can be keeping them out — the dirty diff would let both through.
  • Noted, not filed: packages/types/src/system-fields.ts holds a third roster of the same family (display-oriented) and packages/plugin-detail a fourth (inline-edit "never editable"). Each has a written reason to be separate and none is wrong today. Successor: none — nothing in flight touches them, and folding four purpose-specific rosters together is a decision, not a cleanup.
  • Hands-off files named in the dispatch were not touched: recordActivityFeed.ts and the record:history row-cap path, packages/plugin-calendar/**, useSettledSchema*, and the three publish-drafts call sites in app-shell.

🤖 Generated with Claude Code

https://claude.ai/code/session_018HrVaotisyhgmot9o2MLRq


Generated by Claude Code

…nly dirty cells in a master-detail batch

The write-side roster in sanitize.ts and the render-side roster in
autoLayout.ts were two hand-written copies of one list, and they drifted: the
render copy had learned to drop owner_id, the write copy never did. A form
showed the user business inputs only and sent back every ownership and audit
column it had read.

The platform cannot tell a round-trip of the value it just served from an
attempted ownership transfer, so an echoed owner_id is a 403 for any caller
without the transfer grant — and a master-detail save commits as one atomic
batch, so one echoed column on one row refuses the parent and every sibling.

One roster now serves both readings, sanitizeFormData also refuses any field
the schema marks `system: true`, and a master-detail edit batch sends only the
cells that differ from the loaded snapshot — a row where nothing moved emits no
operation at all.

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3059.3 KB 3104.5 KB
Main entry chunk (gzip) 146.9 KB 350 KB
Entry file index-BXRitcBV.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.08KB 14.50KB
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.17KB 66.48KB
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.48KB 6.99KB
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 #10154, card objectui#10108

Reviewed by the domain:ui execution seat (Seat: domain:ui#2, session session_018HrVaotisyhgmot9o2MLRq) at 2026-09-20T16:13Z. Implemented-by: an os-dev subagent of this session · Reviewed-by: this seat. ⛔ Landing is held until every check has reported — see the last section.

The diagnosis, re-derived by this seat on origin/main rather than taken from the report

The report's central claim is that two hand-written copies of one refused-field roster had drifted: the RENDER side had learned owner_id, the WRITE side never did. That is the whole defect, and it is what explains the card's most puzzling observation — that owner_id appears in the payload while sitting in no declared form section. Two commands, uncapped, run against origin/main (⛔ not a working tree):

git grep -c owner_id origin/main -- packages/plugin-form/src/sanitize.ts     →  0 hits
git grep -n owner_id origin/main -- packages/plugin-form/src/autoLayout.ts   →  :236  'owner_id',

and autoLayout.ts:213 opens const SYSTEM_FIELD_NAMES = new Set([ around it, read by filterSystemFields at :248/:253/:292. ⇒ the form refuses to DRAW the column and then sends it back. Confirmed, on this seat's own instrument.

What the fix does, and why both tiers are genuinely present

  • The two rosters become one object, SERVER_OWNED_FIELD_NAMES, under a header that states the invariant it exists to hold — 「a form never writes a field it refuses to render」 — and records the drift as its cause.
  • ⭐ The durable half: sanitizeFormData branches on the spec system flag first whenever a field definition is available, so the NEXT injected column needs no edit here. That is the class fix the triage boundary asked for, and it is what stops this card's list from being the next bite's candidate roster.
  • The header also names what is deliberately out — locked, instance_state, deleted, is_deleted — with the failure-direction argument: adding one on the strength of the pattern alone would silently drop a value a form was asked to persist. ⭐ A refusal roster that explains its own boundary is the part that survives the next maintainer.
  • Both batch builders apply the roster to the parent payload too, so the builder no longer trusts its caller.

The reverse verification is the load-bearing evidence

Fix committed first, then the three implementation files reverted to the branch point, each mutation proven on disk by git hash-object against the HEAD blob, restored under a trap, restore proven by an empty git diff HEAD. Mutated: Tests 11 failed | 11 passed (22). Restored: Tests 22 passed (22).

⭐ The 11 reds cover both paths the card names — the /batch rows AND the plain-PATCH row — plus two system-managed fields beyond owner_id and one that no roster in the repo names, refused by its system flag alone. That last pin is the one that proves the class fix is a class fix and not a longer list.

Clause-② — no, measured three ways, ⛔ not asserted

The diff adds one export, SERVER_OWNED_FIELD_NAMES. It does not reach the public face: the package entry is src/index.tsx (vite.config.ts lib.entry), that barrel takes seven named imports from ./autoLayout with the roster not among them and names ./sanitize nowhere, and autoLayout.ts aliases it to a non-exported const. The dev's artefact reading agrees — grep -c SERVER_OWNED_FIELD_NAMES dist/index.d.ts prints 0 after a build.

⚠️ One of this seat's own probes was a dead instrument and is reported as such: a first grep for packages/plugin-form/src/index.ts returned nothing, which this seat was about to read as 「the barrel doesn't export it」. The file does not exist — the entry is index.tsx. A control word (grep -c "^export" → 30, and the barrel demonstrably matching autoLayout) is what turned the zero into a reading.

check-clause2-carriers.mjs --pair 10154 exits 0, both limbs no. The card-side carrier had to be re-hung first: this seat's dispatch comment 5750777481 opened ## Claim — … as a heading with no line beginning Claim: and no Branch: line — the same defect it had just repaired on objectui#10058. That is this seat's defect twice in one round, ⛔ not the dev's.

Two open questions, both ruled, neither left dangling

1. The secondary item (surface the server's refusal text) — ⛔ NOT done, and correctly not done. The console's substitution of a localized form.noPermissionToSave is a ruled behaviour: printing the server text verbatim leaked the object's machine name and the record id, repaired at objectstack-ai/objectstack#3821 and restated for a 403 at objectui#5210. Option B — relaxing the renderer for this error class — would reintroduce exactly that leak, so it is refused. Ruled A: the producing side sets userMessage (the seam declaredUserMessage already reads), after which this console surfaces it with zero code change here. Filed as objectstack-ai/objectstack#19397. ⛔ This seat does not follow that card's PR.

Also recorded there and on the card: the card's line 「the message only appears in the network response」 is imprecise — the renderer logs [form] write denied: with the whole error to the browser console before substituting. Invisible to the end user, ⛔ not to a developer.

2. The parent op and the plain PATCH still send every sanitized field — ⛔ so objectui#10108's 「only dirty」 half is only PARTLY delivered, and this seat is not glossing that. Child rows are diffed; the parent and the plain form are not, because the parent's persisted record is fetched inside ObjectForm and never handed back out. Ruled A for this card, B as its own: the 403 is shut on both paths and shut durably, and extending the diff touches the most-used write path in the product, where a false CLEAN silently drops a user's edit and returns 200. That deserves its own pins and its own reverse verification, ⛔ not a rider. Filed as objectui#10156, carrying the requirement that any new comparison resolve an unsettleable field towards sending, as this PR's does.

Also accepted from the report

The masterDetailTx.test.ts fixture 「emits only the parent update when children are unchanged」 was false under its own name before this branch — the batch also carried a full-row rewrite of the child, and the snapshot omitted the back-reference FK the real loader always returns. Repairing it inside this PR is correct: the diff was already in that file, and a fixture that lies about the behaviour this card is fixing is not a separate card.

⛔ Not filed, agreed: packages/types/src/system-fields.ts and plugin-detail's inline-edit roster are a third and fourth member of this family. Each has a written reason to be separate, none is wrong today, and folding four purpose-specific rosters together is a decision, not a cleanup. Successor: none — recorded here rather than as an orphan card.

Landing

⛔ Held. At this reading #10154 is draft with 10 of 41 checks still pending and 0 failed. check-governed-merges.mjs --pr objectstack-ai/objectui#10154 exits 0 — 0 of 6 paths hit the register, ordinary queue landing applies. It lands on a full set of conclusions and not before; ⛔ never armed while a check is unreported.


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants