Repository navigation
feat(spec)!: retire the form's subforms (ADR-0049, #38140 PR 1 of 2) - #39061
Conversation
…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>
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>
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>
…a field group 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>
📓 Docs Drift CheckThis PR changes 1 package(s): 19 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 183 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
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. |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog Contract reviewServed-tier: 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 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
② Semver level
Clause-②: yes (narrowing). The PR body, the changeset and the claim agree, and the diff publishes exactly that: a declared key is refused. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. Per
Implementing files in the diff:
Nits (no effect on correctness or the contract):
Implemented-by: VERDICT: PASS |
|
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 @
|
…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>
|
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. |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhcDo1KkziovnoDxog Contract reviewServed-tier: 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 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 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 ① Derived judgments
② Semver level
Clause-②: yes (narrowing). The PR body, the changeset and the claim agree, and the diff publishes exactly that. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. Per
Implementing files in the diff:
Nits (no effect on correctness or the contract):
Implemented-by: VERDICT: PASS |
|
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 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review — ACCEPT on
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #39061 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读(更正版,以这条为准)上一条速读 7339695234 和席位核对 7339671484 有一处说错了,这里更正。
Correction to 7339671484 (席位核对): the conversion |
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 generatedskills/objectstack-ui/references/react-blocks.md, is regenerated here and lists it as theObjectFormblock's own prop, and the replacement (a field group'srelatedListon the parent object) is already taught and evaluated inskills/objectstack-data维护者速读
What changes
The contract.
FormViewSchema.subformsbecomes aretiredKey()tombstone (protocol 19, ADR-0049 enforce-or-remove; the ruling on the card is to retire). Aformitem takes the form view's keys by reference, so the tombstone stands at theforms:door too. The parse refuses the key with a prescription that names the replacement: a field group on the parent object whoserelatedListnames the child. TypeScript rejects the key at aFormVieworFormposition.Why nothing a person sees moves. The readers of a form's
subformswere 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
ObjectFormblock keeps itssubformsprop: the react-tier contract now declares it in the block's own overlay, with the entry shape written out (it was published asobject[]). Theobject-master-detail-formpage block keepsdetails. A relationship field'sinlineColumnsis untouched.The retirement kit.
form-view-subforms-removed(protocol 19, retired from the load path,retiredAfter18.6.0). It deletes the key from every form payload: a stored view'sformandformViews.KEY, a form view item'sconfig, a flattened form overlay, the assembledviewItemschannel, and aforms[]item. It applies after the conversion that moves a view's forms toforms[].RETIRED_KEYS_BY_MAJOR[19]rowsui/FormView:subformsandui/Form:subforms.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.form.jsonsubformsgoes fromlivetodeadwith today'sverifiedAt; state counts, the undrilled-container baseline and the dropped-refinement baseline shrink accordingly.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.subformsfrom a failing row to a refused one (revision 13).Sentences this change made false, corrected in place.
master-detail-related-list-tab-by-defaultsaid a form view that declares its own subforms still inlines them. Removed.splitform type's parse prescription sent an author tosubformsfor a child grid beside the parent. It now names the field group'srelatedList.defineStack's inline-column cross-check walked a form'ssubforms. 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 insidesubformsis 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 andcheck:generatedrefuse 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 aformitem carryingsubforms; 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.tsandpackages/metadata-core/src/artifact-forward-conversion-package-body.test.ts: the artifact door replays every retired entry whoseretiredAfteris at or above the artifact's floor, so over the released step-18 fixture that respells a column insidesubformsit 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'safter, 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), thedefineStackenvelope (STACK_SCHEMA_INVALID, 422),@ts-expect-errorpins 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.packages,examples,skills,contentandscripts, with an anti-vacuity case for its matcher. Three files are excluded from thesubformsjudgement 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 namingrelatedList, the tombstone's ledger row in the rule's warned set, a live sibling as the control.detailsand a list view ride through untouched.Form-carrier tests removed, and where their behaviour is still held.
inline-grid-column-carriers.test.tsdropped the per-column refusals that rode on a form'ssubforms[].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 thedetailsandinlineColumnssections 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).
conversions.test.tswent to 2 failed, 224 passed.Test runs
At 6d664d7, the head:
At 3dc2a1c; the only later commit touches two metadata-core test files:
Earlier heads, on files no later commit touched:
Acceptance notes
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 14SKILL.mdfiles: 2,144 lines and 30,318 tokens before and after; noSKILL.mdis touched. The shipped tree's total moves from 290,327 to 290,430 tokens, all of it the one regenerated row.form-view-subform-columns-canonicalizedrespells a column inside the key this change deletes. A replay from 17 respells the column and the new entry then deletes the list.content/docs/frontend/plugins/plugin-view.mdxdocuments the objectuiobject-viewnode's ownform.subforms, which that node forwards to theObjectFormblock.content/docs/deployment/validating-metadata.mdxnames the React block prop. Neither tells an author to write the form key.subformsby key name on unparsed input, and about twenty cases of its suite hand it that key on aforms:item. The spec refuses that carrier now. Rehoming those fixtures to a carrier that parses is a lint change of its own.subformson 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.formscollection, so theformledger'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 aforms:item that authorssubforms. This predates the change.subforms[].columnsas 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.check:closed-ceremony-textcrashed 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.
packages/spec/src/ui/view.zod.ts: theFORM_VIEW_SUBFORMS_RETIREDprescription and thesubforms: retiredKey(...)member. This is the text every author and upgrade tool meets.packages/spec/src/conversions/entries/19/form-view-subforms-removed.ts: theapplybody and its reach over the three channels; thenregistry.tsfororder: 6.packages/spec/src/ui/form-view-drawer-keys-retirement.test.ts: theSUBFORMS_EXCLUDEDset, the one place this PR tells a tree-scoped pin to look away.Two-minute check. After
pnpm --filter @objectstack/spec build:Expect
Test Files 1 passed (1)andTests 80 passed (80).Gates. All readings below are at head 6d664d7.
node scripts/pm/dispatch-gates.mjs --commandsderived 136 families; 135 ran with exit 0 and 1 is NOT MEASURED.Gate readings at 6d664d7
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-formand@object-ui/plugin-view, reason: the ui packages' build output is not on disk in this container. Read instead: no ui source readssubformsoff 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-freshnessexit 0.check:dev-prereqsexit 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/mainat 6354509 (which carries #39034 for #38981 and this card's PR 2, #39071) was merged withscripts/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-guideandgen:spec-changesall 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-blocksandcheck-adr-0087-registration --base origin/mainexited 0; spectypecheckexited 0; the specsrc/ui,src/conversionsandsrc/stack*tests passed (268 files, 8772 tests; one first-run red came from an ignoredspec-changes.jsonthe localgen:spec-changesrun 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