[object Object]

← back to Dw Yolo Loop

gmc-feed-guard: tag FAIL offenders sample-leak vs real-$4.25 (officer vp-compliance refinement)

e88d6307cc117cfd246695a796c0699591eb133d · 2026-06-17 09:52:58 -0700 · Steve Abrams

Non-blocking refinement per vp-compliance-policy CONFIRMED sign-off: FAIL still fires on
any min-variant<=4.25-on-Google (fail-closed, correct), but each offender is now tagged
[sample-leak] (has a higher real variant = the expected import re-leak class) vs
[real-$4.25] (genuinely sample-only SKU) so the alert is actionable. PASS unchanged (0).

Files touched

Diff

commit e88d6307cc117cfd246695a796c0699591eb133d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Jun 17 09:52:58 2026 -0700

    gmc-feed-guard: tag FAIL offenders sample-leak vs real-$4.25 (officer vp-compliance refinement)
    
    Non-blocking refinement per vp-compliance-policy CONFIRMED sign-off: FAIL still fires on
    any min-variant<=4.25-on-Google (fail-closed, correct), but each offender is now tagged
    [sample-leak] (has a higher real variant = the expected import re-leak class) vs
    [real-$4.25] (genuinely sample-only SKU) so the alert is actionable. PASS unchanged (0).
---
 scripts/gmc-feed-guard/gmc-feed-guard.mjs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gmc-feed-guard/gmc-feed-guard.mjs b/scripts/gmc-feed-guard/gmc-feed-guard.mjs
index ba24b7f..94d8454 100644
--- a/scripts/gmc-feed-guard/gmc-feed-guard.mjs
+++ b/scripts/gmc-feed-guard/gmc-feed-guard.mjs
@@ -26,7 +26,7 @@ let cur=null,scanned=0,on425=0,pages=0,retries=0; const offenders=[]; const t0=D
 do{
   const d=await gql(`query($c:String){products(first:150,after:$c,query:"status:active"){pageInfo{hasNextPage endCursor} nodes{handle vendor onGoogle:publishedOnPublication(publicationId:"${GOOG}") variants(first:60){nodes{price}}}}}`,{c:cur});
   const pg=d.data.products;
-  for(const p of pg.nodes){ scanned++; const mn=Math.min(...p.variants.nodes.map(v=>parseFloat(v.price)).filter(x=>!isNaN(x))); if(mn<=4.25 && p.onGoogle){on425++; if(offenders.length<20)offenders.push(p.handle+' ['+p.vendor+']');} }
+  for(const p of pg.nodes){ scanned++; const mn=Math.min(...p.variants.nodes.map(v=>parseFloat(v.price)).filter(x=>!isNaN(x))); if(mn<=4.25 && p.onGoogle){on425++; const hasReal=p.variants.nodes.some(v=>parseFloat(v.price)>4.25); if(offenders.length<20)offenders.push((hasReal?'[sample-leak] ':'[real-$4.25] ')+p.handle+' ['+p.vendor+']');} }
   pages++; if(pages%80===0)process.stderr.write(`  ...${scanned} scanned, still-on=${on425}\n`);
   cur=pg.pageInfo.hasNextPage?pg.pageInfo.endCursor:null;
 }while(cur);

← edc9003 GMC feed-guard canary (c57): full-catalog recount PASS (0 st  ·  back to Dw Yolo Loop  ·  redirect-health audit: canon clean; archived products soft-4 00d4548 →