← Board · source

T-065: Fill a world with grown bodies from genome files

done · M2 · model opus · needs T-010, T-012

Goal

Genomes grow into bodies (T-010), but only inside the growth lab. No command puts grown bodies into a world that runner can run and the viewer can open. Every ticket that needs real bodies in a real world is waiting for that: the look (T-015), the atlas (T-054), the physics review (T-009), the gait lab (T-016), and Evan, who wants to see them.

Make it one command to start a run from any set of genomes.

Scope

Done when

Notes

Result

Branch t-065-worlds-from-genomes. Built by an agent on 2026-12-02.

What works

runner run --genomes SPEC (repeatable) starts a run from any set of genomes: FILE.toml (the growth lab's format), a folder of them, random=N, zoo / zoo:NAME, and mutant:SOURCE=N, mixed freely, with a count each. Options: --grown (bodies already grown, default eggs that grow through the development stage and pay for each cell), --place water|floor, --orient random|upright, --provision F, --mutations N, --tries N, --gap D, --fill F. Guide: docs/RUNS.md, "A world from genomes".

Done-when checks

Mix, 100,000 steps, kill -9. `--genomes zoo --genomes random=100 --genomes mutant:zoo=2 --seed 7 --set develop.max_cells=3000`, eggs: 137 of 145 placed (8 larger than the world), 27,997 cells when grown. Run once straight through and once killed with kill -9 at steps 7,402, 24,079 and 36,506 and resumed: both ended at step 100,000 with state hash a10ce2169c2b5d98 and identical logs/stats.tsv. All 137 grew their whole planned body. The automated version is genome_world_killed_while_growing_resumes_exactly in crates/runner/tests/runs.rs (60 kills while the eggs grow, same world and logs).

500 random genomes, default world 128 x 64 x 128, seed 1, eggs, no cell cap, run to step 1,300 (the slowest placed plan takes 1,164 steps):

organisms
placed, grew the whole planned body481
placed, stopped short, still growing or gone0
not placed: larger than the world9
not placed: no free spot in 200 tries10

Screenshots (native viewer, offscreen), docs/media/T-065/: show-overview.png and show-close.png (grown zoo, zoo mutants and 60 random genomes), floor.png (upright on the floor), eggs-step-0.png and eggs-step-1000.png (the mix above, as eggs and grown), web-chrome.png, web-webkit.png.

Published to a preview: t-065.alife-runs.pages.dev , run t065-genomes (runs/t065-show, grown, 83 organisms, 10,196 cells, 3 checkpoints to step 3,000). Opens at alife-kz9.pages.dev/?run=t065-genomes&runs=https%3A%2F%2Ft-065.alife-runs.pages.dev%2F , which forwards to the kept viewer for its format. Chrome (webfps.mjs): 60 fps, world running at 30 steps/s, no console errors. Safari's engine (webkit-probe.sh, iPhone profile): drawing, 59.7 fps, verdict smooth. The web viewer was not rebuilt: the checkpoint's format (5f45f6556b099107) matches a viewer the store already keeps, and target/web was pointed at a copy of it for the publish.

docs/RUNS.md explains the command.

scripts/perf.sh --check: every existing world same, exit 0 (table in the report). The new world is "new" (main cannot build it); compared with itself it gives 36 steps/s on 1 thread and 91 on 4.

What is worse than hoped

Merged (orchestrator, 2026-12-02)

Merged into main at 8c625f5. Tests, lint and the memory-safety check ran on the merged tree.

My own review, with bodies nobody listed: the three genomes in docs/media/T-010/review/ (comb, nested, urchin), four mutants of each and 40 random genomes, started as eggs on the floor, upright, with twice the provision. 55 of 55 placed, 16,048 cells at step 600, and the checkpoint is byte for byte the same on 1 and 4 threads. A world of 6 units placed the 12 bodies that fit and reported the other 21 by reason. A missing file, mutant:random and a count of 0 each give a clear message and no world.

Published to production as first-bodies: alife-kz9.pages.dev/?run=first-bodies (71 bodies, 10,597 cells, states at steps 0, 750, 1500, 2250 and 3000; &step=0 opens the eggs and they grow in the browser). 60 fps in Chrome, 59 in Safari's engine as an iPhone, 42 with the processor slowed four times. Pictures: docs/media/T-065/merge-*.png.

Two things to know: