feat(cellular): show what holds growth back and each nutrient's flows
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 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m23s
Foundation / postgres-tools (push) Successful in 21s
Foundation / server-image (push) Successful in 4m18s
Foundation / image (push) Successful in 4m56s

Playtest: phosphorus jumped between ~100 fg and a few pg because growth spends
it as it arrives and only pauses when another nutrient runs short. The owner
now records, per owned life and tick, which channel narrowed the growth step
(or no room) and what the tick collected, built into the body and burned;
session v14 carries them (flag bits 2-4 and a 120-byte flows block).

The client shows "Growing 62% - waiting for phosphorus" or "Fully grown",
outlines the limiting nutrient's bar in amber, and gives each bar (and the
energy figure) a tooltip with the last second's flows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-26 09:48:37 -04:00
co-authored by Claude Opus 5.5
parent 6988cf39b2
commit 15b4342934
12 changed files with 224 additions and 23 deletions
@@ -11,12 +11,16 @@ v13's. Older versions keep their exact layouts and never see a v14 field.
| 2 | Members: cells in the organism (1 for a single cell; at least 1 with a life) |
| 2 | Emergence threshold in members (0 below rules 13) |
| 1 | Matter channels kept from burning this tick (bits 0-3: C, N, P, other) |
| 1 | Flags: bit 0 Emerge is open; bit 1 a mutation choice can split the cell now (single cell, grown to the region's split threshold); other bits zero |
| 1 | Flags: bit 0 Emerge is open; bit 1 a mutation choice can split the cell now (single cell, grown to the region's split threshold); bits 2-4 what held this tick's growth step back (0 nothing, 1 energy, 2-5 C, N, P, other, 6 no room); bits 5-7 zero |
| 2 | Growth per thousand of full size (0-1,000) |
| 8 | Payable energy (pJ): the reserve's energy plus what its burnable matter stands in for |
| 8 | Total mass (fg): body and reserve matter |
| 2 each | The 20 heritable body traits in `biology::CellularTraits` order: density, upkeep efficiency, growth speed, collection (E, C, N, P, O), burn (C, N, P, O), engulf capacity, kill absorption, litter, recipe (C, N, P, O), adhesion |
It is followed by a 120-byte flows block: the tick's amounts by channel (energy, C, N, P,
other; u64 each) collected from food, built into the body by growth, and burned in place of
energy (matter only; the energy entry is zero).
Without an owner life every field is zero.
**Cellular action.** Byte 37 (the v13 flags) adds bit 1 become (only with a bud: the player