Propose a funded bud from a grown parent's reserve

ADR-0125 and the M11.5 plan define budding and wildlife descendants. The first
piece is biology only: fund_bud pays the ADR-0032 investment and a 30 s
provision from the parent's reserve, builds the bud at the largest growth the
investment matter allows, and sends construction energy to heat, refusing with
nothing spent when any channel is short.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-13 23:12:50 -04:00
co-authored by Claude Opus 5.5
parent f77956e579
commit 972c19843e
8 changed files with 432 additions and 1 deletions
+50
View File
@@ -0,0 +1,50 @@
# M11.5: Reproduce funded autonomous descendants
M11.5 lets a player cell bud: it pays an explicit investment and leaves an
unowned wildlife descendant with an exact copy of its genome. The game rules are
ADR-0098 decisions 1 and 3; the engineering contract is
[ADR-0125](../adr/0125-cellular-budding-and-wildlife-descendants.md). The client
bud control and descendant presentation are the maintainer's (client UI is
deferred); this plan covers biology, owner, protocol, persistence and server.
## Boundaries
Read ADR-0028, ADR-0032, ADR-0098, ADR-0100, ADR-0122, ADR-0124 and ADR-0125
before changing the owner. The biology library stays free of transport, database
and Kubernetes dependencies. Every bud is part of exactly one tick's replayed
checkpoint: its funding, placement, identity, archive birth and the parent's
debit recover together. No free or reduced offspring, no player ownership of a
descendant, and no special wildlife biology.
## Segments
| Segment | Affected modules | Acceptance evidence |
|---|---|---|
| 11.5a: funded bud proposal | Biology reproduction API; tests | Investment from the parent's reserve on every channel; largest fitting birth growth; remainder matter to the bud's reserve; construction energy to heat; 30 s provision; refusal for any short channel, missing capability, partial growth or damage, with nothing spent; exact conservation |
| 11.5b: owner budding and wildlife | Cellular lives owner, region step, snapshot codec (format 5, rules 4) | Kind 3 intention; placement ring and refusal; namespaced identity and sequence; archive birth; parent life on life and corpse; wildlife (zero account) has no offers; descendants survive parent death; restore and replay byte-identical |
| 11.5c: action, trace and publication | Session protocol and client sender, canonical action input, trace intent, version bundle v5, schema v36, provisioner `cellular-v3` | Kind 3 only on v10, exclusive with intake/engulf; SQL admits kind 3 and the v5 bundle; allocator bound; PostgreSQL publication and recovery of a bud |
| 11.5d: wildlife controller and DEV | Server wildlife controller, scheduler, DEV region | Pure deterministic bounded controller; wildlife intents recorded in the trace; a bud from a live session publishes and its descendant feeds and moves; rules-4 DEV region |
## Required checks
- Insufficient resources on each channel, a duplicate bud action and its ACK
loss, a bud refused for placement, parent death in the same tick, a bud engulfed
on a later tick, and a restart between bud and next tick.
- Controller determinism and bounds: same state and tick give the same
intentions; no intention is ever unfunded by construction (the owner still
validates).
- Genetic vulnerability comparison: a parent and its bud share one genome, and
the archive reports two living carriers until one dies.
- Linux CI PostgreSQL publication and recovery before claiming a live path.
## Progress
- 2026-10-13: ADR-0125 and this plan written. 11.5a is next.
- 11.5a: `fund_bud` (biology/budding) proposes a bud from a fully realized,
undamaged parent with the reproduction capability: the ADR-0032 investment and
a 30 s provision paid from the parent's reserve, the bud at the largest growth
its investment matter builds, leftover matter in the bud's reserve and the
construction energy to heat. `budding-contracts` checks conservation, the
largest-fit growth, the provision, determinism, a refusal for every short
channel (abundant energy never pays for matter), partial growth, damage and a
genome without the capability.