Repository navigation
Description
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Source: ADR-0159 (PR #36957), decision D7 (the stored-row ceremony, D7-a to D7-e) and ruled merge question 4 (ruling record 7131569242 on #36868, 2026-11-24: 「表单拆成独立 form 元数据类型的 5 个合并问题 都同意」, all option A). Release sequencing and stored internal record forms, the maintainer verbatim, all in ruling record 7142585849 on #36868: 「B:全部放进下一个大版本,升级命令先自动转换、再切换」 and 「B(fable 推荐):升级时自动删除。」. Parent: #36868, card ⑤a: the ceremony and the precheck report, the first half of the ADR's card ⑤. The second half is #37112, which tombstones the old shapes and wires this card into the upgrade command.
Blocked-by: #37086
Metadata-protocol: none
Clause-②: yes
(Seat note: confirm at claim. yes is expected for a new CLI command and its exports; a new error code is always yes. Nothing an author writes changes, so the kind is none and there is no arm.)
Grading: area:build · Feature · the major's upgrade command moves stored old-shape form rows to form rows before it switches a deployment, and names what stops it · every deployment with stored forms · evidence: ADR-0159 D7 and the sequencing ruling above. Same priority as #37112, which it blocks.
How this ships, by the ruling (「B:全部放进下一个大版本,升级命令先自动转换、再切换」):
- There is no protocol-18 release between today's and the major. Cards ②, ③, ④a, the skills card, ④b, this card and Major 19:
viewis lists only, the old form shapes are refused with a prescription, and the upgrade command converts stored forms, then switches (ADR-0159, card ⑤b) #37112 all ship in the next major release. - The ceremony and the precheck run from the major's upgrade command, before the switch: convert first, then switch. Major 19:
viewis lists only, the old form shapes are refused with a prescription, and the upgrade command converts stored forms, then switches (ADR-0159, card ⑤b) #37112 wires the command; this card builds what it calls. - Rows the ceremony cannot move (the pair cannot be ensured; the body cannot be read; the base is a kernel package with no pair) are counted by the precheck. The upgrade command then refuses to switch that deployment and names each row and its action. The deployment stays on the release it is running until the cause is removed, and the upgrade command is run again.
- ADR-0159 D7-c's exits that exist only on protocol 18 are exercised on that pre-upgrade release. The deployment never switched, so it is still running it: an old-shape save that repairs an unreadable body saves there; "the deployment stays on major 18 until the App ships a fix or is uninstalled" is that same state.
- Stored internal record forms are removed by the upgrade and do not hold it (「B(fable 推荐):升级时自动删除。」, ruling record 7142585849 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868, item 3). The conditions are in item 1's last bullet.
- ⛔ A deployment that does not switch holds every stored row as it was. The pre-upgrade release has no
formtype and readsviewrows only. A switch-off moved to aformrow on a deployment still running that release is read by nothing, and the base's form answers. So the move is all-or-nothing with the switch (item 1). This is a recorded seat decision under the rulings (ruling record 7142585849 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868, "Seat decisions"), resting on "No withdrawn public form may re-open" (ruled question 4).
What to build
No tombstone, no conversion, no change to what an author writes. Everything here reads stored rows and, with --apply, moves them.
- The stored-row ceremony: a CLI ceremony in the shape ADR-0131 D10 and ADR-0146 D11 set (read-only by default,
--apply, idempotent, a per-package report). An item-shapedviewrow with form content becomes aformrow at the same package and name; a stored container is split; a.customoverride keeps its package, name,overridesdeclaration andbasedOn, whatever its body; a package-less overlay row over a packaged form goes to the base's pair as a declared override, with its body as written (its switch when it has one, no link when it has none); a row bound to a read-only base (a customization saved under the base's own id before that door closed, the classprotocol-packageless-overlay-migration.tscarries) has the same destination; history stays verbatim; internal record forms are removed, in the run that switches only (last bullet of this item). A form that declares asharing.publicLinkis moved with its switch, by the same test as the conversion.- It runs on the major's build, against rows a pre-upgrade release wrote. It reads stored rows as stored and classes them through card ②'s projection and its exempt withdrawal reader, ⛔ never through the
viewtype's authoring schema, which on the major refuses the old shapes. Theformrows it writes are served by the read card ② built. - Read-only is the default and is safe anywhere;
--applyis all-or-nothing with the switch. The read-only run and the precheck report (item 2) can be pointed at a deployment before its upgrade and write nothing.--applycomputes the whole plan first. If the precheck would still count a row after the plan (a row that holds the upgrade), it writes nothing and reports why: no row is moved and no internal record form is removed. ⛔ It never leaves moved rows on a deployment that will not switch. It is idempotent: the upgrade command can be run again after a refusal or an interruption. ⛔--applyis reached only from the upgrade command of Major 19:viewis lists only, the old form shapes are refused with a prescription, and the upgrade command converts stored forms, then switches (ADR-0159, card ⑤b) #37112: the standalone command is read-only, so no administrator can move rows, or remove internal record forms, on a deployment that then stays on its pre-upgrade release. - A retired form that keeps its link, switched off, beside its successor open on the same address under another name (ADR-0159 D7, question 3's reading of "holds"): both stored rows are moved as written, as a move and not a save. ⛔ The move does not pass through the address-clash refusal of the
formwrite door. What the doors serve does not change (the successor stays open, the retired form stays closed); the report names the pair, and the successor's next save is refused until the retired form's link is cleared. - A row that stands over a base form is classed by its base, never by its own body alone (D7-b). "Stands over" means the read serves it in place of a package's own form of the same name: the pair's declared override, a row bound to the base package, a package-less row, a stored container whose expansion writes the name. Read the base's own document in the deployment, in whichever type the package authors it. Where the base's form declares a
sharing.publicLink, the row is never internal whatever its own body declares (no link, another address, a switch off): it moves as the override it is, body as written, and ⛔ no report or precheck lists it for removal or reset. Removing it serves the base's form again. The internal set therefore has three parts: nosharing.publicLink, no action target, and not standing over a base form that declares a link. - Several stored rows of one form fold into one: the body kept is the one served today, and the fold only narrows (D7-d). Over a read-only base three rows can head for the pair's declared override: the pair's own override, a row bound to the base, a package-less row. For a writable package two head for the package's own row: that row and a package-less row. The body kept is the one the served-row order serves today (
servedOverlayRowCandidates: the pair's override, then the row bound to the package, then the package-less row), whichever binding and type it is stored in, landed as written (a body with no link stays without one). ⛔ Never decide it by the order rows are moved in or by which row reached the destination first: a link-less row bound to the base, over a linked base, beside an open package-less row is closed today, and taking the package-less row first opens the address. Every other row is folded and carries one thing only: if it explicitly withdraws the form, the destination keeps its link and takes that switch off. Nothing else of a folded row is kept. A folded withdrawal a layer reads today (the first of the bound row and the package-less row, under an open override of the pair) must keep closing. A folded withdrawal no layer reads today (a package-less row behind a bound row, or behind a writable package's own row) closes the form newly: the report names the form as newly closed, and the administrator switches it on again in Setup. The report names every row of the form, the one kept, and which one closes the form. The served row is found among every stored row at the address, whether it carries a form or not, in either type. Where the row the order picks carries no form at the name, nothing is served for the name today and ⛔ no row of that name is moved: a form row behind it (bound to the base or package-less) stays where it is, and every stored row of the name stays as stored with the no-form row; none holds the upgrade, and the report names each as left in place (the no-form row is one of the two kinds the ruling names; a form row left behind it is not held by ADR-0159's reading of that answer). Moved alone, the form row would become the pair's override, first in the served-row order, and the address would answer. The same holds where the row picked is a declaredviewoverride that carries no form, if card ② found a door for one. A writable package's own list ahead of a package-less form row is decided by the same rule: the served row is the package's ownviewrow, which carries a list, and the package-less row behind it carries a form no layer reads. ⛔ Move no row of the name (moved to the package's ownformrow, the package-less body would be served). The list is the package's own item: not named for any action, and it holds nothing. The package-less form row stays as stored and does not hold the upgrade (ruling record 7136809727 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868 (「两类特殊的旧存储行怎么处置。不考虑」)); the report names it as left in place. ⛔ Offer no deletion for it (it declares a link) and no save that would serve it. This is the rule at the writable package's address only: a package-less row that is also the served row at a read-only base's address keeps there its destination in that base's pair, or the hold where the pair cannot be ensured. Ask the served-row order per package address, ⛔ never from the effectiveviewlist. - A row that carries no form at a name its base ships as a linked form, in one of the three bindings ADR-0159 D5 bounds (a declared override, a row bound to a read-only base, a package-less row), gets no disposition of its own (ruling record 7136809727 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868 (「两类特殊的旧存储行怎么处置。不考虑」); the maintainer confirmed the seat's reading in record 7137033870, 「同意」): the ceremony writes nothing for it, the precheck does not hold major 19 for it, and it stays as stored. Its base's address stays closed after the major by rule 11's replacement check, which card ② built and the major-19 card keeps. ⛔ A list saved in a package beside the form is not in the class: neither the ceremony nor the precheck names it.
- Where the pair cannot be ensured the ceremony writes nothing for the row: it stays a
viewrow (still read by the doors' withdrawal layer), ⛔ is never moved to a package-lessformrow and is never deleted. The report names the row (type, name, base) and repeats the ensure door's own refusal (customizationPairEnsureRefusal), with the action for its cause. A cause the administrator can remove in the deployment (a package under the pair's id that is not the pair, another owner of the pair's namespace, the App not installed, an earlier version's per-package pair holding the namespace, for which ADR-0146 D11's ceremony runs first): remove it and run--applyagain. A cause only the App's author can remove (no App namespace, or one too long or not valid for a pair namespace; a non-SemVer App version; several Apps and no single one picked): the precheck names the App and the cause, says the fix is its author's and offers no other action; the deployment stays on major 18 until the App ships a fix or is uninstalled, and the row keeps closing meanwhile. A body the projection cannot read is in the same class: not moved, holds the upgrade, keeps closing every link it names, and leaves the class by an old-shape save that repairs it. - A base with no pair in this version (a kernel package, until the kernel whitelist admits it): measured at
689e5695b98the case is empty, because no package that ships metadata to a deployment authors a form in any of the three shapes. Take the reading again before any edit (git grep -lE "formViews|viewKind: 'form'|viewKind === 'form'" -- packages/platform-objects packages/plugins packages/services packages/triggers packages/drivers packages/connectors packages/apps). If a kernel package ships a named form, stop and reportneeds_decision: the row has no way out without a new mechanism, and that is the maintainer's to decide before major 19 opens. - Internal record forms in stored rows (the three-part set above) are removed by
--apply(「B(fable 推荐):升级时自动删除。」, ruling record 7142585849 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868, item 3). ADR-0159 D7's "The ceremony deletes nothing it did not move" is revised by that ruling. The conditions, all of them:- the set is D7's three-part test, classed by the base (D7-b): no
sharing.publicLink, no action target, and not standing over a base form that declares a link. ⛔ A row that declares asharing.publicLink, or stands over a linked base, is never removed (D7-e unchanged): it holds a switch or replaces a linked body; - removal happens only in the run that switches. It is part of the all-or-nothing plan: a deployment that does not switch keeps every row, internal ones included. The read-only run lists them as "will be removed" and writes nothing;
- an item-shaped row is deleted; a container that also holds lists is re-saved without the member, its lists byte-equal;
- the report names each removed form, writes out its body, and says per object that New and Edit now follow the object's field groups and whether the object has any.
sys_metadata_historyrows stay verbatim; - removing a row of this set changes no door's answer: it holds no switch and replaces no linked body. ⛔ That holds for this set only.
- the set is D7's three-part test, classed by the base (D7-b): no
- It runs on the major's build, against rows a pre-upgrade release wrote. It reads stored rows as stored and classes them through card ②'s projection and its exempt withdrawal reader, ⛔ never through the
- The precheck report (ruled question 4 = A; the read half, with no refusal). One read-only command, and one function the major-19 card calls, that lists every stored old-shape form row by class with the action for its class: one the ceremony can still move (it moves in the upgrade); an internal record form (it is removed in the upgrade; not counted as holding it); a row that holds the upgrade because its pair cannot be ensured or its body cannot be read (the action for the cause, as item 1 gives it). A list in a package at a form's name is not an old-shape form row and is not named. ⛔ Not counted are the two kinds of row the ruling names (ruling record 7136809727 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868 (「两类特殊的旧存储行怎么处置。不考虑」): a row that carries no form over a linked base; a package-less form row no layer reads behind a writable package's own list) and, by ADR-0159's reading of that answer, a form row left behind a no-form row. Ask "not counted" per package address, as the read asks "served": a package-less row passed over at a writable package's address is still counted at a read-only base's address whose pair cannot be ensured. ⛔ The report 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). This card refuses no upgrade and wires no upgrade command: both are Major 19:viewis lists only, the old form shapes are refused with a prescription, and the upgrade command converts stored forms, then switches (ADR-0159, card ⑤b) #37112's, and it calls this function. Under the sequencing ruling every row that holds the upgrade stops the switch, and its action is taken on the release the deployment is still running. - The boot message of D6 rule 7 (a stored body the projection cannot read): card ② names the row, the links it closed and the repair save. Add the ceremony's command name to it, now that it ships.
- The operator page under
content/docs: what the upgrade command does before it switches, the read-only run an administrator can take before upgrading, each report class with its action, and the causes of D7-c with who can remove each and on which release (the one the deployment is still running). - Leave the ADR id in the code.
Done when
- The ceremony, run twice on a database seeded with: an item-shaped form row, a container with lists and forms, a
.customswitch-only override, a package-less overlay, a package-less overlay whose pair cannot be ensured, a switched-off public form in a default slot, a.customoverride with no link over an open base form, an open override in the pair beside a package-less row that withdraws the form, a link-less row bound to a read-only base beside an open package-less row, a writable package's own open row beside a package-less row that withdraws the form, a no-form row bound to a read-only base beside a package-less row that holds an open form of that name, a writable package's own list row beside a package-less row of the same name that holds an open form, a list saved in a package at a form's name, and an internal record form (an item-shaped one, and one that is a member of a container with lists), reports the same result the second time and moves nothing; each row lands as D7 says, and the internal ones are gone. - The ceremony and the precheck report class a database seeded as above with the old shapes refused by the authoring schema, as they are on the major (ablate: read the stored rows through the
viewauthoring schema; the rows are not classed). - All-or-nothing: on a database that holds one row whose pair cannot be ensured beside rows the ceremony can move,
--applywrites nothing, every stored row is byte-equal, and the report names the held row and its action; with the cause removed,--applymoves every row (ablate: move what can be moved and report the rest; a switch-off moved to aformrow is then unread by a build that readsviewonly, and the base's form answers). - 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 stored twin: Setup's switch-off override of a public form in the container's default
formslot (link kept,enabled: false), whose name is open in another layer. After the ceremony it is aformoverride with its switch, the internal-forms report 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 row is left behind or listed for removal with its withdrawal; - its twin, the link-less row over an open base: a
.customoverride in the defaultformslot whose body has nopublicLink, over a base whose default-slot form is open; and the same body as a package-less row. After the ceremony it is aformoverride with no link, the internal-forms report does not list it, the precheck report names no removal for it, and both doors still answer404at the base's address. Ablate: the base half of the internal test (class the row by its own body alone); the pin turns red because the report lists the row for removal, and removing it as the report says serves the base's form; - the ceremony keeps a withdrawal closed: a form withdrawn before it, by a
.customswitch-only override and by a member of a stored container, answers404after it. Ablate: the carry of thesharingblock in the move; - the fold keeps the served body and only narrows, five fixtures:
- an open override in the pair beside a package-less row that withdraws the form answers
404before the ceremony and after it, and the destination row keeps its link with the switch off. Ablate: the fold's carry of the folded row's switch; - the row bound to a read-only base: a row bound to the base whose body has no
publicLink, over the base's open form, beside a package-less row whose body is open. Both doors answer404at the base's address before the ceremony and after it, and the pair's override has no link. Ablate: the choice of the kept body (take the package-less row first, as the row that reaches the pair first); the address answers; - the writable-base twin: a writable package's own open row beside a package-less row that withdraws the form. The form is open before the ceremony and answers
404after it, and the report names it as newly closed. Ablate: the report's line for a newly closed form; - the writable package's list ahead of a form row: a writable package's own
viewrow that carries a list, beside a package-lessviewrow of the same name that carries an open form. Both doors answer404at the form's address before--applyand after it, the package holds noformrow of the name, the list row is byte-equal, the report names the package-less row as left in place, and the precheck does not hold the upgrade for it. Ablate: fold the package-less form row into the package's ownformrow; the address answers; - the no-form row ahead of a form row: a row bound to the base that carries no form at the name, over the base's open form, beside a package-less row that holds an open form of that name. Both doors answer
404at the base's address before--applyand after it, the pair holds no row of the name, the report names both rows as left in place, and the precheck does not hold the upgrade for them. Ablate: leave the no-form row out of the fold (find the served row among form rows only); the address answers; - each "before" half proves one of the record's readings of today's layers (read from the code, not run, for the record). If one is not as stated, stop and report;
- an open override in the pair beside a package-less row that withdraws the form answers
- the retired form and its successor: both stored rows are moved, the successor answers and the retired form answers
404before--applyand after it, and the report names the pair. Ablate: move the rows through theformsave door; the move is refused and the rows stayviewrows; - the precheck report names each class: a deployment holding a stored old-shape form row of each class (movable, internal, pair not ensurable, body not readable) gets each row named with its action, the internal one as removed by the upgrade and not as holding it; for a row that declares a link or stands over a linked base the action is never a deletion or a reset. Ablate: the report's read of each class in turn. A list in a package at a form's name is not named. Ablate: D5's bound;
- the report does not count the ruled kinds: 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 are each reported as left in place and not as holding the upgrade; 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 is reported as holding it. Ablate: ask "not counted" by name and not per package address;
- the row whose pair cannot be ensured still closes its form before the upgrade — by its switch in one fixture, by replacing an open base in the other — and
--applyneither deletes it nor moves it package-less. Ablate: the pair-refusal branch of the ceremony. - internal record forms are removed, and only those (ruling record 7142585849, item 3): after
--applyon a database that can switch, an item-shaped internal form row is gone, a container with lists is re-saved without the member with its lists byte-equal, the report names each form, carries its body, and says per object whether it has field groups; history rows are unchanged. A form in the same slot that declares asharing.publicLink(switched off), and a link-less row in that slot over a linked base, are not removed and both doors answer404as before. Ablate: the base half of the internal test; the link-less row is removed and the base's form answers. On a database that cannot switch (one row whose pair cannot be ensured), no internal form is removed. Ablate: remove internal forms before the plan is known to complete;
- the switched-off form in a record-form slot, the stored twin: Setup's switch-off override of a public form in the container's default
- The boot message of item 3 names the ceremony (one pin on the message text).
- The operator page is in the PR;
Skills-docs:line present in the PR body as the claim spells it. - Changeset:
patchon every released package the diff moves, both declaration lines.
Not in this card
- No tombstone, no ADR-0087 conversion, no chain entry, no upgrade refusal, no wiring into the upgrade command, no change to
viewreads (Major 19:viewis lists only, the old form shapes are refused with a prescription, and the upgrade command converts stored forms, then switches (ADR-0159, card ⑤b) #37112). - Removing the withdrawal reader or rule 11's replacement check (neither card's work; a later release and a new decision).
- No bump of
PROTOCOL_VERSION.
Security
The ceremony moves the rows that keep public addresses closed. A dev that finds a way a move, a fold or a report line 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: migrate forms stored rows ceremony, form row fold served body, upgrade precheck report old-shape form rows.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T20:42Z
Feature. Labels kept: p1 (the blocker rule: Major 19:viewis lists only, the old form shapes are refused with a prescription, and the upgrade command converts stored forms, then switches (ADR-0159, card ⑤b) #37112 and the ADR-0159 chain behind 设置里新增「对外表单」:列出全部对外表单,能开关、复制地址、改字段和标题、新建(现在只能写在应用定义里) #36444) ·pm:blocked(form metadata type: define, register and serveformitems (ADR-0159, card ②) #37086) ·domain:server.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
Pre-dispatch notes from the ADR-0159 revision (PR #37206, Contract review 7152605084 and delta 7155715384):
mainand on the major, not there. Align item 1 with that wording before dispatch.