T-017: Metabolism and the matter cycle
Goal
The economy of the world: where energy and matter come from, what everything costs, and
what happens at death. See docs/DESIGN.md sections 3 and 4.
Scope
- Energy and matter accounting for every organism. Building a cell takes both. Keeping a cell alive takes energy every step.
- Photo cells: light plus dissolved nutrients become energy and matter. Chemo cells: the same from vent chemicals.
- Costs for muscle work, signals, neurons, glow, pigment and growth.
- Starvation and death. Dead bodies become detritus that sinks, can be eaten later, and decays back into dissolved nutrients.
- Decide and record the ageing rule (the design proposes maintenance cost rising with cell age) and whether energy is shared body-wide or flows along bonds.
- A conservation audit: total matter in the world, counted across fields, bodies, eggs and detritus, checked every N steps in debug runs.
Done when
- ☐ The matter audit holds exactly over a long run with births and deaths.
- ☐ A hand-built rooted body with Photo cells sustains itself in light and starves in the dark. A shaded one does worse than an unshaded one.
- ☐ Every cost is in
Paramswith a comment.