T-012: Runner, run folders and checkpoints
Goal
Run worlds headless for a long time and be able to pick any of them up later on another
machine. This is the "run there, look here" requirement in docs/DESIGN.md section 12.
Scope
runner run --config world.toml --seed N --steps N --out runs/NAME: runs headless at full speed and prints progress and steps per second.- A run folder holds: a manifest (config, seed, code version, checkpoint format version), checkpoints at an interval, and room for the lineage log and analysis results.
runner resume runs/NAMEcontinues from the last checkpoint. Resuming must give the same world as never stopping.runner info runs/NAMEsummarizes a run.runner pack runs/NAMEmakes one portable archive of a run. A thinned copy with fewer checkpoints must be possible, for small downloads.- Clean shutdown on Ctrl-C: write a checkpoint first.
- A thread-count option, so several runs can share the machine.
- Clear refusal with a readable message when a checkpoint's version is too new or too old.
Done when
- ☐ Tests: resume equals continuous. A packed run unpacked elsewhere resumes.
- ☐
docs/RUNS.mddocuments the folder layout and the commands.