← back to Nas Setup
daemon-health: accept single-belt operation as PASS (Steve 8/15, TK-10547)
3c61bc32be802af6f4d9656ef0ee01cb581af658 · 2026-08-15 07:11:26 -0700 · steve
Steve accepted the user belt as the primary; the root belt (Option B) stays
down pending a flaky system-domain FDA grant on the ad-hoc-signed nas-backup-sh.
One belt down now = PASS (data safe) instead of WARN. Real-danger cases stay
loud FAIL: BOTH belts down, or Henry missing/stale. REQUIRE_BOTH_BELTS=1
restores strict degraded-redundancy WARNs if the root belt is ever fixed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
M scripts/daemon-health.sh
Diff
commit 3c61bc32be802af6f4d9656ef0ee01cb581af658
Author: steve <steve@designerwallcoverings.com>
Date: Sat Aug 15 07:11:26 2026 -0700
daemon-health: accept single-belt operation as PASS (Steve 8/15, TK-10547)
Steve accepted the user belt as the primary; the root belt (Option B) stays
down pending a flaky system-domain FDA grant on the ad-hoc-signed nas-backup-sh.
One belt down now = PASS (data safe) instead of WARN. Real-danger cases stay
loud FAIL: BOTH belts down, or Henry missing/stale. REQUIRE_BOTH_BELTS=1
restores strict degraded-redundancy WARNs if the root belt is ever fixed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
scripts/daemon-health.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/daemon-health.sh b/scripts/daemon-health.sh
index 6d7258c..0b1a18f 100755
--- a/scripts/daemon-health.sh
+++ b/scripts/daemon-health.sh
@@ -18,6 +18,12 @@ set -uo pipefail
ALERT=0; [ "${1:-}" = "--alert" ] && ALERT=1
STALE_WARN_H="${STALE_WARN_H:-30}" # a nightly 03:45 job's Henry dump older than this = missed run
+# Steve ACCEPTED single-belt operation (8/15, TK-10547): the root belt (Option B) is a durability
+# nice-to-have blocked on a flaky system-domain FDA grant to the ad-hoc-signed nas-backup-sh; the
+# USER belt is the accepted primary. So ONE belt down = PASS (data safe), not WARN. The real-danger
+# cases stay LOUD FAIL: BOTH belts down, or Henry missing/stale. Flip REQUIRE_BOTH_BELTS=1 to restore
+# strict degraded-redundancy WARNs (e.g. once the root belt is fixed and you want both enforced).
+REQUIRE_BOTH_BELTS="${REQUIRE_BOTH_BELTS:-0}"
HERE="$(cd "$(dirname "$0")" && pwd)"; DATA="$HERE/../data"; mkdir -p "$DATA"
OUT="$DATA/daemon-health-latest.json"
now=$(date +%s)
@@ -59,7 +65,8 @@ check(){
if [ "$fresh" = "missing" ]; then verdict="FAIL"; reason="no Henry dump for $prefix — neither writer landed [$writers]"
elif [ "$fresh" = "stale" ]; then verdict="FAIL"; reason="Henry dump ${age_h}h old (> ${STALE_WARN_H}h) — neither writer is landing [$writers]"
elif [ "$up" -eq 0 ]; then verdict="FAIL"; reason="Henry fresh (${age_h}h) but BOTH writers broken — nothing will refresh it [$writers]"
- elif [ "$up" -eq 1 ]; then verdict="WARN"; reason="Henry fresh (${age_h}h) via one writer — redundancy DEGRADED, other belt down [$writers]"
+ elif [ "$up" -eq 1 ] && [ "$REQUIRE_BOTH_BELTS" = "1" ]; then verdict="WARN"; reason="Henry fresh (${age_h}h) via one writer — redundancy DEGRADED, other belt down [$writers]"
+ elif [ "$up" -eq 1 ]; then verdict="PASS"; reason="Henry fresh (${age_h}h) via the accepted primary belt (root belt accepted-down pending FDA, Steve 8/15) [$writers]"
else verdict="PASS"; reason="Henry fresh (${age_h}h), both writers healthy [$writers]"; fi
[ "$(rank "$verdict")" -gt "$(rank "$worst")" ] && worst="$verdict"
← d41f040 belt-and-suspenders: stagger user-agent belts past their roo
·
back to Nas Setup
·
pull-dw-dump: retry remote-dump SSH discovery on transient f 4228153 →