feat(cellular): rules 13 feeding, matter as energy, spent pool and predation
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Successful in 31s
Foundation / server-image (push) Successful in 4m24s
Foundation / image (push) Successful in 5m3s

Phase 2 of the cellular revamp build plan (ADR-0179), server half.

- Matter as energy: when an energy cost exceeds the reserve's energy, reserve
  matter stands in for the rest at each channel's burn rate (pJ per 1,000 fg,
  scaled by the genome's burn efficiency), largest channel first. Upkeep may
  burn any channel; thrust only channels the player has not excluded. Burned
  matter adds no heat; it goes to the region's spent pool. A cell dies only when
  nothing can pay its upkeep.
- Collection: per-channel limits scaled by the genome's collection indices, a
  shared limit on all matter, a tunable cost per membrane point, and only the
  genome's kept share (energy conversion) of bubble energy reaching the reserve.
- Predation: engulf mass carries a tunable share of reserve matter, the
  predator's engulf capacity scales its side and the prey's membrane (now in
  nanometres) its own; kill absorption scales the predator's intake; the kill's
  remainder is split between bubbles at the prey and the spent pool, and a full
  habitat sends overflow to the pool.
- The spent pool is owner format 11 state, counted in conservation, and drips
  back as seeded random bubbles every interval tick.
- Reserve matter is carried as load: slower thrust and turning, costlier thrust.
- Channel exclusions are a 4-bit step intent field, trace byte 14; only owned
  lives under rules 13 may send them.

All values come from the revamp tuning file. Rules up to 12 are unchanged. Tests
cover payments and their conservation over 400 seeds, the rules-13 region step
(collection, membrane, kept energy, burning, engulfment and kill splits with
closure), the drip, load, exclusions, a 700-tick run with closure and exact
restore, and trace replay with exclusions. Session v14 and the client follow
the server phases (build plan). Refreshes the DEV session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-22 18:35:31 -04:00
co-authored by Claude Opus 5.5
parent c7b4846901
commit 76d21b4815
21 changed files with 1307 additions and 72 deletions
+5 -4
View File
@@ -54,9 +54,10 @@ with **reserve matter** instead. The matter is not converted into energy; it sta
for it. It covers every energy cost: upkeep, thrust, growth and bud construction, and
the energy part of mutation costs.
- **Burn rate:** each channel has a tunable rate in femtograms per picojoule, divided
by the cell's burn efficiency for that channel (founder 100). Matter pays at a higher
rate than pure energy, so burning matter is always the expensive way to stay alive.
- **Burn rate:** each channel has a tunable rate, the picojoules 1,000 fg of it stands in
for, scaled by the cell's burn efficiency for that channel (founder 100). Matter pays
at a worse rate than the energy bubbles carry, so burning matter is always the
expensive way to stay alive (trial: 2,000 pJ per 1,000 fg).
- **Only reserve matter burns.** The body is never burned.
- **Death:** a cell dies when its upkeep cannot be paid by energy or any reserve
matter.
@@ -138,7 +139,7 @@ the energy in bubbles must be retuned when this is turned on.
| --- | --- |
| Founder collection rate per channel | From today's derived limits |
| Shared ingestion limit | Founder ingestion capability |
| Burn rate per channel (fg per pJ) | To be selected in playtesting |
| Burn rate per channel (pJ per 1,000 fg) | 2,000 |
| Spent-pool drip rate | To be selected in playtesting |
| Carbon burned before photosynthesis is offered | To be selected in playtesting |