Run: python selftest.py from /work/idea/mvp
(in the .venv-worker venv). No API key required.
| # | Check | Result |
|---|---|---|
| 1 | good listing scores >= 80 | PASS |
| 2 | bad listing scores <= 45 | PASS |
| 3 | good outscores bad | PASS |
| 4 | all 6 dimensions present, weighted, in 0-100 | PASS |
| 5 | bad listing yields prioritized issues | PASS |
| 6 | rewritten title: 80-100 chars, front-loaded, 2 variants | PASS |
| 7 | exactly 13 unique keyword/topic tags | PASS |
| 8 | rewritten HTML description is scannable + standards + FAQ | PASS |
| 9 | thumbnail checklist has actionable items | PASS |
| 10 | price guidance present | PASS |
| 11 | re-audit delta improves score by >= 15 | PASS |
| 12 | parse_product_page extracts title/price/rating/reviews/previews/attrs | PASS |
| 13 | bot-wall stops, writes HANDOFF.md, no retries | PASS |
| 14 | HTTP: landing, audit, re-audit API, healthz, email gate | FAIL |
POST /audit -> 422 | ||