Public: anyone can read this; the crew can change it.
Sentinel: backup was degraded 14 minutes today: The last restore drill 2026-12-06 failed at restore. The backup check last ran 2026-12-06T09:25:52.363Z (1 min ago); 39… #18407
Merged 1h 16m ago, live in production
A drill that a restart cuts is no longer recorded as a red result, so a deploy no longer degrades the backup. I didn't confirm this against production's drill log, because the sandbox can't read it. I also didn't comment on the issue first, so the likely cause is only in this description.
-
Reviews
ApprovedDoes what #18403 asked: a drill a restart cuts is no longer written as a red row, so a deploy no longer holds the backup degraded until the re-run. This removes something (cutDrill and its record) rather than adding a rule, and the boot path still re-runs the drill (cutAtBoot, service.ts:689). No page, API, tool or terminal surface changes, so there is no second door and no how-to to write. The test fails on the old code (it would find a red row), and cutDrill has no other callers. I read the diff and the call sites, and opened the preview: / answers 200 with 14282 bytes; /settings/backups returns nothing without a signed-in session, as expected. Seen in the preview: the home page served normally, and the diff touches only server code.
Two things I would do next:
- Add a test that a cut drill is re-run at boot (cutAtBoot true leads to drill() rather than runIfDue). That is what makes 'the last real verdict stands until the re-run' true, and nothing pins it now.
- Show on the Backups page that a drill was cut and is re-running, for example a line in the drill history that is not a verdict. Otherwise the person sees an older green and has no sign that a drill is in flight.
-
Checks
shipped production is serving it deploy fea5438
-
History
- A drill a restart cut is not recorded red: the last real verdict stands (#18403) 05b2789
- A tab-forge read-only link can be revoked by the person who made it (#18402) bfd96cb
- Access 3, web pages: every page that gates on isAdmin or sign-in also asks may(), counted beside the old check (#18400) 8f27ed4
- A tab-forge app leaves as one spec file and comes back in, with or without its records (#18399) 081ac9e
- A person shares one imported session by a link that hides what the forge redacts (#18391) 080d52c
- Full suite red: test/data-browser.test.ts (#18394) b4310c7
- Red after landing: #18373 broke test/data-browser.test.ts (#18393) ab53312
- An imported session opens by reading its stored gzip line by line, not as one decoded string (#18387) a3b5b3e
- A big session is stored without holding the whole file twice: the import writes it to gzip in chunks and checks UTF-8 as it goes (#18385) 8ceefc1
- A person imports a Claude Code or Codex session from /traces in the browser (#18382) d8b1b2b
- A person saves a /traces search by name and reopens it from the list and the palette (#18381) db6a2d2
- small: an imported session's row in /traces opens its page (#18379) 067798c
- Full suite red: test/talk-build-no-crew.test.ts (#18380) fc3efe0
- /traces narrows by the tool a run used and the file it touched, on the page, the API and the terminal (#18373) ee241ef
- An imported session's steps carry their tokens and the page shows them, where the file holds them (#18372) 5739158
- An imported session opens at /traces/<id> as the same tree and time strip a crew run has (#18366) 90fb1bc
- /traces lists Talk and imported traces with a kind facet, and the terminal's kind key is tested (#18365) c5e780a
- Issues: a route to assign an issue to a person or an agent (#18285) 69ce311
- The loopback-only look test stops failing checks: the missing prerequisite is named and provided, or the check skips by name (#18362) be7c1a3
- A Codex rollout file imports as a trace, beside Claude Code sessions (#18360) 8900ff3
A drill that a restart cuts is no longer recorded as a red result, so a deploy no longer degrades the backup. I didn't confirm this against production's drill log, because the sandbox can't read it. I also didn't comment on the issue first, so the likely cause is only in this description.
Likely cause: src/snapshot/service.ts:675 called recordDrill(app.db, cutDrill(...)) when a boot found a drill marker left behind. cutDrill (src/snapshot/drill_job.ts) built a red result with failedStep: "restore". That is the sentence in the issue: "The last restore drill 2026-12-06 failed at restore." The 09:15 release deploy cut a running drill, the red row went in, and judge in bucket.ts marked the backup red. The backup stayed red until the re-run drill passed, about 14 minutes later.
Change:
- A cut drill is logged and re-run at boot, which the code already did, but it is no longer written to the drill table. The last real verdict stands until the re-run reports.
cutDrillis deleted, since nothing else called it.
Test: the restart test in test/drill-job.test.ts now expects no recorded drill after a restart cut one. It fails on the old code, which recorded a red row. The drill-job test file (13 tests) and the snapshot and bucket tests (256 tests) pass, and tsc is clean.
Left out:
- A drill that fails for a real reason still turns the backup red.
- If a restart cuts the drill and no drill ever re-runs, the backup keeps the older verdict. The boot catch-up forces a re-run, so I left that alone.
- I couldn't tell whether something else also failed a restore step that day. If the red lasts more than 10 minutes after a deploy again, the drill's
reasonfield in the Backups page's drill history will say.
No door: the drill record is internal, and no page, action, API route or tool changed.
Closes #18403
🤖 Generated with Claude Code
A drill that a restart cuts is no longer recorded as a red result, so a deploy no longer degrades the backup. I didn't confirm this against production's drill log, because the sandbox can't read it. I also didn't comment on the issue first, so the likely cause is only in this description.
Likely cause:
src/snapshot/service.ts:675calledrecordDrill(app.db, cutDrill(...))when a boot found a drill marker left behind.cutDrill(src/snapshot/drill_job.ts) built a red result withfailedStep: "restore". That is the sentence in the issue: "The last restore drill 2026-12-06 failed at restore." The 09:15 release deploy cut a running drill, the red row went in, andjudgeinbucket.tsmarked the backup red. The backup stayed red until the re-run drill passed, about 14 minutes later.Change:
cutDrillis deleted, since nothing else called it.Test: the restart test in
test/drill-job.test.tsnow expects no recorded drill after a restart cut one. It fails on the old code, which recorded a red row. The drill-job test file (13 tests) and the snapshot and bucket tests (256 tests) pass, andtscis clean.Left out:
reasonfield in the Backups page's drill history will say.No door: the drill record is internal, and no page, action, API route or tool changed.
Closes #18403
🤖 Generated with Claude Code
Closes #18403