← back to George Gmail
Chain bridge.mjs onto token-age-warn.sh so the fleet-health artifact stays fresh
ce59ce60fba364d9830020e4ce33ce2b6722e3c4 · 2026-09-12 12:55:01 -0700 · Steve Abrams
cron-fire-canary was flagging com.steve.george-token-age as not-firing, but the
launchd job itself was firing fine every 6h — it's the separate bridge.mjs
republish script (~/.claude/skills/george-token-age/bridge.mjs, TK-11371) that
writes the monitored artifact, and it had no schedule of its own (its plist
was deliberately left uninstalled). Riding the detector's already-approved
cadence keeps data/latest.json current without installing a new scheduled job.
TK-11529
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASu1mqEndsJjj5bpueXKiE
Files touched
Diff
commit ce59ce60fba364d9830020e4ce33ce2b6722e3c4
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sat Sep 12 12:55:01 2026 -0700
Chain bridge.mjs onto token-age-warn.sh so the fleet-health artifact stays fresh
cron-fire-canary was flagging com.steve.george-token-age as not-firing, but the
launchd job itself was firing fine every 6h — it's the separate bridge.mjs
republish script (~/.claude/skills/george-token-age/bridge.mjs, TK-11371) that
writes the monitored artifact, and it had no schedule of its own (its plist
was deliberately left uninstalled). Riding the detector's already-approved
cadence keeps data/latest.json current without installing a new scheduled job.
TK-11529
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASu1mqEndsJjj5bpueXKiE
---
token-age-warn.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/token-age-warn.sh b/token-age-warn.sh
index 1946cc6..292f38a 100755
--- a/token-age-warn.sh
+++ b/token-age-warn.sh
@@ -15,6 +15,14 @@ if [ -n "$LATEST_MT" ] && [ "$LATEST_MT" -lt "$START_TS" ]; then
fi
ALERT=$(jq -r '.alert' "$LATEST")
log "token-age: worst=$(jq -r '.worst' "$LATEST") · $(jq -r '.warn' "$LATEST") WARN · $(jq -r '.crit' "$LATEST") CRIT · alert=$ALERT"
+
+# TK-11529: republish onto the fleet-health-rollup bridge every run (not just on a worsening
+# transition) — the bridge has no schedule of its own (its plist.DRAFT is deliberately
+# uninstalled, scheduled-job install is Steve-gated), so this cadence is what keeps
+# ~/.claude/skills/george-token-age/data/latest.json fresh for cron-fire-canary + the rollup.
+BRIDGE="$HOME/.claude/skills/george-token-age/bridge.mjs"
+[ -f "$BRIDGE" ] && { node "$BRIDGE" >/dev/null 2>>"$LOG" && log "bridge.mjs republished" || log "bridge.mjs failed"; }
+
[ "$ALERT" != "true" ] && { log "no worsening transition — silent"; exit 0; }
CNCP="${CNCP_URL:-http://localhost:3333}"
← 1f88069 auto-data-snapshot: 2026-09-12T04:26:59 (1 data files) — dat
·
back to George Gmail
·
auto-data-snapshot: 2026-09-12T14:31:21 (1 data files) — dat bada0c2 →