← back to Dw Validator Debug TK11314
TK-11357 action A: hard-abort guard on 5 debug-clone store-wide sweeps (require ALLOW_DEBUG_CLONE_WRITE) — close the live hand-run $0-restock hole
1f69e597977ec7938ec8e5a5b22f7233e261b887 · 2026-09-10 11:17:37 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MAcoZUWRsEY6F1nNYyfzQi
Files touched
M shopify/scripts/activate-null-level-to-2026.jsM shopify/scripts/active-2026-and-all-channels.jsM shopify/scripts/inventory-set-2026.jsM shopify/scripts/set-active-zero-to-2026.jsM shopify/scripts/sweep-all-active.mjs
Diff
commit 1f69e597977ec7938ec8e5a5b22f7233e261b887
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 10 11:17:37 2026 -0700
TK-11357 action A: hard-abort guard on 5 debug-clone store-wide sweeps (require ALLOW_DEBUG_CLONE_WRITE) — close the live hand-run $0-restock hole
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MAcoZUWRsEY6F1nNYyfzQi
---
shopify/scripts/activate-null-level-to-2026.js | 1 +
shopify/scripts/active-2026-and-all-channels.js | 1 +
shopify/scripts/inventory-set-2026.js | 1 +
shopify/scripts/set-active-zero-to-2026.js | 1 +
shopify/scripts/sweep-all-active.mjs | 1 +
5 files changed, 5 insertions(+)
diff --git a/shopify/scripts/activate-null-level-to-2026.js b/shopify/scripts/activate-null-level-to-2026.js
index 4e65080e..7c4b7ae6 100644
--- a/shopify/scripts/activate-null-level-to-2026.js
+++ b/shopify/scripts/activate-null-level-to-2026.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+if(!process.env.ALLOW_DEBUG_CLONE_WRITE){console.error("ABORT: TK-11357 debug clone is not a write surface. Use the guarded main repo.");process.exit(3);}
/**
* For candidates that were tracked-but-not-stocked at the location
* (ITEM_NOT_STOCKED_AT_LOCATION), inventoryActivate them at the location with
diff --git a/shopify/scripts/active-2026-and-all-channels.js b/shopify/scripts/active-2026-and-all-channels.js
index 9556b350..5ea7b86a 100644
--- a/shopify/scripts/active-2026-and-all-channels.js
+++ b/shopify/scripts/active-2026-and-all-channels.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+if(!process.env.ALLOW_DEBUG_CLONE_WRITE){console.error("ABORT: TK-11357 debug clone is not a write surface. Use the guarded main repo.");process.exit(3);}
/**
* Store-wide enforcement sweep (Steve 2026-06-11):
* "every active item must have ALL 13 sales channels AND 2026 inventory for every variant."
diff --git a/shopify/scripts/inventory-set-2026.js b/shopify/scripts/inventory-set-2026.js
index 4bb07862..c7560c39 100644
--- a/shopify/scripts/inventory-set-2026.js
+++ b/shopify/scripts/inventory-set-2026.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+if(!process.env.ALLOW_DEBUG_CLONE_WRITE){console.error("ABORT: TK-11357 debug clone is not a write surface. Use the guarded main repo.");process.exit(3);}
// Set On hand inventory to 2026 for all SKUs in the provided CSV at
// location "15442 Ventura Blvd." (gid://shopify/Location/5795643504).
//
diff --git a/shopify/scripts/set-active-zero-to-2026.js b/shopify/scripts/set-active-zero-to-2026.js
index 0d7b84e1..0c353c59 100644
--- a/shopify/scripts/set-active-zero-to-2026.js
+++ b/shopify/scripts/set-active-zero-to-2026.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+if(!process.env.ALLOW_DEBUG_CLONE_WRITE){console.error("ABORT: TK-11357 debug clone is not a write surface. Use the guarded main repo.");process.exit(3);}
/**
* Set AVAILABLE inventory = 2026 for every candidate in the latest
* active-zero-inventory scan (active products, newest→oldest, currently 0 /
diff --git a/shopify/scripts/sweep-all-active.mjs b/shopify/scripts/sweep-all-active.mjs
index 415ad4dc..6843db71 100644
--- a/shopify/scripts/sweep-all-active.mjs
+++ b/shopify/scripts/sweep-all-active.mjs
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+if(!process.env.ALLOW_DEBUG_CLONE_WRITE){console.error("ABORT: TK-11357 debug clone is not a write surface. Use the guarded main repo.");process.exit(3);}
/**
* sweep-all-active.mjs
*
← 8cb713c5 Fix Designtex material-copy readiness false positives with r
·
back to Dw Validator Debug TK11314
·
governance(TK-11370): make live-by-default Shopify writers d 278d8a49 →