3.7 KiB
ADR-0145: Explicit checkpoint upgrade for boundary accounting
Status
Accepted for M12.4f's portable checkpoint contract, 2026-10-17. Database admission, durable upgrade evidence and paired transfer publication remain follow-on work. This record authorizes no automatic upgrade, deployment or live region change.
Context
ADR-0144 introduced owner 7/population envelope 2 and population batch 2. Retained checkpoint bundle 9 names owner 6, so labeling the new bytes with bundle 9 would break recovery. Representation changes and ownership-format upgrades have different meanings and must retain separate evidence. An ordinary successor cannot change its predecessor's physical or accounting contract.
Decision
Define portable cellular bundle 10 as (8,7,2,1,1,4,3,2,1). Biology remains rules 8;
only the owner accounting envelope changes. Profile 4 contains owner 7 with
revision history 4. Profile 5 contains population envelope 2 with history 5 and
population batch 2. Bundle 9 keeps envelope 1/batch 1 forever. The 360-byte
manifest layout and existing payload bounds are unchanged.
The sole initial upgrade is an explicit no-tick bundle 9 to 10 candidate, preserving profile, history, region/world/frame, quantum and biological cut. It requires a structurally valid positive-sequence source at a positive tick, a distinct result commit, nonzero source digest, and a supplied nonzero lease in the same frame. The result advances the commit sequence without wrap, retains the exact predecessor link, pins a build and payload digest, and has no tick trace or decisions. No downgrade, repeated upgrade or bundle-10 genesis exists.
Restore the complete source payload and use ADR-0144's exact owner upgrade. Preserve original opening stock, nursery, habitat, heat, all bodies/reserves, identity, archives, damage, growth, position and timers. Boundary flows start at zero and nonresident history is empty. Population membership, policy and conversion sequence are retained without running the tier policy. Profile 4/5 transitions may subsequently wrap/unwrap either bundle, preserving its exact tuple; ordinary successors also inherit it unchanged.
Portable supported() means this build can read a declared tuple; it is not SQL
admission or publication authority. I/O must independently establish manifest
and payload SHA-256 bindings, retain immutable source/target evidence, enforce
the current lease and exact head, and resolve ambiguous outcomes before serving.
SQL schema 45 still rejects bundle 10. Its population C++ prepared validator also
remains restricted to bundle 9/batch 1. No worker selects the new tuple.
The next durable segment must admit bundle 10 through a dedicated fenced upgrade transaction, refuse upgrades with unsettled intervals, replay the complete upgrade during recovery, and preserve generic-publication bypass guards. Only then may paired biological escrow use the tuple. A manifest checksum or a portable upgrade candidate alone never transfers authority or stock.
Alternatives, costs and qualification
Changing bundle 9 in place makes retained bytes ambiguous. A new population profile alone omits raw owners and confuses representation with accounting. Fresh provisioning loses opening-stock ancestry. Use the explicit tuple and retained-source upgrade instead. This adds a compatibility branch and does not reduce storage or solve geometry, ecology, maturation or global census.
Require both representations, real wildlife and nonempty cohort history, exact candidate equality, canonical restore, continued batch-2 biology, profile transitions, old/new confusion refusal, malformed bindings, sequence exhaustion, and no genesis or double upgrade. Actual database admission, retry/fence faults and process recovery are separate evidence requirements before durable use.