Add funded reproduction with retained lineage identity

Close the M2.5 fixture cycle. A bounded list of trusted reproduction
intents runs after feeding and before decomposition, so a consumer can
fund offspring from what it ingested and a process terminated in that
tick cannot reproduce. The intent names a withdrawal from the parent
reservoir; a fixed construction fraction endows the child and the
remainder becomes real heat and waste. Nothing is credited from outside
the community, so conserved totals are unchanged by a birth.

Reserved slots are pre-allocated at creation, so a birth never grows the
ledger and a full community rejects rather than funding a smaller child.
Slots never return to the unborn state, so process identities are never
reused, and a parent reference plus origin tick outlive both organisms
and survive decomposition. A child duplicates the configuration of its
parent because no genome exists yet; this is duplication, not heredity.

Default zero capacity leaves the M2.4 reservoir layout and every existing
result unchanged, including golden d61ad5bf0c928c76. Native Release,
clang-tidy analysis, ASan and format checks pass; Linux CI has not run
for this increment yet. This defines no reproductive strategy, fecundity
rule, mutation model, gestation, spatial placement or account ownership.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-21 20:36:49 -04:00
co-authored by Claude Opus 5
parent b01a824975
commit c84a701edf
10 changed files with 619 additions and 43 deletions
+34
View File
@@ -202,3 +202,37 @@ flowchart LR
Host terminal events do not define health, starvation, combat, age or player death
causes. Corpse scavenging, live-world lineage history, persistence and reproduction
remain outside this increment. No physical inventory disappears on death.
## Implemented M2.5 funded reproduction
[ADR-0028](../adr/0028-funded-reproduction.md) closes the fixture cycle. A bounded
list of trusted `ReproduceIntent` records runs after feeding and before
decomposition, so a consumer can fund offspring with what it ingested in the same
tick and a process terminated in that tick cannot reproduce at all.
The intent names a withdrawal from the parent reservoir. A fixed construction
fraction in thousandths splits it with the same quotient decomposition feeding
uses: the quotient endows the child, the energy remainder becomes heat and the
matter remainder becomes waste. Construction overhead is owned inventory, not
rounding loss. Nothing is credited from outside the community, so the conserved
totals are identical before and after a birth.
Reserved slots are allocated at creation and hold empty reservoirs until a funded
birth activates the lowest-numbered one. Capacity exhaustion rejects the tick; it
never funds a smaller child. A slot never returns to the unborn state, so process
identities are not reused and a parent reference plus origin tick outlives both
organisms and survives decomposition of the corpse.
```mermaid
flowchart LR
F[Ingested matter and energy] --> R[Parent reservoir]
R -->|endowment| C[Child reservoir]
R -->|construction overhead| H[Heat]
R -->|construction overhead| W[Waste]
C -->|next tick| A[Feeding, death and decomposition]
```
A child duplicates the configuration of its parent because no genome exists yet.
This is duplication, not heredity, and no trait varies between generations.
Reproductive strategy, fecundity, juvenile viability, gestation, spatial placement
and account ownership are not defined here. No inventory is created on birth.