← back to Hollywood Import
TK-10634: hard-guard DWHD minter behind kill-switch (brand-as-vendor bug)
e0edd0f2cb7ffab2262600f4ad702e93e89b6f0f · 2026-08-17 13:32:32 -0700 · steve
Files touched
M momentum-feed/assign-sku.mjs
Diff
commit e0edd0f2cb7ffab2262600f4ad702e93e89b6f0f
Author: steve <steve@designerwallcoverings.com>
Date: Mon Aug 17 13:32:32 2026 -0700
TK-10634: hard-guard DWHD minter behind kill-switch (brand-as-vendor bug)
---
momentum-feed/assign-sku.mjs | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/momentum-feed/assign-sku.mjs b/momentum-feed/assign-sku.mjs
index 9d5997e..9fb4b51 100644
--- a/momentum-feed/assign-sku.mjs
+++ b/momentum-feed/assign-sku.mjs
@@ -10,6 +10,19 @@ const { Pool } = require('pg');
const pool = new Pool({ connectionString: 'postgresql://dw_admin:DW2024!@127.0.0.1:5432/dw_unified' });
const COMMIT = process.argv.includes('--commit');
+// --- TK-10630/TK-10634 GUARD (2026-08-17) ---------------------------------
+// "Hollywood Wallcoverings" is a DW BRAND, not an external vendor. Minting a
+// DW-vendor-style DWHD-* SKU here is the brand-as-vendor bug that buried each
+// product's real code (XWH-/NOC-/HWC-/FRS21-/…). This DWHD scheme is FROZEN
+// pending the real-code redesign (TK-10634 #2 — key off the real Momentum
+// `number` / manufacturer_sku, not a minted DW code). The kill-switch halts
+// the daily drip; this guard also blocks a direct `--commit` re-mint.
+import { existsSync } from 'node:fs';
+if (COMMIT && existsSync(`${process.env.HOME}/.dw-fixer-stop`)) {
+ console.error('[assign-sku] BLOCKED: ~/.dw-fixer-stop present. DWHD minting is FROZEN (brand-as-vendor bug, TK-10634). Remove the kill-switch only after the real-code redesign.');
+ process.exit(3);
+}
+
// Real CA coastal place names (base pool). Expanded with suffixes if 258+ collision-free needed.
const BASE = `Zuma,Point Dume,Paradise Cove,Leo Carrillo,El Matador,Trancas,Nicholas Canyon,Broad Beach,
Crystal Cove,Corona del Mar,Little Corona,Reef Point,Pelican Point,Abalone Cove,Portuguese Bend,Royal Palms,
← c5b8537 auto-data-snapshot: 2026-08-10T08:23:29 (1 data files) — hol
·
back to Hollywood Import
·
TK-10634 generator forward-fix (DTD-B): mint HW-<real moment 61c9a76 →