Add cellular genome revision profile migration
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

This commit is contained in:
dingo
2026-10-11 06:13:17 -04:00
parent 66ffdc1cad
commit a479ce2d95
25 changed files with 725 additions and 79 deletions
+18 -12
View File
@@ -5,8 +5,11 @@ using manifest v2. M11.3 adds profile 4, the
[cellular lives profile v1](cellular-lives-v1.md), with its own version bundle,
payload bound and restore validator. M11.4 adds the compatible cellular-v2
[checkpoint](cellular-lives-v2.md) and its explicit no-tick version migration
(ADR-0119). These formats do not change profiles 1–3. PostgreSQL admission and
atomic publication are separate migration requirements.
(ADR-0119). M11.4c adds cellular-v3
[checkpoints](cellular-lives-v3.md) for append-only genome revision history
(ADR-0122), with a separate no-tick v2-to-v3 migration. These formats do not
change profiles 1–3. PostgreSQL admission and atomic publication are separate
migration requirements.
## Canonical manifest encoding v1/v2 (ADR-0061, ADR-0063)
@@ -33,7 +36,7 @@ record, and each commit row stores it.
| 160 | 36 | nine u32 versions: environmental/primitive bundles as below; profile 4 has cellular rules, envelope, habitat, coordinate, genome, development, founder, archive, then reserved zero |
| 196 | 32 | retained build identity (nonzero; `retained_builds` row required) |
| 228 | 4 | rng_streams = 0 (these rules use no randomness) |
| 232 | 4 | history_profile: 0 with profile 1; 1 with profile 2; 2 with profile 3; 3 with profile 4 |
| 232 | 4 | history_profile: 0 with profile 1; 1 with profile 2; 2 with profile 3; 3 with cellular-v1/v2; 4 with cellular-v3 |
| 236 | 4 | durability_policy = 1 (single-volume development) |
| 240 | 8 | payload_bytes: profile 1 is 1..1 MiB; profile 2 is 1..4,268,144; profile 3 is 1..3,266,800; profile 4 is 1..16 MiB |
| 248 | 32 | payload SHA-256 (nonzero) |
@@ -51,15 +54,18 @@ founder/archive in the first eight u32 version slots. Version bundle 1 is
`(1,1,1,1,1,2,1,1,0)` and uses [cellular-lives-v1](cellular-lives-v1.md).
Version bundle 2 is `(2,2,1,1,1,2,1,1,1)` and uses
[cellular-lives-v2](cellular-lives-v2.md); the ninth slot pins mutation state.
The tick quantum remains 50,000 μs. Both bundles use the bounded profile-4 trace
and bind their decision blocks transactionally. A region's ordinary successor
keeps its exact version bundle. Only the explicit leased migration commit in
ADR-0119 may transition v1 to v2 at an unchanged tick, with an immutable source
and target link; generic cellular publication cannot change versions or publish
a zero-tick commit. Profile-4 clone genesis remains unsupported until cellular
identity remapping is specified. Migration 18 admits profile 4, and the
dedicated cellular publisher binds tick evidence. Profile 3 retains its
creation-only trace and zero-decision rules.
Version bundle 3 is `(2,3,1,1,1,2,1,2,1)` and uses
[cellular-lives-v3](cellular-lives-v3.md); its archive slot selects revision
history format 2. The tick quantum remains 50,000 μs. All three bundles use the
bounded profile-4 trace and bind their decision blocks transactionally. A
region's ordinary successor keeps its exact version bundle. Only the explicit
leased migration commits in ADR-0119 and ADR-0122 may transition v1 to v2 or v2
to v3 at an unchanged tick, with immutable source and target links; generic
cellular publication cannot change versions or publish a zero-tick commit.
Profile-4 clone genesis remains unsupported until cellular identity remapping
is specified. Migration 18 admits profile 4, and the dedicated cellular
publisher binds tick evidence. Profile 3 retains its creation-only trace and
zero-decision rules.
Profile 2 payloads are schemas/environmental-lineage-v1.md containers. A region
never changes profile, history, RNG or durability declarations; schema v4
enforces this against the predecessor. For profile 1, the payload is the exact