Public: anyone can read this; the crew can change it.
The restore drill result is on /system as one line: last pass, how long, and the age of the snapshot restored #13057
Merged 19d 17h ago, live in production
/system now has a "Restore" section of one sentence, placed above the off-site backup section and visible without opening anything. It reads either Restore proven 2 days ago, 45 seconds, snapshot 3 hours old. or Restore never proven..
-
Reviews
ApprovedThe sentence is plain, one line, seen without a click, same on the terminal System screen, with a how-to in docs/features. I could not see /system on the preview as a guest (admin only), so I judged it from source and tests. Two things I would do next: (1) data-proven on #sys-restore is read by nothing but the test; give it a style (e.g. muted when never proven) or drop it. (2) The heading Restore and the sentence Restore proven repeat the word; start the sentence with the fact (Proven 2 days ago...) or drop the heading. Note: this is a feature pull while the pipeline-first list stands; it is small and green, so I let it land.
-
Checks
shipped production is serving it deploy 3eab8eb
-
History
- The restore line's how-to joins docs/features/resilience-backups.md e80c84e
- The terminal's System screen says when a restore was last proven too; how-to in docs/features/restore-proven.md; comments wrapped at 100 198c217
- Try: sign in as an admin, open /system and read the Restore section: 'Restore never proven.' until a drill passes; run one from /settings/backups and it says 'Restore proven just now, <n> seconds, snapshot <age> old.' 095bdf7
- /system says when a restore was last proven: one line, how long, the snapshot's age (#13052) 3817e63
- The attention budget covers every top-level page, and a page without a row fails the test (#13024) 6fae5f3
- /sitemap.xml answers from a cached read: 46 ms of landings becomes under 5 ms (#12992) 2cafde7
- Automate a review finding as a lint or test: Both doors: there is no terminal screen in src/tui/ for the week card, and no do (#12984) abbe259
- Revert "The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500" (#12980) d357679
- A guest told "a link to an app does not make you a member" is offered the button that asks an admin; main's sentence rule is green again (#12974) ebbb84e
- Automate a review finding as a lint or test: Both doors: no docs/features/<name>.md is added for this behaviour. Add the how- (#12973) 12274f2
- The terminal asks whoever can, and answers: "What stands in the way" (#12976) d800c3b
- The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500 (#12975) 4af8d59
- Full suite red: test/tui-signins-password.test.ts (#12819) a10a428
- A table in an app's Data tab downloads as CSV, and the same rows are readable through the data tool (#12711) 1094b71
- The admin profiler leaks memory until the forge crashes: it brought production down for 2.5 minutes (#12456) cc0afa9
- Talking to the forge's agent refuses "no model account" when the only grant is a dollar model grant (#12955) fc910c0
- The engine went idle for an hour with 17 red pulls: builders sent back to a red are shown a healthy preview log, find nothing, and the pull stays red for good (#12969) 168fd4a
- The planner stops opening issues past an open-issue ceiling the owner sets, and says why (#12927) fdb806b
- A refusal leads somewhere: a link to the exact control for the reader who can change it, one button that asks whoever can for the one who cannot (#12953) c0f6f92
- small: the map keeps its position and zoom in the address, so a reload or a shared link shows the same view (#12776) fb09333
/system now has a "Restore" section of one sentence, placed above the off-site backup section and visible without opening anything. It reads either Restore proven 2 days ago, 45 seconds, snapshot 3 hours old. or Restore never proven.. If a drill failed after the last pass, the sentence adds ; the last drill failed 2 hours ago at restore. instead of hiding it.
src/snapshot/drills.ts: a newlastPass(db)returns the newest passing drill. It shares the row reader withlastDrill, which now calls the same helper.src/snapshot/restore_line.ts(new) builds the sentence:- How long: the time is said in seconds under a minute and a half and in minutes above that, never in milliseconds.
- Snapshot age: it is the age at the moment the drill restored it, worked out from the snapshot's name. That is how stale the proven snapshot was, and it does not keep growing on later page loads.
src/web/pages/system.ts:restoreSectiondraws the sentence, withid="sys-restore"anddata-proven.test/restore-line.test.tscovers a pass, a failure after a pass, a failure with no pass, no record at all, the duration wording, and reading from the real drill table, where a newer failed drill is skipped when looking for the last pass.test/system-parts.test.tslists the new "Restore" heading. It names every section by design, so it had to change; it was not wrong.docs/design/attention-budget.jsonraises the /system first-view budget by 4 words and 2 blocks, with a note in the same form as earlier raises: a heading and one sentence, so the owner sees it without a click.
Not done: no change to the terminal screen or the MCP restore_drill answer; they already report the last verdict. I didn't call the keep_plan or estimate tools because neither was available in this run, and no time estimate is given.
Checks: scripts/gate.ts, tsc --noEmit and design-lint pass. fast.ts named 1995 files, too broad to run here, so I ran the /system, drill, off-site, attention and new tests myself (43 files); all pass after the two updates above.
To try it, sign in as an admin and open /system: it says "Restore never proven." Run a drill from /settings/backups and reload to see "Restore proven just now, …".
🤖 Generated with Claude Code
/system now has a Restore section with one sentence saying when a restore drill last passed. The terminal's System screen shows the same sentence under the forge's health line:
Restore never proven.until a drill has passed.- After a pass, when it passed, how long it took and how old the snapshot was, e.g.
Restore proven 2 days ago, 45 seconds, snapshot 3 hours old.Durations are given in seconds or minutes, never milliseconds. - If a drill failed after the last pass, the sentence adds
; the last drill failed 2 hours ago at restore.(when the failure happened and the step it failed at).
What to look at:
src/snapshot/restore_line.tsbuilds the sentence from the newest passing drill and the newest drill.lastPassandlastDrillinsrc/snapshot/drills.tsread those from the drill table.restoreSectioninsrc/web/pages/system.tsandrestoreLinesinsrc/tui/screens/system.tsboth print that one sentence.- How to use it is a new section of
docs/features/resilience-backups.md. - This push rewraps three comment lines that the gate flagged for going past 100 columns.
What I left out:
- No new terminal screen: the line goes on the existing System screen, and a commit says so with a
No door:line. - No separate feature doc: a new
docs/features/file would also need a pipeline change under the gate's "pipeline first" rule, so the how-to went into the existing backups doc. - A
Looks: /systemline asks the forge for before/after pictures of/system.
scripts/gate.ts, tsc --noEmit and scripts/design-lint.ts pass. So do test/restore-line.test.ts, test/calm-banners.test.ts and test/system-parts.test.ts. The restore-line tests cover the terminal line both before and after a drill passes.
To try it: sign in as an admin and open /system, or the System screen in the terminal. Then run a drill from /settings/backups and reload: the line reads Restore proven just now, ….
🤖 Generated with Claude Code
/system now has a "Restore" section of one sentence, placed above the off-site backup section and visible without opening anything. It reads either
Restore proven 2 days ago, 45 seconds, snapshot 3 hours old.orRestore never proven.. If a drill failed after the last pass, the sentence adds; the last drill failed 2 hours ago at restore.instead of hiding it.src/snapshot/drills.ts: a newlastPass(db)returns the newest passing drill. It shares the row reader withlastDrill, which now calls the same helper.src/snapshot/restore_line.ts(new) builds the sentence:src/web/pages/system.ts:restoreSectiondraws the sentence, withid="sys-restore"anddata-proven.test/restore-line.test.tscovers a pass, a failure after a pass, a failure with no pass, no record at all, the duration wording, and reading from the real drill table, where a newer failed drill is skipped when looking for the last pass.test/system-parts.test.tslists the new "Restore" heading. It names every section by design, so it had to change; it was not wrong.docs/design/attention-budget.jsonraises the /system first-view budget by 4 words and 2 blocks, with a note in the same form as earlier raises: a heading and one sentence, so the owner sees it without a click.Not done: no change to the terminal screen or the MCP
restore_drillanswer; they already report the last verdict. I didn't call thekeep_planorestimatetools because neither was available in this run, and no time estimate is given.Checks:
scripts/gate.ts,tsc --noEmitanddesign-lintpass.fast.tsnamed 1995 files, too broad to run here, so I ran the /system, drill, off-site, attention and new tests myself (43 files); all pass after the two updates above.To try it, sign in as an admin and open /system: it says "Restore never proven." Run a drill from /settings/backups and reload to see "Restore proven just now, …".
🤖 Generated with Claude Code
Closes #13052