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
+17
View File
@@ -1,5 +1,22 @@
# Project status and next steps
## Portable M12 funded maturation prerequisite - 2026-10-18
[ADR-0157](adr/0157-funded-cellular-maturation.md) adds opt-in rules-9 funded
growth to the exact raw/cohort kernel. A genuine finite-food bud reaches adulthood
and produces its own bud; construction preserves every stock, damage and genome.
The documented trial rate, blocked-expansion refusal, saved-choice funding,
newborn/offline exclusion, conversion and exact replay/process continuation pass.
Rules 8, DEV defaults and durable bundle admission retain their existing meaning.
Native and GCC Release pass **81/81** each. Affected ASan/UBSan, including the final
offline/process guards, clang-tidy and formatting pass; detailed evidence and
fixture limits are in [validation](engineering/VALIDATION.md). Small juveniles'
pool nutrient rounding and sibling placement still constrain ecology. Durable
rules-9 admission/migration/census, automated generations, joint environmental
budgets, target-host costs, actual days and product gates remain open. This is a
portable prerequisite, not completion of M12.
## M12.7c registered census pending handoff evidence - 2026-10-18
Schema 52 captures active biological migration pointers with history domain,
@@ -0,0 +1,65 @@
# ADR-0157: Opt-in funded cellular maturation
## Status
Accepted for the portable M12 ecology prerequisite, 2026-10-18. Extends
ADR-0031/0032/0120/0125/0128/0137/0139/0144. Trial parameters remain revisable;
this does not accept gameplay balance, durable admission or product readiness.
## Decision
Rules 9 explicitly opt an existing rules-8, format-7 owner into maturation.
The detached no-tick upgrade preserves every organism, archive, inventory,
presence, boundary flow and cohort tag. Only the biology rules field changes.
Format 7 already stores growth and all affected inventories. Population envelope
2 and recorded input formats need no new fields. Older readers reject rules 9;
rules 8 and its goldens retain their meaning. No default/DEV or SQL bundle changes.
After old-size movement, maintenance, contact feeding, engulfment/death, selected
mutation, budding and presence changes, surviving active cells can construct at
most **5 realized thousandths per 50,000 microsecond tick** (100 per second).
This is an experimental rate, distinct from the development version's per-plan
bound. A newborn takes no growth step in its birth tick; frozen, lingering and
suspended cells do not grow. A resuming suspended cell starts growth on its next
active tick. Wildlife and controlled cells use the same construction rule.
A juvenile reaching adulthood can first request an admitted bud next tick.
Use the existing channelwise affordable construction transition, additionally
capped by that rate. Pay its gross intake from retained reserve; release body
rounding matter back to reserve and send construction energy to world heat.
Recompute the resulting body from unchanged genome and new growth. Preserve
damage exactly: construction is not repair. There is no new resource source,
reserve grant, automatic mutation or sampled replacement organism. Checked
arithmetic and full owner closure precede publication; failure changes no state.
Expanded squares retain their lower corner and expand toward positive axes.
In ascending stable life-ID order, require the whole proposed extent inside the
region and separated from every other present life, including lingering cells
and newborns. Suspended lives occupy no space. Earlier admitted expansions block
later ones. Refuse the proposed expansion without spending, relocation or trying
a smaller spatial step when blocked. This simple directional/contention bias is
explicit trial behavior, not a claim of physical growth geometry.
Mutation offers remain the original deterministic draw with their recorded
context and displayed budget forecast. Selection validates that exact offer;
rules 9 then prices the selected successor at **current growth**, using retained
reserve. It neither redraws the candidate nor restores an obsolete juvenile body.
The old pure funding API retains recorded-growth behavior; an explicit new API
supports current-growth funding. Insufficient funds retain the offer as before.
Successful growth reports the exact before/after growth and intake/release.
Final tick feedback reports the surviving cell's final reserve under rules 9.
Both representations and recorded unattended intervals execute the same kernel.
## Qualification and limits
Require channel and energy starvation, partial affordability, rounding and damage
checks; real funded founder -> juvenile -> adult -> offspring evidence; newborn
and offline exclusion; obstructed expansion with no spending; saved-choice funding
at changed growth; raw/cohort equivalence, conversion and midpoint restore/replay.
Tests must preserve old goldens and run under NDEBUG, ASan/UBSan and analysis.
Rules-9 durable checkpoint admission, migration, registered census, environmental
coupling and client presentation require their own contract/qualification. Current
durable bundle allowlists continue to reject this rule. No actual-days soak,
deployment, World0 operation, extinction or M12 completion is inferred.
+12
View File
@@ -96,6 +96,18 @@ The maintainer accepted these for the first playable loop (2026-10-09):
Fission, eggs, cohorts, spores, NPC mutation, and how long suspension is retained stay
open. The values marked tunable are playtest hypotheses, not locked rules.
## Portable M12 maturation
The portable M12 ecology prerequisite in
[ADR-0157](../adr/0157-funded-cellular-maturation.md) adds opt-in rules-9 funded
maturation to the cellular owner and exact cohorts. Genuine buds can spend their
own acquired nutrients and energy to reach adulthood, then fund their own buds.
The trial cap is 5 realized thousandths per 50 ms active tick, subject to exact
channel funding and expansion space; damage is retained. Newborn/offline cells
do not advance growth in that tick. Rules 8, DEV defaults and durable admission
remain unchanged. A scripted finite-food family proof is not evidence of
autonomous sustainable ecology, environmental coupling or actual-days operation.
## Implemented M2.5 fixture boundary
[ADR-0028](../adr/0028-funded-reproduction.md) implements funded budding inside
@@ -40,6 +40,10 @@ ordering regression uses a real fully grown local founder reproducing alongside
imported higher-namespace residents. Self-sustaining wildlife generations still
need an explicit versioned maturation contract and ecological qualification.
ADR-0157 subsequently supplies opt-in portable rules-9 maturation with a funded
multi-generation family proof. These transfer contracts and durable bundle 10
remain rules 8; they refuse rules-9 migration until separately qualified.
This is not the durable escrow gate. No prepared candidate may become an active
destination owner before a future fenced transaction commits both heads and
immutable transfer evidence. The source remains the sole owner until that commit;
+12
View File
@@ -99,6 +99,18 @@ not apply it. It is a concrete basis for a separately versioned funded maturatio
contract that also resolves expanded-body collision, tick ordering and offline
freeze. Its existence alone does not admit a new growth rule.
[ADR-0157](../adr/0157-funded-cellular-maturation.md) now implements that **portable
opt-in rules-9** prerequisite, preserving rules 8 and all default/live admission.
The exact construction transfer, bounded rate, spatial refusal, offline exclusion
and saved-choice funding are explicit. A real finite-food founder/bud reaches
funded adulthood and produces another bud, with paid sibling movement; raw/cohort
growth, conversion, recorded replay and separate-process continuation agree.
This is scripted biological evidence, not autonomous multi-generation ecological
qualification. Small juveniles can receive zero phosphorus per tick from a pool
because the existing quarter-yield rounds down; finite nutrient motes/contact and
space still matter. Durable rules-9 publication/migration/census, linked resources,
automatic wildlife robustness, balance and actual-days qualification remain open.
M12.6a's [regional census projection](../../schemas/ecology/regional-cellular-census-v1.md)
independently implements local current-genome and descendant-closure queries.
It keeps suspended stock and retained zero-carrier ancestry, separates exact cohort
+75
View File
@@ -1,5 +1,80 @@
# Validation report
## 2026-10-18 - Portable M12 funded maturation prerequisite
[ADR-0157](../adr/0157-funded-cellular-maturation.md) adds an explicit detached
rules-8/owner-7 -> rules-9 maturation candidate, including exact population tags.
The old owner formats, rules, golden vectors, default/DEV admission, SQL schema
52 and durable bundle allowlists are unchanged. Construction spends exact gross
reserve intake, returns body rounding releases and puts energy into world heat.
The trial cap is 5 realized thousandths per 50 ms active tick. Existing-size
actions finish first; newborn/offline cells do not construct. Fixed-corner
expansion must fit boundaries and all present neighbors, in stable life order.
Saved mutation choices keep their original draw and fund current-size bodies.
Executed locally:
- MSVC default Release full CTest **81/81 passed, 15.33 s**, with NDEBUG.
- GCC 14 Release full portable CTest **81/81 passed, 12.68 s**, with NDEBUG.
- Clang 19 ASan/UBSan affected development, uptake, habitat, step/region, owner,
metabolism, mutation, budding, maturation/process continuation, populations and
checkpoint-admission contracts **13/13 passed, 56.43 s**, without reports.
After adding the final discriminating controlled-subadult offline guard, both
maturation/process contracts passed again **2/2, 28.56 s**, without reports.
- Earlier in this same scope, the unchanged implementation's raw owner, mutation,
maturation, populations, census and migration contracts passed ASan/UBSan
**6/6, 103.80 s**, including the legacy rules-8 regression paths.
- clang-tidy 19 passed on both changed biology sources, all three changed
lifecycle sources and both test files. The final offline fixture passed a
separate analysis recheck. Repository clang-format 19 and `git diff --check`
passed. No old golden or numbered migration was replaced.
The family test starts from a genuinely funded adult founder and its real bud,
never a fabricated adult wildlife record. With finite retained food and paid
sibling movement, that juvenile reaches adulthood and produces another bud at
**tick 27,901**, after **939 reported funded growth steps across the family**.
Every tick checks complete five-channel owner closure and each growth report's
exact reserve spending. Newborns have no growth report in their birth tick;
midpoint canonical restoration preserves continuation. This is accelerated,
scripted biological evidence, not autonomous sustainability or elapsed-day proof.
Raw and cohort execution share the unchanged wildlife controller and produce
identical complete biological bytes for 1,024 growing ticks, including conversion
and repeated restoration. Recorded raw inputs and a full 64-tick population
interval decode/replay identically. A second executable process restores a growing
cohort and produces byte-identical 64-tick continuation. Population upgrade
preserves policy, tags and sequence. Rules-8 juveniles retain their original
growth. Valid rules-8 raw/population manifests accept their original payloads
and reject rules-9 payloads; an unadmitted rules-9 manifest bundle is unsupported.
Geometry fault fixtures only relocate genuine funded juveniles, preserving all
stocks/identity/history. A region boundary and a frozen lingering neighbor each
refuse an otherwise funded extent increase without growth spending or movement.
A separate controlled-subadult offline fixture returns already-owned body matter
to reserve, leaves paid heat intact and grants no resource. Current founders are
born adult, so this artificial fixture tests the guard only, not the family proof.
Its active control demonstrably grows; freeze/linger/suspend preserve body,
growth, reserves and mutation progress. Suspended resume grows only on the next
active tick. Pure budget tests cover rate/zero caps, damage retention, partial
funding, each absent nutrient/energy channel and exact composed-body closure;
saved-offer tests preserve the original choice at changed growth and reject a
changed recorded context.
The qualification exposed an existing ecological constraint: the smallest
juveniles can receive zero pool phosphorus per tick when quarter-yield floors
to zero. Contact with finite nutrient motes, placement and sibling space matter;
no feeding/balance rule was changed to conceal it. The family deliberately moves
a sibling through paid intentions. Automated multi-generation wildlife,
larger-cohort contention/tail cost and comparative ecological regimes remain open.
This gate changes no PostgreSQL adapter, migration or runtime admission, so the
full private database/TLS/storage/backup/DR matrix was not rerun. Durable rules-9
upgrade/publication/recovery, migration, registered census and client presentation
require separate admission/qualification. TSan was not rerun: no shared-memory
concurrency or scheduler ownership changed. Joint environmental budgets, actual
days, deployment-host evidence and product readiness remain open. No deployment,
World0 operation or terminal extinction decision occurred.
## 2026-10-18 - M12.7c registered census pending handoff evidence
[ADR-0156](../adr/0156-census-pending-migration-evidence.md)/schema 52 captures