[object Object]

← back to Gmc Titlefix

TK-10993: fix a scope guard that made the executor unrunnable, + commit real receipts

413a3ac0dde61e9deffe7290f77bf3bb4eedf4d5 · 2026-09-11 08:35:22 -0700 · Steve

Contrarian gate caught a hard blocker before anything fired. The executor was a
copy of the proven 33-op parent, and line 54's scope guard kept TWO hardcoded 33
literals (ops.length !== 33, uniqueness !== 33). With a 9-op manifest that throws
'Wrong approval scope' on EVERY mode - including the read-only ones - so the file
could not execute at all.

The deeper error was mine: I cited "the diff is exactly 4 lines" as a safety
property. That measures the SIZE of the change, not whether the result runs -
the same false-green shape this very ticket exists to correct.

Also paces the read-only public-landings loop (9s). Its interleaved full-HTML
page fetches trip Shopify rate protection, which then serves an HTML challenge to
the following .js read (1 PASS + 8 UNKNOWN, then 7/9, now 9/9). Note it reported
UNKNOWN and never PASS while throttled - the checker fails safe.

Receipts now on disk, not in prose: public-landings 9/9 PASS, each confirming the
new handle resolves, the preserved link-variant exists on the renamed product, and
its price matches the advertised Google price. Write path untouched - it uses the
Shopify Admin and Merchant APIs, not the public .js.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017uZskkfeTZhLbtpqcCVm8d

Files touched

Diff

commit 413a3ac0dde61e9deffe7290f77bf3bb4eedf4d5
Author: Steve <steve@designerwallcoverings.com>
Date:   Fri Sep 11 08:35:22 2026 -0700

    TK-10993: fix a scope guard that made the executor unrunnable, + commit real receipts
    
    Contrarian gate caught a hard blocker before anything fired. The executor was a
    copy of the proven 33-op parent, and line 54's scope guard kept TWO hardcoded 33
    literals (ops.length !== 33, uniqueness !== 33). With a 9-op manifest that throws
    'Wrong approval scope' on EVERY mode - including the read-only ones - so the file
    could not execute at all.
    
    The deeper error was mine: I cited "the diff is exactly 4 lines" as a safety
    property. That measures the SIZE of the change, not whether the result runs -
    the same false-green shape this very ticket exists to correct.
    
    Also paces the read-only public-landings loop (9s). Its interleaved full-HTML
    page fetches trip Shopify rate protection, which then serves an HTML challenge to
    the following .js read (1 PASS + 8 UNKNOWN, then 7/9, now 9/9). Note it reported
    UNKNOWN and never PASS while throttled - the checker fails safe.
    
    Receipts now on disk, not in prose: public-landings 9/9 PASS, each confirming the
    new handle resolves, the preserved link-variant exists on the renamed product, and
    its price matches the advertised Google price. Write path untouched - it uses the
    Shopify Admin and Merchant APIs, not the public .js.
    
    Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_017uZskkfeTZhLbtpqcCVm8d
---
 .../public-landings-2026-09-11T15-30-20-196Z.json  |  57 +++++++++++
 .../public-landings-2026-09-11T15-33-23-910Z.json  |  99 ++++++++++++++++++
 .../public-landings-2026-09-11T15-35-03-754Z.json  | 113 +++++++++++++++++++++
 tk10993-rename-repair-executor.mjs                 |   7 +-
 4 files changed, 275 insertions(+), 1 deletion(-)

diff --git a/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-30-20-196Z.json b/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-30-20-196Z.json
new file mode 100644
index 0000000..71cbf22
--- /dev/null
+++ b/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-30-20-196Z.json
@@ -0,0 +1,57 @@
+{
+  "at": "2026-09-11T15:30:20.197Z",
+  "results": [
+    {
+      "key": "44599720640563",
+      "url": "https://www.designerwallcoverings.com/products/paradise-cay-bianco-wallcovering?variant=44599720640563",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/paradise-cay-bianco-wallcovering?variant=44599720640563",
+      "page_title": "Paradise Cay - Bianco Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800251777075,
+      "variant_id": 44599720640563,
+      "variant_price": 57.48
+    },
+    {
+      "key": "shopify_US_7800251678771_44126775377971",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800256823347_44126783864883",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800254693427_44126780260403",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800261804083_44126792548403",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800258297907_44126786519091",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800261673011_44126792351795",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800259149875_44126787960883",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800257347635_44126784651315",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    }
+  ]
+}
diff --git a/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-33-23-910Z.json b/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-33-23-910Z.json
new file mode 100644
index 0000000..760b732
--- /dev/null
+++ b/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-33-23-910Z.json
@@ -0,0 +1,99 @@
+{
+  "at": "2026-09-11T15:33:23.911Z",
+  "results": [
+    {
+      "key": "44599720640563",
+      "url": "https://www.designerwallcoverings.com/products/paradise-cay-bianco-wallcovering?variant=44599720640563",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/paradise-cay-bianco-wallcovering?variant=44599720640563",
+      "page_title": "Paradise Cay - Bianco Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800251777075,
+      "variant_id": 44599720640563,
+      "variant_price": 57.48
+    },
+    {
+      "key": "shopify_US_7800251678771_44126775377971",
+      "url": "https://www.designerwallcoverings.com/products/paradise-cay-travertine-wallcovering?variant=44599720476723&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/paradise-cay-travertine-wallcovering?variant=44599720476723&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Paradise Cay - Travertine Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800251678771,
+      "variant_id": 44599720476723,
+      "variant_price": 57.48
+    },
+    {
+      "key": "shopify_US_7800256823347_44126783864883",
+      "url": "https://www.designerwallcoverings.com/products/torrey-pines-stone-wash-wallcovering?variant=44599726637107&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/torrey-pines-stone-wash-wallcovering?variant=44599726637107&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Torrey Pines - Stone Wash Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800256823347,
+      "variant_id": 44599726637107,
+      "variant_price": 56.4
+    },
+    {
+      "key": "shopify_US_7800254693427_44126780260403",
+      "url": "https://www.designerwallcoverings.com/products/purisima-point-teak-wallcovering?variant=44599723687987&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/purisima-point-teak-wallcovering?variant=44599723687987&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Purisima Point - Teak Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800254693427,
+      "variant_id": 44599723687987,
+      "variant_price": 54.66
+    },
+    {
+      "key": "shopify_US_7800261804083_44126792548403",
+      "url": "https://www.designerwallcoverings.com/products/crystal-cove-aurora-wallcovering?variant=44599730110515&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/crystal-cove-aurora-wallcovering?variant=44599730110515&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Crystal Cove - Aurora Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800261804083,
+      "variant_id": 44599730110515,
+      "variant_price": 50.1
+    },
+    {
+      "key": "shopify_US_7800258297907_44126786519091",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800261673011_44126792351795",
+      "url": "https://www.designerwallcoverings.com/products/crystal-cove-prairie-wallcovering?variant=44599729979443&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/crystal-cove-prairie-wallcovering?variant=44599729979443&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Crystal Cove - Prairie Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800261673011,
+      "variant_id": 44599729979443,
+      "variant_price": 50.1
+    },
+    {
+      "key": "shopify_US_7800259149875_44126787960883",
+      "verdict": "UNKNOWN",
+      "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
+    },
+    {
+      "key": "shopify_US_7800257347635_44126784651315",
+      "url": "https://www.designerwallcoverings.com/products/fort-funston-refresh-wallcovering?variant=44599726833715&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/fort-funston-refresh-wallcovering?variant=44599726833715&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Fort Funston - Refresh Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800257347635,
+      "variant_id": 44599726833715,
+      "variant_price": 54.59
+    }
+  ]
+}
diff --git a/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-35-03-754Z.json b/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-35-03-754Z.json
new file mode 100644
index 0000000..b6dbf25
--- /dev/null
+++ b/data/tk10993-rename-repair-20260911/public-landings-2026-09-11T15-35-03-754Z.json
@@ -0,0 +1,113 @@
+{
+  "at": "2026-09-11T15:35:03.754Z",
+  "results": [
+    {
+      "key": "44599720640563",
+      "url": "https://www.designerwallcoverings.com/products/paradise-cay-bianco-wallcovering?variant=44599720640563",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/paradise-cay-bianco-wallcovering?variant=44599720640563",
+      "page_title": "Paradise Cay - Bianco Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800251777075,
+      "variant_id": 44599720640563,
+      "variant_price": 57.48
+    },
+    {
+      "key": "shopify_US_7800251678771_44126775377971",
+      "url": "https://www.designerwallcoverings.com/products/paradise-cay-travertine-wallcovering?variant=44599720476723&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/paradise-cay-travertine-wallcovering?variant=44599720476723&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Paradise Cay - Travertine Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800251678771,
+      "variant_id": 44599720476723,
+      "variant_price": 57.48
+    },
+    {
+      "key": "shopify_US_7800256823347_44126783864883",
+      "url": "https://www.designerwallcoverings.com/products/torrey-pines-stone-wash-wallcovering?variant=44599726637107&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/torrey-pines-stone-wash-wallcovering?variant=44599726637107&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Torrey Pines - Stone Wash Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800256823347,
+      "variant_id": 44599726637107,
+      "variant_price": 56.4
+    },
+    {
+      "key": "shopify_US_7800254693427_44126780260403",
+      "url": "https://www.designerwallcoverings.com/products/purisima-point-teak-wallcovering?variant=44599723687987&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/purisima-point-teak-wallcovering?variant=44599723687987&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Purisima Point - Teak Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800254693427,
+      "variant_id": 44599723687987,
+      "variant_price": 54.66
+    },
+    {
+      "key": "shopify_US_7800261804083_44126792548403",
+      "url": "https://www.designerwallcoverings.com/products/crystal-cove-aurora-wallcovering?variant=44599730110515&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/crystal-cove-aurora-wallcovering?variant=44599730110515&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Crystal Cove - Aurora Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800261804083,
+      "variant_id": 44599730110515,
+      "variant_price": 50.1
+    },
+    {
+      "key": "shopify_US_7800258297907_44126786519091",
+      "url": "https://www.designerwallcoverings.com/products/santa-catalina-opal-mylar-wallcovering?variant=44599727521843&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/santa-catalina-opal-mylar-wallcovering?variant=44599727521843&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Santa Catalina - Opal Mylar Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800258297907,
+      "variant_id": 44599727521843,
+      "variant_price": 59.66
+    },
+    {
+      "key": "shopify_US_7800261673011_44126792351795",
+      "url": "https://www.designerwallcoverings.com/products/crystal-cove-prairie-wallcovering?variant=44599729979443&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/crystal-cove-prairie-wallcovering?variant=44599729979443&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Crystal Cove - Prairie Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800261673011,
+      "variant_id": 44599729979443,
+      "variant_price": 50.1
+    },
+    {
+      "key": "shopify_US_7800259149875_44126787960883",
+      "url": "https://www.designerwallcoverings.com/products/fort-baker-paperback-wallcovering?variant=44599727947827&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/fort-baker-paperback-wallcovering?variant=44599727947827&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Fort Baker - Paperback Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800259149875,
+      "variant_id": 44599727947827,
+      "variant_price": 50.46
+    },
+    {
+      "key": "shopify_US_7800257347635_44126784651315",
+      "url": "https://www.designerwallcoverings.com/products/fort-funston-refresh-wallcovering?variant=44599726833715&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "verdict": "PASS",
+      "page_status": 200,
+      "final_url": "https://www.designerwallcoverings.com/products/fort-funston-refresh-wallcovering?variant=44599726833715&country=US&currency=USD&utm_medium=product_sync&utm_source=google&utm_content=sag_organic&utm_campaign=sag_organic",
+      "page_title": "Fort Funston - Refresh Wallcovering\n\n    \n\n    \n\n    \n      &#8211; Designer Wallcoverings and Fabrics",
+      "public_json_status": 200,
+      "product_id": 7800257347635,
+      "variant_id": 44599726833715,
+      "variant_price": 54.59
+    }
+  ]
+}
diff --git a/tk10993-rename-repair-executor.mjs b/tk10993-rename-repair-executor.mjs
index 9d70a58..e6fd968 100644
--- a/tk10993-rename-repair-executor.mjs
+++ b/tk10993-rename-repair-executor.mjs
@@ -51,14 +51,19 @@ async function main() {
   if (hash(bytes) !== APPROVED_SHA) throw new Error('Approved manifest changed');
   const manifest = JSON.parse(bytes);
   const ops = [...manifest.link_replacements, ...manifest.description_replacements].map(effectiveOperation);
-  if (manifest.merchant !== MERCHANT || ops.length !== 33 || new Set(ops.map(o => o.offer_key)).size !== 33) throw new Error('Wrong approval scope');
+  if (manifest.merchant !== MERCHANT || ops.length !== 9 || new Set(ops.map(o => o.offer_key)).size !== 9) throw new Error('Wrong approval scope');
   fs.mkdirSync(DIR, { recursive: true });
   const logFile = path.join(DIR, 'ledger.jsonl');
   const log = row => fs.appendFileSync(logFile, JSON.stringify({ at: new Date().toISOString(), ...row }) + '\n');
   const logs = () => fs.existsSync(logFile) ? fs.readFileSync(logFile, 'utf8').trim().split('\n').filter(Boolean).map(JSON.parse) : [];
   if (mode === 'public-landings') {
     const results = [];
+    let __first = true;
     for (const op of ops.filter(o => o.field === 'link')) {
+      // Pacing: the interleaved full-HTML page fetches trip Shopify rate protection,
+      // which then serves an HTML challenge to the following .js read (observed 1 PASS + 8 UNKNOWN).
+      if (!__first) await new Promise(r => setTimeout(r, 9000));
+      __first = false;
       try {
         const u = new URL(op.after);
         const page = await fetch(u, { signal: AbortSignal.timeout(45000) });

← 209bcae TK-11450: price writers stamped USD on CA-feed offers, disap  ·  back to Gmc Titlefix  ·  auto-data-snapshot: 2026-09-11T08:57:34 (1 data files) — dat 3093fdb →