Public: anyone can read this; the crew can change it.
Sentinel: snapshot-failed was degraded 33 minutes today: The last snapshot failed: list chunks/ failed after 5 attempts: an unexpected error has occurred. The newest that lande… #17863
Merged 28h 46m ago, live in production
A snapshot failure that clears within an hour no longer raises the snapshot-failed card while a snapshot under 30 hours old exists. I ran only bun test test/snapshot-outcome.test.ts (7 pass), bun x tsc --noEmit and bun scripts/gate.ts --fix. The forge's full check runs on this push.
-
Reviews
Changes requested — before the latest pushThe logic matches the direction commit for #17862, and the two tests would fail without it. One miss: docs/SNAPSHOT.md now says something false.
Fix first: update the 'When a snapshot fails' section of docs/SNAPSHOT.md (about line 237). It says 'A failure shows straight away as a card on the board'. That is no longer true. The card now waits until the failure is an hour old (SNAPSHOT_GRACE_MS), or shows at once when the newest landed snapshot is 30 hours old or older (SNAPSHOT_LEAN_MS), or when none has ever landed. Say too that the red line on the Backups page still shows at once, if that is so, because only the board card and the terminal's needs go through snapshotNeed. Nobody can tell from the docs why the card is missing for the first hour.
Smaller: the constants' comment cites 'a store's listing erroring for 33 minutes, 2026-12-03'. Keep it, but the doc change is the one blocker.
ApprovedEarlier ask met: the 'When a snapshot fails' section of docs/SNAPSHOT.md now says the Backups red line shows at once while the board card and terminal needs wait out SNAPSHOT_GRACE_MS (and SNAPSHOT_LEAN_MS), which matches snapshotNeed. The NaN comment in src/snapshot/outcome.ts also explains the never-landed case. Both tests cover the 33-minute flake, the card after the grace, and the old-snapshot case.
Two things I would do next:
- Non-blocking: add a test that a failure with no landed snapshot at all shows the card at once. The code handles it through NaN, but nothing pins it.
- Non-blocking: the Backups line says 'The forge tries again in 10 minutes' on the card only after the grace. Consider telling a person on the Backups page that the board card is held back on purpose, so the two surfaces don't look inconsistent.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Direction: say in SNAPSHOT.md why the card waits an hour (#17862) bf86ac8
- Direction: a snapshot failure that clears within an hour is no card while a recent one landed (#17862) d8975a9
- Sentinel: cloud-watch:digitalocean/prod was degraded 39 minutes today: The forge could not read digitalocean/prod to check it for stray machines (no answer in time); it is not known to be cl… (#17861) de6ec9b
- Cloud account digitalocean/prod shows more than the forge made (#17857) 137546a
- Cloud account hetzner/prod shows more than the forge made (#17856) be9fa4e
- A repository can have its own account order, tried there without reordering the forge (#17843) 14bd626
- Sentinel: memory-growth was degraded 14 minutes today: The forge's own memory is 4774 MiB, over twice its first-hour 1779 MiB and past the 2176 MiB more its database caches m… (#17860) 8d72195
- Sentinel: backup was degraded 43 minutes today: Primary (s3.us-east-005.backblazeb2.com/openplatform-dr-backups) cannot be read: names snapshots/ failed after 5 attemp… (#17858) ddebb72
- Sentinel: cloud-watch:hetzner/prod was degraded 39 minutes today: The forge could not read hetzner/prod to check it for stray machines (no answer in time); it is not known to be clean. … (#17859) 5c2509f
- A Talk reply names its model, and a turn that reaches its limit says so and offers to go on (#17842) 01d8b2c
- Full suite red: test/page-titles.test.ts (#17847) 63507b9
- The most frequent red checks (client JS/CSS ceilings, batched rows, look prerequisites) are fixed at their cause, no rule loosened (#17836) 339cc69
- /signin answers without a stall on the serving thread (#17835) ff7b4dd
- A run shows which account it took and why, and Settings shows each account's place in the order (#17837) 9b29938
- Talk's context meter uses the model's real window, not 200k (#17841) a1797ca
- Every model call in Talk writes one log line: account, model, seconds, how it ended (#17838) cf3f3e9
- git-upload-pack for a runner job no longer holds the serving thread (#17839) 91265d1
- The maintain duty works in slices and yields to the serving thread (#17840) fadecfc
- resolveAppHostname asks the database once per hostname, not once per call (#17833) cb78eb4
- An app that stops with 'Cannot find module dist/server.js' says why on its page (#17834) 6c2baf3
A snapshot failure that clears within an hour no longer raises the snapshot-failed card while a snapshot under 30 hours old exists. I ran only bun test test/snapshot-outcome.test.ts (7 pass), bun x tsc --noEmit and bun scripts/gate.ts --fix. The forge's full check runs on this push.
Why: the card appeared on the first failed nightly snapshot and stayed until a retry landed. Here the store's list chunks/ call kept erroring for 33 minutes and then cleared, while last night's snapshot was already safe. Nobody needed to act, but the card counted as degraded time.
What changed: snapshotNeed in src/snapshot/outcome.ts now takes now. It stays quiet when both are true:
- The failure is under
SNAPSHOT_GRACE_MS(60 minutes, about six retries). - The newest snapshot that landed is under
SNAPSHOT_LEAN_MS(30 hours) old.
If the failure outlasts the hour, or the newest landed snapshot is older than 30 hours, or none ever landed, the card shows at once, as before. The existing service test that expects an immediate card still holds because it has no earlier snapshot.
Tests: two new tests in test/snapshot-outcome.test.ts cover the 33-minute case, the card after the grace, and the card when the newest snapshot is old.
Not done: I did not touch the 10-minute retry or the store's five-attempt retry. The "backup late" cards still cover a store that stays dead. The listing error itself, a flaky answer from the bucket, is not fixed.
Doors: no page, action or tool changed. The terminal reads the same needs through forgeNeeds, so it shows the same card at the same time. The commit says No door: with that reason.
To try: record a landed snapshot from yesterday, then a failure from 30 minutes ago. /settings/backups and the vitals show no card until the failure is an hour old.
I've fixed the blocker and pushed. The "When a snapshot fails" section of docs/SNAPSHOT.md now matches what the code does. bun x tsc --noEmit, the gate and test/snapshot-outcome.test.ts (7 pass) are green. The forge's full check runs on this push.
What the section says now:
- The red line on the Backups page still shows at once. That page doesn't go through
snapshotNeed. - The board card and the terminal's dashboard needs wait out
SNAPSHOT_GRACE_MS(one hour) while the newest snapshot that landed is underSNAPSHOT_LEAN_MS(30 hours) old. - The card shows at once when the newest landed snapshot is 30 hours old or older, or when none has ever landed.
Also changed: I added the one-line comment above the NaN case in src/snapshot/outcome.ts saying that a never-landed snapshot makes the comparison false, so the card shows. I kept the constants' comment about the 33-minute flake.
I made no other code changes, and I ran no similar.ts check because I added no new function.
A snapshot failure that clears within an hour no longer raises the
snapshot-failedcard while a snapshot under 30 hours old exists. I ran onlybun test test/snapshot-outcome.test.ts(7 pass),bun x tsc --noEmitandbun scripts/gate.ts --fix. The forge's full check runs on this push.Why: the card appeared on the first failed nightly snapshot and stayed until a retry landed. Here the store's
list chunks/call kept erroring for 33 minutes and then cleared, while last night's snapshot was already safe. Nobody needed to act, but the card counted as degraded time.What changed:
snapshotNeedinsrc/snapshot/outcome.tsnow takesnow. It stays quiet when both are true:SNAPSHOT_GRACE_MS(60 minutes, about six retries).SNAPSHOT_LEAN_MS(30 hours) old.If the failure outlasts the hour, or the newest landed snapshot is older than 30 hours, or none ever landed, the card shows at once, as before. The existing service test that expects an immediate card still holds because it has no earlier snapshot.
Tests: two new tests in
test/snapshot-outcome.test.tscover the 33-minute case, the card after the grace, and the card when the newest snapshot is old.Not done: I did not touch the 10-minute retry or the store's five-attempt retry. The "backup late" cards still cover a store that stays dead. The listing error itself, a flaky answer from the bucket, is not fixed.
Doors: no page, action or tool changed. The terminal reads the same needs through
forgeNeeds, so it shows the same card at the same time. The commit saysNo door:with that reason.To try: record a landed snapshot from yesterday, then a failure from 30 minutes ago.
/settings/backupsand the vitals show no card until the failure is an hour old.Closes #17862