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

opened this

Merged 2h 26m 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.

Notes

opened this

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.
  • cutDrill is 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 reason field 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

commented

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.
  • cutDrill is 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 reason field 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

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs