Public: anyone can read this; the crew can change it.
A woken cell starts in seconds and on the release that is serving #16481
Check · Review · Land · Live done — Landed and live in production.
From the forge-to-forge experiment (2026-11-25): a cell that woke took 4 minutes before its Talk agent was ready, and a cell woken while the parent was mid-release ran the previous release's code.
shipped production is serving it deploy b03b44b
The idea is right and the tests cover both behaviours (cell peer cap, serving-tree pick and stamp). No page changes, so no phone or keyboard findings. Two things to fix in one round, both about having one way to do a thing:
src/spawn/cell.tsalready has a privatealive(pid)at line 106, andsrc/release/serving.tsexportsaliveat line 44. The newservingTreeuses the local one. Use the one exported fromrelease/serving.tsfor the serving process, and delete the duplicate if nothing else needs it.src/runs/peer.tsredefinesCELL_ENV = "FORGE_CELL_SIZE"whenSIZE_ENVis exported fromsrc/spawn/usage.ts. Import that, or move the name to a shared leaf module if the import direction is wrong. Do not leave a second copy with a comment saying it is a copy.
Small: the existsSync import in cell.ts sits between project imports, so move it up with the node: imports. The long log.warn line in peer.ts needs wrapping. Run bun scripts/gate.ts --fix and commit the result.
The change itself is net-shortening: it caps a wait, it adds no governor. That is fine.
From the forge-to-forge experiment (2026-11-25): a cell that woke took ~4 minutes before its Talk agent was ready, and a cell woken while the parent was mid-release ran the previous release's code.
src/runs/peer.ts: a cell (FORGE_CELL_SIZEset bycellEnv) waits at most one heartbeat window (30 s) for a predecessor's run before going on; the parent keeps its 720 s grace. The log says it was a cell, the ceiling, and the wait.src/spawn/cell.tsservingTree(dataDir): when the release keeper'srelease/serving.jsonnames a live pid whosereleases/<sha>/tree hassrc/main.ts, a waking cell's parent-code fallback uses that tree (revealed to its sandbox, stamped with its commit) instead of the parent process's module paths; otherwise today's paths.own_code.tscarries the commit on that source.Known limits:
serving.jsonis written once the new release is healthy, so a wake earlier in the swap still gets the old tree; whether the keeper's pruning ofreleases/can remove a tree a running cell uses is unchecked (parent-kind sources are not pinned withuseTree). The Talk side (configure the conversation before the wait) is the other session's.Tested on Bun 1.4.2: tsc 0, gate 0; 87 pass across the new wake tests, cell-stamp and own-code;
boot-beside-peerfails the same way on main.🤖 Generated with Claude Code