T-013: Control: signals, muscles and neurons
Goal
How a body senses, decides and acts with no central brain. See docs/DESIGN.md section 8.
Scope
- Signal channels: a few values per cell that spread along bonds and fade.
- Muscle cells: a built-in rhythm (rate and phase from genes) that channel values speed up, slow down or gate. Output drives the muscle interface from T-009.
- Neuron cells: read channels, combine them with gene weights, write a result. Optional memory. Each costs energy per step.
- A generic way for any cell type to be switched by channels, for mouths, stingers, glow and gonads later.
- A stand-in sensor (for example light level or touch) so behavior can be tested before the real senses in T-025.
- Decide: number of channels, spread speed, and how gene weights are encoded so that mutation changes behavior gradually and not catastrophically.
Done when
- ☐ A hand-written genome for a chain of muscle cells produces a travelling wave and the body swims, with no scripted input.
- ☐ A body turns toward or away from light using only sensor cells, channels and muscles.
- ☐ Cost per cell measured and logged.
Added 2026-12-02: what the genome hands you, and what it is waiting for (from T-010)
Read docs/GENOME.md first. It is short.
- Every gene already carries
signal[8](signal weights) andsettings[4](for the cell type to interpret). They mutate with the rest of the genome. Nothing reads them yet. They are yours to give meaning to. If eight and four are the wrong sizes, change them and say why. - Growth cannot react to anything yet. The design asks for divisions that can depend on a signal. Today a bud fires by its counter, its delay and being able to pay, and nothing else. Once channels exist, a bud should be able to wait for one. That is its own ticket (T-060), but it will use what you build, so make channel values readable by the development stage, cheaply, for every cell.
- A cell never changes gene, type or size after birth. So "a cell type switched by channels" (in your scope) switches what a cell does, not what it is.
Added 2026-12-02: work costs energy through one hook (from T-017)
docs/METABOLISM.md section 11. Muscle work, signals and anything else your cells do is
charged by adding energy units to orgs.metabolism.debt; the next metabolism round takes
it from the body's reserve, and a body that cannot pay starves like any other. Nothing
charges for muscle work yet, so until you do, moving is free, which breaks principle 2.