T-020: Publish a run and open it in the browser
Goal
Evan opens a link on his phone or laptop and is inside a world that has already lived through many generations on the Mac mini.
Scope
scripts/publish-run.sh runs/NAME: uploads a thinned run to the site and prints its link.- The web viewer opens a published run by link, loads the latest checkpoint, and keeps simulating locally.
- A page listing published runs with date, age in generations and a thumbnail.
- Works within Cloudflare Pages limits, or uses R2 if files are too large. Free tier only. Ask the orchestrator before anything that costs money.
Done when
- ☐ A run of at least 100,000 steps made by
runneris published and opens from its link in headless Chrome. Screenshot indocs/media/T-020/.
Added 2026-12-02: what already exists (from T-012 and T-014)
runner pack DIR --checkpoints lastwrites one file holding a thinned run, andrunner info DIRsummarises a run. Seedocs/RUNS.md. Build on these.- The web viewer already opens a checkpoint by link (
?checkpoint=URL), by dropping a file and by its Open button, shows load errors on the page, and keeps simulating. Seedocs/VIEWER.md, "The live world (T-014)". - Worlds with real bodies do not exist yet. Until they do, test with soup runs
(
runner run --soup ...), and make nothing depend on the soup. - "Age in generations" needs the lineage log (T-019), which is not written. Show what a run folder can tell you today, and leave an obvious place for generations.
- On the web the world steps on the page's only thread: 100,000 cells run a little under real time on a desktop, and a phone manages far fewer (T-059). Say on the page when a world is too big for the device rather than letting it crawl.
- Check every page in both browser engines:
node scripts/webfps.mjsandscripts/webkit-probe.sh.