Files
aevolution/schemas/cellular-lives-v3.md
T
dingo a479ce2d95
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (checks) (push) Failing after 2m10s
Foundation / checks (postgres) (push) Failing after 10m34s
Foundation / checks (network) (push) Failing after 12m19s
Foundation / checks (tsan) (push) Failing after 2m14s
Foundation / checks (client) (push) Successful in 15m7s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Add cellular genome revision profile migration
2026-10-11 06:13:17 -04:00

1.4 KiB

Cellular lives checkpoint v3

Authority: ADR-0122. Cellular profile 4 v3 adds append-only genome revisions while retaining the v2 life records and mutation-offer state. Cellular-v1 and v2 checkpoints remain readable with their original version bundles.

The envelope magic is ASCII AEVCLV03, format is 3, and cellular rules remain 2. Its manifest bundle is (2,3,1,1,1,2,1,2,1): rules, envelope, habitat, coordinate, genome, development, founder, archive and mutation state. The tick quantum remains 50,000 μs and the payload cap remains 16 MiB. The header, spawn sites, life records and corpse records keep the v2 layout. The nested lineage archive uses format 2 as specified in lineage-archive-v2.

For a living life, identity.genome is the current genome reached by replaying that organism's revision chain; the archived birth record remains immutable. For a corpse, closure derives the genome at its death tick from the same chain. Restore replays and validates the archive before checking the life, corpse, habitat and inventory closure.

The only v2-to-v3 conversion is a leased, no-tick profile migration. It upgrades each format-1 archive to format 2 with an empty revision list and preserves the tick, lives, outstanding offers, corpses, habitat and conserved inventory. SQL records the source and target as one immutable migration link. Ordinary v3 successors retain the exact v3 bundle; a mutation is published with an advancing v3 tick.