feat(lifecycle): add opt-in funded cellular maturation
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m25s
Foundation / checks (network) (push) Successful in 21m0s
Foundation / checks (client) (push) Successful in 22m13s
Foundation / checks (tsan) (push) Successful in 26m35s
Foundation / checks (postgres) (push) Successful in 1h1m27s
Foundation / checks (checks) (push) Successful in 1h14m29s
Foundation / postgres-tools (push) Successful in 1m19s
Foundation / server-image (push) Successful in 3m46s
Foundation / image (push) Successful in 4m57s

This commit is contained in:
dingo
2026-10-18 21:48:27 -04:00
parent 27ec5729bf
commit a5307c768b
22 changed files with 889 additions and 19 deletions
+21 -4
View File
@@ -1,13 +1,14 @@
# Cellular owner format 7: exact boundary accounting
Authority: ADR-0144. Portable opt-in representation only; no PostgreSQL manifest
bundle or live worker admission is introduced by this segment. Rules stay 8.
Authority: ADR-0144, with opt-in maturation in ADR-0157. Rules 8 retain their
meaning; the additional rules-9 interpretation is portable only. Durable bundle
10 still admits rules 8 exclusively; no live worker opts into maturation.
Formats 1–6 and their canonical bytes remain unchanged. Explicit no-tick upgrade
from rules-8 format 6 preserves biology and opening stock and adds zero flows
and no nonresident references. No downgrade may discard a nonzero ledger.
Little-endian, no native padding. Magic `AEVCLV07`, format 7, rules 8. The first
220 bytes have the format-6 layout except magic/format. The additional fields are:
Little-endian, no native padding. Magic `AEVCLV07`, format 7, rules 8 or 9. The first
220 bytes have the format-6 layout except magic/format/rules. The additional fields are:
| Offset | Bytes | Field |
|---:|---:|---|
@@ -56,3 +57,19 @@ automatic spatial crossings and linked environmental fields are unimplemented.
Durability must bind both candidates to one fenced atomic pair publication. This
format alone supplies no freeze, escrow, receipt, activation or retry guarantee.
## Rules 9: funded maturation
ADR-0157's explicit no-tick upgrade from rules 8 changes only the rules field and
checksum, preserving this entire layout and all stocks/flows/history. The retained
growth, body, reserve and world heat fields encode every maturation effect. At
most 5 realized thousandths per 50 ms active tick are constructed after old-size
actions, budding and presence changes. Newborn/frozen/suspended cells do not grow;
a suspended resume begins growth next tick. Expanded squares retain their corner
and must fit every present neighbor/boundary, in ascending life-ID order. A blocked
expansion spends nothing. Damage and immutable genomes are preserved.
Saved mutation offers retain their original draw/context; rules 9 fund the chosen
successor at current growth. No context/body reset is encoded. Unknown rules fail
closed; rules 9 in owner format 6 are refused. Biological migration and durable
rules-9 admission remain unsupported pending their separate qualification.
+6
View File
@@ -64,6 +64,12 @@ validator and schema 45's SQL trace checker admit only batch 1. A new durable
bundle/upgrade and exact history/recovery contract remain required before any
publication, scheduling or transfer activation can use the new representation.
ADR-0157 also allows portable batch 2 replay against envelope 2/owner 7/rules 9.
Recorded intentions are unchanged; the bound predecessor's explicit rules field
selects maturation. Both raw and cohort replay perform the same funded growth
and preserve exact member tags and stocks. This is not durable rules-9 admission;
the rules-8 bundle allowlist remains unchanged.
M12.4g/schema 46 adds the dedicated bundle-9 to 10 upgrade and full recovery
contract. Bundle 10 admits batch 2 for ordinary intervals and manual conversion;
bundle 9 still refuses it and remains bound to batch 1. Actual SHA-256 and wire
+7
View File
@@ -57,3 +57,10 @@ history 5 in schema 46. An explicit no-tick version upgrade retains membership,
policy and conversion sequence through the immutable version-upgrade journal.
Ordinary publication requires population batch 2; profile transitions preserve
bundle 10. No worker upgrades automatically and no paired migration is published.
ADR-0157 additionally permits **portable** envelope 2 to contain owner 7/rules 9.
The nested owner identifies the changed growth semantics; no membership, policy,
sequence or wire-layout change is needed. An explicit no-tick maturation candidate
preserves all tags and upgrades only the nested rules. Both representations use
the same funded-growth kernel. Envelope 1 remains rules 8. Durable bundle 10
remains rules 8 and does not admit this portable maturation upgrade.