Skip to content

feat(plugin-form): a multi file / image field takes the whole row in the form auto-layout - #34698

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-34668-multi-file-full-row
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-34668-multi-file-full-row

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #34668

repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:表单自动排版里,对象字段声明 multiple: true 的文件 / 图片字段默认占整行;弹窗、整页表单、分页签表单、向导表单走同一条规则。单文件 / 单图仍占一格。
  • 为什么改:3 列的新建弹窗里,多图 / 多附件字段原来只占一格(测得每行 [2, 3, 3] 个,即与普通字段同宽)。详情页早已按同一判据让多文件字段占整行,这次表单与它对齐(裁定 6939109581「只放宽多文件附件」)。
  • 风险与回滚:只改默认宽度,不加元数据键、不改导出;spec 里 FormField.span 的说明文字同步改为如实描述(只改文字,不改键和取值);作者写了 span: 'full' 或 colSpan 的照写的来(显式 span: 'auto' 不收窄,colSpan: 1 才保持一格)。回滚即还原 autoLayout.ts 一个提交。
  • 先看:ui/packages/plugin-form/src/autoLayout.ts(新增 isWideFormField,resolveColSpan 与 twelfthsFor 改为问它);ui/packages/plugin-form/src/__tests__/multiFileFullRow-34668.test.tsx;packages/spec/src/ui/view.zod.ts 中 FormField.span 的一句说明。
  • 两分钟验证:pnpm --dir ui exec vitest run packages/plugin-form/src/__tests__/multiFileFullRow-34668.test.tsx,预期 17 passed。
  • 需要你做的:无,席位落地。

What changes

  • ui/packages/plugin-form/src/autoLayout.ts: a module-private isWideFormField(field) answers the span: 'auto' default. It returns true for a wide type (isWideFieldType, unchanged), and for a file / image field (bare or field: spelling) whose object field declares multiple: true. This is a parallel copy of plugin-detail's MULTI_FILE_FIELD_TYPES / isWideDetailField, with a docblock that points at it. plugin-form does not import from plugin-detail.
  • resolveColSpan (the CSS-grid path behind applyAutoColSpan, applyAutoLayout and sectionFormLayout) and twelfthsFor (the twelve-track path of sectionedGridLayout) now ask isWideFormField where they asked isWideFieldType. The precedence is unchanged: span: 'full', then an authored colSpan, then the default. The author's width still wins.
  • Where multiple is read. It is read off the object-field definition that the object-bound builders stash on the FormField (FormField.field, set by fromObjectSchema and by ObjectForm's flat builder). It is never read off FormField.multiple, which a form view entry can restate. This is the card's "只读对象字段的 multiple". Reading the stash means no caller had to change: every host that lays out through these helpers gets the rule, and the diff does not touch ModalForm.tsx, DrawerForm.tsx, ObjectForm.tsx, TabbedForm.tsx or WizardForm.tsx.
  • No change to WIDE_FIELD_TYPES, isWideFieldType's signature or answer, or the package's index.tsx / core.ts exports. No metadata key is added.
  • ui/packages/plugin-form/README.md: the wide-kinds sentence names the multi-file rule.
  • packages/spec/src/ui/view.zod.ts: the FormField.span .describe() said that under 'auto' "only textarea, markdown, html, richtext and repeater resolve to the full column count". That is no longer true, so it now reads "only textarea, markdown, html, richtext and repeater, plus a file or image field whose object field declares multiple: true, resolve to the full column count (…); an authored colSpan still wins over that default (colSpan: 1 keeps such a field in one cell)." The colSpan clause was corrected in round 2: resolveColSpan and twelfthsFor check span: 'full', then colSpan, then isWideFormField (which covers both the wide types and multi file / image). So an explicit span: 'auto' does not narrow any of them, and only an authored colSpan does. This is description text only: no schema, key, value or default changes, so Clause-②: no and Metadata-protocol: none stand (L1-a REWORK 6941942506, claim amendment 6941965048). Regenerated output: content/docs/references/ui/view.mdx (the FormField and FormSection.fields rows). The JSON Schema output is gitignored, and check:authorable-surface regenerates it and is green.
  • .changeset/34668-form-multi-file-full-row.md: @object-ui/plugin-form patch and @objectstack/spec patch (the description text).

Tests

New file ui/packages/plugin-form/src/__tests__/multiFileFullRow-34668.test.tsx, 17 tests. The rendered cases read per-row counts from the real form renderer's classes at @md / @2xl / @4xl, the same reading as dialogContainerColumns-34607.

  • Acceptance 1, dialog: flat create dialog (three wide), full dialog (four wide), undeclared sections, the object's fieldGroups, and a mixed-density (twelve-track) dialog. Multi image and multi file take the row ([1, 1, 1]).
  • Acceptance 1, page hosts: ObjectForm sectioned, ObjectForm flat (span equals the inferred grid width), TabbedForm, WizardForm.
  • Acceptance 2: single image, single file and multi-value select keep one cell ([2, 3, 3]). An authored colSpan: 1 keeps a multi image in one cell. span: 'full' still widens a single file.
  • Helper layer: both spellings; only the object field is read (FormField-level multiple alone does not widen); multiple on select / lookup does nothing; authored colSpan wins; twelve-track twelfths; applyAutoLayout.
  • Acceptance 3: no existing pin was edited. Before this change, no existing test in the package pinned a file / image cell width (searched for field:file / field:image in the package's tests). The full package suite is green unedited (below).

Acceptance notes

  • View-level multiple. A form view entry restating multiple over the object field changes the widget (sectionFields merges fd.multiple). It does not change the width, because the ruling reads the object field only. A view that turns a single-file object field into a multi-file widget therefore keeps one cell, and the author can widen it with span: 'full'. This follows the ruling and is recorded here, not changed.
  • video / audio. These map to the field:file widget. If their object field declared multiple: true, they would widen in the form but not in the detail view, which matches on the raw type. The spec's multi-capable types are select / lookup / file / image, so this is not reachable through validated metadata. No card filed.
  • ModalForm.tsx docblock. The DIALOG_DEFAULT_COLUMNS docblock lists the wide kinds via isWideFieldType and does not mention multi-file. It is still true as written. It was left alone because the file belongs to the sibling 表单弹窗:加放大图标,原地展开为整页,与记录抽屉的放大一致 #34604 work.
  • Studio designer. app-shell's ObjectFormDesigner previews widths with isWideFieldType on the raw type, so its preview does not show the multi-file rule. Not a defect class under the card. Noted only.
  • Unchanged inputs. An inline customFields member, or a form mounted with no object schema, carries no stashed object field and keeps the type-only answer.

Verification

Head: eba9da32, a clean merge of origin/main f02f4f6 into 31c82383 (no hand resolution). Since f261912b the plugin-form code and tests in this PR are unchanged. The blocks after the spec block were taken on f261912b; the merge block was taken on eba9da32.

After the origin/main merge (head eba9da3)
git merge --no-ff origin/main (f02f4f63, 18 commits): clean, no conflict
  incoming touched packages/spec and plugin-form's ModalForm.tsx / ObjectForm.tsx
overlap-check: VERDICT clean exit 0
pnpm turbo run build --filter='@object-ui/plugin-form^...' --concurrency=2   lock VERDICT command-exit 0
pnpm --filter @objectstack/spec check:generated   lock VERDICT command-exit 0: All 14 generated artifacts are up to date
pnpm --filter @object-ui/plugin-form run type-check   lock VERDICT command-exit 0
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-form/   lock VERDICT command-exit 0
  Test Files  237 passed (237)
  Tests  2653 passed | 1 skipped (2654)
Spec text (head 31c8238)
pnpm --filter @objectstack/spec check:generated --fix   (rebuilds spec first)   lock VERDICT command-exit 0
  before: check:docs stale; after: gen:docs, check:docs re-check green
  the describe edit, the regenerated view.mdx (2 lines) and the changeset are in ONE commit, 31c82383
pnpm --filter @objectstack/spec check:generated (31c82383)   lock VERDICT command-exit 0: All 14 generated artifacts are up to date
dispatch-gates --commands on 31c82383: 115 families; --ran: 115 derived / 115 run / 0 NOT-MEASURED
  sequential batch: 108 exit 0. Seven non-zero in the batch, each exit 0 when re-run alone after the batch:
    exit 3 -> 0: lint check:doc-formula-expressions, lint check:doc-security-posture, spec check:skill-examples,
                 check:docs-transcript-drift, check:dual-build-cjs-loads, check:lean-entry-closure
    exit 1 -> 0: spec check:generated (re-run under the lock)
  cause of the batch non-zeros: not measured (the worktree's dependency closure was not prebuilt)
pnpm check:skill-frame-freshness exit 0; pnpm check:changeset-fixed exit 0
pnpm --dir ui run check:new-line-citations exit 0 (0 new citations)
ui scripts vitest under the lock: Test Files 171 passed | 2 skipped, VERDICT command-exit 0

Round 1: CI on ed2ed090 failed Type Check · source gates (check:docs: view.mdx out of date; that commit carried the describe edit without the regenerated page). d48fa36d was green on every check.

New test file (17/17) and ablation
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-form/src/__tests__/multiFileFullRow-34668.test.tsx   (head f261912b)
 Test Files  1 passed (1)
      Tests  17 passed (17)
os-verify-lock: VERDICT command-exit 0

Ablation (on the 15-test version of the file, commit a52c87ea): the multi-file arm of isWideFormField replaced by `return false;`
via node scripts/ablation-replace.mjs (the test imports ../autoLayout from src, so no dist leg)
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 808ab16b3893 -> 59410cc1ad0c
 Tests  12 failed | 3 passed (15)
   (the 3 that stay green are the unchanged controls: single file / image and multi select keep one cell,
    FormField-level multiple alone does not widen, multiple on select / lookup does nothing)
ablation-replace: ok restored: blob == HEAD (808ab16b3893) and `git diff HEAD` is empty

Before / after for a multiple: true image in the 17-field create dialog (three wide), per row at @md / @2XL / @4XL: before (the ablated leg, which is origin/main's rule) [2, 3, 3], one cell. After: [1, 1, 1], the whole row.

Package suite and type-check
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-form/   (no existing test edited)
 Test Files  235 passed (235)
      Tests  2633 passed | 1 skipped (2634)
os-verify-lock: VERDICT command-exit 0
  (taken on a52c87ea; the later commit f261912b adds only two tests to the new file and the changeset)

pnpm --filter @object-ui/plugin-form run type-check   (tsc --noEmit && tsc -p tsconfig.test.json; head f261912b)
os-verify-lock: VERDICT command-exit 0
  tsconfig.test.json --listFilesOnly lists multiFileFullRow-34668.test.tsx: 1 hit
Local gate subset (dispatch-gates --commands, narrowed by diff)
exit 0  node scripts/check-adr-0087-registration.mjs --base origin/main
exit 0  node scripts/check-adr-0087-registration.mjs --self-test
exit 0  node scripts/check-changeset-no-major.mjs --base origin/main
exit 0  node scripts/check-closing-keyword-parity.mjs
exit 0  node scripts/check-closing-keyword-parity.mjs --self-test
exit 0  node scripts/check-comment-mask-corpus.mjs
exit 0  node scripts/check-empty-changeset.mjs --base origin/main
exit 0  node scripts/check-empty-changeset.mjs --self-test
exit 0  node scripts/check-sdui-manifest.mjs
exit 0  node scripts/check-sdui-manifest.mjs --self-test
exit 0  node scripts/ci/snapshot-next.mjs --self-test
exit 0  node scripts/pm/check-governed-queue-guard.mjs --self-test
exit 0  node scripts/pm/release-rehearsal-clone.mjs --self-test
exit 0  node scripts/release-pending-publish.mjs --self-test
exit 0  pnpm --filter @objectstack/spec run check:duration-unit-keys
exit 0  pnpm check:adr-anchors
exit 0  pnpm check:changeset-gate-self-tests
exit 0  pnpm check:closed-ceremony-text
exit 0  pnpm check:cross-package-test-inputs
exit 0  pnpm check:dispatcher-error-vocabulary
exit 0  pnpm check:driver-memory-census
exit 0  pnpm check:engine-double-contract
exit 0  pnpm check:gitlink-declared
exit 0  pnpm check:nul-bytes
exit 0  pnpm check:published-files
exit 0  pnpm check:query-options-erasure
exit 0  pnpm check:refd-timer-probe
exit 0  pnpm check:registry-log-declared
exit 0  pnpm check:rest-log-spy-declared
exit 0  pnpm check:skill-identifier-liveness
exit 0  pnpm check:test-source-alias
exit 0  pnpm check:tier-file-adoption
exit 0  pnpm check:type-check-coverage
exit 0  pnpm check:type-check-debt
exit 0  pnpm check:undeclared-dep-imports
exit 0  pnpm check:watch-hint-literal
exit 0  pnpm check:where-matcher
exit 0  pnpm check:changeset-fixed
exit 0  pnpm --dir ui exec vitest run scripts/ (lock)
exit 0  pnpm --dir ui run check:new-line-citations   (VERDICT new-cross-file-line-citations: 0 new citation(s))

dispatch-gates --ran: 38 derived famil(ies) accounted for, 38 run, 0 NOT-MEASURED (head f261912b)

Every other family (the wide-population and roster families, Type Check UI, Test UI, Lint UI, the full farm) is CI's. See the PR check-runs.

Overlap: node scripts/pm/overlap-check.mjs reported VERDICT clean exit 0 (origin/main fecd2e9 merges cleanly; 0 open PR heads share a file).


Generated by Claude Code

…the form auto-layout

Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-Authored-By: Claude <noreply@anthropic.com>
…plyAutoLayout; add changeset

Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

Final green head for L1 · 2026-11-17T07:39Z
Head-sha: f261912b6faf98420ad8dc44238cc743a562c763

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

席位核对 · L1 (seat 3, L1-a) · 2026-11-17T07:42Z

L1: REWORK
Head-sha: f261912
Card: #34668 · claim 6940544964 · ruling 6939109581 (on #34607) · os-dev-report 6941857166

The code, tests, changeset and CI hold, and points (a) to (e) in the request all read true (table below). One must-fix: the published spec text for span: 'auto' names the closed set of types that take the whole row, and this PR adds two to the set without updating it.

Must-fix

  1. The spec's span description is made false. packages/spec/src/ui/view.zod.ts:4043 (the FormField.span .describe()) says: "'auto' (default — omit it): the renderer sizes the field from its widget type × the current column count — only textarea, markdown, html, richtext and repeater resolve to the full column count". It is generated into content/docs/references/ui/view.mdx:225 (FormField) and :355 (FormSection.fields[number]). It is also what an author's editor and the AI authoring path read for this key. After this PR, a file / image field whose object field declares multiple: true also resolves to the full column count under span: 'auto', so "only …" is false.
    • Fix: amend the sentence in view.zod.ts, for example "… only textarea, markdown, html, richtext and repeater, and a file / image field whose object field declares multiple: true, resolve to the full column count". Then regenerate the spec's generated artifacts (the reference page plus whatever JSON Schema and manifest output carries the description; check:published-files and the docs gates will name any you miss). Add '@objectstack/spec': patch to the changeset.
    • Paper: the claim surface does not cover packages/spec/** or the generated docs, so the claim needs an amendment naming those paths. I ran check-governed-merges --test on packages/spec/src/ui/view.zod.ts, content/docs/references/ui/view.mdx and autoLayout.ts: NOT governed. Description text only changes no schema, so Clause-②: no / Metadata-protocol: none stand.
    • If the seat would rather carry this as a follow-up card than widen this PR into packages/spec, the seat says so on the PR and I take that as closing this item.

Should-fix

None.

Readings that hold

Item Reading
PR shape Draft, base main, Fixes #34668, with no other closing verb. No ! and no (narrowing), so no dogfood battery is owed.
Scope 4 files: autoLayout.ts (+49/−3, one new private function, three call-site lines and docblocks), README.md, the new test, the changeset. All inside claim 6940544964. No caller changed, so the "callers … only where they must pass the object field" clause was not needed.
(a) Where multiple is read isWideFormField reads field.field?.multiple === true, never field.multiple. field.field is the object-field definition fromObjectSchema stashes (sectionFields.ts:356, withFormObject(withFollowedParentObject(withHomeAmountSource(field, …))) over ctx.objectSchema.fields[name]). The same holds for ObjectForm's flat builder (ObjectForm.tsx:1031). A view entry's multiple is merged into base.multiple (sectionFields.ts:485) and never into base.field, so it moves the widget but not the width. That matches ruling 6939109581 ("只读对象字段的 multiple") and is pinned ("FormField-level multiple alone does not widen").
(b) WIDE_FIELD_TYPES Unchanged, as card 不做的 asks. isWideFieldType(type) answers the same, and its exports from index.tsx / core.ts are untouched. MULTI_FILE_FIELD_TYPES is a separate module-private set, in both spellings (file, image, field:file, field:image).
(c) Hosts Only resolveColSpan (behind applyAutoColSpan, applyAutoLayout, sectionFormLayout) and twelfthsFor (sectionedGridLayout) change. Every host lays out through these, so no host file is touched. The new test renders the flat dialog (3 and 4 wide), undeclared sections, fieldGroups, a mixed-density dialog, ObjectForm sectioned and flat, TabbedForm and WizardForm. Each reads per-row counts from the real renderer's classes at @md / @2xl / @4xl.
(d) Author wins The order in both helpers is unchanged: span: 'full', then an authored colSpan (clamped), then isWideFormField. Pinned: colSpan: 1 keeps a multi image in one cell, and span: 'full' still widens a single file.
(e) No plugin-detail import Confirmed. It is a parallel copy whose docblock points at isWideDetailField, and the criterion matches (MULTI_FILE_FIELD_TYPES + the object field's multiple === true).
Clause-② / Metadata-protocol no / none in the claim, PR body and changeset. No export and no key; the default only changes inside the renderer.
Changeset patch on @object-ui/plugin-form, the only published package whose src moved. Each bullet matches the code. With the must-fix, it also names @objectstack/spec.
Tests 17 new tests. The ablation (multi-file arm → return false) turned 12 of 15 red; the 3 that stayed green are the unchanged controls. Restored with git diff HEAD empty. Package suite: 235 files / 2633 tests, with no existing test edited. Card acceptance 3: no existing pin was touched. Type-check exits 0, and the test file is in tsconfig.test.json. 38/38 derived gates.
UI strings None added.
Docs (besides the must-fix) ui/packages/plugin-form/README.md is updated. The ModalForm.tsx DIALOG_DEFAULT_COLUMNS docblock names the wide kinds through isWideFieldType, which still answers the same, so it stays true. content/docs/ui/views.mdx:524 does not list types.
Acceptance 1 and 2 are pinned in the dialog and every page host. The jsdom-level thumbnail overlap is not measured in a browser. The row counts ([1, 1, 1] vs [2, 3, 3]) are the pinned reading.
Tier check-governed-merges --pr 34698: NOT governed, 342 lines. Tier S, lands through o3-B.
CI on this head 52 check-runs: 39 success, 13 skipped, none failed or pending. Test UI 16/16 shards plus the aggregate, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, Lint & Repo Gates and TypeScript Type Check are all success.

Notes

  1. Studio designer preview (ObjectFormDesigner.tsx:497, isWideFieldType(toFormFieldType(type))) does not show the multi-file rule. Declared in the PR. A p3 card would bring the preview in line.
  2. The os-dev open question (an HTML-comment signed line vs os-dev.md) is for the seat. It does not affect this verdict.

…full column count under 'auto'

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

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json f02f4f63707bd05ae2186ca63babd54bfe37abcc → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c7e6985f871775e1b9b396c3582e6d27ce59ed08 — the merge of head eba9da323e37e236c05fce3a1962cc7af95513f1 into base f02f4f63707bd05ae2186ca63babd54bfe37abcc, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c7e6985f871775e1b9b396c3582e6d27ce59ed08 && git checkout c7e6985f871775e1b9b396c3582e6d27ce59ed08
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f02f4f63707bd05ae2186ca63babd54bfe37abcc eba9da323e37e236c05fce3a1962cc7af95513f1 && git checkout -B drift-repro f02f4f63707bd05ae2186ca63babd54bfe37abcc && git merge --no-ff eba9da323e37e236c05fce3a1962cc7af95513f1

node scripts/docs-audit/affected-docs.mjs --json f02f4f63707bd05ae2186ca63babd54bfe37abcc

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

席位核对 · L1 delta (seat 3, L1-a) · 2026-11-17T09:08Z

L1: ACCEPT
Head-sha: d48fa36
Supersedes: L1 REWORK 6941942506 on f261912b6faf98420ad8dc44238cc743a562c763
Card: #34668 · claim 6940544964 · claim amendment 6941965048 · os-dev-report 6943607190 (fix round 1, this head)

The one must-fix is closed. The delta is two commits on top of f261912b and touches exactly the three paths the amendment names. Everything read on f261912b is unchanged on this head. No must-fix and no should-fix.

Must-fix 1 (REWORK 6941942506): closed

Item Reading
Spec text packages/spec/src/ui/view.zod.ts FormField.span .describe() now reads "only textarea, markdown, html, richtext and repeater, plus a file or image field whose object field declares multiple: true, resolve to the full column count (repeater reaches it through the wide field:grid widget it maps to); an author's explicit span wins". Both halves are true against autoLayout.ts on this head: isWideFormField reads the object field's multiple === true over the four file/image spellings, and span: 'full' and an authored colSpan are checked first in both helpers. One line changed. The key, its values and its default are unchanged.
Generated docs content/docs/references/ui/view.mdx changes exactly the two span rows (FormField and FormSection.fields[number]), and they match the describe text byte for byte. The JSON Schema output is gitignored, so there is nothing else to commit. check:generated is green on this head (report 6943607190) and in CI (Type Check · source gates). git grep for the old closed-list sentence finds it only in the dated packages/spec/CHANGELOG.md history entries, which this PR must not edit.
Changeset It now names '@objectstack/spec': patch beside '@object-ui/plugin-form': patch, with one paragraph: "Description text only: the key, its values and its default are unchanged." That matches the diff.
Claim amendment 6941965048 widens the surface to the view.zod.ts describe text, the regenerated reference page (and JSON Schema) and the changeset. The delta touches exactly view.zod.ts (+1/−1), view.mdx (+2/−2) and the changeset (+3).
Clause-② / Metadata-protocol no / none stand: the delta changes description text only. The amendment and the changeset agree.

Readings that hold

Item Reading
Delta shape git log f261912b..d48fa36d: ed2ed090 (the describe edit) and d48fa36d (the regenerated page). There is no main merge. git diff origin/main...d48fa36d is 6 files, +342/−9: the 4 files read on f261912b plus view.zod.ts and view.mdx. autoLayout.ts, its test and the README are byte-identical to f261912b, so points (a) to (e) of the first record stand.
The ed2ed090 red check:docs failed because the describe edit was pushed before the regen. d48fa36d carries the page, and the job is green on it.
Tier check-governed-merges --pr 34698: NOT governed, 351 lines. Tier S, lands through o3-B.
CI on this head 72 check-runs: 61 success, 11 skipped, none failed or pending. That includes Type Check · source gates, every other Type Check and Lint family, Test Core 8/8 plus the aggregate, Test UI 16/16 plus the aggregate, Build Core, Build Docs, Build & E2E UI, Live E2E UI, Check Changeset (both runs), Spec property liveness, Flag docs affected by code changes, PR-body guards and Governed Surface Queue Guard.

Notes

  1. Seat L2 is next. Amendment 6941965048 sends the published spec text to the seat's L2 at CONTRACT_REVIEW_TIER on this head, after this delta. I have told the seat, and o3-B lands after that PASS.
  2. The liveness note in packages/spec/liveness/view.json (form-row span read points, re-read 2026-10-14) cites WIDE_FIELD_TYPES as what widens 'auto'. It is a dated read-point record and is not made false: that set is unchanged, and the note does not claim to be a closed list. The next liveness re-read can add isWideFormField as a read point (report 6943607190 records it as a carrier-less note).
  3. The earlier notes stand: the Studio designer preview does not show the multi-file rule (p3), and the signed-line question is the seat's.

… span, still wins over the 'auto' full row

Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

席位核对 · L1 delta (seat 3, L1-a) · 2026-11-17T09:47Z

L1: ACCEPT
Head-sha: 31c8238
Supersedes: L1 ACCEPT 6943670952 on d48fa36dd0260757074d70dfdd2dbde1b12dc191
Card: #34668 · claim 6940544964 · claim amendment 6941965048

The delta is one commit (31c82383, parent d48fa36d), with no main merge. It narrows the FormField.span describe clause from "an author's explicit span wins" to "an authored colSpan still wins over that default (colSpan: 1 keeps such a field in one cell)". It regenerates the two view.mdx rows and changes one changeset sentence to match. Everything else is byte-identical to d48fa36d, so the earlier records stand. No must-fix and no should-fix.

Item Reading
The new clause is true In both helpers in autoLayout.ts (unchanged), an authored colSpan (clamped) is checked before isWideFormField. The test pins "colSpan: 1 keeps a multi image in one cell". The narrower wording is more exact than the old one: under 'auto' the only explicit width left to win is colSpan, since span: 'full' is the other value of the key itself.
Generated rows content/docs/references/ui/view.mdx changes exactly the FormField and FormSection.fields[number] span rows, which match the describe text byte for byte. Type Check · source gates (check:generated) is green on this head.
Changeset The "spec text says the same" sentence now quotes the new clause. '@objectstack/spec': patch and '@object-ui/plugin-form': patch are unchanged.
Surface / Clause-② Same three paths as amendment 6941965048. Description text only, so Clause-②: no / Metadata-protocol: none stand.
Tier NOT governed, 351 lines, Tier S (the file list is unchanged from d48fa36d).
CI on this head 68 check-runs: 59 success, 9 skipped, none failed or pending. That includes Type Check · source gates, every Type Check and Lint family, Test Core 8/8 plus the aggregate, Test UI 16/16 plus the aggregate, Build Core, Build Docs, Build & E2E UI, Live E2E UI, Check Changeset, Spec property liveness, Flag docs affected by code changes, Check Documentation Links, PR-body guards and Governed Surface Queue Guard.

The seat's L2 (per the amendment) reads this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 31c82383f4c5bcc3679146c21b14374e82e9b644
Local-runs: none
Scope: packages/spec/src/ui/view.zod.ts + ui/packages/plugin-form/src/autoLayout.ts, content/docs/references/ui/view.mdx, ui/packages/plugin-form/src/tests/multiFileFullRow-34668.test.tsx, .changeset/34668-form-multi-file-full-row.md
Security-touching: no

Read: card #34668 (body and all six comments: triage 6939389827, claim 6940544964, report 6941857166, claim amendment 6941965048, fix-round report 6943607190), PR #34698 body and its six files, the net diff against main (merge-base fecd2e9, 342 lines), and the 68 check-runs on this head: 59 success, 9 skipped, 0 failure. Nothing was built or run.

① Derived judgments

  1. Accept set of FormField.span: unchanged — right. The one-line hunk in view.zod.ts edits the string inside .describe() and nothing else. z.enum(['auto', 'full']).default('auto') is byte-identical on both sides. No key, value, default, refinement or export moves. Spec property liveness and Type Check · source gates are green on this head.
  2. The describe text against autoLayout.ts, clause by clause — right.
    • "plus a file or image field whose object field declares multiple: true ... resolve to the full column count": isWideFormField returns true when MULTI_FILE_FIELD_TYPES (file, image, field:file, field:image) has the type and field.field?.multiple === true. resolveColSpan then returns grid; twelfthsFor returns 12. True on both layout paths.
    • "object field", not the form entry: the read is field.field (the stashed object-field definition), never FormField.multiple. The text says exactly that. The helper test only the object field is read pins it.
    • Single file stays one cell: the text names only the multiple: true case under 'only'; the code falls through to the density arm. Pinned by [2, 3, 3] for logo and contract.
    • "an authored colSpan still wins over that default (colSpan: 1 keeps such a field in one cell)": both functions test span === 'full', then field.colSpan != null, then isWideFormField. So the order is span: 'full' → colSpan → the multi-file default, and colSpan: 1 yields 1 cell (CSS-grid path) or one section column (twelve-track path, 12 * 1 / sectionColumns). True on both. Pinned by the rendered colSpan: 1 case and the twelve-track helper case.
    • "'full': resolves to the form grid's full column count": unconditional and first in both functions. True, unchanged.
  3. The earlier wording was wrong and this head corrects it — right. d48fa36d published "an author's explicit span wins". span has two values and 'auto' is the default being described, so that sentence named no real override. 31c82383 names colSpan, the key that does win. The correction is the accurate one.
  4. Generated rows: content/docs/references/ui/view.mdx — right. Two rows change (FormField.span, and the same key under FormSection.fields); each carries the describe string verbatim. check:docs runs inside Type Check · source gates, green here (it was red on ed2ed090, before the regeneration).
  5. Public surface of @object-ui/plugin-form: one behaviour change, no API change — right. isWideFormField and MULTI_FILE_FIELD_TYPES are module-private. isWideFieldType keeps its signature and answer, WIDE_FIELD_TYPES is untouched, no export is added. The behaviour change is the default width of a multi-file field in every host that lays out through resolveColSpan / twelfthsFor.
  6. Card conformance — right. 要做的 1 and 2 are met; both 不做的 are respected (file / image are not in WIDE_FIELD_TYPES; no metadata key). The criterion is a faithful parallel of isWideDetailField read on main: same four spellings, same multiple === true on the object field.
  7. README sentence — right. It states the multi-file rule, the single-file cell and that an authored span / colSpan is drawn as written. All three agree with the code.

② Semver level

  • @objectstack/spec: patch — right. The package publishes changed description text (and the JSON Schema generated from it), so a changeset is owed; nothing an author can write changes, so patch is the level.
  • @object-ui/plugin-form: patch — right under AGENTS.md Post-Task step 3: the level follows the Metadata-protocol kind alone, and none takes patch. The feat title does not set the level.
  • Clause-②: no — right. No arm; no accept set widens or narrows. The line is line-initial in both the PR body and the changeset body, and the two agree with the claim and its amendment.
  • Metadata-protocol: none — right, and I tested it against semantic ("a changed meaning or default"). The default value 'auto' is unchanged, and 'auto' meant, before and after, "the renderer sizes the field". What moves is the renderer's answer for one field shape, which the describe text reports. What a metadata author can write is identical. none holds.
  • Check Changeset is green on this head. The changeset body matches the head's wording ("an authored colSpan still wins over that default").

③ Boundary flags

  • SQL push-down: not applicable. The diff is client-side layout arithmetic plus text. No query, no id materialisation, no in-app join.
  • Dev flag, view-level multiple: answered — correct as built. A form entry restating multiple changes the widget and not the width. The ruling and the card say "只读对象字段的 multiple", and the describe text says "object field", so the published sentence is not over-claiming. span: 'full' remains the author's lever.
  • Dev flag, video / audio: answered — not reachable. Both map to field:file, but Field.multiple in packages/spec/src/data/field.zod.ts is declarable only on select, lookup, user, file, image and the option types, and is refused at parse elsewhere. The describe's "file or image" is therefore exact for validated metadata.
  • Dev flag, ModalForm.tsx docblock: answered — accepted. It lists the type-wide kinds through isWideFieldType, still true as written; the file is 表单弹窗:加放大图标,原地展开为整页,与记录抽屉的放大一致 #34604's.
  • Dev flag, Studio ObjectFormDesigner preview: answered — out of this card's scope, but it is a preview that now disagrees with the runtime and it has carrier: none. The seat should give it a carrier. Nit for this PR.
  • Dev flag, inline members and object-less forms: answered — correct. No stashed object field, so the type-only answer; consistent with "whose object field declares".
  • open_questions, round 1 (HTML-comment signed line in the PR body vs os-dev.md): not a contract question. Option A stands for this PR (PR-body guards is green on this head). Escalated to the seat to reconcile os-dev.md with the standard order.
  • open_questions, fix round: empty.
  • Deviations: the WIP push ed2ed090 went red on check:docs and is superseded; the relay-written PR body is the seat's process matter. Neither touches the contract.

④ Design judgment

packages/spec/src/ui/view.zod.ts (hit) — holds. Against the ruling it implements (6939109581 as the card and claim record it: widen multi-file attachments only, mirror isWideDetailField, single file stays one cell, full-page form included) and against its first consumer (resolveColSpan / twelfthsFor at this head), every clause of the new text is true, and no clause promises more than the code does. The text is the right place for it: the old sentence said "only" five types, which this card made false.

ui/packages/plugin-form/src/autoLayout.ts (implements) — agrees with the contract. One private predicate, asked at the two places the old type-only question was asked, after the two authored-width arms. The precedence the describe text relies on is not new code; it is the existing order, left alone.

multiFileFullRow-34668.test.tsx (enforces) — agrees. It pins each published clause: multi-file whole row in dialog and page hosts, single file one cell, object-field-only read, colSpan winning on both grid paths, span: 'full' still widening. Test UI (16 shards) is green.

Findings:

  • should-fix — the PR body is stale against this head. It names d48fa36d as the head and quotes the describe text as ending "an author's explicit span wins". That sentence was replaced in 31c82383; the head reads "an authored colSpan still wins over that default (colSpan: 1 keeps such a field in one cell)". The committed tree and the changeset are correct; only the body misquotes the published text. Fix the quote and the head before the merge so the merge record does not carry the retracted wording.
  • should-fix — the liveness evidence for this sentence omits the new read point. The jsdoc above span says its read points are recorded in packages/spec/liveness/view.json, row form.sections. That note cites WIDE_FIELD_TYPES for the five wide types and nothing for the multi-file clause (isWideFormField / MULTI_FILE_FIELD_TYPES). The note is still true and the liveness gate is green, so this does not block; a follow-up should add the read point so the new clause has recorded evidence.
  • nit — the describe's lead-in "from its widget type × the current column count" is now slightly short of the rule (the object field's multiple also feeds it). The clause that follows states the rule correctly, so the reader is not misled.
  • nit — Studio designer preview has no carrier (see ③).

No must-fix.

Implemented-by: claude/issue-34668-multi-file-full-row
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: eba9da323e37e236c05fce3a1962cc7af95513f1
Local-runs: none
Scope: packages/spec/src/ui/view.zod.ts + ui/packages/plugin-form/src/autoLayout.ts, content/docs/references/ui/view.mdx, ui/packages/plugin-form/src/tests/multiFileFullRow-34668.test.tsx, .changeset/34668-form-multi-file-full-row.md
Security-touching: no

Delta on the merged head. Supersedes PASS 6944618256 @ 31c82383.

What changed: only the merge. eba9da32 has parents 31c82383 and origin/main f02f4f63. git show --remerge-diff is empty, so nothing was hand-resolved. git diff 31c82383..eba9da32 over the PR's six paths is empty. The net diff against main is still those six files, +342/−9. ①–④ carry over unchanged.

Check-runs on this head: 72 completed: 61 success, 11 skipped, 0 failure.

Should-fix status:

  • PR body stale: fixed. The body names eba9da32, quotes "an authored colSpan still wins over that default (colSpan: 1 keeps such a field in one cell)", and "explicit span" no longer appears. Clause-②: no and Metadata-protocol: none are still line-initial.
  • Liveness read point for the multi-file clause (packages/spec/liveness/view.json, row form.sections): still open; a follow-up, not blocking.
  • Both nits (describe lead-in, Studio designer preview carrier) are unchanged.

No must-fix.

Implemented-by: claude/issue-34668-multi-file-full-row
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

Landing · area o3-B · 2026-11-17T10:31Z

Probe Reading
L1 delta ACCEPT 6944507418 at 31c82383f4c5bcc3679146c21b14374e82e9b644; current head eba9da323e37e236c05fce3a1962cc7af95513f1 is a clean --no-ff merge of origin/main f02f4f6 on top of it (git show --remerge-diff empty, same patch-id for the PR's own commits), so the ACCEPT carries per area-lease
L2 (spec describe text, CONTRACT_REVIEW_TIER) Contract review delta PASS 6945472666 at eba9da323e37e236c05fce3a1962cc7af95513f1 (= current head), after PASS 6944618256 at 31c8238; body should-fix closed
Checks on head 61 success, 11 skipped, 0 failure / pending; mergeable_state: clean
check-governed-merges.mjs --pr 34698 NOT governed; 351 changed lines ≤ 3000 (Tier S)
K (first-parent, merge-base..origin/main c12fe66) 8 < 15 (was 18 before the merge); no merge=os-regen path in the diff

State change: ready for review + auto-merge (merge queue). Card #34668 closes on merge via Fixes.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 10:31
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44065829231 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (3/10) — 失败步骤: Run this shard's tests

    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'alpha registered firs
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"alpha doc","content":"# alpha","_packageId":"com.qa.alpha","_packageVersion":"1.0.0","
    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'beta registered first
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"beta doc","content":"# beta","_packageId":"com.qa.beta","_packageVersion":"1.0.0","_pr
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 20 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34668-multi-file-full-row branch November 17, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ui size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

表单自动排版:多文件 / 多图字段占整行(与详情页一致)

2 participants