← back to Designer Wallcoverings
cadence: resume-check.sh — verify paced cadence resumes producing once rolling variant cap clears; posts to CNCP
e29dbe326c6396ca334f397593bc7c6b03f979c8 · 2026-06-20 03:40:05 -0700 · SteveStudio2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Files touched
A shopify/scripts/cadence/resume-check.sh
Diff
commit e29dbe326c6396ca334f397593bc7c6b03f979c8
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Sat Jun 20 03:40:05 2026 -0700
cadence: resume-check.sh — verify paced cadence resumes producing once rolling variant cap clears; posts to CNCP
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---
shopify/scripts/cadence/resume-check.sh | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/shopify/scripts/cadence/resume-check.sh b/shopify/scripts/cadence/resume-check.sh
new file mode 100755
index 00000000..0453ed61
--- /dev/null
+++ b/shopify/scripts/cadence/resume-check.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+# One-shot: after Shopify's rolling 24h variant cap clears (~10-11am 2026-06-20,
+# from the Wolf Gordon burst), confirm the paced cadence resumed producing.
+# Posts a summary to CNCP + writes /tmp/dw-cadence-resume-check.txt. Born 2026-06-20.
+LOG=/tmp/dw-cadence-resume-check.txt
+cd "$HOME/Projects/Designer-Wallcoverings/shopify" || exit 1
+set -a; source .env 2>/dev/null; set +a
+DOM="$SHOPIFY_STORE_DOMAIN"; TOK="$SHOPIFY_ADMIN_TOKEN"
+{
+echo "===== cadence resume check $(date '+%a %H:%M %Z') ====="
+echo "-- recent cadence slot results --"
+grep -E "CREATED|DAILY_VARIANT_LIMIT|cadence-import exit|slot=" /tmp/dw-cadence-hourly.log 2>/dev/null | tail -8
+TODAY=$(date +%Y-%m-%d)
+N=$(curl -s "https://${DOM}/admin/api/2024-07/products/count.json?created_at_min=${TODAY}T00:00:00-07:00" -H "X-Shopify-Access-Token: $TOK" | python3 -c "import sys,json;print(json.load(sys.stdin).get('count','?'))" 2>/dev/null)
+echo "-- products created today ($TODAY): $N --"
+if grep -q "DAILY_VARIANT_LIMIT" <(tail -20 /tmp/dw-cadence-hourly.log 2>/dev/null); then
+ echo "STATUS: still cap-blocked OR last slot pre-clear — verify newest slot timestamp"
+else
+ echo "STATUS: no recent DAILY_VARIANT_LIMIT — cadence appears to be producing"
+fi
+} | tee "$LOG"
+SUMMARY=$(tail -10 "$LOG" | tr '\n' ' ' | sed 's/"/\x27/g' | cut -c1-400)
+curl -s -X POST http://127.0.0.1:3333/api/wins -H 'Content-Type: application/json' \
+ -d "{\"project\":\"dw-cadence\",\"title\":\"Cadence resume check\",\"summary\":\"${SUMMARY}\"}" >/dev/null 2>&1
← 8dcb9177 cadence: add description to activation gate (all new must ha
·
back to Designer Wallcoverings
·
activation compliance: all-channels publish + inventory 2026 912696ae →