Skip to content

Fix Amazon product image provenance - #61

Merged
SteveSimonson merged 1 commit into
mainfrom
fix/catalog-image-provenance
Aug 2, 2026
Merged

Fix Amazon product image provenance#61
SteveSimonson merged 1 commit into
mainfrom
fix/catalog-image-provenance

Conversation

@SteveSimonson

Copy link
Copy Markdown
Owner

Summary

  • Prevent scraped Amazon recommendation images from appearing in product galleries.
  • Allow multi-image galleries only for ASIN-scoped Creators API responses.
  • Sanitize all 98 generated Amazon records to one primary image unless verified.
  • Add unit, catalog, and browser regressions for the affected SMIRLY page.

Root cause

The HTML importer collected image URLs across the entire Amazon product document, including recommendation modules for unrelated products. The PDP then trusted every stored URL as gallery media.

Verification

  • npm test — 17 passed
  • npm run lint — passed
  • npm run build — passed
  • Playwright product-page suite — 13 passed, including all 196 PDP layouts
  • Affiliate tag remains iu0e3-20
  • No secrets in the diff

Deploy

  • Deploy to production after adversarial review, CI, and merge

Agent gate

  • Independent adversarial review — pending
  • Local verification — PASS
  • CI green — pending

@SteveSimonson

Copy link
Copy Markdown
Owner Author

ADVERSARIAL REVIEW: PASS

@SteveSimonson
SteveSimonson merged commit 4891443 into main Aug 2, 2026
1 check passed
@SteveSimonson

Copy link
Copy Markdown
Owner Author

PRODUCTION DEPLOY: PASS

  • Squash merge: 4891443
  • Cloudflare version: aaffb339-7fe7-47ea-b945-c73e0c148bfb
  • Live SMIRLY PDP primary image: 81FoZNCStHL
  • Thumbnail rail: disabled (0 thumbnail buttons)
  • Unrelated image tokens: absent
  • Live Amazon links retain tag iu0e3-20
  • Independent adversarial review and CI: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant