← back to Dw Daily Catchup 20260909
rotation drain: pre-flight re-intro guard check — abort activation tick on drift (TK-10474)
6074d75b7233ce4635f1a65fcc27be354ada6b35 · 2026-08-11 13:45:39 -0700 · steve@designerwallcoverings.com
Files touched
Diff
commit 6074d75b7233ce4635f1a65fcc27be354ada6b35
Author: steve@designerwallcoverings.com <steve@designerwallcoverings.com>
Date: Tue Aug 11 13:45:39 2026 -0700
rotation drain: pre-flight re-intro guard check — abort activation tick on drift (TK-10474)
---
drain.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drain.sh b/drain.sh
index d5ebb77..1bb1cdb 100755
--- a/drain.sh
+++ b/drain.sh
@@ -26,6 +26,11 @@ trap 'rmdir "$LOCKDIR" 2>/dev/null' EXIT
# activator's daily ledger hard-caps the day's total regardless of per-slot ask.
SLOT_MAX="${DW_ROTATION_SLOT_MAX:-21}"
echo "[$(ts)] rotation-activate start slot_max=$SLOT_MAX" >>"$LOG"
+# --- re-intro guard pre-check (TK-10474): abort this tick if the guard drifted (trap releases the lock) ---
+GUARD="$HOME/Projects/dw-activation-calendar/scripts/check-reintro-guard.sh"
+if [ -x "$GUARD" ] && ! "$GUARD" >>"$LOG" 2>&1; then
+ echo "[$(ts)] ABORT: re-intro guard drift detected — activation skipped this tick" >>"$LOG"; exit 1
+fi
/opt/homebrew/bin/node "$EXE" --max "$SLOT_MAX" --commit >>"$LOG" 2>&1
RC=$?
echo "[$(ts)] rotation-activate end rc=$RC" >>"$LOG"
← 382423f collapse rotation-order.js to single source: symlink activat
·
back to Dw Daily Catchup 20260909
·
chore: fail-closed activation guard in drain.sh (session clo 3b23d46 →