Skip to content

feat(spec)!: retire the form's subforms (ADR-0049, #38140 PR 1 of 2) - #39061

Merged
os-zhuang merged 10 commits into
mainfrom
claude/project-thread-37qug9
Dec 2, 2026
Merged

os-zhuang merged 10 commits into
mainfrom
claude/project-thread-37qug9

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Part of #38140

This is PR 1 of two: the retirement itself. PR 2, the amendment of ADR-0035 and ADR-0050 that records it, remains on the card, so merging this one should leave the card open.

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no hand-written skill teaches a form's subforms; the one skills file that names it, the generated skills/objectstack-ui/references/react-blocks.md, is regenerated here and lists it as the ObjectForm block's own prop, and the replacement (a field group's relatedList on the parent object) is already taught and evaluated in skills/objectstack-data

维护者速读

  • 用户能看到什么变化:搭建应用的人如果在「表单」上配置「内嵌子表」,保存时会被拒绝,并被告知改到对象的字段分组里放子表;使用应用的人看到的新建、编辑表单和今天完全一样。
  • 为什么做:属于「声明了却没有界面在读的配置,要么生效要么删除」这条治理线;记录的新建、编辑表单改为只按对象布局之后,这项配置已经没有任何界面读取,留着只会让人以为写了有用。
  • 出错会怎样:旧应用里已保存的这项配置在读取时自动去掉,表单照常打开;源文件里的需要跑一次升级工具或手工删除;若合并后发现问题,可以直接撤回本次改动。
  • 要你做什么:无。

What changes

The contract. FormViewSchema.subforms becomes a retiredKey() tombstone (protocol 19, ADR-0049 enforce-or-remove; the ruling on the card is to retire). A form item takes the form view's keys by reference, so the tombstone stands at the forms: door too. The parse refuses the key with a prescription that names the replacement: a field group on the parent object whose relatedList names the child. TypeScript rejects the key at a FormView or Form position.

Why nothing a person sees moves. The readers of a form's subforms were the console's New and Edit record surfaces. Since 19.0.0 they load no form view and take a record's child tables from the object's field groups. The page a form opened by name or by a public link gets never drew a child table. Measured at the base commit: zero reads of the key in the named-form page, in the REST, runtime, ObjectQL and metadata packages, and zero authored uses in the example apps, the platform apps and HotCRM.

What stays. The React ObjectForm block keeps its subforms prop: the react-tier contract now declares it in the block's own overlay, with the entry shape written out (it was published as object[]). The object-master-detail-form page block keeps details. A relationship field's inlineColumns is untouched.

The retirement kit.

  • D2 conversion form-view-subforms-removed (protocol 19, retired from the load path, retiredAfter 18.6.0). It deletes the key from every form payload: a stored view's form and formViews.KEY, a form view item's config, a flattened form overlay, the assembled viewItems channel, and a forms[] item. It applies after the conversion that moves a view's forms to forms[].
  • RETIRED_KEYS_BY_MAJOR[19] rows ui/FormView:subforms and ui/Form:subforms.
  • D3 entry ui-form-view-subforms-retired: the conversion cannot place a child table on the object, so the entry says how the author does it and what each entry key maps to.
  • The step-19 rationale gains one sentence.
  • Liveness: form.json subforms goes from live to dead with today's verifiedAt; state counts, the undrilled-container baseline and the dropped-refinement baseline shrink accordingly.
  • Regenerated: content/docs/references/ui/view.mdx, authorable-surface/ui.json (two rows marked retired), the strictness-ledger counts, skills/objectstack-ui/references/react-blocks.md.
  • The property-matrix checklist item moves subforms from a failing row to a refused one (revision 13).

Sentences this change made false, corrected in place.

  • The protocol-19 D3 entry master-detail-related-list-tab-by-default said a form view that declares its own subforms still inlines them. Removed.
  • The split form type's parse prescription sent an author to subforms for a child grid beside the parent. It now names the field group's relatedList.
  • defineStack's inline-column cross-check walked a form's subforms. The parse refuses the key first, so that arm is gone.

Files outside the claim's File surface line. Each was forced by a gate or a red test, or carried a sentence this change falsified. Named here so the claim can be amended:

  • packages/spec/src/migrations/entries/retired-keys/19.ui__Form__subforms.ts: the claim says one retired-keys entry; the registration gate needs one per definition key, so there are two.
  • packages/spec/src/conversions/conversions.test.ts: the released protocol-18 fixture that respells a column inside subforms is now replayed as a superseded fixture with two retiring entries.
  • packages/spec/src/inline-grid-column-carriers.test.ts, packages/spec/src/ui/view-strictness-batch18.test.ts, packages/spec/src/shared/retired-key-removal-version.pin.test.ts: red on the tombstone.
  • packages/spec/src/stack.zod.ts: the unreachable arm above.
  • packages/spec/dropped-refinements.baseline.json, packages/spec/scripts/liveness/undrilled-containers.baseline.json: shrink-only baselines the build and check:generated refuse until they shrink.
  • packages/spec/src/migrations/entries/semantic/19.master-detail-related-list-tab-by-default.ts: the falsified sentence.
  • docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md: generated.
  • packages/lint/src/validate-field-consumers.test.ts: a second lint test file. Its fixture pin asserted that the spec accepts a form item carrying subforms; it now holds the refusal.
  • ui/packages/types/src/__tests__/object-form-subforms-columns-11266.test.ts: its "one verdict across the two doors" case read the spec form view as the other door. The spec form refuses the key now, so the other door is the spec's inline grid column schema, which the mirror takes by reference.
  • packages/metadata-core/src/artifact-forward-conversion.test.ts and packages/metadata-core/src/artifact-forward-conversion-package-body.test.ts: the artifact door replays every retired entry whose retiredAfter is at or above the artifact's floor, so over the released step-18 fixture that respells a column inside subforms it now also applies the new protocol-19 entry (4 more notices, the key deleted). The fixture is not edited and no test is skipped. Both whole-step blocks state the rule the spec's conversion suite uses for a superseded fixture: the expected result is the retiring entries applied to the fixture's after, and every notice beyond the fixture's own is theirs, at the site they report. This is the right product behaviour: an installed artifact built for 18 keeps loading on 19 with the key removed.

Tests

New and changed pins:

  • packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts (the shared form-view retirement harness): the tombstone at every form door, the prescription (/subforms.*removed.*Delete the key.*relatedList/s), the defineStack envelope (STACK_SCHEMA_INVALID, 422), @ts-expect-error pins on both types, the replacement building green, the block overlay keeping the prop, the conversion over stored containers, item records and form items, idempotence, load-path retirement, chain order and the D3 entry.
  • A tree-scoped absence pin for the key in the same harness, over packages, examples, skills, content and scripts, with an anti-vacuity case for its matcher. Three files are excluded from the subforms judgement only, each with its reason beside it, and the pin fails when an excluded file stops spelling the key.
  • packages/lint/src/lint-liveness-properties.test.ts: the parse refusal naming relatedList, the tombstone's ledger row in the rule's warned set, a live sibling as the control.
  • Conversion fixture: 4 notices over an assembled overlay, an assembled item record and two form items; a page block's details and a list view ride through untouched.

Form-carrier tests removed, and where their behaviour is still held. inline-grid-column-carriers.test.ts dropped the per-column refusals that rode on a form's subforms[].columns. The column contract itself is still pinned on the surviving carriers: packages/spec/src/data/inline-grid-column-currency-scale-refused.test.ts, packages/spec/src/data/inline-related-columns.test.ts, and the details and inlineColumns sections of the same file. On the form carrier the behaviour is now the whole-key refusal, pinned once per column list.

Ablation (two behaviours, each run once at e62e35e, restored and verified by blob hash against HEAD).

  • Tombstone replaced by an accepting array schema: the harness went from 80 passed to 5 failed, 75 passed.
  • Conversion's strip key misspelled: conversions.test.ts went to 2 failed, 224 passed.
Test runs

At 6d664d7, the head:

pnpm --filter @objectstack/metadata-core test       Test Files 30 passed (30) · Tests 1126 passed
pnpm --filter @objectstack/metadata-core typecheck  exit 0 (source and test layer)
pnpm --filter @objectstack/metadata-protocol test   Test Files 381 passed, 9 skipped · Tests 23940 passed, 45 skipped
pnpm --filter @objectstack/metadata test            Test Files 84 passed (84) · Tests 2922 passed
cli migrate-meta and stored-conversion unit files   Test Files 21 passed · Tests 184 passed, 1 skipped
runtime, service-automation, scaffolder, objectql conversion consumers   5 files, 275 tests passed
ui conversion consumers (4 files)                   Tests 40 passed

At 3dc2a1c; the only later commit touches two metadata-core test files:

pnpm --filter @objectstack/spec test           Test Files 919 passed (919) · Tests 29086 passed, 1 todo
pnpm --filter @objectstack/spec typecheck      exit 0 (tsc, scripts typecheck, test-layer typecheck)
spec harness, repo project                     Test Files 1 passed · Tests 80 passed
pnpm --filter @objectstack/lint test           Test Files 259 passed (259) · Tests 10301 passed
pnpm --filter @objectstack/lint typecheck      exit 0
pnpm --filter @object-ui/types test            Test Files 391 passed (391) · Tests 10528 passed
pnpm --filter @object-ui/types type-check      exit 0

Earlier heads, on files no later commit touched:

pnpm --filter @objectstack/spec test:repo (2ed32afa)       Test Files 95 passed (95) · Tests 1633 passed
cli: migrate-meta-engine-guidance + doctor-refs (e62e35ea)  Test Files 2 passed · Tests 11 passed
ui targeted, app-shell and console form tests (191c0b0e)    Test Files 11 passed · Tests 436 passed
ui targeted, record forms, previews, plugin tests (191c0b0e) Test Files 166 passed · Tests 1803 passed, 1 skipped

Acceptance notes

  • Skills readings. skills/objectstack-ui/references/react-blocks.md, whole file: 113 lines before and after; 13,725 bytes (3,432 tokens) before, 14,137 bytes (3,535 tokens) after. The file is generator-owned and is not ratcheted. Whole bundle, the sum of the 14 SKILL.md files: 2,144 lines and 30,318 tokens before and after; no SKILL.md is touched. The shipped tree's total moves from 290,327 to 290,430 tokens, all of it the one regenerated row.
  • The released protocol-18 entries are not edited. form-view-subform-columns-canonicalized respells a column inside the key this change deletes. A replay from 17 respells the column and the new entry then deletes the list.
  • Left on purpose. content/docs/frontend/plugins/plugin-view.mdx documents the objectui object-view node's own form.subforms, which that node forwards to the ObjectForm block. content/docs/deployment/validating-metadata.mdx names the React block prop. Neither tells an author to write the form key.
  • Readers that still spell the key, not changed here.
    • The field-consumer lint reads subforms by key name on unparsed input, and about twenty cases of its suite hand it that key on a forms: item. The spec refuses that carrier now. Rehoming those fixtures to a carrier that parses is a lint change of its own.
    • The CLI doctor's unused-object pass reads subforms on a form held by a view. A protocol-19 view holds lists only, so that arm was already unreachable on a parsed stack before this change.
    • The liveness lint's stack walk registers no forms collection, so the form ledger's dead rows (seven with this change, six before it) warn nobody when the rule is handed an unparsed stack. Measured: the rule returns no finding for a forms: item that authors subforms. This predates the change.
  • Comments that still name a form view's subforms[].columns as a carrier of the inline grid column, in files outside the claim: packages/spec/src/ui/component.zod.ts, packages/spec/src/data/inline-grid-columns.ts, packages/spec/src/contracts/automation-service.ts, packages/spec/src/conversions/entries/shared.ts, ui/packages/types/src/zod/objectql.zod.ts, ui/packages/app-shell/src/views/metadata-admin/form-spec.ts. Comments only; no behaviour reads them.
  • The branch carries one merge of main (c748e7d). Without it check:closed-ceremony-text crashed on this branch: its tracked-file listing crossed the 1 MiB default buffer once the new files were added, which main had already corrected.

Verification

Read first, by risk.

  1. packages/spec/src/ui/view.zod.ts: the FORM_VIEW_SUBFORMS_RETIRED prescription and the subforms: retiredKey(...) member. This is the text every author and upgrade tool meets.
  2. packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts: the apply body and its reach over the three channels; then registry.ts for order: 6.
  3. packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts: the SUBFORMS_EXCLUDED set, the one place this PR tells a tree-scoped pin to look away.

Two-minute check. After pnpm --filter @objectstack/spec build:

pnpm --filter @objectstack/spec exec vitest run --project repo src/ui/form-view-drawer-keys-retirement.test.ts

Expect Test Files 1 passed (1) and Tests 80 passed (80).

Gates. All readings below are at head 6d664d7. node scripts/pm/dispatch-gates.mjs --commands derived 136 families; 135 ran with exit 0 and 1 is NOT MEASURED.

Gate readings at 6d664d7
dispatch-gates --ran: 136 derived famil(ies) accounted for — 135 run, 1 NOT-MEASURED (0 DERIVED from a recorded exit 3, 1 claimed).
check-platform-checklist --changed-from origin/main: OK — 2 anchored file(s) in the change set, 19 anchor(s) judged, 0 lost.
check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.

Among the 135: check:generated, check:authorable-surface, check:api-surface, check:liveness, check:docs, check:react-blocks, check:skill-examples, check:upgrade-guide, check:spec-changes, check:strictness-ledger, the ADR-0087 registration gate, the changeset no-major gate, check:cross-package-test-inputs, check:doc-authoring, check:nul-bytes, check:role-word, check:platform-checklist, check:type-check-debt.

NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test, reason: the local clone is shallow and cannot reach the commit its positive control is pinned to (the self-test's own exit 3). This PR does not touch that script.

NOT MEASURED: the four cli end-to-end files that replay the chain (migrate-meta.e2e, lint-conversion-notices.e2e, build-json-failure-conversions.e2e, validate-json-failure-conversions.e2e), reason: named explicitly, they match no file in the package's local test projects, so nothing ran.

NOT MEASURED: type-check of @object-ui/app-shell, @object-ui/console, @object-ui/plugin-form and @object-ui/plugin-view, reason: the ui packages' build output is not on disk in this container. Read instead: no ui source reads subforms off a value typed by the spec's form view, and the tests of those packages that take the spec's form schema ran green (above).

Local-only family: check:skill-frame-freshness exit 0. check:dev-prereqs exit 1 with its one precondition, the unbuilt ui packages of this container; it judges the machine, not the change.

Merge of main (head abe4bce)

origin/main at 6354509 (which carries #39034 for #38981 and this card's PR 2, #39071) was merged with scripts/pm/os-regen-merge.sh: no conflict, and git kept this branch's bytes of the five generated files only it had changed. After building the spec closure, gen:schema, gen:docs, gen:react-blocks, gen:liveness-counts, gen:strictness-ledger, gen:migration-registry, gen:api-surface, gen:upgrade-guide and gen:spec-changes all exited 0 and changed no tracked file, so there is no regeneration commit. Then, at abe4bce: check:generated, check:authorable-surface, check:liveness, check:react-blocks and check-adr-0087-registration --base origin/main exited 0; spec typecheck exited 0; the spec src/ui, src/conversions and src/stack* tests passed (268 files, 8772 tests; one first-run red came from an ignored spec-changes.json the local gen:spec-changes run left on disk, and passed once that file was removed). Claim amendments: 7337159979 and 7337943974 (the two metadata-core tests). Follow-up cards: #39067 (the L2 nits) and #39066 (the lint ledger collection).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzhcDo1KkziovnoDxog

…38140)

Work in progress: schema tombstone, react-blocks overlay, conversion,
registry entries and ledger row. Generated baselines and pins follow.

Claude-Session: https://claude.ai/code/session_01WGufzhcDo1KkziovnoDxog
Co-authored-by: Claude <noreply@anthropic.com>
The form carrier's inline-grid column pins move to the tombstone: a form
that authors `subforms` is refused whole, so the per-column refusals that
used to ride on it are held by the surviving carriers. The stack-level
hydrated-column check loses its unreachable form arm. The shared form-view
retirement harness gains the refusal, the conversion, the block that keeps
its prop, and a tree-scoped absence pin for the key.

Claude-Session: https://claude.ai/code/session_01WGufzhcDo1KkziovnoDxog
Co-authored-by: Claude <noreply@anthropic.com>
…d renderer doors

The lint liveness pin holds the parse refusal and the ledger row the rule
warns from. The property-matrix checklist row moves `subforms` from a
failing row to a refused one. The renderer's two-door column test reads the
spec's column schema as the other door, since the spec form refuses the key.

Claude-Session: https://claude.ai/code/session_01WGufzhcDo1KkziovnoDxog
Co-authored-by: Claude <noreply@anthropic.com>
Brings the gate-script buffer fix the tracked-file listing needs once this
branch adds its files.

Claude-Session: https://claude.ai/code/session_01WGufzhcDo1KkziovnoDxog
Co-authored-by: Claude <noreply@anthropic.com>
…` refusal

The suite's form fixture carried `subforms` and pinned that the spec accepted
it. The spec refuses the key now, so the pin holds the refusal at `subforms`
and the acceptance of the same item without it. The rule's key walk, which
reads `subforms` by name on unparsed input, is unchanged.

Claude-Session: https://claude.ai/code/session_01WGufzhcDo1KkziovnoDxog
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added 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

This PR changes 1 package(s): @objectstack/spec, touching 27 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/spec/authorable-surface/ui.json, packages/spec/dropped-refinements.baseline.json, packages/spec/liveness/README.md, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

19 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 6354509427fab0ca2052b2b05be787f8593422ca.

⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/spec/authorable-surface/ui.json, packages/spec/dropped-refinements.baseline.json, packages/spec/liveness/README.md, …) — pages documenting those are invisible to this run
  • 8 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 254 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 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 6354509427fab0ca2052b2b05be787f8593422ca → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 6354509427fab0ca2052b2b05be787f8593422ca

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 6354509427fab0ca2052b2b05be787f8593422ca → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog

Contract-review-claim: session_01WGufzhcDo1KkziovnoDxog · head 3dc2a1c · 2026-12-02T06:31Z

The card thread runs the contract-tier L2 on this head through an isolated reviewer; the record and its brief follow here.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3dc2a1ca24b2ba96315f3762f443083528f5c994
Local-runs: none
Scope: packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts, packages/spec/src/conversions/registry.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__FormView__subforms.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__Form__subforms.ts, packages/spec/src/migrations/entries/semantic/19.master-detail-related-list-tab-by-default.ts, packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts, packages/spec/src/migrations/registry.ts.template, packages/spec/src/stack.zod.ts, packages/spec/src/ui/react-blocks.ts, packages/spec/src/ui/view.zod.ts, skills/objectstack-ui/references/react-blocks.md + packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts, packages/spec/src/conversions/conversions.test.ts, packages/spec/liveness/form.json
Security-touching: no
Rule-change-verified: none

Inputs read: card #38140 (body and its six comments: ruling 7303122859, claims 7308242680 and 7308309542, release 7314483147, claim 7334156966, dev report 7337106467), PR #39061 (body, 29 files, net diff against main from merge base c748e7d), and the check-runs on this head. The rest of the diff (the other tests, the generated baselines and references, the liveness README and counts, the checklist row, the changeset prose) is the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs on this head when read (51 runs): 13 success (Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards, Lint · ESLint, 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), 11 skipped (opt-in or queue-only), 0 failed, and 27 pending: Build Core, Build Docs, Build UI Deps, Test Core 1/12 to 12/12, Type Check (source gates, consumer gates, workspace, debt ledger), Lint (repo and tooling gates; docs and code guards; CI, release and engine gates; PM dispatch-gates; the three scoped lanes) and 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.

① Derived judgments

  • Accept set, narrowed, right: subforms on FormViewSchema goes from an optional array of strict entries to a retiredKey() tombstone. The form item takes the form view's keys by reference, so both ui/FormView:subforms and ui/Form:subforms are refused. This is the ruling 7303122859 (option A, retire) and nothing wider: no other key of the form moves.
  • Route, right: tombstone, so the key stays in the walked shape. The ledger row liveness/form.json subforms is kept and set to dead with a dated verifiedAt and a REMOVED note in the house wording; authorable-surface/ui.json marks the two rows retired and loses none; no manifest key or exported name leaves. That is the reading the playbook's route table predicts for a tombstone, and Spec property liveness is green on this head.
  • Registration, right: two RETIRED_KEYS_BY_MAJOR[19] rows, one per definition key, spelled as authorable-surface/ui.json spells them. The claim said one entry; two is what the exact-key gate needs.
  • Conversion, right: form-view-subforms-removed at major 19, retired from the load path, retiredAfter 18.6.0 (the value every other major-19 entry carries). Its apply body is the merged form-view-modal-size-removed body with the key changed: mapViewPayloads for form, formViews.*, an item record's config and a flattened overlay; the assembled viewItems channel; forms[]. Order 6 puts it after view-forms-to-form-items (3.5); it and the modalSize delete (4) strip different keys of the same payloads and commute. Idempotent through stripKeys.
  • Public TypeScript surface, right: the key's input type becomes never on FormView and Form. No exported type or schema is removed (the entry shape was inline), so no api-surface move is expected.
  • React tier, unchanged in what an author may write: ObjectForm keeps subforms, moved from dataProps to the block's overlay and ledgered in REACT_OVERLAY_SHADOWS. The published type goes from object[] to the written-out entry shape, which matches ui/packages/types/src/objectql.ts ObjectFormSchema.subforms key for key. This widens what is documented, not what is accepted.
  • defineStack, right: the forms[].subforms[].columns arm of the hydrated inline-column check is removed. The check runs inside the strict cross-reference pass, after a parse that now refuses the key, so the arm had no input left. The three remaining carriers are untouched.
  • Premises re-measured on this head: subforms has 0 hits in ui/apps, packages/rest, packages/runtime, packages/objectql, packages/metadata, packages/services, packages/plugins, packages/platform-objects and examples (control submitBehavior: 4 in FormPage.tsx, 6 authored in examples and platform apps). HotCRM src: 0 subforms, with 10 sections: and 13 form-authoring files as the control that the tree does author forms.

② Semver level

.changeset/38140-form-subforms-retired.md carries @objectstack/spec minor and @objectstack/skills patch. Minor with a BREAKING banner is the house level for a retirement while the release line is in prerelease (19.0.0-next.3); Check Changeset is green. The changeset has the FROM and TO mapping, the one-line fix, the os migrate meta --from 18 instruction, the "Coming from 18.x" paragraph, the ADR-0087 disposition marker and the two declaration lines. The skills patch matches the one regenerated file.

Clause-②: yes (narrowing). The PR body, the changeset and the claim agree, and the diff publishes exactly that: a declared key is refused. Metadata-protocol: narrowed is right.

③ 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 question 1 (folded log blocks in the PR body): answered, keep. The PR is open in that shape and PR-body guards is green.
  • Dev open question 2 (files outside the claim's File surface line): answered, option A. Each extra file is forced by the tombstone or carries a sentence it falsified; I checked stack.zod.ts, the second retired-keys entry, the 19 semantic entry and conversions.test.ts against that description and it holds. The claim amendment itself is not on the card yet (the last claim is 7334156966). Escalated to the seat: post the amendment, with the collision check on packages/lint/src/validate-field-consumers.test.ts and ui/packages/types/src/__tests__/object-form-subforms-columns-11266.test.ts, before hand-off.
  • Dev open question 3 (the changeset's disposition marker): answered, leave as is. The registration gate needs that line; it is not quoted here.
  • Dev out-of-scope finding, class b (form is absent from TYPE_COLLECTIONS in packages/lint/src/lint-liveness-properties.ts, so the form ledger's dead rows, seven with this change, warn nobody on unparsed input): real, predates this change, and at every parsing door the tombstone refuses first. Escalated to the seat to file as its own card; it does not hold this PR.
  • Dev notes on the field-consumer lint fixtures, the CLI doctor's unreachable arm and the two docs pages left alone: read and agreed. ObjectView.tsx does forward its own form.subforms to the block, so plugin-view.mdx documents a live prop.
  • Skills-docs: none on the PR body: agreed. No hand-written skill file names a form's subforms; the only skills hit at this head is the regenerated row.
  • Deviations 3 and 4 in the dev report (a background test run stopped, two gate batches rerun under the lock) are process notes with no effect on the tree.

④ Design judgment

No must-fix, no should-fix.

Per hits file:

  • packages/spec/src/ui/view.zod.ts. Holds. The prescription follows the five house conventions: the qualified key first, the version and ADR, the reason clause, the imperative fix with the mechanism that works, and the exact migrate sentence. Its claims check out in the live tree: FormPage.tsx never names the key; recordFormSubforms reads objectDef.groupSubforms only; attachInlineSubforms derives that from the parent's field groups; fieldGroups[].relatedList exists on the object schema and takes a child object name or object.field. The repointed split prescription now names the same replacement. The removed InlineGridColumnSchema import has no remaining use in the file. Attempt to break it: a form whose child hangs off a lookup, which the old key could list. The replacement then also needs relatedList: 'primary' on the child's relationship field, and without it the stack is refused by related-list-group-not-body, which names that remedy. So the path is loud at every step, never a second silent no-op.
  • packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts. Holds. Reach equals the tombstone's doors. A stored view row is not moved (STORED_ROWS_NOT_REWRITTEN) and is still stripped where the view holds the form; a stored form row is wrapped in forms and stripped; a page block's details and a list payload are never walked. The fixture is disjoint from the live-window entries, counts one notice per key (4), and is written over the post-move surfaces as the sibling's is. The released protocol-18 entry that respells columns inside the key is left unedited and replayed as a doubly superseded fixture.
  • packages/spec/src/conversions/registry.ts. Holds. Import and list entry sit where the identifier sorts; order 6 is after the move; the comment states why the order is for reading.
  • packages/spec/src/migrations/entries/retired-keys/19.ui__FormView__subforms.ts and 19.ui__Form__subforms.ts. Hold. Exact strings, under 19, each with its reason.
  • packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts. Holds. The mapping is right against the code that derives the inline table: title to inlineTitle, columns to inlineColumns, amountField to inlineAmountField are the three keys attachInlineSubforms reads; totalField, addLabel, minRows and maxRows have no reader on the derived path; summary is a field type. reason says what the conversion cannot do (place the table) and what the upgrader gets if no group names the child (rows entered from the related list). acceptanceCriteria is a decision an upgrader can check.
  • packages/spec/src/migrations/entries/semantic/19.master-detail-related-list-tab-by-default.ts. Holds. The removed sentence was false since the record forms stopped loading a form view; the string still reads correctly around the cut.
  • packages/spec/src/migrations/registry.ts.template. Holds. One sentence added to the step-19 rationale beside the modalSize one; step 19's conversion ids are derived from the registry, so nothing else is owed here.
  • packages/spec/src/stack.zod.ts. Holds, as in ①. The docblock's carrier count is corrected to three and says where the fourth went.
  • packages/spec/src/ui/react-blocks.ts. Holds. The overlay is the block's only declaration, the shadow is ledgered with its reason, and the type and description match what objectui's ObjectForm reads and does (grid per entry, saved with the record in one transaction).
  • skills/objectstack-ui/references/react-blocks.md. Holds. Generated from the file above; one row moves from data to binding and gains the entry shape. It teaches the block prop, which stays live, and nothing about a form item. The card has no eval prompt for this file; against the spec on main the row is more exact than the object[] it replaces. No security behaviour is taught.

Implementing files in the diff:

  • packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts agrees with the contract sentence by sentence: the refusal at each door with the prescription, the defineStack envelope, the tsc pins on both types, the replacement building green, the block keeping the prop, the conversion over stored containers, item records and form items, load-path retirement, chain order and the D3 entry. The absence pin is tree-scoped on the existing declared radius; its three exclusions apply to the subforms judgement only, each has its reason beside it, and each is asserted to still spell the key.
  • packages/spec/src/conversions/conversions.test.ts widens the superseded-fixture table to a list of retiring entries and tightens it: each must come from a later major, change what it is handed, fire on the full replay, and be listed in application order. Nothing is skipped.
  • packages/spec/liveness/form.json follows the tombstone route: row kept, dead, dated, with the REMOVED note and the measured readers.

Nits (no effect on correctness or the contract):

  • N1 (nit): packages/spec/src/migrations/entries/semantic/18.ui-form-view-type-layout-only.ts, outside the diff, still says in its replacement that child records edited beside the parent are subforms. It is the step-18 twin of the split prescription this PR repointed. The chain stays coherent, because step 19's entry retires the key and names the replacement, and an author who follows the step-18 sentence on 19 meets the tombstone. Left as an accepted deviation or a follow-up card; not fixed on this head.
  • N2 (nit): comments that still name a form view's subforms[].columns as a live carrier of the inline grid column, in packages/spec/src/ui/component.zod.ts (six places), packages/spec/src/data/inline-grid-columns.ts, packages/spec/src/contracts/automation-service.ts and packages/spec/src/conversions/entries/shared.ts. Comments only, none inside a .describe() string, already listed in the PR body. Follow-up card.
  • N3 (nit): the D3 replacement and the prescription do not say that a child reached through a lookup, or through a relationship field with relatedList: true, also needs relatedList: 'primary' on that field before a group may place it. The stack refuses the group with that remedy, so the upgrader is told; one clause in the D3 entry would save the round trip. Follow-up card or accepted deviation.

Implemented-by: claude/project-thread-37qug9
Reviewed-by: session_01WGufzhcDo1KkziovnoDxog

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog

The brief the card thread handed its isolated contract reviewer for the record above, posted for the seat to read before adopting it.

Contract review brief — PR #39061 @ 3dc2a1ca24b2ba96315f3762f443083528f5c994 (card #38140)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #38140: its body and EVERY comment (rulings and earlier records included)
· PR #39061: its body, its file list, and the net diff against main at 3dc2a1ca24b2ba96315f3762f443083528f5c994
· the check-runs on 3dc2a1ca24b2ba96315f3762f443083528f5c994: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts, packages/spec/src/conversions/registry.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__FormView__subforms.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__Form__subforms.ts, packages/spec/src/migrations/entries/semantic/19.master-detail-related-list-tab-by-default.ts, packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts, packages/spec/src/migrations/registry.ts.template, packages/spec/src/stack.zod.ts, packages/spec/src/ui/react-blocks.ts, packages/spec/src/ui/view.zod.ts, skills/objectstack-ui/references/react-blocks.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — if a hits path is under skills/** or ui/skills/** and the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

Rule change — if a hits path is under .claude/**: the PR body declares Rule-change: and you verify it against the diff.
Write Rule-change-verified: none ONLY when no changed hunk alters what an agent may do without the maintainer
(merge, bypass a check, change repository settings), what gets done and in what order (grading, dispatch, scope), or
what must go to him (decisions, maintainer actions); process steps, scripts, wording, slimming and file moves are not rule
changes. Write ruled ONLY when every such hunk copies the ruling the PR body quotes on its Ruling-ref: line — check the
copy against the quoted words, do not re-rule it. Otherwise yes: the pull request then waits for the maintainer.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-claude/7d7e46e5-3022-53e5-9959-26ad2729a6cf/scratchpad/pr-39061/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

…nt keeps its replay pins

The artifact door replays every retired entry whose `retiredAfter` is at or
above the artifact's floor, so over the released step-18 fixture that respells
a column inside a form's `subforms` it now also applies the protocol-19 entry
that deletes the key. The fixture is not edited. Both whole-step blocks state
the rule the spec's conversion suite uses: the expected result is the retiring
entries applied to the fixture's `after`, and every notice beyond the
fixture's own is theirs, at the site they report.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog

Contract-review-claim: session_01WGufzhcDo1KkziovnoDxog · head abe4bce · 2026-12-02T07:59Z

Post-merge round: the card thread runs the contract-tier L2 on this head (main merged after #39034 landed, plus the metadata-core test fix 6d664d7) through an isolated reviewer.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: abe4bceef2f8e571258c93d5701b06d4b0de4ad0
Local-runs: none
Scope: packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts, packages/spec/src/conversions/registry.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__FormView__subforms.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__Form__subforms.ts, packages/spec/src/migrations/entries/semantic/19.master-detail-related-list-tab-by-default.ts, packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts, packages/spec/src/migrations/registry.ts.template, packages/spec/src/stack.zod.ts, packages/spec/src/ui/react-blocks.ts, packages/spec/src/ui/view.zod.ts, skills/objectstack-ui/references/react-blocks.md + packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts, packages/spec/src/conversions/conversions.test.ts, packages/spec/liveness/form.json, packages/metadata-core/src/artifact-forward-conversion.test.ts, packages/metadata-core/src/artifact-forward-conversion-package-body.test.ts
Security-touching: no
Rule-change-verified: none

Post-merge round: a full review of this head. The earlier record 7337248486 judged head 3dc2a1c; since then the head took 6d664d7 (two metadata-core test files) and abe4bce (a merge of main at 6354509). I read that record and kept only what I re-checked in this tree.

Inputs read: card #38140 (body and its ten comments: ruling 7303122859, claims 7308242680 and 7308309542, release 7314483147, claim 7334156966, dev reports 7337106467 and 7337906368, claim amendments 7337159979, 7337178377 and 7337943974), PR #39061 (body as refreshed for this head, 31 files, the net diff against main from merge base 6354509, and what moved between 3dc2a1c and this head), and the check-runs on this head. The rest of the diff (the other tests, the generated baselines and references, the liveness README and counts, the checklist row, the changeset prose) is the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs on this head when read (55 runs; CI had just started): 13 success (Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards twice, 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), 11 skipped (opt-in or queue-only), 0 failed, and 31 pending: Build Core, Build Docs, Build UI Deps, a second Check Changeset run, Test Core 1/12 to 12/12, Type Check (source gates, consumer gates, workspace, debt ledger), Lint (ESLint; repo and tooling gates; docs and code guards; CI, release and engine gates; PM dispatch-gates; the three scoped lanes), Live E2E UI and the three Dogfood battery shards. This record judges the contract. The pending runs are the landing check's to read; a red one is not covered here. In particular check:generated, check:react-blocks and the two metadata-core test files this head changed are answered only by pending runs.

① Derived judgments

  • Accept set, narrowed, right, and unchanged by the merge: subforms on FormViewSchema is a retiredKey() tombstone, and the form item takes it by reference, so ui/FormView:subforms and ui/Form:subforms are both refused. This is ruling 7303122859 (retire) and nothing wider.
  • The merge added no second narrowing. Between 3dc2a1c and this head, packages/spec moved in two files only: src/ui/view.zod.ts and the new src/ui/view-columns-mix.test.ts, both from fix(spec): a mixed list view columns array is refused with a sentence naming the mix #39034. That change gives the list view's columns union an error callback and one message constant. It changes no accept set, and it is on main, so it is not in this PR's net diff. The net diff of view.zod.ts against main is the same four hunks the earlier record judged: the import, the split prescription, the FORM_VIEW_SUBFORMS_RETIRED constant and the tombstone member.
  • Route, registration and conversion, right, as before: the ledger row stays and reads dead with a dated verifiedAt and the REMOVED note; two RETIRED_KEYS_BY_MAJOR[19] rows, one per definition key; form-view-subforms-removed at major 19, retired from the load path, retiredAfter 18.6.0, order 6. No conversion, registry or migration file moved in the merge, so the order table at this head is the one judged before: the move of a view's forms is 3.5, the modalSize delete is 4, the bulk-actions move is 5, and no other entry sits at 6.
  • Artifact door, new on this head, right: an artifact whose floor is 18.0.0 is at or below this entry's retiredAfter (18.6.0), so the door's per-entry half replays it (packages/metadata-core/src/artifact-forward-conversion.ts, the floor at or below retiredAfter rule). An installed package built for 18 that carries subforms on a form therefore loads on 19 with the key deleted. That is the same behaviour the door already gives every other major-19 delete, and it agrees with the changeset's "a form saved with the key keeps loading". The door does not replay the form move (TYPE_MOVES_NOT_REPLAYED_HERE), so the key is deleted where the view holds the form, which the conversion's docblock already says.
  • Public TypeScript surface, the React tier and defineStack: unchanged since the earlier record, and still right. The key's input type is never on FormView and Form; ObjectForm keeps subforms in its overlay; the unreachable form arm of the hydrated inline-column check is gone.
  • Premises re-measured at this head: subforms has 0 hits outside tests in ui/apps/console/src/components/FormPage.tsx, packages/rest/src, packages/runtime/src and packages/objectql/src; recordFormNavigation.ts still reads groupSubforms. No file the merge brought into the absence pin's radius (packages, examples, skills, content, scripts) spells the key: of the 47 files that moved, only the two ADR records (outside the radius), the two metadata-core tests (comments only) and view.zod.ts name it.

② Semver level

.changeset/38140-form-subforms-retired.md is unchanged: @objectstack/spec minor and @objectstack/skills patch, with the BREAKING banner, the FROM and TO mapping, the one-line fix, the migrate instruction, the "Coming from 18.x" paragraph and the ADR-0087 disposition marker. The release line is still in prerelease (19.0.0-next.3, changesets in pre mode), where minor with a BREAKING banner is the house level. One Check Changeset run is green on this head and a second is pending. The two commits since the earlier record publish nothing new: one is test-only, the other is the merge.

Clause-②: yes (narrowing). The PR body, the changeset and the claim agree, and the diff publishes exactly that. Metadata-protocol: narrowed is right.

③ 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 1 to 3 of report 7337106467 (folded log blocks, files outside the claim's surface, the changeset marker): answered in the earlier record, and the answers stand. The claim amendment that record escalated is now on the card (7337159979), and 7337943974 adds the two metadata-core tests with its collision check.
  • Dev out-of-scope finding (form missing from the liveness lint's TYPE_COLLECTIONS): the PR body names follow-up card Lint liveness walk skips stack forms: the form ledger's dead rows warn nobody #39066 for it. Not this PR's to fix.
  • Landing order, escalated to the seat: amendment 7337943974 says PR 2 lands after PR 1, but PR 2 (docs(adr): record the retirement of the form view's subforms in ADR-0035 and ADR-0050 (#38140 PR 2 of 2) #39071) is already on main at 6354509. So main today carries ADR notes that say the form view's subforms is a tombstone, built by feat(spec)!: retire the form's subforms (ADR-0049, #38140 PR 1 of 2) #39061, while main's schema still accepts the key. I read both notes against this head: the tombstone on FormViewSchema, the conversion id form-view-subforms-removed, the semantic id ui-form-view-subforms-retired and the overlay in react-blocks.ts are all as the notes spell them, and the notes cite symbols, not line numbers, so the 37 lines fix(spec): a mixed list view columns array is refused with a sentence naming the mix #39034 added above the tombstone do not move an anchor. Nothing is wrong in this diff. The cost is that the design records are ahead of main until this PR lands, and a rename of either id on this PR would now need an ADR correction.
  • Skills-docs: none on the PR body: still right. The merge brought skill edits from main (objectstack-ui/rules/list-views.md, rules/actions.md, the i18n and data skills); none names a form's subforms, and none is in this PR's net diff.
  • The PR body's "Merge of main" section says nine generators changed no tracked file after the merge. I did not re-run them. It is consistent with what I can read: fix(spec): a mixed list view columns array is refused with a sentence naming the mix #39034 changed a union's error option and no .describe() string, so no generated reference has a reason to move. The pending check:generated run is the verdict.

④ Design judgment

No must-fix, no should-fix.

Per hits file, at this head:

  • packages/spec/src/ui/view.zod.ts. Holds, with both changes in place. The fix(spec): a mixed list view columns array is refused with a sentence naming the mix #39034 hunk sits in the list view section (the LIST_VIEW_COLUMNS_MIXED constant, listViewColumnsUnionError, and the error option on ListViewShapeSchema.columns); this PR's hunks sit in the form view section. They share no symbol. I checked the one way they could meet: this PR removes the InlineGridColumnSchema import, and the file at this head has no remaining use of that name, the merged hunk included. The tombstone member, its prescription and the repointed split prescription are byte for byte what the earlier record judged, and its reading stands: the five house conventions are met, and the replacement it names (fieldGroups[].relatedList) is what the record forms read. Attempt to break it through the merge: a form item whose list sibling mixes column spellings now gets the new union sentence and a form carrying subforms gets the tombstone's; the two refusals are at different keys of different schemas and neither masks the other.
  • packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts. Holds; unchanged. Its docblock sentence about the artifact door (the move is not replayed there, so the key is deleted where the view holds the form) is now exercised by the two metadata-core tests and agrees with them.
  • packages/spec/src/conversions/registry.ts. Holds; unchanged, and nothing merged from main added or reordered an entry.
  • packages/spec/src/migrations/entries/retired-keys/19.ui__FormView__subforms.ts and 19.ui__Form__subforms.ts. Hold; unchanged.
  • packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts and 19.master-detail-related-list-tab-by-default.ts. Hold; unchanged. The ADR notes now on main point at the first by id and say the same thing it says.
  • packages/spec/src/migrations/registry.ts.template. Holds; unchanged, and main added no step-19 sentence beside it.
  • packages/spec/src/stack.zod.ts. Holds; unchanged.
  • packages/spec/src/ui/react-blocks.ts and skills/objectstack-ui/references/react-blocks.md. Hold; unchanged. The skill row teaches the block prop, which stays live, and no security behaviour.

Implementing files in the diff:

  • packages/metadata-core/src/artifact-forward-conversion.test.ts and artifact-forward-conversion-package-body.test.ts (new on this head). They state the superseded-fixture rule faithfully, and nothing is weakened or skipped. Read against SUPERSEDED_FIXTURES in packages/spec/src/conversions/conversions.test.ts:
    • The spec rule's second leg says the full replay equals the retiring entries applied, in the order listed, to the fixture's after, and every extra notice is theirs. Both door tests assert exactly that, and more tightly: the extra notices must equal the retiring entries' reported sites, id and path, in order, where the spec test checks ids only.
    • For every step-18 entry with no row, the new assertions reduce to the old ones. The entry's own notice count must equal expectedNotices, the list of other notices must equal an empty list, and on the built-after leg the definition must still come back by reference. So the pins on the other entries did not loosen.
    • Each listed retiring entry must be registered, retired from the load path, from a later major, and must change what it is handed; a row whose fixture is no longer a retired step-18 entry fails. A stale row cannot sit there green.
    • The table lists form-view-subforms-removed alone, where the spec table lists the form move first. That is right for this door: the move is in TYPE_MOVES_NOT_REPLAYED_HERE, and the comment says so.
    • The door has no leg that excludes the retiring entry, so here the fixture's own after is never asserted in isolation. That leg lives in the spec suite, which is where the fixture is owned. No skip, todo or only is added anywhere in the net diff.
  • packages/spec/src/conversions/conversions.test.ts, packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts and packages/spec/liveness/form.json: unchanged since the earlier record, and its reading stands at this head. The absence pin's radius took no new spelling of the key from the merge.

Nits (no effect on correctness or the contract):

  • N1, N2 and N3 of record 7337248486 still read as written at this head (the step-18 entry 18.ui-form-view-type-layout-only still names subforms; comments in component.zod.ts, inline-grid-columns.ts, automation-service.ts and conversions/entries/shared.ts still name the form carrier; the prescription does not mention relatedList: 'primary' for a lookup child). They are accepted deviations, filed as Tidy leftovers after the form-view subforms retirement (#38140): step-18 entry, stale comments, lookup-child prescription #39067.
  • N4 (nit): SUPERSEDED_AT_THIS_DOOR and afterRetiringEntries are written out twice, once in each metadata-core test file, and neither reads the spec's SUPERSEDED_FIXTURES. A later retirement that supersedes another step-18 fixture needs a row in three places. Each place fails red on its own when a row is missing, so nothing can pass silently. Accepted deviation; a shared helper is a follow-up at most.

Implemented-by: claude/project-thread-37qug9
Reviewed-by: session_01WGufzhcDo1KkziovnoDxog

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog

The brief the card thread handed its isolated contract reviewer for the post-merge record above (head abe4bce), posted for the seat to read before adopting it. The dispatch added a weighting toward the merge of main and the metadata-core test change; the brief itself is unchanged.

Contract review brief — PR #39061 @ abe4bceef2f8e571258c93d5701b06d4b0de4ad0 (card #38140)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #38140: its body and EVERY comment (rulings and earlier records included)
· PR #39061: its body, its file list, and the net diff against main at abe4bceef2f8e571258c93d5701b06d4b0de4ad0
· the check-runs on abe4bceef2f8e571258c93d5701b06d4b0de4ad0: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts, packages/spec/src/conversions/registry.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__FormView__subforms.ts, packages/spec/src/migrations/entries/retired-keys/19.ui__Form__subforms.ts, packages/spec/src/migrations/entries/semantic/19.master-detail-related-list-tab-by-default.ts, packages/spec/src/migrations/entries/semantic/19.ui-form-view-subforms-retired.ts, packages/spec/src/migrations/registry.ts.template, packages/spec/src/stack.zod.ts, packages/spec/src/ui/react-blocks.ts, packages/spec/src/ui/view.zod.ts, skills/objectstack-ui/references/react-blocks.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — if a hits path is under skills/** or ui/skills/** and the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

Rule change — if a hits path is under .claude/**: the PR body declares Rule-change: and you verify it against the diff.
Write Rule-change-verified: none ONLY when no changed hunk alters what an agent may do without the maintainer
(merge, bypass a check, change repository settings), what gets done and in what order (grading, dispatch, scope), or
what must go to him (decisions, maintainer actions); process steps, scripts, wording, slimming and file moves are not rule
changes. Write ruled ONLY when every such hunk copies the ruling the PR body quotes on its Ruling-ref: line — check the
copy against the quoted words, do not re-rule it. Otherwise yes: the pull request then waits for the maintainer.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-claude/7d7e46e5-3022-53e5-9959-26ad2729a6cf/scratchpad/pr-39061/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 review — ACCEPT on abe4bceef2f8e571258c93d5701b06d4b0de4ad0

What changed since my read on 3dc2a1ca:

Checks:

  • CI. 69 success, 11 expected-skip, 0 failed, 0 pending. mergeable_state clean.
  • Dogfood. Owed (! and the (narrowing) arm), and Dogfood battery (opt-in) concluded success on this head (check run 143320990698).
  • Contract L2. Record 7338973103 at CONTRACT_REVIEW_TIER is on the same head: PASS, no must-fix or should-fix. N4 (the superseded-fixture rows written in three places, each failing red on its own) is an accepted deviation.
  • l1-face. The only flag is changeset, for @objectstack/lint, @objectstack/metadata-core and @object-ui/types. All five touched files are *.test.ts / *.test.tsx, and each package's files[] is dist + README + CHANGELOG, so nothing they ship changes.

Code, re-read on the final tree:

  • The tombstone. subforms leaves FormViewSchema as a retiredKey() tombstone. Its prescription points at fieldGroups[].relatedList, and the type: 'split' sentence that used to say "declare subforms" was respelled to the same remedy.
  • form-view-subforms-removed. It reaches every form payload: the view form channels, viewItems both as config and as a flattened overlay, and the top-level body of forms[]. It deletes the key whole and emits one notice per key. It is idempotent (stripKeys) and ordered after view-forms-to-form-items. The page block's details and the React ObjectForm prop are left alone, and the fixture pins both.
  • The column judge. It drops the forms[].subforms[].columns carrier, which is consistent: no parsed stack can carry one.
  • D3 entry. ui-form-view-subforms-retired says the table's placement cannot be converted, which is true.

Relation. Part of #38140. PR 2, #39071, has already landed on main, so this PR is the card's last one. Close the card by hand once this lands. Under landing rule B it keeps pm:dispatched until then.

Landing. GOVERNED (the skills/objectstack-ui/references/react-blocks.md surface): tier H, through the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

席位核对

ACCEPT — PR #39061 @ abe4bceef2 (Part of #38140, PR 1 of 2, the code; card thread of seat os-support-ai, claim 7334156966, amendments 7337159979, 7337178377 and 7337943974). Checked 2026-12-02T08:35Z against GitHub.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

维护者速读

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 2, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 2, 2026 08:37
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

维护者速读(更正版,以这条为准)

上一条速读 7339695234 和席位核对 7339671484 有一处说错了,这里更正。

Correction to 7339671484 (席位核对): the conversion form-view-subforms-removed deletes the key with one notice per key. It does not move an entry to the related-list path. The D3 entry is ui-form-view-subforms-retired at step 19, not step 18, and it tells the author to add the field group's relatedList by hand. The ACCEPT and every reading in it stand.

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 needs:dogfood-battery protocol:ui size/xl 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.

3 participants