M12.4: atomically publish and recover biological migration pairs
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (network) (push) Successful in 20m51s
Foundation / checks (client) (push) Successful in 22m2s
Foundation / checks (tsan) (push) Successful in 22m59s
Foundation / checks (postgres) (push) Successful in 53m40s
Foundation / checks (checks) (push) Successful in 1h7m19s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 38s
Foundation / image (push) Successful in 4m31s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (network) (push) Successful in 20m51s
Foundation / checks (client) (push) Successful in 22m2s
Foundation / checks (tsan) (push) Successful in 22m59s
Foundation / checks (postgres) (push) Successful in 53m40s
Foundation / checks (checks) (push) Successful in 1h7m19s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 38s
Foundation / image (push) Successful in 4m31s
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
# Atomic paired biological migration publication
|
||||
|
||||
Authority: ADR-0149, schema 49. Requires retained
|
||||
[source preparation](cellular-migration-freeze-v1.md) and
|
||||
[destination staging](cellular-migration-stage-v1.md). Biological/checkpoint/trace
|
||||
formats retain their meanings.
|
||||
|
||||
The publisher restores both digest-verified predecessor cuts, replays the exact
|
||||
retained trace and uploads/reads back both complete candidates. Two same-profile
|
||||
bundle-10 no-tick manifests each advance sequence once and bind their own
|
||||
predecessor commit/SHA, world/region/frame, completed tick, quantum and history.
|
||||
Ordinary batch evidence is zero: migration is neither a biological interval nor
|
||||
a profile/version conversion. Result IDs come from the retained trace; writer
|
||||
fields name the respective current endpoint authorities.
|
||||
|
||||
Exact retry input is request UUID plus both canonical manifests. Both CURRENT
|
||||
lease grants are supplied separately. SQL locks endpoint lease rows in increasing
|
||||
region order and checks both grants, captured heads, pending pointers, stage and
|
||||
its destination payload SHA/length. Unstaged, aborted, stale or incompatible
|
||||
requests fail. Ordinary publishers cannot publish either migration half.
|
||||
|
||||
One transaction inserts immutable `cellular_migration_commits` (preparation/stage
|
||||
request UUID and unique source/destination result references), clears both pending
|
||||
pointers, inserts both commits and updates both heads. Deferred result foreign
|
||||
keys allow evidence guards to remain enabled. Any failure, including the second
|
||||
insert, rolls back everything. This requires one shared metadata authority,
|
||||
without implying a cross-database protocol.
|
||||
|
||||
Before commit the source owns all outgoing organisms/material; its staged peer
|
||||
owns none. Afterwards only the destination owns them. Receipt rows, historical
|
||||
source observations and cumulative flows are evidence, not spendable stock or
|
||||
extra census entries. No birth, death or local tick is invented.
|
||||
|
||||
Abort and commit serialize on the source lease row. Abort before commit releases
|
||||
both pauses and permanently refuses publication. Commit before abort permanently
|
||||
refuses abort. Committed retries compare both exact manifests and return the
|
||||
original pair under current fences, even with newer epochs. No old bytes change
|
||||
and no second transfer occurs. Unknown replies retain the prepared pair and
|
||||
cannot infer rollback.
|
||||
|
||||
Recovery loads the receipt under current local authority and verifies the trace,
|
||||
both predecessor/result manifests, adjacent links and staged destination object
|
||||
reference. Local retained capsules rederive both results. Their full lengths and
|
||||
SHA-256 must match both manifests; complete local bytes must equal the restored
|
||||
payload. Missing/corrupt capsules or a valid object with false biology fail
|
||||
closed, without live-peer or older-head fallback. Retain all evidence; no GC.
|
||||
|
||||
A paused host whose pointers disappear reloads its actual head. A changed head
|
||||
requires full recovery before readiness or advancement, including after restart.
|
||||
Pointer absence alone cannot resume the old source or activate an uploaded ghost.
|
||||
Unknown abort that loses to commit reconciles the actual committed head.
|
||||
|
||||
Independent network partitions, linked geometry/resources, world-wide cuts/census,
|
||||
target-host costs and actual elapsed-day ecology remain separate gates. Backup/DR
|
||||
regression retains its supported fixtures and does not qualify cellular history
|
||||
cloning or a new cellular restore procedure. No automatic migration or deployment.
|
||||
Reference in New Issue
Block a user