Repository navigation
Description
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.
维护者速读
- 是什么:表单视图上的顶层
columns(整张表单几列)只有 Setup 的预览画布会读;上线后的命名表单页和公开表单都不读,只读每个分组自己的columns。作者在画布上看到两列,发布后不是。 - 要你定:A 让表单页也读它(只改 ui 渲染器,约 S);B 按 ADR-0049 退役这个键(约 M,收窄契约)。
- 席位推荐 A:spec 自己的退役处方文案和预览画布都已经在教作者写这个键,补一个读点比退役便宜。
- skills: objectstack-ui says a form column count is never authored, while FormViewSchema.columns exists — the model tells users "two columns" is impossible #37629 不等这张卡:技能先改成两种结局下都成立的说法。
Measurement
- Form-level
columnstakes effect on no end-user surface. Its only reader is the Setup preview canvas (ui/packages/app-shell/.../previews/ViewPreview.tsx,buildFormPreviewSchemapassescolumns: body.columns). Named form pages and public forms both render throughui/apps/console/src/components/FormPage.tsx, which reads only each section'scolumns(normalizeColumns(sec.columns), default 2) and never the form-level key;/meta/viewand the public form payload do not fold it either. - Section-level
columns(1–4) takes effect on named and public forms. - The object's default new/edit (modal or page) reads no form view (
recordFormNavigation.tsresolveRecordFormChrome); it lays out by the object'sfieldGroups, which have no columns key (renderer-derived: up to 6 fields 1 column, else 2–3). - The liveness ledger row
view.jsonform.columnsreadslive, 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
objectstack-fleet commentedon Nov 26, 2026
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/main33a31dc, no server booted. The ruling is the maintainer's; nothing here rules.Premise re-check: the card's four readings hold
columnshas 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.tsxreturns seven lines, all on a section (normalizeColumns(sec.columns)at 861, default 2 at 669, the grid classes at 3345)./f/:slugand/forms/:nameboth mountFormPage(ui/apps/console/src/App.tsx:360,468,InternalFormRoute.tsx:97,125).columns(1 to 4) is drawn byFormPageon both routes (same lines).ui/packages/app-shell/src/utils/recordFormNavigation.ts:146-150and:214-218.packages/spec/liveness/view.jsonform.columnsisliveonModalForm.tsx:247-258 / DrawerForm.tsx:478, hosts that no longer receive a stored form view. The citation is stale; the verdictliveis true only for the canvas.One correction to the options table
Option A's cell says "section
columnsstill wins inside a section". The canvas's rule says otherwise for one case: inui/packages/plugin-form/src/autoLayout.ts,sectionedFormColumnsmakes the form's declaredcolumnsthe grid width, andsectionedGridLayoutclamps each section's count to it (Math.min(sectionColumnsFor(...), grid); docblock: "the form view's owncolumnsoutranks how a section fills it"). An undeclared section takes the form's count, not 2. So under A:columns: 1with a sectioncolumns: 2draws one column on the page (two today);columns: 3with 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
formtype whose body isFormViewSchema, derived by reference. Card ② (form metadata type: define, register and serveformitems (ADR-0159, card ②) #37086, p1, dispatched) is editingpackages/spec/src/ui/view.zod.tsand the form doors now; card ③ (Console reads and editsformitems: Setup public forms re-pointed, the PR #36784 designer becomes theformeditor in Studio (ADR-0159, card ③) #37087, blocked on ②) editsFormPage; the old shapes are tombstoned in major 19 (card ⑤). The key under decision is carried into theformtype as it stands.buttons,layout: "horizontal",drawerSide/drawerWidth;defaultsapply only on the full-page /new; a tabbed form with subforms losesdefaultTab/tabPosition#26843 (form-view keys that save and publish and are not drawn:layout: 'horizontal', tabbed) closed with PR fix(ui): a form view's layout horizontal puts labels beside fields, and the form page draws tabbed views as tabs #27222, which madeFormPagedraw them. spec(ui):layout: 'inline' | 'grid'onobject-form/FormViewparse green and render asvertical— enforce-or-remove (ADR-0049) #20221 went the other way (PR feat(spec)!: formlayoutaccepts only vertical | horizontal — theinlineandgridarms retired (#20221) #20262 removedlayout: 'inline' | 'grid') on the measurement that no renderer gave them a behaviour; its refusal text prescribes the key now under decision ("for a multi-column form setcolumns").objectstack/{examples,packages,skills},hotcrmandcloudfor a numericcolumnsbesidesections/groupsfinds no form view that declares it (one hit, a page, not a form view). The measured producer is the model in the draft-door trial the card names. Stored rows in customer environments are not measured.Size, by precedent
ui· 1 PRspec+ui· 1 PR, contract-tier L2form,formViews.*, form items, and after #37086 theformtype). 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-formpage block with acolumnsthe 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
columnsare unmeasured, and under A those change on the page to what their Setup preview already showed (the two cases above).After the ruling
uicard:FormPagelays out throughsectionedGridLayout; tests on a named and a public form for the two cases above; the ledger row re-cited to the page and the canvas; sequenced with Console reads and editsformitems: Setup public forms re-pointed, the PR #36784 designer becomes theformeditor in Studio (ADR-0159, card ③) #37087 on the shared file. skills: objectstack-ui says a form column count is never authored, while FormViewSchema.columns exists — the model tells users "two columns" is impossible #37629's skill text can then state the form-level key plainly. The spec accepts any integer from 1 while the renderer clamps at 4: left as found, a separate narrowing if wanted.formitems (ADR-0159, card ②) #37086 or inside the major-19 batch: tombstone, conversion, ledger, canvas, theFORM_VIEW_LAYOUT_RETIREDtext, contract-tier L2.objectstack-fleet commentedon Nov 26, 2026
epic:#5027#1 · hotlong · session_01Q4EjjM2Aa1YzhREMhrBbSP
Ruling: letter A · maintainer 「A 让表单页照列数显示」 2026-11-26T18:37Z
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.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
uicard,FormPagelaid out throughsectionedGridLayout, tests on a named and a public form, the ledger row re-cited, sequenced with #37087 on the shared file.objectstack-fleet commentedon Nov 26, 2026
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:FormPagelays out through plugin-form'ssectionedGridLayout; tests for the two changed cases; ledger row re-cited; sequenced with #37087).needs-user-decisionremoved; this decision card closes as completed.