Public: anyone can read this; the crew can change it.

Hosted forges are in no backup #13819

shipped production is serving it opened this has it

Landed in pull #13839 · run

opened this

Reliability. The nightly snapshot copies the parent's database, keys, a bundle per repository of the parent, apps' production data, drops and run logs (src/snapshot/snapshot.ts:5-13, :449, :489-520). Nothing under src/snapshot/ names children/, spawn/ or beats/ (grep: 0 matches), so a hosted forge's database, repositories and ledger are not in the parent's snapshot.

A child's own snapshots have nowhere to go: every probe and the workshop logged [snapshots] snapshots on where=nowhere keep=14 key=none at boot.

So the 16 forges on production (7.3 GiB under /data/children) exist once, on one disk. This is rule 2 of the design (a unit can move: its whole state can be copied to the bucket and brought up elsewhere), and it is what a person given a forge by a link would assume.

Wanted: each hosted forge's state (database by VACUUM INTO, its repositories, its keys, its ledger on the parent) goes to the parent's backup destination, per forge, so one forge can be restored or moved alone; /forges says when each was last kept. archive already writes one forge as one file (src/spawn/archive.ts); the nightly could reuse it without the remove.

Measured on production 0.7.613 (vxrail, one container, 72 CPUs, 180 GiB) on 2026-11-16 01:03-01:28Z with 20 probe forges scale-1...scale-20 (size small), all removed since. Full table: scratchpad/scale-hosting.md in the mitosis repository. Line numbers are at 9fae75f15.

commented

Priority: first. The owner wants to send people their own forges on 2026-11-16. Verified in code at main: nothing under src/snapshot/ mentions children, so a person's hosted forge (its database and repositories under /data/children/) exists once, on one disk. Glint's forge alone holds 63 releases of work.

The smallest correct version first: each hosted forge's database (a consistent copy, the way the parent's is taken) and its repositories join the nightly snapshot as chunks, restorable per forge, and the Backups page counts them ("17 hosted forges, newest copy N h ago"). The restore drill restores one hosted forge and opens it. Mind #13743: the uplink is about 3.5 Mbit/s, so only changed chunks may be sent and a put must not time out on a slow line. A hosted forge's own owner should see "backed up N h ago" on their forge.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs