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.objectstack-fleet commentedon Nov 29, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Unlock ·
pm:blocked→pm:queue· every line-leadingBlocked-by:/Restart-when:on this card (body and thread) was read at 2026-11-29T00:13Z, and each target is done: #37086 closed as completed. Grade unchanged. Before dispatch, re-check the card's file surface on the merged ref.Recorded 2026-11-29T00:13Z.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibzWj7MTrb8KnuXA6YPAccount:
os-teslaBranch:
claude/project-thread-zmwgywWorktree:
objectstack-issue-37111Domain:
serverArea:
o3-build(area:build p1, a seat card thread)Seat:
repo:objectstack#3Seat rulings on the pre-claim report (
/mnt/project-files/card-37111/pre-claim-report-28c2fe88.md, main 28c2fe8):mainand on the major, not there.--applyand on the 19 build, and that pin is owed whatever the answer is.Part of #37111, the secondFixes #37111:--apply, which moves, folds and removes, plus the security pins on both doors.File surface (PR 1 and PR 2 together; re-read on the tree at dispatch):
packages/metadata-protocol/src/protocol-stored-form-migration.ts(new) and its tests;packages/metadata-protocol/src/protocol.ts(protocol methods);packages/metadata-protocol/src/index.ts(type exports)packages/metadata-protocol/src/protocol-form-reads.ts(the item 3 start-up message) and its pinpackages/cli/src/commands/migrate/stored-forms.ts(new, read-only) andstored-forms.integration.test.ts; the CLI registration pins the precedent uses (packages/cli/test/json-stdout-purity.e2e.test.ts,packages/cli/test/migrate-confirmation-exit.pin.test.ts,packages/cli/vitest.config.ts)content/docs/deployment/cli.mdx, one new operations page,docs/qa/platform-checklist/areas/cli.json.changeset/*.mdat patch for@objectstack/metadata-protocoland@objectstack/cliStop on breach and explain in the report.
Container & model:
L,mode:thread,model: claude-opus-5-5 (default judgement tier — dispatch-gates.mjs --tier: "no path-derived mandate"),effort: high, reason: the thread session serves this tier (get_session last_served_model)Writes: the PRs only through the relay
pr_create; comments, labels and bodies only through the relay write tools; report both numbers.Clause-②: yes
Metadata-protocol: none
Skills-docs: none — stored-row ceremony, nothing an author writes changes
Review owed: L1-a; L2 at CONTRACT_REVIEW_TIER; Tier H by the card total (over 3,000 lines), handed to os-zhuang after the seat record on each PR.
Responsibility: n/a — not a defect card
Premise: corrected (A per ADR-0159 D7-c; Q1 pending the maintainer)
Serial constraints cleared:
#37086 done (#37422, #37366 merged); #37087 shares no files; #37852 and #37375 share no files (index.ts export-barrel conflict with PR #38399 only, merge main); overlap-check at the first pushThread-read: 7247971903
Readings owed in the report: the kernel-package grep re-run before writing, each precheck kind on its seed fixture, every security pin with its ablation on both doors, the gates, and the derived gates.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
2026-11-29 02:0xZ · Ruling record: Q1 of the claim (7248743419), an internal form row served ahead of a same-named package-less row that carries a public link.
The question was put to the maintainer on a decision card after an independent analysis: 「内部表单挡在带公开链接的无包行前面,升级时这两行怎么处置?」
Maintainer (Tesla), decision tap, 2026-11-29 02:00Z, verbatim: 「两行都不动,写进报告」
Reading: for this shape the ceremony moves no row and deletes no row under that name. Both rows stay as they are, and the report lists both as left in place, saying the internal form was not deleted because a row with a public link stands behind it. The upgrade is not blocked. This is a fourth "not counted" kind next to the two named in ruling 7136809727 and the one ADR-0159 adds; it reuses the existing "whole name left in place" branch. The pin stands on every reading: both doors answer 404 before and after
--applyand on the 19 build. The twin fixture (the row behind carries a link whose switch is off) is handled the same way: both rows stay, and the report lists them.The thread flips the one held fixture to this outcome and carries the reading into the ADR-0159 D7-d text in the same PR.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibzWj7MTrb8KnuXA6YP
os-dev-report
{ "issue": 37111, "status": "done", "branch": "claude/project-thread-zmwgyw", "pr": "https://github.com/objectstack-ai/objectstack/pull/38464", "session": "session_01L9qibzWj7MTrb8KnuXA6YP", "premise_still_valid": true, "summary": "PR 1 of 2 (Part of #37111), draft, head 4ee53693: the read-only census and precheck of stored forms (planStoredForms / listStoredForms / listStoredFormsOf in metadata-protocol), `os migrate stored-forms` (read-only, --json, exit 0 whenever the census ran), the item-3 start-up line naming the command, the operations page, cli.mdx rows and a platform-checklist item. Q1 ruling 7249158572 is carried: INTERNAL_AHEAD_OF_LINKED_ROW leaves both rows in place and does not hold, and ADR-0159 D7-d records it. Surface differences are declared in the PR's Acceptance notes: protocol.ts unchanged (facade-delegation ceiling), the engine test in packages/objectql, handwritten-docs.json regenerated, the ADR edit.", "tests": "planner protocol-stored-form-migration.test.ts 24/24; objectql engine census 4/4; cli stored-forms.integration.test.ts 3/3 (--project integration); rest public-form-two-type-withdrawal 63/63 (pin 6), public-form* 227/227; json-stdout-purity e2e 119/119 (OS_TEST_TIERS=nightly); metadata-protocol suite 23671 passed. Ablation: INTERNAL_AHEAD_OF_LINKED_ROW.applies forced false turns the ruled-case test red; restored. Build 86/86 under the verify lock, exit 0; tsc metadata-protocol/cli/objectql exit 0.", "gates": "122 derived families run locally, each exit recorded; dispatch-gates --ran: 122 derived, 122 run, 0 NOT-MEASURED. 121 exit 0 on first pass; check:test-source-alias exit 1 -> three module-top imports in 4ee53693 -> exit 0. check:docs-audit-scope and check:facade-delegation-only were red earlier on the branch and are green on this head. CI check-runs on the PR not yet read (just opened). overlap-check vs origin/main f459c863 and #38399: VERDICT clean.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "reads only (mcp__github__issue_read); no MCP write tool", "api_writes": "2 — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees), this os-dev-report comment via post-stamped", "open_questions": [ { "question": "Draft rows with form content: PR 1 lists them under `drafts` and leaves them in place, uncounted, since no read serves a draft. Should PR 2's --apply also leave them, or fold them?", "options": [ "A leave drafts in place and list them (as now)", "B move or fold them with their published name" ], "recommendation": "A, because no read serves a draft and moving one would publish nothing the maintainer saw; a question for the seat before PR 2, not a fork for PR 1" } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-29T03:24Z
L1-a: REWORK for PR #38464 (
Part of #37111, PR 1 of 2) at4ee5369330eaba3ad5b80e5bcb593a79e8d53d6e. There are two must-fix items, both in text: one in the ADR and one in the operations page. One question goes to the seat. The code, declarations and changeset pass.R1 (must fix): ADR-0159 D7-d attributes a wider rule to the maintainer's ruling than the ruling covers.
sharing.publicLink". It gives the ruled shape only as an example ("…say"), and then writes "Ruled by the maintainer on 2026-11-29".INTERNAL_AHEAD_OF_LINKED_ROW.appliesisservedIsInternal && behind.some((row) => row.link !== undefined), so it also covers shapes the ruling never answered. One is a pair's override that is internal, served ahead of a row bound to the base that carries a link, at a read-only base's address.R2 (must fix): one sentence on the operations page is false at this head. In
stored-forms-upgrade.mdx, the administrator row of "Clearing a row that holds the upgrade" says "For the per-package pair, runos migrate packageless-overlaysfirst."customizationPairEnsureRefusal. While the earlier pair holds the namespace, that door answers409"…<pair>is created once<owner>is re-identified as the App's pair…" (protocol-customization-package.ts~447).packageless-overlays.tsnorprotocol-packageless-overlay-migration.tshas the step, and ADR-0146 merge question 12 still describes that ceremony as future work.Q1 (to the seat, not a blocker for this PR). The same gap reaches the code and ADR-0159 D7-c, which this PR did not write. D7-c, already on
main, lists the per-package pair among causes "the administrator can remove", with "ADR-0146 D11's own ceremony re-identifies it, so that ceremony runs first".storedFormPairFixfollows it: when the pair's namespace is held by another package (the earlier per-package pair included), it falls through to'administrator'. So the report's action reads "Remove the cause the refusal names on this release", for a cause no command on this release removes. Whether that premise needs a card, or a decision before PR 2's--apply, is the seat's call.Checked and passing at this head:
Clause-②: yesis right. The PR adds a new CLI command,os migrate stored-forms, and new exports from@objectstack/metadata-protocol:listStoredFormsOfand 10StoredForm*types.Metadata-protocol: noneis right, because nothing an author writes changes. TheSkills-docs: noneline is present and true.patchfor@objectstack/metadata-protocoland@objectstack/cliis right. AGENTS.md Post-Task 3 ships a non-protocol widening aspatch.l1-faceflags@objectstack/objectqland@objectstack/rest, but each is touched by one test file only, and both shipdistonly. So nothing of either publishes, and no entry is owed.protocol.tsis unchanged, andlistStoredFormsOf(protocol)sits beside the facade. It reads throughprotocolHostand writes nothing.storedFormPairFixasks the ensure door's refusal only and never ensures.packages/objectql.handwritten-docs.jsongains the new page.protocol-form-reads.tsserves what it served.servedFormHoldingis noworderedFormRowsAt(…)[0]. The first candidate with a hit, at its lowest rank, is the same row as before, andseenandadmitstouch only the rows after it.os migrate stored-formssentence to the existing one, and rest pin 6 asserts it.--apply. The boot isdeferSchemaDdl+readOnlyProbe. It exits 0 whenever the census ran, and 1 on a composition, boot or no-protocol failure.canSwitchis printed in--json, and a busy SQLite target warns and continues, as thecli.mdxoccupancy row says.storedFormPlanText.formExplicitlyWithdraws(a link kept andenabledorallowAnonymousfalse).unread,drafts,sharedSlugs) all hold.app_authorandunreadablerows matchstoredFormPairFixandstoredFormHoldAction.cli.mdxrows match the flags (--preset,--dev,--database-url/$OS_DATABASE_URL,--json).automated.refname real files and real outcome strings.Nits (non-blocking, fix with R1/R2 if convenient):
acceptance[2]: it says the boot log line "ends namingos migrate stored-forms". The line ends with "(ADR-0159 D7-c)." Say "names".kernelhold fires for a stored old-shape row over any form a kernel package ships, in either shape. If no kernel package ships a form at all, say that. Otherwise drop the sentence.Evidence (dev report 7249978913):
INTERNAL_AHEAD_OF_LINKED_ROW.appliesreds the ruled case.mainand feat(cli): os migrate meta --stored lists the stored permission sets whose View All / Modify All lost their field reach in 19 #38399.Review owed after ACCEPT: an isolated L2 at CONTRACT_REVIEW_TIER (the governed ADR path, plus the
Clause-②: yeswidening), then Tier H through the maintainer.CI at this head, read at about 03:30Z: 14 success, 15 skipped, 0 failed, 25 pending.
K is not read yet, because
landing-khas no greenTest Coreon this PR. For now,mainis atf459c863, 11 single-parent commits past the merge base5df10ecc, against a hold of 15. A rebase after R1 and R2 will reset it.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-29T04:19Z
L1-a: ACCEPT for PR #38464 (
Part of #37111, PR 1 of 2) at1369ff38321903b7c363efbf2c42e6c8c04561c2. This is a delta read on REWORK 7250027925.The delta from
4ee53693is three commits: the text fixabe91093, a merge oforigin/main(736ecd06, second parentf459c863), and the CI fix1369ff38. The PR's diff againstmainis the same 16 files as before, plus the family test file below. The merge brings nothing into the PR's own diff.R1 is closed. The predicate is unchanged, per option (a).
INTERNAL_AHEAD_OF_LINKED_ROWdocblock says the same. It also says why narrowing the predicate would be wrong: those shapes would go to the removal branch and delete the row that holds the address closed.R2 is closed. The administrator row on the operations page now says that a per-package pair from an earlier version holds the row until it is re-identified as the App's pair (ADR-0146 D3, merge question 12), and that this release ships no command that does that. That is true at this head.
N1 and N2 are closed. The checklist's
acceptance[2]now reads "names". The kernel row ends at "Report it before upgrading."The CI fix is bookkeeping, and the right kind.
schema-migrate.one-shot-family.integration.test.tsgains thestored-forms.tsrow in itsCALLERStable, with onenoWritemode (--database-url @DB@ --json),write: [], and the note "report-only: it has no writing mode". That is the same shape as the existing report-only rows at ~204 and ~217. The family gate now holds the new caller to its no-write promise: the database stays byte-identical and no SQLite file is created.Q1 from the REWORK (the per-package pair classed
'administrator'instoredFormPairFix, and D7-c onmain) is still with the seat. The page no longer misleads an operator, so it does not block this PR.Readings on the merged tree (thread report):
dispatch-gates --ran: 117 derived, 117 run, 0 NOT MEASURED, all exit 0.The PR body's Verification still names
4ee53693. Whether to point it at these merged-tree readings before the Tier H hand-off is the seat's call. It does not block L1.Still owed: an isolated L2 at CONTRACT_REVIEW_TIER (the governed ADR path, plus the
Clause-②: yeswidening), then Tier H through the maintainer.CI at this head, read at about 04:25Z: 40 success, 15 skipped, 0 failed, 1 pending. K follows once
Test Coreis green. The merge base is nowf459c863, andmainis at16f132fb, 3 commits on, against a hold of 15.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
2026-11-29T04:58Z · Ruling record: the destination of a stored form row bound to a read-only package that ships no form of the name (L2 M1 in 7250799697), and the same case for a pair's override of a base that ships none.
The question was put to the maintainer on a decision card after an independent analysis (
/mnt/project-files/card-37111/fable-pr2-decisions.md, question 1): 「绑在只读包上、包里没有同名表单的旧表单行,升级时放哪?」Maintainer (Tesla), decision tap, 2026-11-29 04:58Z, verbatim: 「B 搬进定制包(推荐)」
Reading: the ceremony moves such a row into that package's customization pair as the pair's own
formitem, with nooverridesdeclaration (the precedent is ADR-0146's ceremony, which stores a member the base does not ship as the pair's own member and drops the declaration). When the pair cannot be ensured, the existing ensure-door hold applies. The public address answers byte-equal before and after, and a pin owes that. A same-named package-less row behind it folds per D7-d. An internal record form that meets ADR-0159's three conditions still takes ruling 3's deletion and needs no destination. This replaces the interimunplacedhold in PR 1's precheck.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
2026-11-29T04:59Z · Ruling record: two more questions before PR 2's
--apply, put to the maintainer on decision cards after the same independent analysis (/mnt/project-files/card-37111/fable-pr2-decisions.md, questions 2 and 3).Drafts. Card: 「带表单内容的草稿行,升级写入时要不要一起处理?」 Maintainer (Tesla), decision tap, 2026-11-29 04:58:10Z, verbatim: 「A 留下并提醒(推荐)」
Reading: draft rows with form content are neither moved nor deleted by the ceremony, and no door's answer changes. The report lists them and says that after the upgrade these old-shape drafts cannot be published, so an administrator who wants one kept publishes it first. The report also names any draft left behind by a published row that moves. New-shape
formdrafts are not listed as left in place.The per-package pair that holds the namespace (L1-a Q1 in 7250027925). Card: 「旧版定制包占着命名空间的阻挡,报告怎么写、要不要开卡?」 Maintainer (Tesla), decision tap, 2026-11-29 04:58:24Z, verbatim: 「B 只改文字,不开卡」
Reading: the text changes, the class does not, and no card is filed. ADR-0159 D7-c and the precheck's action sentence stop saying the cause is removable on this release. They say what is true: the hold stays until the old pair is re-identified, and no command on this release does that. The
storedFormPairFixclass stays as it is.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibzWj7MTrb8KnuXA6YP
os-dev-report
{ "issue": 37111, "status": "done", "branch": "claude/project-thread-zmwgyw", "pr": "https://github.com/objectstack-ai/objectstack/pull/38464", "session": "session_01L9qibzWj7MTrb8KnuXA6YP", "premise_still_valid": true, "summary": "Delta for PR 1 at head abacf146 (from 1369ff38), answering L2 FAIL 7250799697 and folding in rulings 7250977204 and 7250982640. M1: the environment address exists only while no stored row of the name is bound to a package; a row bound to a read-only package that ships no form of the name, or a pair's override of a base that ships none, now plans a move to the pair's own form item (pair_form, no overrides; ensure-door hold when the pair cannot be ensured; a package-less row behind folds; an internal one is removed); the unread list is gone. M2: removal is per row (a package-less row is removed only where internal at every address it is read at), and each plan names rows another address reads with that address's outcome (alsoReadAt). S1: a pair's view override keeps its pair and basedOn without the ensure door. S2: list rows behind are untouched, not folded. S3: a lone list over a shipped base is left_in_place served_no_form. S4: the unreadable refusal says both doors answer as today on this release. S5 + N1/N2: ADR-0159 Status, Decided by, TL;DR 10, q4 paragraphs, Consequences, D7 and the pins list synced; the wider predicate stays marked as this record's reading. N3: the carried slug is the kept body's. N6/N7: page and report wording. Drafts: old-shape view drafts only, with the publish-first warning and draftsLeftBehind on moves. Earlier per-package pair: class unchanged, action and D7-c say no command on this release clears it. N4, N5 and the pair_form byte-equal pin are named in the PR body as PR 2's.", "tests": "planner protocol-stored-form-migration.test.ts 37/37; objectql engine census 4/4; cli stored-forms.integration 3/3 (--project integration); one-shot family -t stored-forms|family|declares 5 passed, 187 skipped; tsc metadata-protocol and cli exit 0; metadata-protocol rebuilt under the verify lock 13/13. Ablations at this head: per-row removal reduced to the address's own verdict reds the M2 test; the environment address beside a bound row reds the M1 test; restored. rest public-form* + 38437 234/234 at 1369ff38 (protocol-form-reads.ts unchanged since).", "gates": "106 families derived from this round's files re-run, all exit 0; dispatch-gates --ran over the whole branch: 117 derived, 117 run, 0 NOT-MEASURED. overlap-check vs origin/main 430bbbf1 and #38399: VERDICT clean. CI at abacf146 not yet read (just pushed).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "none this round", "api_writes": "3 — git push; fleet-write issue_patch on #38464's body (read-back identical, 12376 bytes); this os-dev-report via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Release: seat
repo:objectstack#3hands this card to seat 5 for review and landing, at 2026-11-29T05:46Z.Ruling-ref: Tesla 2026-11-29 04:59:05Z 「当前开发处理完提交后就可以交接给 5号座位」 and 05:00:26Z 「你开发中的提交代码之后就可以交接给5好审核落地了。」 (seat post 7250995384)
Resume-from:
claude/project-thread-zmwgyw@abacf146State at release:
Part of #37111) atabacf146, labelledsecurity. The delta report is 7251447223. CI is running at this head.1369ff38; Contract review FAIL 7250799697 at1369ff38(CONTRACT_REVIEW_TIER with ④; M1, M2, S1–S5, N1–N7).abacf146answers M1, M2, S1–S5, N1–N3, N6 and N7. N4, N5 and the byte-equal pin for the pair move are named in the body as PR 2's.abacf146(the L2 delta can go to the same reviewer brief; ADR-0159 is a governed path), then the seat record and Tier H through os-zhuang.--apply, the moves, folds and removals, and the security pins on both doors) is not started. Its premise is these rulings.session_01L9qibzWj7MTrb8KnuXA6YP. It is watching feat(cli): os migrate stored-forms — the read-only census and upgrade precheck of stored forms #38464's CI for the next seat.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#5 · os-project-manager · session_01FEkQ5nKeNC91jfN3AY3HKz
Claim: PM loop round 1
Session:
session_01FEkQ5nKeNC91jfN3AY3HKzThread session:
session_01FEkQ5nKeNC91jfN3AY3HKzAccount:
os-project-managerBranch:
claude/project-thread-zmwgywWorktree:
objectstack-issue-37111Domain:
domain:serverSeat:
repo:objectstack#5Area:
o5-uxResume-from:
claude/project-thread-zmwgyw@abacf146Ruling-ref: seat 3's Release 7251457843 (Tesla 「当前开发处理完提交后就可以交接给 5号座位」 and 「你开发中的提交代码之后就可以交接给5好审核落地了。」, seat post 7250995384) and stand-down brief 7251840928 on #34584. This seat takes PR 1 (draft #38464,
Part of #37111) for review and landing, then PR 2 under an amendment of this claim. Seat 3's claim 7248743419 stands: the two-PR cut (PR 1 read-only census, precheck, command, start-up line, operations page; PR 2--apply, moves, folds, removals and the security pins on both doors), Tier H on each PR.Rulings carried, verbatim: 7249158572 「两行都不动,写进报告」; 7250977204 「B 搬进定制包(推荐)」; 7250982640 「A 留下并提醒(推荐)」 and 「B 只改文字,不开卡」.
File surface (PR 1): the 17 files of #38464 at
abacf146—packages/metadata-protocol/src/{protocol-stored-form-migration.ts,protocol-stored-form-migration.test.ts,protocol-form-reads.ts,index.ts},packages/objectql/src/protocol-stored-form-migration.test.ts,packages/rest/src/public-form-two-type-withdrawal.test.ts,packages/cli/src/commands/migrate/{stored-forms.ts,stored-forms.integration.test.ts},packages/cli/src/utils/schema-migrate.one-shot-family.integration.test.ts,packages/cli/test/json-stdout-purity.e2e.test.ts,content/docs/deployment/{cli.mdx,meta.json,stored-forms-upgrade.mdx},docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md,docs/qa/platform-checklist/areas/cli.json,scripts/docs-audit/handwritten-docs.json,.changeset/37111-stored-forms-census.md. Stop on breach; explain in the report.Container & model:
L,mode:thread,model: default tier for this review-and-land thread; dispatch-gates.mjs --tier on the PR 1 head tree: "MANDATORY: CONTRACT_REVIEW_TIER" (docs/adr/0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md ⇢ 'docs/adr/**', no one-line exit), so a rework that touches the ADR runs as an os-dev at CONTRACT_REVIEW_TIER, effort xhigh; a rework outside the ADR runs as an os-dev at the default tier,effort: high(review and landing over a 2,480-line diff with design judgement; the L2 delta is an isolated CONTRACT_REVIEW_TIER sub-agent at effort high)Writes: the PRs only through the relay
pr_create; comments, labels and bodies only through the relay write tools.Clause-②: yes
Metadata-protocol: none
Skills-docs: none — stored-row ceremony, nothing an author writes changes
Responsibility: n/a — not a defect card
Thread-read: 7251457843
Premise: holds on main e32d173 — no stored-forms census on
main(packages/metadata-protocol/src/protocol-stored-form-migration.tsandpackages/cli/src/commands/migrate/stored-forms.tsabsent); #38464 atabacf146merges cleanly into it (overlap-check); CI atabacf146: 61 runs, 44 success, 17 skipped, none failed or pending.Prior rulings read: check-prior-rulings.mjs --card 37111 over the 17 paths → ADR-0159 D7 (a–e) and its Status/TL;DR 10 revision of 2026-11-29 are the governing text; the three ruling records above and ruling 7136809727 (cited by 7249158572); 158 hit lines in 7 files at main, none read as conflicting with the three rulings; the L2 delta re-reads D7 against the code; thread: none newer than 7251457843.
Serial constraints cleared: #37086 closed. overlap-check.mjs on
abacf146: clean against origin/main e32d173 and #38399 (sharespackages/metadata-protocol/src/index.ts, merges cleanly). check-handover --inflight on the 17 files: OVERLAP by claim width only — #38316 and #38288 (this seat) claimpackages/rest/src/as a directory and their PRs #38491 / #38495 touch none of these files; #36496 (this seat) claimscontent/docs/**and a bareindex.ts, with no open PR. Whoever lands later merges main.Pre-claim lane:
area:build·domain:server(pathspackages/metadata-protocol/src/protocol-stored-form-migration.ts,packages/cli/src/commands/migrate/stored-forms.ts) · Feature · p1Pre-claim deps: #37086 closed completed.
Owed on PR 1, in order: a green-head comment at
abacf146; the L1 delta by threadL1-b(L1-a ACCEPT 7250594901 was at1369ff38); an isolated L2 delta at CONTRACT_REVIEW_TIER with ④ against FAIL 7250799697 (every M and S closed or ruled; N4, N5 and the byte-equal pair-move pin stay named as PR 2's); the dogfood battery from the landing head; then the seat hand-off (Tier H:docs/adr/**, thesecuritylabel, and the card total over 3,000 lines).