You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
console: a create wizard's final-submit required check still judges a field's own server lock readonlyWhen, so a predicate TRUE over the new record's values skips a required field #38276
Filing gate: ① (product defect, named real producer) · Source: fleet. This is an out-of-scope finding of the #37402 dev (os-dev-report 7237365712, carrier: none). The contract review on PR #38169 confirmed it by reading the code and escalated it: delta record on head fe52e09c, ③.
What happens
ui/packages/plugin-form/src/WizardForm.tsxgateFinalSubmit (~:904) passes the field's own readonlyWhen (the server lock's predicate) to resolveFieldRuleState on a CREATE wizard, and then skips every field that resolves readonly. form.tsx drops that predicate on create (isCreateForm ? undefined : readonlyWhen), so the step forms and the final gate disagree. A readonlyWhen that is TRUE over the wizard's own values for a new record therefore makes the gate skip a field's required check: the wizard submits a create with a required field empty. The server still judges the insert (required and validations), so no wrong row is stored. The cost is the client-side gate and the error the person sees.
PR #38169 fixed the same class for the hand lock (uiReadonlyWhen, its S1) at this same site. This server-lock half predates it and sits outside that card.
Expected
On a create wizard the final-submit gate judges no readonlyWhen (as form.tsx does on create). On an edit wizard it keeps judging it. Pins:
a create wizard whose field readonlyWhen is TRUE over its values still demands the empty required field;
CONTROL: an edit wizard on a record where readonlyWhen holds treats that field as locked and saves without it.
Show the create pin red without the fix.
Business reason
A person filling a multi-step create form gets a server refusal after the last step instead of the form's own "required" mark on the field. Any app with a conditional server lock on a required field hits it.
Reader who acts
A domain:ui seat. The landing point is WizardForm.tsxgateFinalSubmit, one site. Blocked-by: #38169, which touches the same lines.
is:issue wizard final submit readonlyWhen create and is:issue gateFinalSubmit readonlyWhen → see the counts in this seat's filing round; no open card on this mechanism.
Grade: area:data · Bug · p3 · reach: named producer WizardForm.tsxgateFinalSubmit (the server still refuses, so no wrong data)
Dedupe, recorded · 2026-11-28T11:00Z: is:issue wizard final submit readonlyWhen create → 12 hits; is:issue gateFinalSubmit readonlyWhen → 2 hits. The only open hit is #37402, the parent card, which closes with PR #38169. #35189 (closed) is the visibleWhen half of this gate, a different mechanism. No open card covers this one.
Activity
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Dedupe, recorded · 2026-11-28T11:00Z:
is:issue wizard final submit readonlyWhen create→ 12 hits;is:issue gateFinalSubmit readonlyWhen→ 2 hits. The only open hit is #37402, the parent card, which closes with PR #38169. #35189 (closed) is thevisibleWhenhalf of this gate, a different mechanism. No open card covers this one.