← back to Canary Patches

README.md

42 lines

# Canary Patches (4AM Loop 2026-08-12)

Two patches to apply to `.claude/skills/` — blocked for the loop agent but ready to ship.

## Patch 1: Novasuede whitelist in dw-golive-gate-canary (CRITICAL)

**Problem:** 17 Novasuede ACTIVE products trigger a FAIL in the dw-golive-gate-canary
because they have no vendor mfr# — but Novasuede is a by-colour private label with no
third-party manufacturer codes. This is policy, not a defect.

**Fix:** Whitelist `vendor ILIKE 'Novasuede'` in the canary's active-product query.

**File:** `~/.claude/skills/dw-golive-gate-canary/auditor.mjs`

Apply patch:
```
patch ~/.claude/skills/dw-golive-gate-canary/auditor.mjs canary-patches/golive-gate-novasuede-whitelist.patch
```

After applying, re-run: `node ~/.claude/skills/dw-golive-gate-canary/auditor.mjs`
Should return PASS with the 17 Novasuede products no longer flagged.

---

## Patch 2: Logo-placeholder detection in dw-five-field-canary (HIGH)

**Problem:** The five-field canary catches `image_url IS NULL` (no image) but misses
`image_url ILIKE '%logo%'` (brand logo as placeholder). This let 2,481 Phillip Jeffries
+ Maya Romanoff products with logo-placeholder images go undetected.

**Fix:** Add a 7th check for logo-placeholder images with baseline awareness.

**File:** `~/.claude/skills/dw-five-field-canary/auditor.mjs`

Apply patch:
```
patch ~/.claude/skills/dw-five-field-canary/auditor.mjs canary-patches/five-field-logo-placeholder.patch
```

Current baseline: 2,481 logo-image products (PJ ~2,468, MR ~13, known floor).
Alert fires when NEW logo-image products appear in recent 7 days or count grows.