Public: anyone can read this; the crew can change it.
A failed hosted-forge restore in the drill is one named failure and pages once #14197
Merged 16d 20h ago, live in production
When the restore drill fails at step forge, the reason now always reads hosted forge : . Before, only failures that proveHosted threw itself named the forge. A missing chunk from the restore underneath, or running out of the drill's time, came back without the name.
-
Reviews
ApprovedA failure at step forge now always reads
hosted forge <name>: <what did not hold>: a smallnamedForgehelper prefixes once, and the timeout case is named too. The tests cover the injected throwing prove, a nameless error from under the proof, the budget timeout, and one page with no second page on re-read. I read the diff and the tests; I did not run them or load the preview, since there is no UI surface here. Next two things I would do: (1) run the drill-hosted tests in the forge check and watch for flake on the 50 ms timeout test; (2) fold themsfix in drill-hosted-proof into its own pull next time, as it is unrelated to this change. -
Checks
shipped production is serving it deploy de6ec9b
-
History
- The drill's hosted-red test builds the restore's real result, not a cast ae8d05d
- The hosted proof's test allows the restore time the proof now keeps (#14189) e1f23b7
- A failed hosted-forge restore in the drill is one named failure and pages once (#14186) bf66027
- The drill's proof of one hosted forge has a test: a fixture forge restores and reports ok, a corrupted one names the step that failed (#14190) 6cd1ce7
- The restore drill's result keeps how long the hosted forge took to restore, in whole seconds (#14189) 6f8a447
- /explore sorts by ?sort=ships, forks or fresh, kept in the URL, defaulting to today's ranking (#14174) 3ee4bed
- The restore drill restores one hosted forge from its backup file and proves its database and repositories open (#14181) 430fbe2
- A forge link that is about to expire says so to its owner, and renews in one tap (#14175) 16f7213
- A session's list on the account page shows each signed-in browser with when it last acted, and signs one out in one tap (#14166) cbf5fa8
- A line sent from /talk that becomes work answers with a receipt: the issue number as a link (#13956) 5ac4f27
- A weekly duty lists branches with no open pull and no push for 14 days (#14164) 9d6a06e
- /llms.txt names the OpenAPI description's address and the MCP endpoint in its first five lines (#14151) 2ed525d
- A .ics calendar file opens as a dated list of events with title, start, end and place (#14170) fd2f82a
- /talk keeps an unsent line across a reload and clears it once sent (#14152) c00b436
- A person who claimed with a passkey and loses the device has a way back in (#13803) 5a1d7a4
- A /talk line that starts with a slash runs a short command: /issue, /pull, /wallet (#13982) d226509
- A weekly maintenance duty lists the five slowest test files in the last check (#13980) ac3767e
- A .ics calendar file opens as a list of its events with date, title and place (#14145) d31e7ff
- A missing /assets/ file answers no-store, so the edge never keeps a 404 for a file the next release ships (#14033) 4495327
- The offline page and the waking page share one sentence and show when the forge will answer (#13022) 33b4937
When the restore drill fails at step forge, the reason now always reads hosted forge <name>: <what did not hold>. Before, only failures that proveHosted threw itself named the forge. A missing chunk from the restore underneath, or running out of the drill's time, came back without the name.
What changed
src/snapshot/drill.ts: the drill remembers which hosted forge it is proving. A failure atforgegoes through a newnamedForge(name, what), which adds the prefix only if it isn't already there. Running out of time readshosted forge alpha: timed out: no answer within its … budget. This uses the drill's existing timer, so there is no new timeout (#2667). The red verdict,failedStep: "forge"and stopping at that step were already right.- Paging: the pager the other drill failures use (
drillLinesinsrc/crew/notify.ts) already pages once per drill, so it didn't need changing. test/drill-hosted-red.test.ts(new): it uses an in-memory store whose manifest names hosted forgealpha, and a fake host restore that writes a minimal database. Adeps.provethat throws gives:- a red verdict at
forge, with the reason said once and no leftover scratch directory; - the forge named when the error came from below the proof without its name;
- a
forgetime-out that names the forge; - exactly one page through
startNotifier, and no second page when the same drill is read again.
- a red verdict at
test/drill-hosted-proof.test.ts: this was already failing on main. #14190's test expected a proof with noms, while #14189 addedmsaround the same time. The test was wrong, not the code: it now checks thatmsis a whole number of zero or more.
Not done: no change to the pager, docs/RECOVERY.md (its forge entry already says the forge is named), or the verdict file's format.
How to try it: bun test test/drill-hosted-red.test.ts test/drill-hosted-proof.test.ts test/snapshot-hosted-chunks.test.ts. The gate and tsc pass. I ran 33 drill, snapshot, notify and lint-style test files (unused-exports, module-state, recovery-red-drill, gate-stray-test) and they pass. scripts/fast.ts named 263 files (about 21 minutes), so I left the full set to the forge's check.
🤖 Generated with Claude Code
When the restore drill fails at step
forge, the reason now always readshosted forge <name>: <what did not hold>. Before, only failures thatproveHostedthrew itself named the forge. A missing chunk from the restore underneath, or running out of the drill's time, came back without the name.What changed
src/snapshot/drill.ts: the drill remembers which hosted forge it is proving. A failure atforgegoes through a newnamedForge(name, what), which adds the prefix only if it isn't already there. Running out of time readshosted forge alpha: timed out: no answer within its … budget. This uses the drill's existing timer, so there is no new timeout (#2667). The red verdict,failedStep: "forge"and stopping at that step were already right.drillLinesinsrc/crew/notify.ts) already pages once per drill, so it didn't need changing.test/drill-hosted-red.test.ts(new): it uses an in-memory store whose manifest names hosted forgealpha, and a fake host restore that writes a minimal database. Adeps.provethat throws gives:forge, with the reason said once and no leftover scratch directory;forgetime-out that names the forge;startNotifier, and no second page when the same drill is read again.test/drill-hosted-proof.test.ts: this was already failing on main. #14190's test expected a proof with noms, while #14189 addedmsaround the same time. The test was wrong, not the code: it now checks thatmsis a whole number of zero or more.Not done: no change to the pager,
docs/RECOVERY.md(itsforgeentry already says the forge is named), or the verdict file's format.How to try it:
bun test test/drill-hosted-red.test.ts test/drill-hosted-proof.test.ts test/snapshot-hosted-chunks.test.ts. The gate andtscpass. I ran 33 drill, snapshot, notify and lint-style test files (unused-exports,module-state,recovery-red-drill,gate-stray-test) and they pass.scripts/fast.tsnamed 263 files (about 21 minutes), so I left the full set to the forge's check.🤖 Generated with Claude Code
Closes #14186