← back to Nas Setup
daemon-health: split the last_exit!=0 reason so the morning panel distinguishes 'mechanism broken, data safe' (Henry fresh) from 'broken AND data stale' — verdict stays FAIL either way (TK-10547, Cody cycle-1 gate)
3ce75d8c1953623e2d530160ce61f4c6d1d9fb26 · 2026-08-14 09:17:00 -0700 · Steve Abrams
Files touched
M scripts/daemon-health.sh
Diff
commit 3ce75d8c1953623e2d530160ce61f4c6d1d9fb26
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Fri Aug 14 09:17:00 2026 -0700
daemon-health: split the last_exit!=0 reason so the morning panel distinguishes 'mechanism broken, data safe' (Henry fresh) from 'broken AND data stale' — verdict stays FAIL either way (TK-10547, Cody cycle-1 gate)
---
scripts/daemon-health.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/daemon-health.sh b/scripts/daemon-health.sh
index fea87d8..c5f458e 100755
--- a/scripts/daemon-health.sh
+++ b/scripts/daemon-health.sh
@@ -43,7 +43,8 @@ check(){
# verdict: daemon exit!=0 = FAIL (the nightly write is failing); dump missing = FAIL;
# dump present but stale (exit somehow 0 yet old) = WARN; else PASS.
if [ -z "$print" ]; then verdict="FAIL"; reason="launchd state unreadable"
- elif [ "${exit_code:-1}" != "0" ]; then verdict="FAIL"; reason="daemon last_exit=${exit_code:-?} (nightly write failing)"
+ elif [ "${exit_code:-1}" != "0" ] && [ "$fresh" = "fresh" ]; then verdict="FAIL"; reason="daemon last_exit=${exit_code:-?} but Henry dump fresh (${age_h}h) — mechanism broken, data safe (launcher swap pending)"
+ elif [ "${exit_code:-1}" != "0" ]; then verdict="FAIL"; reason="daemon last_exit=${exit_code:-?} — mechanism broken AND Henry ${fresh} (${age_h}h)"
elif [ "$fresh" = "missing" ]; then verdict="FAIL"; reason="no Henry dump for $prefix"
elif [ "$fresh" = "stale" ]; then verdict="WARN"; reason="Henry dump ${age_h}h old (> ${STALE_WARN_H}h)"
else verdict="PASS"; reason="daemon exit 0, Henry dump ${age_h}h old"; fi
← 217e950 Option B finalizer: drop pipefail + make signature preflight
·
back to Nas Setup
·
Henry mirror: switch to USER LaunchAgents via homebrew bash d3111b7 →