# Environmental lineage region container v1 (M7.4b) Authority: ADR-0062. This is the payload of checkpoint profile 2 (history profile 1). The encoder and decoder are `LineageRegion::snapshot/restore` in `src/processes/lineage_region.cpp`. All integers are little-endian. | Offset | Size | Field | |---|---|---| | 0 | 8 | magic `AEVOELR1` | | 8 | 4 | container format = 1 | | 12 | 4 | reserved, must be 0 | | 16 | 8 | producer account's archived organism id | | 24 | 8 | consumer account's archived organism id | | 32 | 8 | next organism id (> every recorded organism) | | 40 | 8 | next genome id (> every archived genome) | | 48 | 8 | envelope length E (1..1 MiB) | | 56 | E | environmental community envelope, format 2 | | 56+E | 8 | archive length A | | 64+E | A | lineage archive v1 | | end−8 | 8 | FNV-1a64 of all previous bytes | The maximum is 72 + 1 MiB + 3,219,496 = 4,268,144 bytes. PostgreSQL enforces this same value as the profile-2 payload cap. Restore checks, in order: 1. The container framing. 2. The full envelope restore, with its replay audit. 3. The archive replay (lineage-archive-v1). 4. Closure (ADR-0062): - both organisms are recorded; - terminal flags equal the archive's death state; - no birth or death is after the current tick; - the living organisms are exactly the bound, non-terminal ones; - the high-waters are above every recorded identity. 5. A byte-identical re-encoding. Account order is the envelope's producer, then consumer. The manifest's region maps these region-local accounts to organisms; no global ownership transfer exists.