[object Object]

← back to Designer Wallcoverings

Daisy Bennett: adjudicate flagged families — Diamond Back Weave→DWRAF (Gemini descriptions confirm raffia)

83f25e3d3ac787414a3c06707ebc389c6096fff2 · 2026-07-06 12:05:28 -0700 · Steve

Files touched

Diff

commit 83f25e3d3ac787414a3c06707ebc389c6096fff2
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Jul 6 12:05:28 2026 -0700

    Daisy Bennett: adjudicate flagged families — Diamond Back Weave→DWRAF (Gemini descriptions confirm raffia)
---
 scripts/wallquest-refresh/remap-skus-daisy-bennett.cjs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/wallquest-refresh/remap-skus-daisy-bennett.cjs b/scripts/wallquest-refresh/remap-skus-daisy-bennett.cjs
index ccc7ac23..abf49dd9 100644
--- a/scripts/wallquest-refresh/remap-skus-daisy-bennett.cjs
+++ b/scripts/wallquest-refresh/remap-skus-daisy-bennett.cjs
@@ -24,13 +24,16 @@ function materialOf(r) {
 // family ONE material by majority vote of its colorways (tiebreak by priority), keeping
 // every family internally consistent. Non-unanimous families are flagged for spot-check.
 const PRIORITY = ['grasscloth','paperweave','raffia','sisal','linen','cork','abaca','mica'];
+// Human-adjudicated overrides where AI-texture votes tied/misfired but the Gemini
+// DESCRIPTIONS were decisive (Steve spot-check 2026-07-06). Override wins over the vote.
+const FAMILY_OVERRIDE = { 'diamond back weave': 'raffia' }; // descriptions: "natural raffia fibers"
 function familyMaterialMap(recs) {
   const byFam = {};
   for (const r of recs) { const f = (r.pattern||'').trim().toLowerCase(); (byFam[f]=byFam[f]||[]).push(materialOf(r)); }
   const map = {}, flagged = [];
   for (const [f, mats] of Object.entries(byFam)) {
     const counts = {}; mats.forEach(m => counts[m] = (counts[m]||0)+1);
-    const winner = Object.entries(counts).sort((a,b) => b[1]-a[1] || PRIORITY.indexOf(a[0])-PRIORITY.indexOf(b[0]))[0][0];
+    const winner = FAMILY_OVERRIDE[f] || Object.entries(counts).sort((a,b) => b[1]-a[1] || PRIORITY.indexOf(a[0])-PRIORITY.indexOf(b[0]))[0][0];
     map[f] = winner;
     if (Object.keys(counts).length > 1) flagged.push(`${f} → ${winner}  (mixed: ${Object.entries(counts).map(([m,c])=>m+'×'+c).join(', ')})`);
   }

← 41f0ede8 wallquest grasscloth/veneers: login fix + Phillipe Romano re  ·  back to Designer Wallcoverings  ·  Carl Robinson: DW-less sequential SKU series (GRS-001, PWV-0 e6d41099 →