feat(lifecycle): retain inherited offspring plans separately from bodies
Foundation / checks (ecs) (push) Successful in 2m26s
Foundation / checks (deploy) (push) Successful in 4m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 9m29s
Foundation / checks (tsan) (push) Canceled after 7m4s
Foundation / checks (network) (push) Canceled after 9m28s
Foundation / checks (postgres) (push) Canceled after 9m28s
Foundation / checks (checks) (push) Canceled after 9m34s
Foundation / checks (ecs) (push) Successful in 2m26s
Foundation / checks (deploy) (push) Successful in 4m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 9m29s
Foundation / checks (tsan) (push) Canceled after 7m4s
Foundation / checks (network) (push) Canceled after 9m28s
Foundation / checks (postgres) (push) Canceled after 9m28s
Foundation / checks (checks) (push) Canceled after 9m34s
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
# Cellular owner format 8: retained offspring plans
|
||||
|
||||
Authority: [ADR-0165](../docs/adr/0165-retained-cellular-offspring-plans.md).
|
||||
Portable opt-in format 8/rules 10 only. No existing durable bundle, population
|
||||
envelope, batch trace, migration or census adapter admits this version. Earlier
|
||||
canonical formats and their meanings are unchanged.
|
||||
|
||||
Little-endian, no native padding. Magic `AEVCLV08`. The first 308 bytes retain
|
||||
[format 7](cellular-lives-v7.md), except magic/format/rules. Extensions:
|
||||
|
||||
| Offset | Bytes | Field |
|
||||
|---:|---:|---|
|
||||
| 308 | 4 | Offspring-plan revision count, at most 4096 |
|
||||
| 312 | 4 | Reserved zero |
|
||||
| 316 | 8 each | Sorted spawn sites |
|
||||
| after sites | 512 each | Existing 504-byte living record, then u64 offspring genome |
|
||||
| after lives | 132 each | Existing 124-byte corpse record, then u64 offspring genome |
|
||||
| after corpses | declared lengths | Complete canonical habitat and lineage archive |
|
||||
| after archive | 8 each | Sorted unique nonresident organism IDs |
|
||||
| after nonresidents | 32 each | Offspring-plan revisions |
|
||||
| final | 8 | FNV-1a64 of all preceding bytes |
|
||||
|
||||
Each plan revision contains four u64s: life ID, previous genome ID, successor
|
||||
genome ID and selection tick. Records increase by `(tick, life)`, strictly within
|
||||
each tick. Successor IDs are unique. The exact length is
|
||||
`316 + 8*sites + 512*lives + 132*corpses + habitat_bytes + archive_bytes +
|
||||
8*nonresidents + 32*plan_revisions + 8`, at most 16 MiB. Check counts, lengths,
|
||||
reserved fields and checksum before nested allocation/restore. The checksum
|
||||
detects corruption; it supplies no publication authority.
|
||||
|
||||
Living identity genome and archive current genome describe expressed anatomy.
|
||||
Every local living/corpse plan reference is nonzero and resolves in the archive.
|
||||
Initialize its chain from the expressed genome. Each selection must name that
|
||||
life's preceding plan and a direct single-parent successor whose origin event is
|
||||
its own ID, with matching genome schema/development versions. Selections follow
|
||||
birth and any legacy expressed revision, precede death and cannot be in the
|
||||
future. Only existing controlled founders select plans in this version. A
|
||||
successor cannot have an earlier recorded local birth. Final references must
|
||||
match complete retained chains. Outstanding offers regenerate from the current
|
||||
plan and their original context. All existing identity, presence, tissue,
|
||||
inventory, boundary-flow and archive invariants still apply, followed by exact
|
||||
canonical re-encoding.
|
||||
|
||||
The detached no-tick format-7/rules-9 upgrade preserves all old state and gives
|
||||
each local living/corpse record its current expressed genome as its initial
|
||||
offspring plan. No prior selections are invented. Newborns express the plan
|
||||
actually funded at birth and initialize their own plan to that genome. Corpses
|
||||
retain plans as history, without reproductive viability. Unexpressed plans own
|
||||
no stock and are not archive living carriers; a living parent can nevertheless
|
||||
retain one for future reproduction. Terminal extinction needs broader viability
|
||||
semantics before census/persistence integration.
|
||||
Reference in New Issue
Block a user