A hosted forge's own backup line
A forge another forge hosts says when its host last backed it up (#13918). Its admins read it in two places, in the same words:
- On /settings, in the block under the plan, as one row: who backed it up as the label, how long ago as the value.
- In the terminal, on the Plan screen (palette, admins), as the same sentence on one line.
A forge nobody hosts has no such row, and neither does a preview.
The three wordings
- Backed up by forge.example, 5 h ago: the host's newest nightly snapshot kept this forge, that long ago.
- Backed up by forge.example, 40 h ago, more than 36 hours: the same, past 36 hours (a nightly, a missed night's slack, and a retry). Plain words only: no red, no banner.
- Not backed up yet: the host has not answered since this forge started, or its newest snapshot did not keep this forge (a forge it left out counts as not kept).
Where it comes from
The host records what each nightly snapshot kept of every forge it hosts
(Hosted forges in the nightly backup, snapshot/hosted.json). It answers
each signed beat with that forge's own entry, the time and size, and nothing about any other
forge. The hosted forge keeps the answer as parent-backup.json in its own data directory; it
never reads its host's disk.
A forge beats every 10 minutes, so a new backup, or a first one, shows within 10 minutes of the host's snapshot. The host reads its small record on each beat; it keeps no copy between beats.
Code: src/snapshot/hosted_backup.ts. Tests: test/hosted-backup-line.test.ts,
test/tui-plan-row.test.ts.