[object Object]

← back to Wallco Ai

overnight-seam-loop: route DTD vote tally to stderr so it lands in the log instead of being swallowed by the verdict capture

f7ada0213a75ccdbc50ee7698b5ce80b00acab20 · 2026-06-12 07:43:12 -0700 · Steve Abrams

Files touched

Diff

commit f7ada0213a75ccdbc50ee7698b5ce80b00acab20
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Fri Jun 12 07:43:12 2026 -0700

    overnight-seam-loop: route DTD vote tally to stderr so it lands in the log instead of being swallowed by the verdict capture
---
 scripts/overnight-seam-loop.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/overnight-seam-loop.sh b/scripts/overnight-seam-loop.sh
index 03b42e0..d7427eb 100755
--- a/scripts/overnight-seam-loop.sh
+++ b/scripts/overnight-seam-loop.sh
@@ -168,7 +168,11 @@ dtd_decide() {
     [ "$v" = "CONTINUE" ] && cont=$((cont+1))
     [ "$v" = "PAUSE" ] && pause=$((pause+1))
   done
-  logl "DTD votes — codex=$codex_vote qwen=$qwen_vote rule=$rule_vote (passrate=${passrate}%) → CONTINUE=$cont PAUSE=$pause"
+  # Tally goes to STDERR (not stdout): the caller captures this fn via $(...),
+  # which grabs stdout only — so the tally must NOT ride stdout or it gets
+  # swallowed into VERDICT (and lost from the log). stderr reaches the log via
+  # the launch redirect's 2>&1 while staying out of the capture.
+  logl "DTD votes — codex=$codex_vote qwen=$qwen_vote rule=$rule_vote (passrate=${passrate}%) → CONTINUE=$cont PAUSE=$pause" >&2
 
   # majority rules; tie → fail-safe PAUSE (conservative, unattended)
   if [ "$cont" -gt "$pause" ]; then echo CONTINUE; else echo PAUSE; fi

← 5b6ed8d Fix AI-recolor publish gate: child SKUs land is_published=FA  ·  back to Wallco Ai  ·  colorway-variants.py: add --detect (two dominant tones) + -- 231021e →