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.