fix(amazon-shopping): verify prime and delivery filters

This commit is contained in:
2026-04-15 20:28:16 -05:00
parent a81a055ec6
commit fda0602ac9
20 changed files with 605 additions and 36 deletions
@@ -16,6 +16,7 @@ Search result cards should be treated as candidates, not final truth. Prefer car
| `rating` | `aria-label` or visible text like `4.6 out of 5 stars` | Optional. |
| `reviewCount` | text near rating like `1,234 ratings` | Optional. |
| `delivery.display` | visible delivery promise text | Optional and ZIP/session dependent. |
| `delivery.prime` | visible Prime badge, Prime icon class, `aria-label`, `alt`, or delivery text | Optional and ZIP/session dependent. Preserve a true search-card Prime signal when detail text omits the literal word Prime. |
| `isSponsored` | visible sponsored marker | Sponsored results may be included but must be labeled. |
## Detail Page Fields
@@ -40,6 +41,10 @@ Open only normalized product detail URLs under `/dp/<ASIN>` or `/gp/product/<ASI
- `more than 4.5 stars` means `rating > 4.5`.
- `4.5 stars or better` means `rating >= 4.5`.
- `less than $4 each` means visible unit price first, then high-confidence unit-count inference. Unknown unit prices do not pass strict unit-price filters.
- `77 inches or wider` means the overall product width must be `>= 77` inches. Prefer product/item dimensions with an explicit `W` component; ignore seat, arm, door, package, and cushion widths.
- `shipped with Prime` / `Prime shipping` means a visible Prime signal must be detected on the search card or detail page.
- `delivery by tomorrow` and `overnight shipping` require visible delivery text that indicates tomorrow, overnight, next-day, or one-day delivery.
- `top 10 by price` sorts passing products by displayed product price ascending.
- Missing fields must be represented as `null` or noted in `missingFields` / `extractionNotes`; never fabricate values.
## Official Alternatives