Repository navigation
feat(metadata-protocol): the stored-form ceremony's write half, the --apply the next major's upgrade command runs - #38748
Conversation
…ly), all or nothing with the switch Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK Co-authored-by: Claude <noreply@anthropic.com>
…list or another pair's layer reads today; the pair's own item needs no basedOn Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK Co-authored-by: Claude <noreply@anthropic.com>
…rotocol Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK Co-authored-by: Claude <noreply@anthropic.com>
…and an emptied container goes
The move wrote the body the read's container expansion serves, which wears
the shipping package's provenance (`_packageId`, `_packageVersion`,
`_provenance`); a pair's or a package-less row carrying a base's stamp reads
as that base's shipped code. The move now writes the stored body without it.
A container every member of which went was re-saved as `{ name, object }`,
a row the next run reads as unreadable and so holds the switch. It is
deleted, as a row that holds nothing.
Both-doors pins of the ceremony's write half, before and after a run: the
move, the fold, the removal of internal record forms, the all-or-nothing
refusal and the pair's own item.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…or's refusals and the draft read over the real protocol Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…'s refusal names why in words Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…de as the pair's own row, as the save door does A move into the pair that keeps an `overrides` declaration edits no managed item: the store judges it a runtime write (ADR-0146 D2), the intent the save door gives the same write. Judged as an override of the shipped item, the store refused it as sealed. Both-doors pins: the M3 arrangement (a row bound to a read-only base beside the pair's declared override of it, no package shipping the name), and a row the read serves at another address than the package it is bound to. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…em moves as the pair's own row Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…hangeset Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…ule functions the registry-heal census reads The copies and the old rows each write in a module function that hands its rows back to the caller, which heals the registry after the commit: the `module callers` route of the stored-row write census. Both census pins record the new writers, and the write-through's caller set its tenth. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
📓 Docs Drift CheckThis PR changes 2 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 10 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 47 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 64b815287b286d329d855de6703d5693bfd97ac0 && git checkout 64b815287b286d329d855de6703d5693bfd97ac0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 59faf74c6f5f624768fb1a7761c8626a93213e4e 5f0b99fec1af6db10a78bcfdab9b117d48175010 && git checkout -B drift-repro 59faf74c6f5f624768fb1a7761c8626a93213e4e && git merge --no-ff 5f0b99fec1af6db10a78bcfdab9b117d48175010
node scripts/docs-audit/affected-docs.mjs --json 59faf74c6f5f624768fb1a7761c8626a93213e4e
|
… on a move's destination as the run meets it A move whose destination row the store seals (a managed package ships the form's name as a `form` item, and the destination is not a declared override) now holds the upgrade in the census, naming the shipping package, instead of planning a move that `--apply` then refuses inside its transaction. The census and `--apply` give the same answer; nothing is written either way. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…, not in the `/meta/form` audience test's budget The first served `view` read in a worker loads `@objectstack/lint` lazily (metadata-diagnostics.ts), about 1s on an idle box and past the 5s test budget on a loaded CI runner. In this file that read was the audience test's first `/meta` read, so the one-off load counted against it. The describe now takes the load once in `beforeAll`; the test's own reads measure 55ms locally. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…by the upgrade Maintainer ruling of 2026-11-30. The stored-form census now reads which forms are served today, and a row it would otherwise move into its package's pair is left in place (`served_by_no_door`) where no door serves it: nothing of it moves, nothing is written, and it is not counted. ADR-0159 D7 states the rule; `os migrate stored-forms` prints the reason; the deployment page lists it under "left in place". Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…s's two readings Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
|
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B Final green head · 2026-11-30T11:55Z · zone o3-B ·
|
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对ACCEPT @ 4a67c9f (card #37111,
Checks at this head (read before writing): 44 success, 19 skipped, 0 failure, 0 pending. |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Inputs read: card #37111 (body, all 37 comments, rulings 7249158572, 7250977204, 7250982640, 7254350842, 7277149723 and claim 7273429492 with amendments 1–4), PR #38748 (body, 12 files, net diff against the merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe security rule — "the upgrade never serves a form that no door serves today": does NOT hold on this head. It holds for the case the private lead named, and the fix for that case is sound: the census asks the read the doors themselves ask. It is not shown to hold for the rest of the population the rule covers. Mechanism, shapes and the pins that would confirm them are in the private note only. M1 (must-fix) — S1 (should-fix) — the D7 sentence does not say what "no door serves" means, and read literally it contradicts D7's other sentences. A switched-off form answers S2 (should-fix) — census ≠ run remains for a sealed name on a S3 (should-fix) — all-or-nothing does not hold on an engine that cannot roll back when a run fails part-way, and the card states it without that exception ("never leaves moved rows on a deployment that will not switch"). The module header says so honestly; the code has no undo (the N1 (nit) — the pairs are ensured BEFORE the transaction, so an ensured N2 (nit) — the page's new paragraph "Where the package that ships a form's name ships only a list there, the server lists the stored form under that package…" describes one binding; after M1 it should be re-read against whatever the census then leaves in place. N3 (nit) — declare the arm: Checked and found right: the precheck refuses before any write and before any pair is ensured; every destination row is written and read back before an old row goes; a row a plan writes is never one another plan takes; Implemented-by: VERDICT: FAIL |
The census asked whether a form is served today in one branch only. Every plan that would move a row now asks the effective `form` read whether it lists a form of the name at the address the plan is made at; a move of a form it does not list is left in place (`served_by_no_door`). The plan is still made first, so a hold it takes part in stands. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…writes A kept `form` row that carries a withdrawal folded into it is written by the run, and the store refuses that write on a name a managed package ships as a `form` item. The census now reads the seal for that plan too, so it holds the upgrade where the run's write would fail. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
… cannot roll back The upgrade moves stored forms all or nothing, which needs a transaction that can roll back. On a database whose default driver cannot, a run that would write or take a row is now refused before anything is written (no pair is ensured either); the refusal names the driver and says what the operator does: run against a database whose driver supports transactions, or stay on the current release. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…set follow ADR-0159 D7 states the rule of ruling record 7277149723 as its own bullet: what "no door serves" means (the effective `form` read lists no form of the name at the address the plan is made at), how it differs from a withdrawn form and from an internal record form, and what "its rows stay as stored" covers. The operator page says the `.custom` pairs are created before the transaction and stay after a rollback, that a database that cannot roll back is refused, and reads the served-today rule for every address. The changeset declares `Clause-②: yes (widening)`. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
|
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B Final green head · 2026-11-30T13:31Z · zone o3-B ·
|
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对REWORK @ 9ecc15b (card #37111, PR 2). This is a delta from 4a67c9f and my ACCEPT 7277882359. There are four commits, answering L2 7277980228: M1 Must-fix 1, at rule level. The ruling's rule (7277149723) is now worded in ADR-0159 D7: "lists no form of the name at the address the plan is made at". The operator page says the same: "at the address the report names it at: a package, or the environment". The census reads it that way at a package address. At the environment address it does not. There it reads a wider set than the environment's own, so a plan made at the environment can still be planned as a move where the sentence says it is left in place. The new pins do not reach that case. The planner's package-less shape stubs the served reading, and the rest shapes are package-bound. So the census and the ADR sentence disagree on part of the population the rule names. What closes it: the environment address reads what the read serves at the environment. Add a pin for a package-less row whose name the read serves only at some package address: left in place, nothing written, both doors unchanged. Add a control where the environment itself is served: it moves. Alternatively, if the zone holds that the wider reading is right, the D7 sentence and the page must say what the environment address reads, and L2 re-judges. The detail is with the seat. Read and found right:
Checks at this head (read before writing): see the counts in the zone's green comment 7280001083. There is no failure, and |
…d where the read seats it With zero, one or two packages shipping a list of the name, a package-less open form is served by both doors today, the census moves it into the environment, and both doors serve it after --apply. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Delta review of record 7277980228 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe security rule — "the upgrade never serves a form that no door serves today": holds on this head at every package address, by reading, and the both-doors pins added this round measure it there through the real read for each binding the last record named. At the environment's own address it rests on an argument and not on the read the rule states (S5). Detail is in the private delta note only. M1: closed
S4 (should-fix) — new in this round: a form no door serves today is counted where its move would also hold at the pair door (D7-c) or at a sealed destination, and the D7 rule says it is not counted. The rule's text keeps exactly two holds standing, the contested slot and the row more than one address serves. The planner makes the plan first and rewrites only a S5 (should-fix) — raised by L1 (7280063801) and judged here independently: at the environment's own address the census does not ask the question the D7 rule and the operator page state. The rule's test is that the effective N5 (nit) — the rule says the served row of a form left in place stays as stored "there"; where another address serves that same row and moves it, the row goes with that move. The sentence that follows covers a row behind, not the served row. N6 (nit) — on an engine that cannot roll back, Implemented-by: VERDICT: PASS |
…ir-door and seal holds A form no door serves today whose move would also hold at the pair door (D7-c) or at a sealed destination is now left in place instead of holding the upgrade: the rule keeps only the contested-slot hold and the hold of a row more than one address serves standing for such a form. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…be refused On a database whose default driver cannot roll a transaction back, and a census that moves or removes a row, `os migrate stored-forms` now says the upgrade's run will be refused there, naming the driver and what to do (`runRefused` in `--json`). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…, and the holds that stand ADR-0159 D7 and the operator page say what "at the address" reads for a form stored with no package (every slot the read seats it in), that a row a left-in-place form keeps goes with a move another address serving it makes, and that a form no door serves today does not hold the upgrade at the pair door or at a sealed destination. The page says the census report names a database on which the upgrade's run will be refused. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…d form does not take Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
…e command boots Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK
|
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B Final green head · 2026-11-30T14:47Z · zone o3-B ·
|
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Second delta, of record 7280142300 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe security rule — "the upgrade never serves a form that no door serves today": holds on this head, by reading, at every address. At a package's address the census asks the read the doors take their candidates from, for that package and name. At the environment's own address it asks whether the read lists the name at all, and the D7 rule now says so: that address is every slot the read seats the name's package-less row in. The two are the same question there because of what the planner requires before it gives a name that address, and the round's both-doors pins measure it with no, one and two packages shipping a list of the name. Detail and the one residual are in the private delta note only. D7's rule against the code, sentence by sentence. What "no door serves" means; what the environment's address reads; a withdrawn form and an internal record form set apart; what stays as stored and the exception for a row another address serves; the two holds that stand; no other hold standing. Each agrees with the planner on this head, with N7 as the one corner where they part. S4: closed
No must-fix, no should-fix. N7 (nit) — the two routes to "left in place" enter the pass for a row more than one address serves differently. A form left in place after the holds are read is seen there as a move; one left in place early, because its move would also meet the pair door or a seal, is seen as kept. Where the same stored row is also the served row of another address that moves it, the early route would hold both plans, and the rule says the row takes what that other address gives it. No ordinary case was found that reaches it, and it fails closed. A follow-up card, or one line in the planner that defers the early route as the other is deferred; detail is in the private note. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对ACCEPT @ 5f0b99f (card #37111, PR 2). This is the delta from my REWORK 7280063801 @9ecc15b5. It contains six commits, which answer that REWORK and the seat's contract-review delta 7280142300 (S4, S5, N5, N6). After claim amendment 5 (7281242697) the surface is 13 files, and the diff to the merge base touches exactly those 13. Must-fix 1 (and the seat's S5) is closed by the second route I named: the wider reading, written down.
S4 (route 1). A form no door serves today is now left in place before the pair-door hold (D7-c) and the sealed-destination hold are read. D7 says so ("No other hold stands for it"), and so do the page and the changeset. The two holds the ruling keeps (the claimed slot, and a row more than one address serves) are decided after this point and are untouched.
N5. The D7 sentence now says that a row left in place that another address serves goes with the move made there, or folds there. N6.
Measured in a scratchpad worktree at this head, after building
Checks at this head (filter=all, read before writing): 44 success, 19 skipped, 0 failure. |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z 维护者速读
Seat opinion: land as is. 席位核对ACCEPT at head
ACCEPT → comment 7282129999 · Contract review → comment 7282065700 |
…ooted code as a pair (objectstack-ai#38803) _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9SSdM6AYsxMukn8uhMeGEh7)_ Part of objectstack-ai#37111 — PR 3 (the card's two remaining acceptance items). PR 1 is objectstack-ai#38613 (`1d959b0910`) and PR 2 is objectstack-ai#38748 (`c4472c8631`). The seat closes the card once this PR merges. Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:把 `.custom` 定制包当作代码启动的部署,升级时定制包自己那张旧写法表单会搬成它自己的表单行,不再被误拦住;定制包代码里自己也带这个表单名时同样如此。公开地址前后应答不变。 - 另一项只加钉子:在一个真正强制「一槽一行」的存储上,证明两个计划抢同一槽时升级照旧被拦,什么都不写。 - 要你做什么:Tier H 的 draft,审核后按受管流程批准。 - 风险:小。普查只多认出一种已知形状;其余计划不变(planner、引擎、rest 全套件绿)。 ## What changes - **③ a pair held as booted code** (`protocol-stored-form-migration.ts`). A `.custom` pair registered as code is read-only, so the census reads it at a `base` address. It then asked the pair door for a pair of the pair, which ADR-0146 D3 never gives. Measured before the change: the pair's own old-shape row held the upgrade with the refusal "is itself a paired customization package". The census now reads the pair by what its package is (`customizationBasePackageId`), not by the address kind: - the pair's own old-shape row moves into the pair's own `form` row (`pair_form`, no `overrides`), as ADR-0159 D7 already states for the pair's own row; - a stored `form` row already there is kept. This holds on both destination routes: where the pair's code ships no form of the name, and where it ships the name itself (an old-shape form among its items; review 7292231403 S1). On the second route the store's seal is still read first: where the pair ships the name as a sealed `form` item, the hold is the seal's, naming the pair. The pair door is not asked. Two other shapes were measured over the same booted pair and were already right, so they are unchanged: a declared override in the pair, and a row bound to the base. - **Step 7 of ruling record 7265816895: one slot, one row, on a store that enforces it.** Measured first: neither the engine tests' memory store nor the rest tests' SQL store refuses a second active row in a slot as booted, because the overlay unique index is built by `ensureOverlayIndex`. The new rest pin builds that index and proves the store refuses a second active row in a pair's slot (control). Then, with the pair's own `form` row beside a row planned into that pair, it asserts that the census holds both, `--apply` writes nothing, the slot keeps its one row byte-equal, every stored row is byte-equal, and both doors answer the same. ## Why These are the two acceptance items objectstack-ai#38748 left owed on objectstack-ai#37111, with their reasons (the `③` note of record 7253682863 on `pairFormDestination`, and step 7 of ruling record 7265816895). The seat's ruling of 2026-11-30T20:09Z puts them on this card as PR 3 (claim amendment 6, 7290758981). N7 of contract review 7282065700 does not fit here: the early route has no destination that could be read as a move. It stays where the seat put it. The operator page (`content/docs/deployment/stored-forms-upgrade.mdx`) gains one clause (review 7292231403 N1): a row of a `.custom` package the deployment holds as code stays in that package as its own form. ## Verification Head `0a1bb19fd8`. - **Red first** (the pins run against `origin/main`'s planner): planner "③ a pair held as booted code…" 2 red; rest "③ a pair held as booted code…" red. For S1 (the pins run against `5a6cb82666`'s planner): planner "where the pair's code ships the name itself…" 3 red (the first two held, the third named the pair door's refusal instead of the seal); rest "③ a pair held as booted code that ships the name itself…" red (it held). The step 7 pin pins behaviour that already held, so the ablation below is its proof. - **Ablations** (`scripts/ablation-replace.mjs`, each restored to `HEAD`): - Reading the pair from the address kind where the pair ships no form of the name: the two ③ planner pins and the ③ rest pin red; engine 38/38. - Reading the pair from the address kind where the pair ships the name itself: exactly the three S1 planner pins and the S1 rest pin red; engine 38/38. - Not keeping the pair's own `form` row where it stands: exactly the planner "its stored `form` row is kept" pin red. - Dropping the hold of a pair slot two plans claim: the step 7 rest pin red, with 9 planner and 7 engine contested-slot pins. - **Suites at the head:** planner 112/112, engine 38/38, rest 97/97; metadata-protocol type-check clean. - **Derived gates:** `dispatch-gates --commands` derived 95 commands; all 95 exit 0, each run with `< /dev/null`; `dispatch-gates --ran`: 95 run, 0 NOT-MEASURED. - **`overlap-check`:** clean against `origin/main`. Two open trunk pulls of the approvals lane are named. objectstack-ai#38797 merges cleanly. objectstack-ai#38497 conflicts in the planner test file only because its head predates objectstack-ai#38748, which those files came from; neither authors a change to these files. - **Not measured locally, CI owns:** the type-check lanes and the CI-only jobs the derivation names. ## Deviations - **File surface** (claim amendment 6): the planner and the rest pin file; the planner's own test file and the changeset are implicit. The operator page is added by the seat's order on review 7292231403 (N1). No other path. - **`Clause-②: no`** differs from the claim's standing `yes`, which was written for PR 2's exports (review 7292231403 N2). This PR changes no export, type, route or schema, so nothing an author writes or a consumer imports changes. - **No ADR change.** ADR-0159 D7 already says the pair's own row moves into the pair's own `form` row; the code now agrees with it for a pair held as booted code. - **N7 of record 7282065700 is not built.** The seat records it as an accepted deviation when it closes the card. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No `packages/spec` change.) - [x] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` was not run locally (CI's lint lane owns it). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmQrGTjSRSiwWSe6AhK --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steve · project thread
Part of #37111 — PR 2 of 2 (the write half). PR 1 is #38613 (merged as
1d959b0910). Two owed items stay, each with its reason in the table below, so this PR does not close the card.Clause-②: yes (widening)
Metadata-protocol: none
Skills-docs: none — stored-row ceremony, nothing an author writes changes
维护者速读
os migrate stored-forms在这种库上也会提前说明升级会被拒。os migrate stored-forms仍然只读,没有--apply(裁决 7142585849)。What changes
applyStoredFormsOf(protocol, { actor })(protocol-stored-form-apply.ts, exported for the major's upgrade command only). It runs the census and acts on it:formrow is written and read back at its own address. Only then are the old rows deleted or re-saved:formwrite door's own member removal), its lists byte-equal;.custompairs the moves land in are ensured first, before it, and stay after a rollback (an empty pair changes no answer; the next run reuses it). The registry is healed after the commit.viewlist or another pair's layer reads today, so it does not name the form newly closed.basedOn.--applyagree:forma managed package ships (ADR-0131 D6). The census now reads that seal the way the run's write meets it: such a move, or a keptformrow the run writes because it carries a withdrawal, holds the upgrade (causeapp_author), naming the shipping package, instead of planning a write the run then refuses inside its transaction.formread whether it lists a form of the name at the address the plan is made at; where it does not, the move isleft_in_placewith reasonserved_by_no_door: nothing of it moves, nothing is written, and it is not counted. A hold the plan takes part in still stands. ADR-0159 D7 states the rule as its own bullet;os migrate stored-formsprints the reason.StoredFormLeftReason(an exported output union) gainsserved_by_no_door: the widening theClause-②arm declares.protocol.view-expansion-reconcile-call-sites.test.tsrecords the three writes, which use themodule callersroute, healed byhealStoredFormRows.protocol.object-registry-write-through-spelling.test.tsrecords the write-through's tenth caller.content/docs/deployment/stored-forms-upgrade.mdxgains "What the upgrade command writes", the L1 nit's wording for the fold, the served-today rule for every address, the left-in-place sentence, the pairs created before the transaction, the refusal on a database that cannot roll back, and a clearing-table row for a sealed destination.viewread in a worker loads@objectstack/lintlazily (metadata-diagnostics.ts), about 1s on an idle box and past 5s on a loaded CI runner (Test Core 8/12 at5ed2329e). Inpublic-form-two-type-withdrawal.test.tsthat read was the/meta/formaudience test's first/metaread. The describe now takes the load once inbeforeAll; the test's own reads measure 55ms. The same file's base and head measured alike for that test (1431–1544ms at the merge base, 845–1113ms at the head), so the timeout was not this PR's change to the read.Owed by PR 2 (from #38613), reconciled
pair_formbyte-equal pin (ruling 7250977204), destination dropsoverrides68b146c3— rest "the pair's own item (ruling 7250977204)…"d8c26159— a form no door serves today is left in place by the upgrade (maintainer ruling of 2026-11-30): planner, engine and rest pins (red first; ablation turns all three red); ADR-0159 D7 sentence; one PR 1 engine pin that planned such a member as a move now reads it left in place4c77a1e5— planner "N4: aviewrow aformrow outranks…" (red first; ablation turns exactly it red)ae532d45— planner "N5: where no pair id can be derived…" (red first)e5dd21b2— engine "N13: the pair door's refusals and the draft read, through the real protocol" (the earlier pair's 409 read as that pair, the other owner's 422, a positive control, the draft read)4c77a1e5— planner "N14: …" (red first; ablation)3093ce7e— rest "M3 through both doors" (two shapes)4c77a1e5— planner "a second pair's override that withdraws the form…" (red first; ablation)a5985f41— the page'skeptandmovesrows3093ce7e— rest "a row the read serves at another address than the package it is bound to…" (switched off and open)e5dd21b2— engine "a held row: applyStoredForms writes nothing at any address" (every stored row byte-equal; every address's served read equal before and after); rest "all or nothing" for the two doors at one address1d959b0910); unchanged heree5dd21b2— engine "S14 over the real read…" (the first S14 shape); the second shape's engine half is not built separatelye5dd21b2— engine "N33: a container member kept as stored beside a sibling member that moves"e5dd21b2— engine "the third-address shape…"a5985f41; re-read after M1 and replaced at9ecc15b5by the served-today rule for every address (L2 N2)Last round's finding, fixed here
bedc74f7): planner pin and controls, rest pin throughlistStoredFormsOfand--apply(red first: the census planned a move); ablating the census read turns the planner, engine and rest pins red. One PR 1 engine pin planned such a row as a move the run could not write; it now reads the hold.L2 record 7277980228 (FAIL at
4a67c9f2), fixed here906d10a84a67c9f2: planner 4, rest 3. Ablating the census read at every plan: planner 5, engine 1, rest 4 red.d61a32a4formrow the run writes … reads the seal too" + 2 controls; rest "the census and the run agree where the store seals a kept row the run writes". Red on906d10a8: planner 1, rest 1. Ablation: exactly those two red.--applyon an engine that cannot roll back85c7eebdd61a32a4; ablation turns exactly it red. No undo.9ecc15b572771497239ecc15b59ecc15b5Clause-②: yes (widening)9ecc15b5L1-b delta 7280063801 and L2 delta 7280142300, fixed here
bf56df4e(pin),7831394d(D7 and page)113381807831394d74b1cfc8(pin made load-free at5f0b99ferunRefusedin--json). Ablation: exactly the first red.Verification
Head
5f0b99fe.stored-forms.test.ts3/3. Derived gates: the same 109 commands; 108 exit 0 on the first run andcheck:test-source-aliasexit 1 on the new cli test (it reached the stack's dynamic imports); the test now mocks those packages, and that gate exits 0 at the head;dispatch-gates --ranon the final record: 109 run, 0 NOT-MEASURED.overlap-checkat the head's tree: clean againstorigin/main(95a49adb80); no open pull shares a file. The change set is 13 paths: the 12 before plus the cli command's own test file.Previous round, at
9ecc15b5:dispatch-gates --commandsderived 109 commands (the same list as last round); all 109 exit 0, each run with< /dev/null;dispatch-gates --ran: 109 run, 0 NOT-MEASURED.overlap-checkat the head's tree: clean againstorigin/main(8426fa0c89); no open pull shares a file.Earlier, at
4a67c9f2:scripts/ablation-replace.mjs, restored toHEAD:d8c26159:dispatch-gates --commandsderived 109 commands; all 109 exit 0, each run with< /dev/null.dispatch-gates --ran: 109 run, 0 NOT-MEASURED. The changeset commit after it changes no path in the change set.overlap-checkat4a67c9f2: clean againstorigin/main(db2273d5c4); no open pull shares a file.5ed2329e): 97 derived gates, all exit 0; the ablations listed below each turned exactly their own pins red:form-item pin.Deviations
stored-forms.test.ts). The census pins are forced (each new stored-row writer is recorded there); the ADR file carries the D7 sentence of the 2026-11-30 ruling.@objectstack/metadata-protocoland@objectstack/cli(the CLI prints the new left-in-place reason); every other change is tests and docs.protocol-stored-form-apply.test.ts. The write half is pinned over the real protocol inobjectqland through both doors inrest.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmQrGTjSRSiwWSe6AhK