Repository navigation
Description
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Source: ADR-0159 (PR #36957), decision D7 and ruled merge question 4 (ruling record 7131569242 on #36868, 2026-11-24: 「表单拆成独立 form 元数据类型的 5 个合并问题 都同意」, all option A). Release sequencing, the maintainer verbatim, all in ruling record 7142585849 on #36868: 「卡⑤ 不用暂缓,下一个版本就是大版本」, 「B:全部放进下一个大版本,升级命令先自动转换、再切换」, 「B(fable 推荐):升级时自动删除。」, 「要在发版说明里重点提示」; and on HotCRM: 「HotCRM 的迁移跟着它升级到大版本那次一起做」「卡⑤ 不再等 HotCRM 卡,否则两边会互相等待。」 Parent: #36868, card ⑤b: the major-19 half of the ADR's card ⑤. The stored-row ceremony and the precheck report are #37111. This card is not held.
Blocked-by: #37087
Blocked-by: #37088
Blocked-by: #37105
Blocked-by: #37111
Metadata-protocol: narrowed
Clause-②: yes (narrowing)
(Seat note: confirm the yes at claim. It holds if the card adds public surface: the two conversions' exports, the chain entry, a new error code for the upgrade refusal. A card that only narrows is no (narrowing).)
(Seat note: this card does not wait on the HotCRM card, by the maintainer's word above; HotCRM moves its sources with its own bump to the major.)
Grading: area:build · Feature (breaking, major) · view becomes lists only; the three old form shapes are refused with a prescription; the upgrade command converts stored forms and then switches · every app that authored a form inside a view, and every deployment with stored forms · evidence: ADR-0159's census at main 62692b7f8b (256 files name the shapes, 158 of them tests). Priority: the seat's, as a card of the next release.
What to build
How this ships, by the ruling (「B:全部放进下一个大版本,升级命令先自动转换、再切换」): cards ②, ③, ④a, the skills card, #37111 and this card all ship in the next major release (HotCRM's move follows with its own bump to it); there is no protocol-18 release in between. The upgrade command converts first and switches second (item 4).
Precondition, read before any edit: packages/spec/src/kernel/protocol-version.ts#PROTOCOL_VERSION. If it is 18 and the claim does not say in words that this card bumps it, stop and report; ⛔ the dev does not open the major on its own reading.
- Tombstones: the container's
formandformViews, theformmember ofViewKindSchema, and theformarm of the item and wire schemas, each refused with a prescription namingforms:. The two form tails under an object's view translations tombstoned with the prescription namingforms.NAME. Follow thespec-property-retirementplaybook; do not rebuild the kit by hand. - Two ADR-0087 conversions,
toMajor: 19: on the stack, move each named form fromviews[]toforms[]under the projection's name, lift the binding toobject, remove a container left empty; ontranslations, move the form tails. Internal record forms are deleted and reported per form. The set is defined by ADR-0159 D1's test, ⛔ not byform-view-internal-not-loaded'ssharing.enabledtest: a form in a record-form slot (the defaultform,formViews.default,formViews.create, an item withisDefault: trueor namedOBJECT.create) that declares nosharing.publicLinkand that no action of typeformtargets. A form that declares asharing.publicLinkis never internal, switched on or off, in whatever slot (D7-a): it is moved with itssharingblock as written, the switch included, and so is an action-opened one. A switched-off form that keeps its link is an explicit withdrawal; deleting it would re-open the app's own form. A form held by an item or a container that carries anoverridesdeclaration is moved whatever its body and slot, with the declaration (D7-b): the conversion cannot read the base's source, and an override with no link over a base form that declares one is what keeps that address closed. Where the base ships no form of that name in either type (read through the projection),os validate, which sees both packages, refuses the moved item: an error, the grade the override write gate gives a declaration of an item its base does not ship (declared_package_ships_no_such_item). The message names the base and the two ways out (remove the item; correct the name); only there is a removal offered, andos migrate metalists it as an edit for the author. This sentence goes past ruling item 3's words and is ADR-0159's own reading (its TL;DR 10). The reading was accepted with the merge of PR docs(adr): ADR-0159 — forms are their own metadata type; amend ADR-0017 and ADR-0146 D2 #36957 (ADR-0159 TL;DR 10, unstruck atmain254e396a29e). If the record onmainno longer carries it, stop and reportneeds_decision. The conversion's output is judged by question 3's refusal like anyform: a retired form that keeps its link beside its successor on the same address is moved as written, both forms, andos migrate metalists the pair as an edit for the author (clear the retired form's link). A form whosedata.objectdisagrees with its container is left with a structured TODO. Fixture pairs cover the three shapes, a mixed container, an item that declaresoverrideswith no link in a record-form slot, and the disagreement case. - The chain entry for major 19, and
os migrate meta --from 18listing and applying the edits. It lists a hand-writtenobjects.OBJECT._views.KEY.labelor.descriptionas an edit for the author whenKEYnames a form the stack conversion moved; the conversion does not move those two keys (ADR-0159 D8). - The upgrade command: convert first, then switch (the sequencing ruling; ruled question 4 = A). In this order, and nothing else:
- run Upgrade to the major converts stored forms: the stored-row ceremony and the precheck report (ADR-0159, card ⑤a) #37111's ceremony with
--apply, which is all-or-nothing (ruling record 7142585849 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868, "Seat decisions"). In the run that switches it also removes stored internal record forms (「B(fable 推荐):升级时自动删除。」, item 3 of that record) and reports each with its body and, per object, that New and Edit now follow the object's field groups and whether it has any; - run Upgrade to the major converts stored forms: the stored-row ceremony and the precheck report (ADR-0159, card ⑤a) #37111's precheck report. ⛔ Call its function; do not re-derive the classes;
- if the report counts no row, switch the deployment to major 19;
- if it counts a row — one the ceremony could not move because its pair cannot be ensured, its body cannot be read or its base is a kernel package with no pair — refuse to switch. ⛔ A stored internal record form does not stop the switch, and none is removed on a deployment that does not switch. The refusal names each row and the action for its class, in the report's own words. The deployment stays on the release it is running, with every stored row as it was, until the cause is removed and the command is run again.
- Where the action is taken. ADR-0159 D7-c's exits exist only on protocol 18: an old-shape save that repairs an unreadable body; a deployment that waits for an App's fix. A deployment the command refused never switched, so it is still running its pre-upgrade release, and the action is taken there. The refusal says so.
- ⛔ Not counted, and not stopping the switch, are the two kinds of row the ruling names (ruling record 7136809727 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868 (「两类特殊的旧存储行怎么处置。不考虑」)) and, by ADR-0159's reading of that answer, a form row left behind a no-form row; "not counted" is asked per package address.
- ⛔ The refusal never offers deletion or a reset for a row that declares a
sharing.publicLink, or for a row that stands over a base form that declares one (D7-e). - ⛔ No path of the command leaves moved
formrows on a deployment that did not switch: its pre-upgrade release readsviewrows only, and a switch-off it cannot read re-opens the form.
- run Upgrade to the major converts stored forms: the stored-row ceremony and the precheck report (ADR-0159, card ⑤a) #37111's ceremony with
viewreads serve lists only; the projection serves no content; the list rung ofanonymousFormObjectNameis removed; the translator's declared fallback read of the_viewsform tails is removed (ADR-0159 D8: it retires with the projection).- The withdrawal reader stays (ruled question 4 = A, a permission boundary): a stored old-shape body that withdraws a form keeps closing it. The reader card ② built is exempt from ADR-0087's kit age-out and ⛔ is not retired, tombstoned or put on a retirement clock by this card; its ADR anchor stays green. No withdrawn public form may re-open. Rule 11's replacement check keeps the reader's lifetime: a stored old-shape row found over a package's form after the major still replaces it, so nothing of that name is served from that package while the row stands; the check is not put on ADR-0087's clock and leaves in the release that removes the reader, by the same precheck. That is ADR-0159's own reading past the scope question 4 rules ("this one reader"; its TL;DR 10). The reading was accepted with the merge of PR docs(adr): ADR-0159 — forms are their own metadata type; amend ADR-0017 and ADR-0146 D2 #36957 (unstruck at
main254e396a29e). If the record onmainno longer carries it, stop and reportneeds_decision. The check covers a row that carries no form, in the bindings D5 bounds: such a row reaches major 19 as stored, and this check is what keeps its base's address closed there. So ⛔ this card removes neither D5's bounded reading nor card ②'s refusal of a package-less list at a form's name: both last as long as the check. - The
ui/fixes the removals force ship in the same PR: among them the branch inui/packages/app-shell/src/providers/MetadataProvider.tsxthat keepsviewKind: 'form'items out of the list switcher, and thevieweditor's form arm underui/packages/app-shell/src/views/metadata-admin/, both kept by card ③ for this card. - The upgrade guide under
content/docs: what the major refuses, the FROM and TO mapping,os migrate meta --from 18, and the ceremony and precheck by link to Upgrade to the major converts stored forms: the stored-row ceremony and the precheck report (ADR-0159, card ⑤a) #37111's operator page.
Done when
- Each tombstone refuses at
os validate, atdefineStackand at the metadata save door with its prescription (pin thecode, the status and the located path). - The full migration chain replays from the support floor to 19 in CI.
- Security pins, each with an ablation (ADR-0159 D7; each asserts status,
codeand that no record was written, on both doors):- the switched-off form in a record-form slot, the source half: a public form in the container's default
formslot, link kept andenabled: false, whose name is open in another layer. After the source conversion it is aformitem with its switch, the conversion's report of deleted internal forms does not list it, and both doors still answer404. Ablate: thepublicLinktest of the internal set (judge "public" bysharing.enabled === true); the pin turns red because the form is deleted with its withdrawal; - its twin, the link-less override over an open base, the source half: an item of a
.customsource in the defaultformslot that declaresoverridesand whose body has nopublicLink, over a base whose default-slot form is open. After the source conversion of the pair's own source it is aformoverride with no link, and both doors still answer404at the base's address. Ablate: delete an item with no link in a record-form slot whatever it declares; the base's form is served; - the upgrade converts and switches: a deployment whose stored old-shape form rows are all movable reaches major 19 by the one command, each row landed as D7 says, its internal record forms removed and reported as Upgrade to the major converts stored forms: the stored-row ceremony and the precheck report (ADR-0159, card ⑤a) #37111 gives it, and both doors answer at each address as before it (ablate: switch before the ceremony; the old-shape rows are unread by the switched build's served read);
- the upgrade refuses: a deployment holding a stored old-shape form row of each stopping class (pair not ensurable, body not readable) does not reach major 19, every stored row is byte-equal after the command, an internal record form beside it included, both doors answer as before it, and the refusal names the row, its action and the release the action is taken on (ablate: switch after a partial move); for a row that declares a link or stands over a linked base the action is never a deletion or a reset. Ablate: the refusal's read of each class in turn. A list in a package at a form's name does not stop the upgrade. Ablate: D5's bound;
- the precheck does not hold the two ruled kinds, and their addresses stay closed: a deployment whose only such rows are a row that carries no form over a linked base (in a binding D5 bounds), a package-less form row behind a writable package's list, and a form row left behind a no-form row bound to a read-only base reaches major 19 with each of those rows byte-equal, and both doors answer
404at each address before the upgrade and on the major-19 build. Ablate: the kept replacement check's read of a row that carries no form; the base's address answers on the major-19 build. A fourth fixture, for the address: a package-less row that is passed over at a writable package's address and is the served row at a read-only base's address whose pair cannot be ensured still stops the upgrade. Ablate: ask "not counted" by name and not per package address; - the kept reader still closes after the tombstone: on a major-19 build a stored old-shape body that withdraws a form still closes it, a stored old-shape row with no link over a package's open form still keeps that address closed, and so does a stored row that carries no form over it, in a binding D5 bounds. Ablate: the exempt reader, then its replacement half;
- the switched-off form in a record-form slot, the source half: a public form in the container's default
- Before tombstoning, recorded in the PR with tree and commit: on each first-party app of this repository (its examples; ⛔ not HotCRM, which moves with its own bump to the major, ruling record 7142585849)
GET /api/v1/meta/formmarks no item as projected, andgit grep -nE "formViews|viewKind: 'form'" -- examples skills content/docs ':!**/CHANGELOG.md'returns only pages that describe the migration. NodefineViewcontainer in a first-party source keeps aform:member (the grep does not match that shape). - The full dogfood battery on the final head, once.
- The changeset is the release note, and its BREAKING section leads with 内部的新建和编辑表单作废:平台不再加载表单定义,弹窗一律按字段分组和字段规则排;字段加一个「新建时显示」的开关(对外表单不受影响) #36425's customer-visible effect (「要在发版说明里重点提示」, ruling record 7142585849 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868, item 4), in plain words, before the form-type mapping: New and Edit lay out by the object's field groups; a form's sections, tabs, wizard steps, create defaults and form-level required rules stop applying; nothing converts them; stored record forms of that kind are removed by the upgrade, and its report carries each body and says per object whether it has field groups.
- Changeset: BREAKING banner, the FROM and TO mapping with the one-line fix, exactly one ADR-0087 disposition marker, both declaration lines;
Metadata-protocol: narrowed.Skills-docs:line in the PR body, as thenarrowedkind owes it.
Not in this card
- The stored-row ceremony and the precheck report (Upgrade to the major converts stored forms: the stored-row ceremony and the precheck report (ADR-0159, card ⑤a) #37111). This card adds no ceremony behaviour; it calls them from the upgrade command.
- Removing the withdrawal reader, or rule 11's replacement check. Major 19's precheck no longer refuses a deployment that holds a row of the kinds the later ruling leaves as stored, so the release that removes either owes its own answer for those rows. The ruling would let it leave by a release whose upgrade precheck refuses a deployment still holding an old-shape form row, and major 19 is one; ADR-0159 keeps it through major 19 as the record's own narrowing (D7, question 4). Its removal is a later release with its own precheck, and a new decision.
Security
A dev that finds a way the tombstone, a conversion or the upgrade re-opens a withdrawn form reports it through the private channel and stops; it is not fixed in passing. Contract-tier review is required on this PR.
Dedupe words: view lists only tombstone formViews, viewKind form retired, migrate forms stored rows ceremony, major 19 form conversion.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T20:42Z
viewto lists and refuses the old form shapes with a prescription (ADR-0159 ⑤b).Feature(breaking). Labels kept: p1 ·pm:blocked(Console reads and editsformitems: Setup public forms re-pointed, the PR #36784 designer becomes theformeditor in Studio (ADR-0159, card ③) #37087, First-party sources author forms asformitems: examples move toforms:, skills and docs teachforms:(ADR-0159, card ④a) #37088, Skills teachforms:as the one way to declare a form, andviews:as lists only (ADR-0159, card ④s) #37105, Upgrade to the major converts stored forms: the stored-row ceremony and the precheck report (ADR-0159, card ⑤a) #37111) ·domain:spec.