← back to Sanderson Onboard
chore: lint (1 regex fix), refactor (shadow rename), v1.1.2 + reversibility maps (session close)
590425c122640e53c22738c69b8737275fb1cd53 · 2026-08-31 02:20:39 -0700 · Steve Abrams
Files touched
M tk10873/build_v4_promotions.mjsM tk10873/reprice_live_runbook.mjsA tk10873/zoffany_optionA_promotions_v4.restore_map.live.jsonA tk10873/zoffany_optionA_promotions_v5.live_plan.jsonA tk10873/zoffany_optionA_promotions_v5.restore_map.live.jsonA tk10873/zoffany_optionA_promotions_v5.restore_map.preview.json
Diff
commit 590425c122640e53c22738c69b8737275fb1cd53
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon Aug 31 02:20:39 2026 -0700
chore: lint (1 regex fix), refactor (shadow rename), v1.1.2 + reversibility maps (session close)
---
tk10873/build_v4_promotions.mjs | 2 +-
tk10873/reprice_live_runbook.mjs | 4 +-
...any_optionA_promotions_v4.restore_map.live.json | 386 +++++++++++++++++++++
.../zoffany_optionA_promotions_v5.live_plan.json | 22 ++
...any_optionA_promotions_v5.restore_map.live.json | 26 ++
..._optionA_promotions_v5.restore_map.preview.json | 20 ++
6 files changed, 457 insertions(+), 3 deletions(-)
diff --git a/tk10873/build_v4_promotions.mjs b/tk10873/build_v4_promotions.mjs
index 064239c..918040d 100644
--- a/tk10873/build_v4_promotions.mjs
+++ b/tk10873/build_v4_promotions.mjs
@@ -69,7 +69,7 @@ for (const r of v3) {
});
}
fs.writeFileSync(`${DIR}zoffany_optionA_promotions_v4.json`, JSON.stringify(rows, null, 2));
-const high = rows.filter(r => /\(high\)/.test(r.price_source)).length;
+const high = rows.filter(r => /\(high[,)]/.test(r.price_source)).length;
const med = harvested - high;
const prices = rows.map(r => r.proposed_sellable_price);
console.log(`v4 promotions: ${rows.length} REPRICE rows (${harvested} harvested rolls + ${rows.length - harvested} ZFOW our_price)`);
diff --git a/tk10873/reprice_live_runbook.mjs b/tk10873/reprice_live_runbook.mjs
index 9ce3f2e..ed40143 100644
--- a/tk10873/reprice_live_runbook.mjs
+++ b/tk10873/reprice_live_runbook.mjs
@@ -125,8 +125,8 @@ async function gql(query, variables) {
const j = await res.json();
if (j.errors) throw new Error('GraphQL errors: ' + JSON.stringify(j.errors));
// pace against the throttle: if we're low on the cost bucket, breathe.
- const t = j.extensions?.cost?.throttleStatus;
- if (t && t.currentlyAvailable < 200) await new Promise(r => setTimeout(r, 1200));
+ const throttle = j.extensions?.cost?.throttleStatus;
+ if (throttle && throttle.currentlyAvailable < 200) await new Promise(r => setTimeout(r, 1200));
return j.data;
}
diff --git a/tk10873/zoffany_optionA_promotions_v4.restore_map.live.json b/tk10873/zoffany_optionA_promotions_v4.restore_map.live.json
new file mode 100644
index 0000000..41c3880
--- /dev/null
+++ b/tk10873/zoffany_optionA_promotions_v4.restore_map.live.json
@@ -0,0 +1,386 @@
+{
+ "ticket": "TK-10873",
+ "generated_at": "2026-08-31T09:03:55.498Z",
+ "shop": "designer-laboratory-sandbox.myshopify.com",
+ "count": 42,
+ "rows": [
+ {
+ "mfr_sku": "ZOW0091-01",
+ "product_id": "gid://shopify/Product/7794232426547",
+ "variant_id": "gid://shopify/ProductVariant/44099843719219",
+ "sellable_sku": "DWZF-187194",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZDAR312865",
+ "product_id": "gid://shopify/Product/7866101694515",
+ "variant_id": "gid://shopify/ProductVariant/44455018201139",
+ "sellable_sku": "DWZF-187038",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZCOT313026",
+ "product_id": "gid://shopify/Product/7865417039923",
+ "variant_id": "gid://shopify/ProductVariant/44452539564083",
+ "sellable_sku": "DWZF-187036",
+ "old_price": 148,
+ "new_price": 382,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZDAR312873",
+ "product_id": "gid://shopify/Product/7866101792819",
+ "variant_id": "gid://shopify/ProductVariant/44455018299443",
+ "sellable_sku": "DWZF-187002",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZDAR312857",
+ "product_id": "gid://shopify/Product/7866101825587",
+ "variant_id": "gid://shopify/ProductVariant/44455018332211",
+ "sellable_sku": "DWZF-187026",
+ "old_price": 164,
+ "new_price": 416,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZDAR312869",
+ "product_id": "gid://shopify/Product/7866101858355",
+ "variant_id": "gid://shopify/ProductVariant/44455018364979",
+ "sellable_sku": "DWZF-187025",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0091-02",
+ "product_id": "gid://shopify/Product/7794232492083",
+ "variant_id": "gid://shopify/ProductVariant/44099843784755",
+ "sellable_sku": "DWZF-187195",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0091-03",
+ "product_id": "gid://shopify/Product/7794232524851",
+ "variant_id": "gid://shopify/ProductVariant/44099843850291",
+ "sellable_sku": "DWZF-187196",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0092-01",
+ "product_id": "gid://shopify/Product/7794232721459",
+ "variant_id": "gid://shopify/ProductVariant/44099844014131",
+ "sellable_sku": "DWZF-187199",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0092-03",
+ "product_id": "gid://shopify/Product/7794232819763",
+ "variant_id": "gid://shopify/ProductVariant/44099844276275",
+ "sellable_sku": "DWZF-187201",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0092-04",
+ "product_id": "gid://shopify/Product/7794232885299",
+ "variant_id": "gid://shopify/ProductVariant/44099844309043",
+ "sellable_sku": "DWZF-187202",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0092-05",
+ "product_id": "gid://shopify/Product/7794232950835",
+ "variant_id": "gid://shopify/ProductVariant/44099844374579",
+ "sellable_sku": "DWZF-187203",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0093-02",
+ "product_id": "gid://shopify/Product/7794233081907",
+ "variant_id": "gid://shopify/ProductVariant/44099844505651",
+ "sellable_sku": "DWZF-187205",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0093-03",
+ "product_id": "gid://shopify/Product/7794233147443",
+ "variant_id": "gid://shopify/ProductVariant/44099844571187",
+ "sellable_sku": "DWZF-187206",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0093-05",
+ "product_id": "gid://shopify/Product/7794233245747",
+ "variant_id": "gid://shopify/ProductVariant/44099844669491",
+ "sellable_sku": "DWZF-187208",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0093-07",
+ "product_id": "gid://shopify/Product/7794233376819",
+ "variant_id": "gid://shopify/ProductVariant/44099844800563",
+ "sellable_sku": "DWZF-187210",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0094-01",
+ "product_id": "gid://shopify/Product/7794233409587",
+ "variant_id": "gid://shopify/ProductVariant/44099844833331",
+ "sellable_sku": "DWZF-187211",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0094-03",
+ "product_id": "gid://shopify/Product/7794233540659",
+ "variant_id": "gid://shopify/ProductVariant/44099844964403",
+ "sellable_sku": "DWZF-187213",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0094-06",
+ "product_id": "gid://shopify/Product/7794233737267",
+ "variant_id": "gid://shopify/ProductVariant/44099845128243",
+ "sellable_sku": "DWZF-187216",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0095-01",
+ "product_id": "gid://shopify/Product/7794233770035",
+ "variant_id": "gid://shopify/ProductVariant/44099845193779",
+ "sellable_sku": "DWZF-187217",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0095-02",
+ "product_id": "gid://shopify/Product/7794233835571",
+ "variant_id": "gid://shopify/ProductVariant/44099845259315",
+ "sellable_sku": "DWZF-187218",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0095-03",
+ "product_id": "gid://shopify/Product/7794233901107",
+ "variant_id": "gid://shopify/ProductVariant/44099845324851",
+ "sellable_sku": "DWZF-187219",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0095-05",
+ "product_id": "gid://shopify/Product/7794233999411",
+ "variant_id": "gid://shopify/ProductVariant/44099845423155",
+ "sellable_sku": "DWZF-187221",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0096-01",
+ "product_id": "gid://shopify/Product/7794234064947",
+ "variant_id": "gid://shopify/ProductVariant/44099845488691",
+ "sellable_sku": "DWZF-187222",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0096-02",
+ "product_id": "gid://shopify/Product/7794234130483",
+ "variant_id": "gid://shopify/ProductVariant/44099845554227",
+ "sellable_sku": "DWZF-187223",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0096-03",
+ "product_id": "gid://shopify/Product/7866101923891",
+ "variant_id": "gid://shopify/ProductVariant/44455018430515",
+ "sellable_sku": "DWZF-187387",
+ "old_price": 122,
+ "new_price": 342,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0098-01",
+ "product_id": "gid://shopify/Product/7794238062643",
+ "variant_id": "gid://shopify/ProductVariant/44099849977907",
+ "sellable_sku": "DWZF-187291",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0098-02",
+ "product_id": "gid://shopify/Product/7794238128179",
+ "variant_id": "gid://shopify/ProductVariant/44099850043443",
+ "sellable_sku": "DWZF-187292",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0098-03",
+ "product_id": "gid://shopify/Product/7794238193715",
+ "variant_id": "gid://shopify/ProductVariant/44099850108979",
+ "sellable_sku": "DWZF-187293",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0100-01",
+ "product_id": "gid://shopify/Product/7794238292019",
+ "variant_id": "gid://shopify/ProductVariant/44099850207283",
+ "sellable_sku": "DWZF-187295",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0100-02",
+ "product_id": "gid://shopify/Product/7794238357555",
+ "variant_id": "gid://shopify/ProductVariant/44099850272819",
+ "sellable_sku": "DWZF-187296",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0100-03",
+ "product_id": "gid://shopify/Product/7794238423091",
+ "variant_id": "gid://shopify/ProductVariant/44099850338355",
+ "sellable_sku": "DWZF-187297",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0101-01",
+ "product_id": "gid://shopify/Product/7794238488627",
+ "variant_id": "gid://shopify/ProductVariant/44099850403891",
+ "sellable_sku": "DWZF-187298",
+ "old_price": 176,
+ "new_price": 530,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0101-02",
+ "product_id": "gid://shopify/Product/7794238554163",
+ "variant_id": "gid://shopify/ProductVariant/44099850469427",
+ "sellable_sku": "DWZF-187299",
+ "old_price": 176,
+ "new_price": 530,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0102-01",
+ "product_id": "gid://shopify/Product/7794238586931",
+ "variant_id": "gid://shopify/ProductVariant/44099850502195",
+ "sellable_sku": "DWZF-187300",
+ "old_price": 196,
+ "new_price": 504,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0102-02",
+ "product_id": "gid://shopify/Product/7794238652467",
+ "variant_id": "gid://shopify/ProductVariant/44099850567731",
+ "sellable_sku": "DWZF-187301",
+ "old_price": 196,
+ "new_price": 504,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0102-03",
+ "product_id": "gid://shopify/Product/7794238718003",
+ "variant_id": "gid://shopify/ProductVariant/44099850633267",
+ "sellable_sku": "DWZF-187302",
+ "old_price": 196,
+ "new_price": 504,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0103-01",
+ "product_id": "gid://shopify/Product/7794238783539",
+ "variant_id": "gid://shopify/ProductVariant/44099850698803",
+ "sellable_sku": "DWZF-187303",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0103-02",
+ "product_id": "gid://shopify/Product/7794238849075",
+ "variant_id": "gid://shopify/ProductVariant/44099850764339",
+ "sellable_sku": "DWZF-187304",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZOW0103-03",
+ "product_id": "gid://shopify/Product/7794238881843",
+ "variant_id": "gid://shopify/ProductVariant/44099850797107",
+ "sellable_sku": "DWZF-187305",
+ "old_price": 176,
+ "new_price": 494,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZFOW312941",
+ "product_id": "gid://shopify/Product/7867463073843",
+ "variant_id": "gid://shopify/ProductVariant/44462269956147",
+ "sellable_sku": "DWZF-187041",
+ "old_price": 309.5,
+ "new_price": 309.5,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZFOW312943",
+ "product_id": "gid://shopify/Product/7867463106611",
+ "variant_id": "gid://shopify/ProductVariant/44462270021683",
+ "sellable_sku": "DWZF-187042",
+ "old_price": 309.5,
+ "new_price": 309.5,
+ "sanity": "PASS"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tk10873/zoffany_optionA_promotions_v5.live_plan.json b/tk10873/zoffany_optionA_promotions_v5.live_plan.json
new file mode 100644
index 0000000..25b18e9
--- /dev/null
+++ b/tk10873/zoffany_optionA_promotions_v5.live_plan.json
@@ -0,0 +1,22 @@
+[
+ {
+ "mfr_sku": "ZDAR312884",
+ "product_id": "gid://shopify/Product/7866101661747",
+ "sellable_sku": "DWZF-187020",
+ "cached_variant_id": null,
+ "new_price": 416,
+ "old_price": "<LIVE-READ-REQUIRED before write>",
+ "price_source": "web_verified_us_list:416 (Perigold, Darnley Tigers Eye colorway; ships as wide-width roll not mural; MED-HIGH)",
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZDAR312864",
+ "product_id": "gid://shopify/Product/7866101760051",
+ "sellable_sku": "DWZF-187022",
+ "cached_variant_id": null,
+ "new_price": 416,
+ "old_price": "<LIVE-READ-REQUIRED before write>",
+ "price_source": "web_verified_us_list:416 (DecoratorsBest exact-SKU, Mitford Damask Empire Grey, Zoffany excl. from sales; HIGH)",
+ "sanity": "PASS"
+ }
+]
\ No newline at end of file
diff --git a/tk10873/zoffany_optionA_promotions_v5.restore_map.live.json b/tk10873/zoffany_optionA_promotions_v5.restore_map.live.json
new file mode 100644
index 0000000..04c1f7c
--- /dev/null
+++ b/tk10873/zoffany_optionA_promotions_v5.restore_map.live.json
@@ -0,0 +1,26 @@
+{
+ "ticket": "TK-10873",
+ "generated_at": "2026-08-31T09:14:30.962Z",
+ "shop": "designer-laboratory-sandbox.myshopify.com",
+ "count": 2,
+ "rows": [
+ {
+ "mfr_sku": "ZDAR312884",
+ "product_id": "gid://shopify/Product/7866101661747",
+ "variant_id": "gid://shopify/ProductVariant/44455018168371",
+ "sellable_sku": "DWZF-187020",
+ "old_price": 416,
+ "new_price": 416,
+ "sanity": "PASS"
+ },
+ {
+ "mfr_sku": "ZDAR312864",
+ "product_id": "gid://shopify/Product/7866101760051",
+ "variant_id": "gid://shopify/ProductVariant/44455018266675",
+ "sellable_sku": "DWZF-187022",
+ "old_price": 416,
+ "new_price": 416,
+ "sanity": "PASS"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tk10873/zoffany_optionA_promotions_v5.restore_map.preview.json b/tk10873/zoffany_optionA_promotions_v5.restore_map.preview.json
new file mode 100644
index 0000000..c7837f9
--- /dev/null
+++ b/tk10873/zoffany_optionA_promotions_v5.restore_map.preview.json
@@ -0,0 +1,20 @@
+[
+ {
+ "mfr_sku": "ZDAR312884",
+ "product_id": "gid://shopify/Product/7866101661747",
+ "sellable_sku": "DWZF-187020",
+ "variant_id": "<LIVE-GET-REQUIRED>",
+ "old_price": "<LIVE-READ-REQUIRED>",
+ "new_price": 416,
+ "_note": "PREVIEW only — the live --apply run materializes old_price + variant_id from a live read BEFORE any write."
+ },
+ {
+ "mfr_sku": "ZDAR312864",
+ "product_id": "gid://shopify/Product/7866101760051",
+ "sellable_sku": "DWZF-187022",
+ "variant_id": "<LIVE-GET-REQUIRED>",
+ "old_price": "<LIVE-READ-REQUIRED>",
+ "new_price": 416,
+ "_note": "PREVIEW only — the live --apply run materializes old_price + variant_id from a live read BEFORE any write."
+ }
+]
\ No newline at end of file
← 3f77c49 tk10873: stage v5 local artifact (Darnley+Mitford verified a
·
back to Sanderson Onboard
·
auto-data-snapshot: 2026-08-31T02:39:25 (1 data files) — tk1 e45a55d →