Skip to content

[Decision] FormViewSchema.columns (form-level) is read only by the Setup preview: enforce it on the form page, or retire it #37638

Done

Description

@objectstack-fleet

epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

Ruled: 7200681767 · letter A · 2026-11-26T18:38Z

Carries the enforce-or-remove fork found while working #37629; #37629 keeps the skill-text fix that holds under both outcomes. Filed by the seat of epic objectstack-ai/cloud#5027 from its card thread's measurement (read-only, origin/main @33a31dc7, no server booted).
Filing gate: class c · reach: named producer = the 2026-11-26 Haiku 5.5 draft-door trial, case 2 run 1 wrote columns: 2 on a form view; accepted, publishable, and silently not read by the named form page.
Dedupe: FormViewSchema columns, FormPage columns, form view columns preview, form.columns liveness — no open card.

维护者速读

Measurement

  1. Form-level columns takes effect on no end-user surface. Its only reader is the Setup preview canvas (ui/packages/app-shell/.../previews/ViewPreview.tsx, buildFormPreviewSchema passes columns: body.columns). Named form pages and public forms both render through ui/apps/console/src/components/FormPage.tsx, which reads only each section's columns (normalizeColumns(sec.columns), default 2) and never the form-level key; /meta/view and the public form payload do not fold it either.
  2. Section-level columns (1–4) takes effect on named and public forms.
  3. The object's default new/edit (modal or page) reads no form view (recordFormNavigation.ts resolveRecordFormChrome); it lays out by the object's fieldGroups, which have no columns key (renderer-derived: up to 6 fields 1 column, else 2–3).
  4. The liveness ledger row view.json form.columns reads live, citing ModalForm/DrawerForm, which no longer receive stored form views: the citation is stale.

Options

What Size Contract
A (recommended) FormPage reads form-level columns as the grid width through plugin-form's sectionedGridLayout, the canvas's rule; section columns still wins inside a section; tests S, ui/** only none (enforces a declared key)
B Retire the key per the spec-property-retirement playbook: tombstone, ADR-0087 conversion, ledger, canvas, and the FORM_VIEW_LAYOUT_RETIRED guidance that today says "set columns" M narrowing; owes a contract-review-tier L2

Four axes

  • Real business need: layout requests like "two columns" are common; the trial model reached for this key unprompted. Section columns already cover per-group layout, so the form-level key is a default, not a new capability.
  • Long-term soundness: declared ≠ enforced today (ADR-0049). Either option ends that; A keeps one rule shared by canvas and page, B removes a key the spec's own guidance prescribes.
  • Preventing AI authoring errors: today the key is accepted and silently ignored, the worst case. A makes the accepted value true; B makes it a loud refusal. Both fix it.
  • Startup focus: A is the smaller change and adds no surface; B costs more for the same end.

Governing text: ADR-0049 (enforce-or-remove); packages/spec/src/ui/view.zod.ts FormViewSchema.columns docblock ("Number of columns for the form body").

Activity

  1. added
    needs-user-decision
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjM2Aa1YzhREMhrBbSP

    Decision thread for this card (opened by the coordinator for the seat above), increment written before the ruling, 2026-11-26T16:42Z. Read-only at origin/main 33a31dc, no server booted. The ruling is the maintainer's; nothing here rules.

    Premise re-check: the card's four readings hold

    1. Form-level columns has one reader. grep -rnE "columns: *(formView|form|view|body|def|config)\??\.columns" ui --include=*.ts --include=*.tsx (tests excluded) returns one line: ui/packages/app-shell/src/views/metadata-admin/previews/ViewPreview.tsx:125 (columns: body.columns). grep -n columns ui/apps/console/src/components/FormPage.tsx returns seven lines, all on a section (normalizeColumns(sec.columns) at 861, default 2 at 669, the grid classes at 3345). /f/:slug and /forms/:name both mount FormPage (ui/apps/console/src/App.tsx:360,468, InternalFormRoute.tsx:97,125).
    2. Section columns (1 to 4) is drawn by FormPage on both routes (same lines).
    3. Record create and edit read no form view: ui/packages/app-shell/src/utils/recordFormNavigation.ts:146-150 and :214-218.
    4. The ledger row packages/spec/liveness/view.json form.columns is live on ModalForm.tsx:247-258 / DrawerForm.tsx:478, hosts that no longer receive a stored form view. The citation is stale; the verdict live is true only for the canvas.

    One correction to the options table

    Option A's cell says "section columns still wins inside a section". The canvas's rule says otherwise for one case: in ui/packages/plugin-form/src/autoLayout.ts, sectionedFormColumns makes the form's declared columns the grid width, and sectionedGridLayout clamps each section's count to it (Math.min(sectionColumnsFor(...), grid); docblock: "the form view's own columns outranks how a section fills it"). An undeclared section takes the form's count, not 2. So under A:

    • form columns: 1 with a section columns: 2 draws one column on the page (two today);
    • form columns: 3 with undeclared sections draws three (two today).
      Both are what the Setup canvas already shows for the same document.

    Three readings the card does not carry

    Size, by precedent

    Lane · PRs Precedent
    A ui · 1 PR PR #27222, +779 −93 over 9 files for two keys on the same page; this is one key and the layout rule exists. No conversion, no contract change. Same file as card ③ (#37087): one of the two rebases.
    B spec + ui · 1 PR, contract-tier L2 PR #20262, +700 −25 over 13 files for an enum-value narrowing; a key removal adds a tombstone and an ADR-0087 conversion over every form carrier (form, formViews.*, form items, and after #37086 the form type). It edits the schema card ② is rewriting, so it lands after ② or inside the major-19 batch.

    os-decision-facets
    ① Long-term soundness: A removes a special case, the console form page's hand-rolled grid, by putting the page on the one layout rule the dialog, the record form, the tabbed and wizard layouts and the canvas already share. B removes a key, and leaves the object-form page block with a columns the form document no longer has: one vocabulary becomes two. Form width plus section density is also how Dynamics 365 models it (columns on the tab, columns on the section); Salesforce has the section level only.
    ② Real business pull: no first-party form declares it; one measured producer (an AI draft). Small either way. What exists today is the gap itself: Setup shows two columns, the published form does not.
    ③ Preventing AI authoring errors: today is the silent case. A makes the accepted value true. B refuses loudly, and must also rewrite the layout refusal that sends authors to this key.
    ④ Startup focus: B is the nominal "remove over maintain", yet the rule A needs is already maintained for four hosts, and B spends a conversion and a contract review on a schema that a p1 card is rewriting this week.
    Prior rulings read: FormViewSchema.columns,sectionedGridLayout,FormPage → 0 ADR hits (check-prior-rulings.mjs --card 37638); read by hand: ADR-0049, ADR-0050, ADR-0159, #20221, #23740, #26843; thread: none. None answers this question.
    Self-check: on ① alone the letter is A; ②③④ do not flip it.

    Recommendation: A

    Same letter as the seat, reached from ① and the #26843 precedent, not from size. B is not taken because it splits the form vocabulary and lands a narrowing in the middle of the form-type move for no customer the scan can name.

    Confidence gaps: code reading only, nothing driven in a browser; stored customer forms that declare a form-level columns are unmeasured, and under A those change on the page to what their Setup preview already showed (the two cases above).

    After the ruling

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjM2Aa1YzhREMhrBbSP

    Ruling: letter A · maintainer 「A 让表单页照列数显示」 2026-11-26T18:37Z

    • Who and where: Jack (hotlong), by tapping the option on the decision card in this card's decision thread (project "cloud [WIP] Fix error in step four of the action run #5", thread 「裁决表单顶层列数去留」), at 2026-11-26T18:36Z. The quoted words are the option's label as he read it; he typed nothing else and attached no condition.
    • The question he answered: 「表单的整体列数:让上线表单照着显示,还是取消这个设置?」 Option A as shown: 「上线的命名表单和公开表单按整体列数排版,和 Setup 预览一致;只改界面,一个小 PR,不动契约。」 Option B (not taken): retire the key.
    • What was in front of him: this card and the pre-ruling increment above (comment 7198002852), including the correction that the form-level count is the grid width and caps a section's count.
    • Size of the letter taken (the card's size column): S, ui/** only, no contract change.

    Recorded by the decision thread; it rules nothing of its own. The exit from the decision box and the implementation card are the lane seat's (epic:#5027#1). Execution as written under "After the ruling" in comment 7198002852: one ui card, FormPage laid out through sectionedGridLayout, tests on a named and a public form, the ledger row re-cited, sequenced with #37087 on the shared file.

  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

    Close-out (2026-11-26T18:42Z): ruled A by the maintainer (ruling comment 7200681767, 「A 让表单页照列数显示」). The implementation is filed as #37665 (ui: FormPage lays out through plugin-form's sectionedGridLayout; tests for the two changed cases; ledger row re-cited; sequenced with #37087). needs-user-decision removed; this decision card closes as completed.

  5. removed
    needs-user-decision
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions