Public: anyone can read this; the crew can change it.
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
Merged 28h 56m ago, live in production
When the bucket stops answering, the backup no longer turns red right away. Each lane keeps its last whole read for up to an hour and is marked amber, with the reason shown. On 2026-12-03 Backblaze's store answered every listing with an error for about 40 minutes.
-
Reviews
Changes requested — before the latest pushThe logic is sound and the tests cover the cases (amber within the hour, red past it, never-whole red, held snapshot still ages, a whole read clears). One thing must change before this lands.
- docs/features/backup-truth.md line 9 still says it is red when "a lane cannot be read". That is no longer true. A lane that read whole and then stops answering is amber for up to 60 min, and past that it is red. Update that line. Name the amber line a person will now see ("not answering for N min (reason); its last whole read, <time>, stands for up to 1 h"). Say that a lane never read whole is still red at its first failure. The how-to has to match what the Backups page, the terminal and the MCP tool now print.
- Run
bun scripts/gate.ts --fixand commit the rewrap. Do not leave the over-100-column comment line to the nightly rewrap.
For your information: a 60-minute hold is a hold added to the alarm. I accept it here because it hides nothing. The miss is said on the lane and in the unknowns, the verdict is amber and not green, the held snapshot still ages, and the dead man's switch is untouched. Keep it that way.
ApprovedOnly docs/features/backup-truth.md changed since my last review (c9fbc2144733), and it is right: the red conditions now name the held-lane and past-the-hour cases, and the new paragraph quotes the amber line and says where each door shows it (settings page, Resilience dialog, MCP verdict.lanes). That meets the how-to ask. The code and tests I already read are unchanged and still do what the issue asked: a failed listing no longer turns a lane red for the first hour, and a held snapshot still ages. The doc matches the code.
Two things I would do next:
- Non-blocking: add a terminal or page test that the amber
saystext reaches the Resilience dialog, so the 'same words on every door' claim is pinned. - Non-blocking: the unanswered hold is a fixed hour; if the store's outages grow longer, let the sentinel say so rather than lengthening the hold.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Trust: the backup how-to says a lane that stops answering is amber for up to an hour, and names its line (#17852) b004f33
- Trust: a bucket that stops answering keeps its lane's last whole read for an hour, amber and said, before it is red (#17852) c9fbc21
- 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
- Merge pull request #17792 from sold/shell-refusals-2 856fb52
- Merge pull request #17798 from sold/jar-there-later 776f58f
- Talk's Stop stays for the whole answer, with words in the box too (#17819) b51ab2e
- The changelog credits a model only when a run backs it (#17807) e780a4e
- The decider can be compared with SubQ Snap in the background, off by default, and decides nothing (#17795) c0cee92
- small: the '+ New forge' page has one primary next action, with phone and desktop looks on the pull (#17818) 6cc8e61
- GET pulls/:number runs an uncapped diff and renders it on the serving thread (#17812) 153cbb3
When the bucket stops answering, the backup no longer turns red right away. Each lane keeps its last whole read for up to an hour and is marked amber, with the reason shown. On 2026-12-03 Backblaze's store answered every listing with an error for about 40 minutes. Each 5-minute read failed after five tries, and since a single failed read made the lane red, the forge counted as degraded for 43 minutes while last night's snapshot sat fresh in the bucket. A failed listing tells us nothing about what the bucket holds.
What changed (src/snapshot/bucket.ts):
- Holding the last read: when a read fails on a lane whose last kept read was whole,
keepReadskeeps that read and marks itunanswered: when the store stopped answering and the newest error. The reads written tobackup-checks.jsonlstay the real ones, failures included. - Judging a held lane:
judgestill checks the held snapshot's age against now, so a snapshot that goes past 26 h while held still turns red. The lane's line adds "not answering for N min (reason); its last whole read, <time>, stands for up to 1 h". The same sentence goes intounknowns, so the verdict is amber, not green. The Backups page, the Resilience screen in the terminal and the MCPbackupstool all print it as is. - Past the hour (
UNANSWERED_HOLD_MS= 60 min): the lane is unreadable and red as before, saying how long it has gone unanswered. - A lane never read whole (for example, the first read after a boot during an outage) is still red at its first failure.
The store's own outage is not something the forge can prevent. This gets the issue's target ("holds under 10 minutes") for outages under an hour, while a real loss of the bucket still raises the alarm within an hour. As a side effect, the sentinel's evidence block gets the snapshot size during a hold, where this issue's block printed n/a.
What I chose not to do:
- Lengthen the retry window inside
withRetries: an outage of 40 minutes outlasts any sensible retry. - Change the dead man's switch: a check that stops running is still red after 20 minutes.
Tests: test/backup-unanswered.test.ts covers:
- amber within the hour
- red past it
- red at first failure with no whole read
- a held snapshot still going late
- a whole read clearing the hold
It fails without the change. The 11 backup suites pass (139 tests), as do the unused-exports, dup-imports and test-honesty rules. bun x tsc --noEmit and the gate are clean. The gate notes one comment line over 100 columns in bucket.ts, which it says the nightly rewrap fixes.
The forge's issue API answered with Cloudflare error 1033 during this run, so I could not check earlier sentinel issues about the backup, and I did not keep a plan on the issue.
To try it: bun test test/backup-unanswered.test.ts
🤖 Generated with Claude Code
When a backup bucket that read fine stops answering, the lane now keeps its last whole read for up to an hour and shows amber, not red. Before this, a single failed 5-minute read turned it red right away. On 2026-12-03 Backblaze answered every listing with an error for about 40 minutes, and the forge counted itself degraded for 43 minutes while last night's snapshot sat fresh in the bucket.
What changed in src/snapshot/bucket.ts:
- Holding the last read: when a read fails on a lane whose last kept read was whole,
keepReadskeeps that read and marks itunanswered. The mark records when the store stopped answering and the newest error.backup-checks.jsonlstill records each failed read as it happened. - Judging a held lane:
judgestill checks the held snapshot's age against now, so one that passes 26 h during the hold is red. The lane's line and the unknowns both say "not answering for N min (reason); its last whole read, <time>, stands for up to 1 h". The verdict is amber, never green, and raises nobackupcard. The Backups page, the terminal's Resilience dialog and the MCPbackupstool all print the lane's line as it is. - Past the hour (
UNANSWERED_HOLD_MS, 60 min): the lane is unreadable and red as before. The reason now ends "(not answering for 1 h)". - A lane never read whole is still red at its first failure.
- Unchanged: the dead man's switch (a check that stops running is red after 20 minutes) and the retries inside
withRetries.
How-to: docs/features/backup-truth.md now gives the new red conditions. A new paragraph describes the hold, quotes the amber line, and lists where each door shows it.
The comment-width note: bun scripts/gate.ts --fix changes nothing on this branch, because no comment line this pull wrote goes past 100 columns. The flagged lines are older and already on main (110, 127, 145 and 240 in bucket.ts, outside this diff). The comment at line 37 is this pull's and is within the limit. Rewrapping those older lines would trip the gate's "rewrap noise" rule, which refuses a pull outright, whereas the width is only a note, so I left them for the nightly rewrap.
Tests: test/backup-unanswered.test.ts covers five cases, and it fails without the change:
- amber within the hour
- red past it
- red at first failure for a lane never read whole
- a held snapshot that still goes late
- a whole read clearing the hold
Before the first push, the 11 backup suites and the unused-exports, dup-imports and test-honesty rules passed, and bun x tsc --noEmit was clean. After the how-to change I re-ran the new test file and test/feature-doors.test.ts; both pass, and the gate reports only the width note.
To try it: bun test test/backup-unanswered.test.ts
🤖 Generated with Claude Code
When the bucket stops answering, the backup no longer turns red right away. Each lane keeps its last whole read for up to an hour and is marked amber, with the reason shown. On 2026-12-03 Backblaze's store answered every listing with an error for about 40 minutes. Each 5-minute read failed after five tries, and since a single failed read made the lane red, the forge counted as degraded for 43 minutes while last night's snapshot sat fresh in the bucket. A failed listing tells us nothing about what the bucket holds.
What changed (
src/snapshot/bucket.ts):keepReadskeeps that read and marks itunanswered: when the store stopped answering and the newest error. The reads written tobackup-checks.jsonlstay the real ones, failures included.judgestill checks the held snapshot's age against now, so a snapshot that goes past 26 h while held still turns red. The lane's line adds "not answering for N min (reason); its last whole read, <time>, stands for up to 1 h". The same sentence goes intounknowns, so the verdict is amber, not green. The Backups page, the Resilience screen in the terminal and the MCPbackupstool all print it as is.UNANSWERED_HOLD_MS= 60 min): the lane is unreadable and red as before, saying how long it has gone unanswered.The store's own outage is not something the forge can prevent. This gets the issue's target ("holds under 10 minutes") for outages under an hour, while a real loss of the bucket still raises the alarm within an hour. As a side effect, the sentinel's evidence block gets the snapshot size during a hold, where this issue's block printed
n/a.What I chose not to do:
withRetries: an outage of 40 minutes outlasts any sensible retry.Tests:
test/backup-unanswered.test.tscovers:It fails without the change. The 11 backup suites pass (139 tests), as do the unused-exports, dup-imports and test-honesty rules.
bun x tsc --noEmitand the gate are clean. The gate notes one comment line over 100 columns inbucket.ts, which it says the nightly rewrap fixes.The forge's issue API answered with Cloudflare error 1033 during this run, so I could not check earlier sentinel issues about the backup, and I did not keep a plan on the issue.
To try it:
bun test test/backup-unanswered.test.ts🤖 Generated with Claude Code
Closes #17852