[object Object]

← back to Designerwallcoverings

TK-00060: drip go-live activates ALL pending drafts (drop --limit) — fixes rolling 10 stranded Maharam drafts on live store

c72145f2fc8db45f5050a2f0646249362be5ff70 · 2026-08-10 21:42:34 -0700 · Steve Abrams

The daily drip capped go-live at DAILY_CAP(100) while its todo was (carryover + today's ~100),
so whenever create produced a full 100 the leftover drafts were sliced off — created.jsonl ran
10 ahead of golive-done.jsonl, stranding a rolling ~10 sample-only Maharam products as DRAFT
(customer-invisible) on the live store. go-live only ACTIVATES already-created drafts (variant
budget is spent at the create step), so draining all pending each run is safe and matches the
stated intent; guarantees the final run reaches 0 stuck drafts. Contrarian FIX-FIRST, verified.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit c72145f2fc8db45f5050a2f0646249362be5ff70
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 10 21:42:34 2026 -0700

    TK-00060: drip go-live activates ALL pending drafts (drop --limit) — fixes rolling 10 stranded Maharam drafts on live store
    
    The daily drip capped go-live at DAILY_CAP(100) while its todo was (carryover + today's ~100),
    so whenever create produced a full 100 the leftover drafts were sliced off — created.jsonl ran
    10 ahead of golive-done.jsonl, stranding a rolling ~10 sample-only Maharam products as DRAFT
    (customer-invisible) on the live store. go-live only ACTIVATES already-created drafts (variant
    budget is spent at the create step), so draining all pending each run is safe and matches the
    stated intent; guarantees the final run reaches 0 stuck drafts. Contrarian FIX-FIRST, verified.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 scripts/maharam-onboard/maharam-daily-drip.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/maharam-onboard/maharam-daily-drip.sh b/scripts/maharam-onboard/maharam-daily-drip.sh
index 010e9d9..dcbbadb 100755
--- a/scripts/maharam-onboard/maharam-daily-drip.sh
+++ b/scripts/maharam-onboard/maharam-daily-drip.sh
@@ -26,8 +26,14 @@ node build-payloads.mjs || { echo "build-payloads failed"; exit 1; }
 # 1) create drafts (budget-metered via the finite 'maharam' category; PG-first write-back inside).
 #    Budget-exhausted is a clean exit 0 (normal stop); a real failure exits non-zero → stop before go-live.
 node create-drafts.mjs --apply --limit="$DAILY_CAP" || { echo "create-drafts failed (rc=$?)"; exit 1; }
-# 2) activate today's (and any leftover) drafts → auto-join the smart collection
-node go-live.mjs --apply --limit="$DAILY_CAP" || { echo "go-live failed (rc=$?)"; exit 1; }
+# 2) activate today's AND ALL leftover drafts → auto-join the smart collection.
+#    NO --limit here (TK-00060, contrarian FIX-FIRST 2026-08-11): go-live only ACTIVATES
+#    already-created drafts — the variant budget is spent at the create step above, not here.
+#    A --limit on go-live capped it at DAILY_CAP while its todo was (carryover + today's ~100),
+#    stranding a rolling ~10 drafts on the LIVE store every run (created.jsonl ran 10 ahead of
+#    golive-done.jsonl). Draining all pending each run is the stated intent and guarantees the
+#    final run reaches 0 stuck drafts.
+node go-live.mjs --apply || { echo "go-live failed (rc=$?)"; exit 1; }
 
 # quick tally
 REMAIN=$(psql "postgresql:///dw_unified?host=/tmp" -tAc \

← 9b1efc7 auto-data-snapshot: 2026-08-10T18:13:07 (2 data files) — scr  ·  back to Designerwallcoverings  ·  auto-data-snapshot: 2026-08-11T00:54:08 (1 data files) — scr 242e042 →