T-010: Genome and development
Goal
The growth-program genome and the process that grows a body from one cell. See
docs/DESIGN.md sections 6 and 7. The design is a sketch. You are finishing it.
Scope
- Genome data structure: a variable-length list of genes plus a few genome-wide genes. Each gene has a cell type, colour, opacity, stiffness, type settings, a division rule, and signal weights reserved for T-013. Every gene carries an ancestry id that survives copying.
- Development: an egg cell with yolk grows by division, each daughter taking on the gene its parent's rule names. Growth costs energy and takes time. Take energy as an input for now. T-017 builds the real economy.
- Bond rules: which bonds a new cell gets, so bodies come out as connected, flexible shapes and not strings or tangles. This is the least specified part of the design.
- Mutation operators: nudge a number, duplicate a gene, delete a gene, rewire a division, and evolving mutation rates.
- Genetic distance between two genomes, using ancestry ids. T-027 will build on it.
- Compact serialization and a content hash, for the genome store (T-019).
- Decide and record: how repeated segments, mirror symmetry and radial symmetry come out of division rules. Whether a body can regrow lost cells.
Done when
- ☐ Hand-written genomes grow into: a segmented chain, a mirror-symmetric body with two limbs, a radial body, a branching stalk. Screenshots or text dumps in the result.
- ☐ 10,000 random mutations of each never crash, never loop forever, and never exceed the
cell limit in
Params. - ☐ A measured answer to: what fraction of single mutations of a working body still grow into a connected body? If nearly all mutations are fatal, evolution will stall, so say what you changed to make the genome more forgiving.
- ☐ Round-trip serialization test and stable hashing.
Notes
- Keep genome and development behind one interface so a different genome type can be tried later.
Added 2026-12-02: size is a gene, and bodies are open-ended
Read "Open-ended bodies" and "Scale is free" in docs/DESIGN.md section 5 first. The lists
there are examples of the spirit. They are not your acceptance tests.
- Cell size is a gene, over a wide range set in
Params. The sim core already stores a radius per cell. - The growth program is a general tool. Do not add a rule, gene or operator whose only job is to make one named shape. If a shape is hard to reach, ask what general ability is missing.
Extra done-when checks:
- ☐ Spread. Grow a few thousand random genomes, and a few thousand mutation walks from a simple seed. Measure the bodies (cell count, overall size, largest-to-smallest cell ratio, elongation, flatness, branching, symmetry, mix of types) and show the spread with charts and a contact sheet of renders. Say which regions of shape space are empty and why.
- ☐ Probes. Hand-write genomes for at least eight bodies chosen to be as different from each other as you can make them. At least half must not come from the examples in the design. Include one at the scale of a single cell and one of thousands of cells.
- ☐ Reachability. For three of the probes, show a path of small mutations from a simple ancestor in which every step is a body that grows and holds together.
- ☐ Limits. List what the growth program cannot express, or can express only awkwardly, and what you would change.
The orchestrator will try shapes you have not seen when reviewing.
Note from the sim core review: the store's hard limit is 65,535 cells per organism. Any
growth limit you add to Params is a safety limit for memory and stability, not a design
choice about how big bodies should be (see "Scale is free").