Skip to content

docs(spec): tidy prose and fixture copies after the form's subforms retirement - #39194

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-39067-subforms-tidy
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-39067-subforms-tidy

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #39067

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:搭建应用的人在升级说明和「表单内嵌子表已移除」的报错里,会看到和平台自身拒绝提示一致的改法(查找类子对象要标成正文表格);使用应用的人无感。
  • 为什么做:收尾「表单内嵌子表配置退役」那项工作,审核时留下的几处过时说明与重复的测试表格。
  • 出错会怎样:只改说明文字、注释和测试,不改任何可写配置;有问题可以直接撤回。
  • 要你做什么:无。

What changes

Items N1–N4 of the card (P1–P3 moved to #39181). Spec prose that restates the retirement ruling (record 7303122859, option 「退役这个配置」); it never reopens the retirement.

N1, the protocol-18 ui-form-view-type-layout-only entry. Its replacement sent readers to subforms for child records entered with the parent. It now names a field group on the parent object whose relatedList names the child (a lookup child's FK declares relatedList: 'primary'), and keeps the object-master-detail-form page block.

N3, the lookup-child remedy. The form.subforms tombstone prescription (FORM_VIEW_SUBFORMS_RETIRED in packages/spec/src/ui/view.zod.ts) and the protocol-19 D3 entry ui-form-view-subforms-retired now say that a field group places only a body table: a lookup child's FK declares relatedList: 'primary' (a master_detail FK that declares no relatedList needs nothing), or the stack refuses the group. That is the remedy the stack's refusal gives (fieldGroupBodyTableRefusal in packages/spec/src/data/related-list-body-table.ts: "Set relatedList: 'primary' on that FK"). The prescription text lives in view.zod.ts, not in the two retired-keys files the claim names (those hold only the registry key), so that is where it changed. The generated content/docs/references/ui/view.mdx was regenerated (check:generated --fix, only check:docs was stale).

N2, stale subforms[].columns comments. Every hit of grep -rn "subforms\[\]\.columns" packages --include=*.ts at the base, with a verdict. Rows marked (round 2) come from the contract review: two N2 files that do not spell that string, and the two ui comments, which the claim amendment brought into surface.

File Verdict
packages/spec/src/ui/component.zod.ts (import comment, record:related_list columns, master-detail entry docblock ×3) Stale, rewritten. It spoke of the form view's carrier in the present tense. The MASTER_DETAIL_DETAIL_HISTORY docblock is past tense and correct, so it is left as it is. Round 2 rewraps two overlong comment lines (R5).
packages/spec/src/conversions/entries/shared.ts Stale, rewritten ("as the two carriers cannot on what they accept").
packages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.ts Doc comment stale, rewritten ("now references", "the only schema that declares subforms"). Its published surface and summary describe what the entry did at 18, so they are correct as history and not edited. Round 2 (R2): the retiredFromLoadPath paragraph now says that the parse refused field at 18 and refuses the whole key from 19, which agrees with the sentence above it.
packages/spec/src/data/inline-grid-columns.ts header (round 2) Stale, rewritten. It named "a form view's subforms[] entry with no columns (FormViewSchema.subforms)" as a present-tense carrier. It now names the carriers that exist: a relationship field's inlineColumns, and an entry of the React ObjectForm block's subforms prop. One sentence records that the form view's entry was a carrier until protocol 19.
packages/spec/src/contracts/automation-service.ts line 490, "child grids (subforms)" (round 2) Current in substance, not edited. It describes the object's own create and edit form, which still inlines child grids. Those grids are now placed by the parent's field groups, and subforms there is the objectui ObjectForm prop the host fills, not the retired form key. A light rewording that drops the key name would read better, but #38876's open PR #39144 edits this file, so it is left until that PR lands (Acceptance note).
ui/packages/plugin-view/src/ObjectView.tsx around line 2886 (round 2) Stale, rewritten. It said "a form view can declare inline child collections". It now says the forwarded form.subforms is the objectui object-view node's own, not a spec form view's key, which protocol 19 retired.
ui/packages/plugin-form/src/deriveMasterDetail.ts lines 357–367 (round 2) Stale, rewritten. It said defineStack judges "a form view's subforms[].columns" and that the spec's FormViewSchema holds each column to the schema. Both are now past tense, and the paragraph names what reaches the function today: the block's own prop, or the list the host derives from the parent's field groups.
packages/spec/src/stack.zod.ts Current. The retirement PR already says the form carrier "was the fourth until protocol 19".
semantic/18.inline-grid-column-identity-only-currency-scale-refused.ts, semantic/18.ui-object-master-detail-form-details-closed.ts, semantic/18.form-view-subform-columns-closed.ts Historical. These are released step-18 records of what changed at 18, and none sends a reader to write subforms now. Not edited.
packages/spec/src/inline-grid-column-carriers.test.ts Historical. The header is past tense and already carries the protocol-19 paragraph.
packages/spec/src/migrations/registry.ts Generated and gitignored. It follows the entries.
packages/lint/src/validate-field-consumers.test.ts Not prose: lint fixtures on unparsed input. The retirement PR already recorded these as a lint change of their own. Out of surface.

N4, the superseded-fixture rows. The two metadata-core copies were byte-identical (53 lines each). Both now import one test-support module, packages/metadata-core/src/artifact-forward-conversion.test-support.ts. Neither index.ts nor testing.ts imports it, so it is not in the published build. The spec copy (SUPERSEDED_FIXTURES in packages/spec/src/conversions/conversions.test.ts) stays, because sharing it across packages would need a new published export of @objectstack/spec. Instead, the spec table and the metadata-core table are each pinned to one derivation from the registry: a fixture's row lists exactly the later-major entries that change what they are handed, in registry order, applied to the fixture's after. If a fixture change moves that list, both suites go red and name the row.

Tests

  • New pin in form-view-drawer-keys-retirement.test.ts: the stack's field-group refusal for a lookup side card names relatedList: 'primary', and so do the tombstone's parse message and the D3 entry's replacement.
  • New pin in conversions.test.ts (all conversions) and in artifact-forward-conversion.test.ts / -package-body.test.ts (step 18): each row equals the derivation.
  • Ablation, one run each and then restored (git checkout HEAD --, porcelain clean): (1) prescription relatedList: 'primary' changed to relatedList: true made the new spec pin red (1 failed, 80 passed). (2) 'form-view-subforms-removed' dropped from the shared metadata-core row made 3 tests red, including the derivation pin.
Test runs (head 4a29815)
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src   Test Files 939 passed (939) · Tests 29178 passed | 2 todo   (at 4a298157)
pnpm --filter @objectstack/spec typecheck                           VERDICT command-exit 0
pnpm --filter @objectstack/spec check:generated --fix               1 of 14 stale (check:docs) → regenerated, then all up to date
pnpm --filter @objectstack/metadata-core typecheck && test         Test Files 31 passed (31) · Tests 1161 passed
round 1 · dispatch-gates --ran at 4a298157: 121 derived, 111 run (exit 0), 10 NOT-MEASURED (8 prerequisite refusals on packages outside this diff: unbuilt lint/cli/client-react/objectql/adapters dist, shallow clone; 2 hit a 240 s per-command cap: check:query-options-erasure, check:type-check-debt) — CI runs them
round 2 at d08d5cda (comments only, 5 files): spec build + check:generated → all 14 generated artifacts up to date
round 2 new families: check-sdui-manifest (+ --self-test) exit 0; ratchet/prose families check:issue-citations, check:doc-authoring, check:nul-bytes, check-drift-comment, check-comment-mask-adoption, check:spec-docblock-symbol-anchors all exit 0
round 2 · pnpm --dir ui exec vitest run scripts/: 170 files passed, 2 failed (date-only-zone-pins-10183: nested forked runs report "ran no case at all"; unit-registry-absence-collision: unbuilt ui packages/formula entry) — environment, NOT MEASURED here, CI runs it; neither reads the two ui files changed

Acceptance notes

Verification

Read first: packages/spec/src/ui/view.zod.ts (the prescription string, the shipped text), packages/metadata-core/src/artifact-forward-conversion.test-support.ts (derivedRetiringIds), packages/spec/src/conversions/conversions.test.ts (the new derivation pin).

Two-minute check: pnpm --filter @objectstack/spec exec vitest run src/ui/form-view-drawer-keys-retirement.test.ts src/conversions/conversions.test.ts. Expect all tests to pass, including "names the lookup child's relatedList: 'primary'".


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CZEr4GH7Lm6aJcpZW5

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

4 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 4 changed file(s) yielded no anchor (packages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.ts, packages/spec/src/conversions/entries/shared.ts, packages/spec/src/data/inline-grid-columns.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 4 changed file(s) yielded no anchor (packages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.ts, packages/spec/src/conversions/entries/shared.ts, packages/spec/src/data/inline-grid-columns.ts, …) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 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 — 183 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 53ca7319a1817e223547844f8f62e0688a72fe3d → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 54f7fa05c4dfd2f7c889d7c89bc2989b95e1ad24 — the merge of head d08d5cda4f5438d7159c14eecb43399495b71d49 into base 53ca7319a1817e223547844f8f62e0688a72fe3d, 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 54f7fa05c4dfd2f7c889d7c89bc2989b95e1ad24 && git checkout 54f7fa05c4dfd2f7c889d7c89bc2989b95e1ad24
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 53ca7319a1817e223547844f8f62e0688a72fe3d d08d5cda4f5438d7159c14eecb43399495b71d49 && git checkout -B drift-repro 53ca7319a1817e223547844f8f62e0688a72fe3d && git merge --no-ff d08d5cda4f5438d7159c14eecb43399495b71d49

node scripts/docs-audit/affected-docs.mjs --json 53ca7319a1817e223547844f8f62e0688a72fe3d

⚠️ 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@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4a298157e610e125a3c5d189c76de4fa9eb6b86a
Local-runs: none
Scope: packages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.ts, packages/spec/src/conversions/entries/shared.ts, packages/spec/src/migrations/entries/semantic/18.ui-form-view-type-layout-only.ts, packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts, packages/spec/src/ui/component.zod.ts, packages/spec/src/ui/view.zod.ts + packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts, packages/spec/src/conversions/conversions.test.ts, packages/metadata-core/src/artifact-forward-conversion.test-support.ts, packages/metadata-core/src/artifact-forward-conversion.test.ts, packages/metadata-core/src/artifact-forward-conversion-package-body.test.ts

Isolated review: I did not write this diff and had no recommendation from the dispatching zone. Inputs read: card #39067 (body and its five comments: scope additions 7338105984 and 7339661035, the split 7360248732, the claim 7360336398, the dev report 7361566191), the ruling record 7303122859 on #38140, the two contract-review records on #39061 that the card's items come from (7337248486 and 7338973103), PR #39194 (body, 13 files, three commits, the net diff against main from merge base 9a13387; main has since taken one commit, 53ca731, which touches none of these files or the code they cite), and the check-runs on this head. Cited code outside the diff was read on origin/main, not reviewed. The changeset prose and the generated content/docs/references/ui/view.mdx are the lane seat's ACCEPT at TIER_DEFAULT; they are read here only for ②.

Check-runs on this head when read (70 runs): 19 success (Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards, Lint · ESLint, Lint · PM dispatch-gates, Lint · scoped · query-options erasure, Lint · scoped · tooling self-tests, Type Check · source gates, Build Docs, Build UI Deps, Dogfood Regression Gate, Check Documentation Links, Check PR Size, Flag docs affected by code changes, Auto Label, Plan Test Core shards, Plan Test UI shards, filter), 12 skipped (opt-in or queue-only), 0 failed, 39 in progress: Build Core, Test Core 1/12 to 12/12, Test UI 1/16 to 16/16, Type Check (consumer gates, workspace, debt ledger, UI), Lint (repo and tooling gates; docs and code guards; CI, release and engine gates; slot lookup and corpus), Build and E2E UI, Live E2E UI. This record judges the contract. The pending runs are the landing check's to read, and a red one is not covered here. In particular the new pins, check:generated and the two metadata-core suites are answered only by pending runs.

① Derived judgments

  • Accept set: unchanged, right. No schema member, enum value, alias table, tombstone or refinement moves. In view.zod.ts the diff edits one string constant (FORM_VIEW_SUBFORMS_RETIRED); in component.zod.ts it edits comments only, none inside a .describe() string; the two conversion files change doc comments only (surface, summary, apply and both fixtures are untouched).
  • Published strings that do change, right: the tombstone's parse message for form.subforms (and the two subforms rows it generates in view.mdx), the replacement of the protocol-19 D3 entry ui-form-view-subforms-retired, and the replacement of the protocol-18 D3 entry ui-form-view-type-layout-only. These are prose an upgrader reads; no id, surface, conversion id or acceptance criterion moves, so nothing in the registry's shape changes.
  • Public TypeScript and export surface: unchanged, right. No index.ts, no exports map, no api-surface or export-origins baseline is in the diff. ALL_CONVERSIONS was already imported from the @objectstack/spec root by both metadata-core suites.
  • The new metadata-core module is not published, right. packages/metadata-core/package.json exports . and ./testing; tsup.config.ts builds exactly src/index.ts and src/testing.ts; at this head the only importers of artifact-forward-conversion.test-support.ts are the two test files, and neither entry reaches it. The package ships dist only. The name follows a pattern already in the tree (packages/runtime/src/scheduled-work.test-support.ts and four more).
  • Ruling 7303122859 (retire the key, prescribe the object field group): restated, not reopened. The new sentences narrow nothing and add no replacement the ruling did not name; they add the precondition the stack already enforces.

② Semver level

.changeset/form-subforms-retirement-tidy.md carries @objectstack/spec patch. Right: what publishes is corrected upgrade text in one parse message and two semantic entries; nothing an author can write changes. @objectstack/metadata-core is rightly absent: its three files are tests and unpublished test support. Check Changeset is green on this head. The changeset's account matches the diff sentence for sentence, and the two generated view.mdx rows equal the source constant byte for byte.

Clause-②: no. The PR body, the changeset and the claim agree, and the diff publishes no accept-set or surface change in either direction. Metadata-protocol: none is right. Nothing in the N4 change widens a published surface: the module is unreachable from both entries, and the PR kept the spec copy precisely so that no new @objectstack/spec export is needed.

③ Boundary flags

  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join.
  • Author: the PR's user.login is objectstack-fleet[bot]; no off-relay note is owed.
  • Dev open_questions: none.
  • Dev deviation, files beyond the claim's named list: answered, accepted. view.zod.ts is where the prescription text lives (the two retired-keys files the claim names hold only the registry key string, read at this head), the protocol-19 D3 entry carries the same remedy, view.mdx is its generated row, and the test-support module, conversions.test.ts and the pin test fall under classes the claim names. Escalated to the seat: the claim on the card (7360336398) is not amended with these files; post the amendment before hand-off.
  • Dev out-of-scope finding, stale ui/** comments (ui/packages/plugin-view/src/ObjectView.tsx near line 2886, ui/packages/plugin-form/src/deriveMasterDetail.ts lines 357 to 367): real, read at this head, and outside this card's surface. The report says "carrier: none". Escalated to the seat to give them a carrier; they do not hold this PR.
  • Dev note on packages/lint/src/validate-field-consumers.test.ts and on the liveness/form.json row note: read and agreed. Neither is author-facing prose.
  • No Contract-review-claim: line was on the PR for this head when the review started, and no earlier record names it. The dispatch asked for one comment, so no claim line was posted; this record is the first artefact on the head.

④ Design judgment

No must-fix. One should-fix: S1.

S1 (should-fix) — N2 is not complete. packages/spec/src/data/inline-grid-columns.ts lines 8 to 14 still say, in the present tense, that two carriers draw the inline grid and name the second as "a form view's subforms[] entry with no columns (FormViewSchema.subforms)". That member is a tombstone since protocol 19, so the sentence is false today, in the module that is the protocol's own statement of which carriers the derivation serves. The record the card's N2 comes from (7337248486) names this file and packages/spec/src/contracts/automation-service.ts beside component.zod.ts and shared.ts; the PR rewrote the last two and gives the first two no verdict. The reason is mechanical: the PR's census is grep "subforms\[\]\.columns", and neither file spells that string (subforms[] entry with no columns; "child grids (subforms)" at automation-service.ts line 490). The PR body says Fixes #39067, and the card's Done-when is every item fixed in one PR, so merging this head closes the card with a named N2 file still stale. To close: rewrite the inline-grid-columns.ts header to name the carriers that exist now (the React ObjectForm block's subforms prop still takes an entry with no columns; the form view's key does not), and give automation-service.ts line 490 a verdict in the table (my reading: it describes the object's own create and edit form, which still inlines child grids, so either "current" with that reason or a rewording that drops the key name). Comment-only edits; they move the head on a schema path, so they earn a delta read.

Per hits file:

  • packages/spec/src/ui/view.zod.ts (lines 5509 to 5511). Holds. The new sentence, clause by clause, against packages/spec/src/data/related-list-body-table.ts on main:
    • "A group places only a body table": the refusal's own words ("A field group's relatedList only places a body table").
    • "a lookup child's FK declares relatedList: 'primary'": isGroupPlaceableRelationship returns true for a lookup only when relatedList === 'primary'; a lookup with no relatedList, with true or with false is refused, and the refusal's remedy is "Set relatedList: 'primary' on that FK". Lookup is the right word: it is the one relationship type that always needs the key.
    • "(a master_detail FK that declares no relatedList needs nothing)": true. relatedList === undefined && type === 'master_detail' is the second placeable arm, and the group makes it a body table (主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889).
    • "or the stack refuses the group": true where the child's fields are known. defineStack pushes the refusal as an error (stack.zod.ts, the fieldGroups[i].relatedList arm), and @objectstack/lint writes the same sentence at the runtime publish door (related-list-group-not-body).
    • The remedy also delivers what the prescription promises ("enter child rows with the record"): objectui's attachInlineSubforms inlines a child in the parent's form when isGroupPlaceableRelationship holds and a parent group names it, so a lookup FK marked 'primary' and named by a group is drawn in every New and Edit form, not only on the record page.
    • Attempt to break it: a master_detail FK that declares relatedList: true or false. A group naming it is refused too, and the sentence does not say so. The parenthetical is exact about which master_detail case needs nothing, and the refusal names the remedy for the rest, so the reader is never sent wrong. See R1.
    • The house conventions of a retired-key prescription still hold: the qualified key first, version and ADR, reason, imperative fix, the exact migrate sentence last.
  • packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts (lines 18 to 21). Holds. Same three facts in the D3 voice ("when the child points at the parent through a lookup, that FK declares … ; otherwise the stack refuses the group"), placed before the sentence that says what the forms then draw, so the order of work reads correctly. The key mapping after it is untouched.
  • packages/spec/src/migrations/entries/semantic/18.ui-form-view-type-layout-only.ts (lines 32 to 35). Holds. The sentence no longer sends a reader to a key the parse refuses. What it names instead is true at both protocols it can be read at: fieldGroups[].relatedList existed at 18 (18.field-group-related-list-side-card-refused), a lookup needed 'primary' there as now, and the object-master-detail-form block is kept. Editing a released step's replacement is right here because the text ships in the current package and the old sentence prescribed a remedy that no longer parses; the entry's id, surface, reason, criteria and conversion id are untouched. No tracked generated artefact carried the old sentence (searched at this head).
  • packages/spec/src/ui/component.zod.ts (lines 126 to 130, 2588 to 2590, 7440 to 7441, 7448 to 7451, 7463 to 7464). Holds. Each rewritten comment is accurate at this head: the detail entry's columns is still InlineGridColumnSchema by reference; the claim that its keys and alias table are the ones the form view's subforms[] entry declared checks out against the entry shape react-blocks.ts now publishes for the block prop (nine shared keys, plus formFields and inlineMode, eleven in all, which is the count the docblock states); the factory sentence is now past tense for the form view, which is right. The MASTER_DETAIL_DETAIL_HISTORY docblock (line 7422) is past tense and is correctly left.
  • packages/spec/src/conversions/entries/shared.ts (lines 161 to 164). Holds. The respelling is still shared by both conversions; the carriers' half is now past tense and names what happens to the list at 19.
  • packages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.ts (lines 22 to 23, 43 to 46). Holds. "At protocol 18 referenced", "was the only schema that declared", and the replay sentence ("respells a column and then drops it") agree with the superseded-fixture row for this entry. The published surface and summary say what the entry did at 18 and are correctly left. See R2 for one sentence in the same docblock.
  • The hits the PR left as historical, read at this head: semantic/18.form-view-subform-columns-closed.ts, semantic/18.inline-grid-column-identity-only-currency-scale-refused.ts and semantic/18.ui-object-master-detail-form-details-closed.ts describe the surface as protocol 18 changed it, and none offers subforms as a remedy for something else (the difference from N1's sentence), so "historical" is right; the step-19 entry is what an upgrader reads next. stack.zod.ts line 5072 and inline-grid-column-carriers.test.ts already carry the protocol-19 statement. migrations/registry.ts is gitignored and generated. I agree with each of those verdicts. The verdict table is short by the two files in S1.

Implementing files in the diff:

  • packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts. Agrees with the contract. The pin reads the refusal from fieldGroupBodyTableRefusal for a lookup side card, the tombstone's parse message and the D3 replacement, and requires the remedy token in all three, so the upgrade text cannot drift from the refusal on the remedy. See R3 for what it leaves unpinned.
  • packages/spec/src/conversions/conversions.test.ts. Agrees. The new pin derives, for every conversion, the later-major entries that fire on its after in ALL_CONVERSIONS order and requires the row (or its absence) to equal that list. It weakens nothing: the two replay legs and the order check above it are untouched, and no skip, todo or only is added.
  • packages/metadata-core/src/artifact-forward-conversion.test-support.ts and the two suites. Agree. The table and afterRetiringEntries moved from the two suites unchanged apart from the export keyword (the two removed blocks are identical to each other and to the added one). derivedRetiringIds is the same derivation as the spec pin, and each suite asserts its rows against it over every retired step-18 entry. So the PR's claim holds as stated: change a step-18 fixture's after, or register a later entry that fires on it, and the derived list moves in both packages; the spec pin and both metadata-core pins go red and name the row. Attempt to break it: a later-major entry the door does not replay. See R4.

Nits (no effect on correctness or the contract):

  • R1 (nit): the prescription and the D3 entry speak of a lookup child and of a master_detail FK with no relatedList, and say nothing of a master_detail FK that declares relatedList: true or false, which a group also cannot place. The stack's refusal covers it with the same remedy. Accepted deviation.
  • R2 (nit): form-view-subform-columns-canonicalized.ts lines 48 to 49 still read "the parse refuses field with the prescription, so a live author is taught", three lines under the new sentence that says the parse refuses the key whole at 19. It is the entry's rationale at 18 and reads so in context. It can ride with the S1 fix or stay.
  • R3 (nit): the new pin holds the relatedList: 'primary' token only. The protocol-18 entry's clause and the master_detail parenthetical are not pinned, and the refusal half is read from the function, not through defineStack. Accepted deviation; the defineStack wiring has its own tests.
  • R4 (nit): derivedRetiringIds reads the whole registry, while the door skips its default flips and afterRetiringEntries requires every listed entry to be load-retired. Today the two agree (every protocol-19 entry is load-retired, and the replay legs equal the table). On the day a later entry the door does not replay fires on a step-18 fixture, the derivation pin and the replay legs will ask for different rows. That fails red, never green, so it is a note for whoever meets it. The ten-line derivation is also written once per package, which the module's header says and explains.
  • R5 (nit): two rewrapped comment lines in component.zod.ts (7441 and 7464) run long. Cosmetic.

Implemented-by: claude/issue-39067-subforms-tidy
Reviewed-by: session_01Utp6CZEr4GH7Lm6aJcpZW5

VERDICT: PASS

…tep-18 rationale, two ui comments

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZEr4GH7Lm6aJcpZW5
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d08d5cda4f5438d7159c14eecb43399495b71d49
Local-runs: none
Scope: packages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.ts, packages/spec/src/conversions/entries/shared.ts, packages/spec/src/data/inline-grid-columns.ts, packages/spec/src/migrations/entries/semantic/18.ui-form-view-type-layout-only.ts, packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts, packages/spec/src/ui/component.zod.ts, packages/spec/src/ui/view.zod.ts + packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts, packages/spec/src/conversions/conversions.test.ts, packages/metadata-core/src/artifact-forward-conversion.test-support.ts, packages/metadata-core/src/artifact-forward-conversion.test.ts, packages/metadata-core/src/artifact-forward-conversion-package-body.test.ts, ui/packages/plugin-form/src/deriveMasterDetail.ts, ui/packages/plugin-view/src/ObjectView.tsx

Delta round, by the reviewer of record 7361747951 (head 4a29815). Since that head the branch took one commit, d08d5cd, with no merge of main: five files, 31 lines added and 23 removed, every changed line inside a comment. I read git diff 4a298157 d08d5cda whole, the PR body's updated N2 table, the claim amendment 7361798038 on #39067, and the check-runs on this head. The other eleven files of the PR are byte for byte what record 7361747951 judged, and its reading of them stands. main has moved to f1df7a8 since the merge base 9a13387 and touches none of the PR's sixteen files nor the code they cite.

Check-runs on this head when read (75 runs): 27 success (Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards twice, Lint and Repo Gates, Lint · ESLint, Lint · repo and tooling gates, Lint · docs and code guards, Lint · CI, release and engine gates, Lint · PM dispatch-gates, the three scoped Lint lanes, Type Check · source gates, Type Check · debt ledger, Build Docs, Build UI Deps, Live E2E UI, Dogfood Regression Gate, Check Documentation Links, Check PR Size, Flag docs affected by code changes, Auto Label, Plan Test Core shards, Plan Test UI shards, filter), 13 skipped (opt-in or queue-only), 0 failed, 35 in progress: Build Core, Test Core 1/12 to 12/12, Test UI 1/16 to 16/16, Type Check (consumer gates, workspace, UI), Lint UI, Build and E2E UI, and a second Check Changeset run. This record judges the contract. The pending runs are the landing check's to read, and a red one is not covered here.

① Derived judgments

  • Accept set, published strings and public surface: unchanged by the delta, right. All five hunks sit in /** */ or // comments; none is inside a .describe() string, a prescription constant, a semantic entry or a fixture, so no generated reference has a reason to move and none is in the delta.
  • The delta brings two ui/** files into the PR. Both edits are comments on non-exported code (a // comment inside the ObjectView component body; the docblock of the module-private currency-scale report in deriveMasterDetail.ts), so neither reaches a published declaration.
  • Everything record 7361747951 judged in ① still reads as written at this head.

② Semver level

Unchanged and still right: .changeset/form-subforms-retirement-tidy.md carries @objectstack/spec patch, and the delta adds nothing that publishes. No ui changeset is owed for the two ui/** files, because a comment-only edit publishes nothing from either package. One Check Changeset run is green on this head and a second is pending.

Clause-②: no. Metadata-protocol: none. Both still agree across the PR body, the changeset and the claim, and the delta gives neither a reason to move.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

S1: closed.

What closed it, read at this head:

  • packages/spec/src/data/inline-grid-columns.ts (lines 8 to 17). Holds. The header now names the two carriers that exist: a relationship field that sets inlineEdit with no inlineColumns, and an entry of the React ObjectForm block's subforms prop with no columns. The second is true against packages/spec/src/ui/react-blocks.ts, where the block's overlay publishes the entry shape with columns optional and says the grid columns are derived from the child object unless written. The added sentence states that the form view's entry was a carrier until protocol 19 and that the parse refuses the key now, which is the tombstone on FormViewSchema. No sentence in the header names FormViewSchema.subforms as live any more; the only remaining spelling of it in packages/spec/src outside tests is the past-tense line in the step-18 conversion's docblock.
  • packages/spec/src/contracts/automation-service.ts line 490: verdict "current in substance, not edited", with the reason that the object's own create and edit form still inlines child grids and that subforms there is the objectui block prop the host fills. I agree with the verdict and with the reason; it is the reading the earlier record offered.
  • The PR body's N2 table now has a row for each of the four files the originating record 7337248486 named, and for the two ui/** files, so Fixes #39067 no longer closes the card over an unjudged N2 file.

The rest of the delta:

  • packages/spec/src/conversions/entries/18/form-view-subform-columns-canonicalized.ts (lines 48 to 50). Holds. The retiredFromLoadPath paragraph is now dated ("at 18 the parse refused field … from 19 it refuses the whole key, above"), which agrees with the sentence three lines up. This was R2.
  • packages/spec/src/ui/component.zod.ts (lines 7440 to 7443, 7463 to 7465). Holds. Rewrapping only; the words are the ones the earlier record judged.
  • ui/packages/plugin-view/src/ObjectView.tsx (lines 2886 to 2890). Holds. schema.form?.subforms is the objectui object-view node's own form.subforms (declared in ui/packages/types), forwarded to ObjectForm; the comment now says so and says the spec form view's key is retired. It no longer tells a reader that a form view can declare child collections.
  • ui/packages/plugin-form/src/deriveMasterDetail.ts (lines 355 to 370). Holds. The spec's hold on a form view's subforms[].columns is now past tense; the object-form mirror's refusal is still stated in the present, which is right, since the block prop is live; and the last sentence names what actually reaches the function today (the block's own prop, or the list the host derives from the parent's field groups, which is what attachInlineSubforms builds). See R6 for one word.

Attempt to break the delta: a reader who takes the new inline-grid-columns.ts header as the full list of who consumes the derivation. It was not a full list before this change either (R7), and the delta adds no claim of completeness.

Nits (no effect on correctness or the contract):

  • R1, R3 and R4 of record 7361747951 still read as written at this head. Accepted deviations.
  • R2: fixed by this delta.
  • R5: the rewrap moved the overlong lines, it did not remove them (component.zod.ts 7443 and 7465 now run long where 7441 and 7464 did). Cosmetic; leave it.
  • R6 (nit): deriveMasterDetail.ts line 358 calls the form view's subforms[].columns "the other carrier" of defineStack's identity-only check. defineStack walks three carriers today (a relationship field's inlineColumns, an object-master-detail-form block's details[].columns, a record:line_items block's columns; stack.zod.ts, the docblock above collectHydratedInlineColumnErrors), so "another" is the exact word. The comment listed only two before this change as well. A ui/** comment; accepted deviation.
  • R7 (nit): the inline-grid-columns.ts header counts two carriers, while an object-master-detail-form detail entry with no columns is also described as derived from the child object when omitted. This predates the PR and is outside the card's N2 (it is not a subforms statement). Noted for whoever next edits the header.

Implemented-by: claude/issue-39067-subforms-tidy
Reviewed-by: session_01Utp6CZEr4GH7Lm6aJcpZW5

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5

席位核对

L1 verdict: ACCEPT · zone forms-38140 of seat repo:objectstack@os-bill · Head-sha: d08d5cda4f5438d7159c14eecb43399495b71d49

  1. Shape: 16 files, +227/−151 (check-governed-merges.mjs --pr 39194), inside claim 7360336398 plus amendment 7361798038. Spec prose (the protocol-18 and protocol-19 D3 entries, the FORM_VIEW_SUBFORMS_RETIRED prescription, comments in component.zod.ts, shared.ts, inline-grid-columns.ts, the step-18 conversion), the generated view.mdx, a prescription pin, the N4 shared fixture (artifact-forward-conversion.test-support.ts, unpublished) with its derivation pin, two ui/** comments, a @objectstack/spec patch changeset. Fixes #39067 (P1–P3 moved to ADR-0035/ADR-0050 wording after the form subforms retirement (#38140): ObjectView forwarding note, "kept" not "not touched", the layer-table row #39181). Clause-②: no, Metadata-protocol: none.
  2. Premises measured: the prescription's remedy matches the stack's refusal in packages/spec/src/data/related-list-body-table.ts (lookup only with relatedList: 'primary'; a master_detail FK with no relatedList is placeable), read by the L2; the N2 census covers every file the originating record 7337248486 named, automation-service.ts:490 given a verdict and left unedited because fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144 edits that file.
  3. Gates: check-runs on this head read 23:5xZ: 65 success, 13 skipped, 0 failure, 0 running. Contract-tier L2: PASS 7361747951 (head 4a29815), delta PASS 7362160577 on this head, S1: closed, no open must/should-fix.
  4. Accepted deviations: files beyond the first claim list (recorded by amendment 7361798038); nits R1, R3–R7 of the L2 records stand as accepted; local ui scripts vitest NOT MEASURED (unbuilt workspace), green in CI.
  5. Out of scope: optional rewording of automation-service.ts:490 after fix(automation)!: a triggered flow whose fan-out or earlier branch reaches a subflow or map whose child can suspend is not armed #39144 (Acceptance note; current in substance, no carrier owed); validate-field-consumers.test.ts feeding subforms as unparsed lint input is intended. Skills-docs: not owed.
  6. Landing: NOT governed, 378 lines ≤ 3000; landing-k.mjs K = 5 < 15. The zone lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZEr4GH7Lm6aJcpZW5

Landing: ACCEPT → PR #39194 comment 7362549986 on head d08d5cda4f5438d7159c14eecb43399495b71d49 (all checks green, contract-tier L2 PASS 7362160577 on this head, NOT governed, K = 5). Zone forms-38140 marks it ready and arms auto-merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 2, 2026 23:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 398a798 Dec 3, 2026
79 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-39067-subforms-tidy branch December 3, 2026 00:24
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:data protocol:ui size/m tests 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.

Tidy leftovers after the form-view subforms retirement (#38140): step-18 entry, stale comments, lookup-child prescription

2 participants