← back to Wallco Ai
Add self-healing supervisor for variants-9roots regen (relaunches resumable script until 90/90; Mac2 keeps killing the foreground run)
8e69f5d9490e0133a5d1070fa94d8b765c42cb2d · 2026-06-12 08:41:51 -0700 · Steve Abrams
Files touched
A scripts/variants-9roots-supervisor.sh
Diff
commit 8e69f5d9490e0133a5d1070fa94d8b765c42cb2d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Fri Jun 12 08:41:51 2026 -0700
Add self-healing supervisor for variants-9roots regen (relaunches resumable script until 90/90; Mac2 keeps killing the foreground run)
---
scripts/variants-9roots-supervisor.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/scripts/variants-9roots-supervisor.sh b/scripts/variants-9roots-supervisor.sh
new file mode 100755
index 0000000..fd2438c
--- /dev/null
+++ b/scripts/variants-9roots-supervisor.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Supervisor for variants-9roots.py — the script keeps getting killed mid-run on
+# Mac2 (fork-starvation / abrupt termination, no clean error). It's resumable
+# (skips done cells via the ledger), so just relaunch until the grid is full.
+# Stops when the montage reports 90/90 filled OR the script exits 0 (clean done).
+cd /Users/stevestudio2/Projects/wallco-ai || exit 1
+LOG=/tmp/variants9.log
+for i in $(seq 1 300); do
+ echo "[supervisor $(date '+%H:%M:%S')] launch #$i" >> "$LOG"
+ python3 scripts/variants-9roots.py >> "$LOG" 2>&1
+ code=$?
+ filled=$(grep -oE '[0-9]+/90 filled' "$LOG" | tail -1 | cut -d/ -f1)
+ echo "[supervisor $(date '+%H:%M:%S')] exit=$code filled=${filled:-?}/90" >> "$LOG"
+ if [ "${filled:-0}" -ge 90 ] 2>/dev/null; then echo "[supervisor] GRID FULL 90/90 — done" >> "$LOG"; break; fi
+ if [ "$code" -eq 0 ]; then echo "[supervisor] script exited clean (0) — done" >> "$LOG"; break; fi
+ sleep 5
+done
+echo "[supervisor $(date '+%H:%M:%S')] SUPERVISOR EXIT" >> "$LOG"
← 78491e9 Add gated variant-pick export: dry-run by default, publishes
·
back to Wallco Ai
·
variants-9roots: PIVOT to img2img-low-denoise cleanup — vari 7d5a23e →