T-019: Lineage log and genome store
Goal
Record who was born to whom, so species can be measured afterwards without the sim ever
storing a species. See docs/DESIGN.md section 10.
Scope
- An append-only event log in the run folder: births (id, parents, step, place, genome hash) and deaths (id, step, place, cause, lifetime energy sources).
- A genome store keyed by content hash, each genome saved once.
- Periodic census records: counts, biomass and energy sources by region.
- Compact, streamable, and readable from the browser as well as natively.
- Logging must cost little. Measure it.
- A reader API in
crates/analysis.
Done when
- ☐ A long run's log can rebuild the full family tree of any living organism.
- ☐ Logging slows the run by less than 5%, measured.
- ☐ Format documented in
docs/RUNS.md.