Needs review
Applied groups
Discarded — not products
Lines the AI judged aren't real products (junk like "Line 1", fees, headers). Hidden from the catalog — Restore any that are actually products.
Price increases require the same product and unit, at least 3 prior purchases within 30 days, and at least $10 estimated excess cost. Different fuel quantities, price decreases, and uncertain comparisons do not trigger emails. Repeat alerts for a product/vendor are limited to once per 7 days.
Map alias to canonical item
Anomaly thresholds
Rebuild the catalog
Backfill builds pricing history from receipts submitted before this module existed. Already-verified receipts are skipped; legacy observations are rebuilt with quantity and unit checks, so it's safe to run more than once. No anomaly emails are sent.
Purge clears the entire derived catalog (items, aliases, AI groups, insights) so you can run a clean backfill free of old MISC pollution. Anomaly thresholds are kept, and your receipts are untouched — backfill rebuilds everything.