GPT-5 finding
Missing negative-path tests for error-classification: isTransientError never tested to return false
- apps/web/lib/review-worker.test.ts
Only true/transient cases are asserted. Without a false case, the unconditional true fallback in isTransientError is not caught, allowing all errors to be treated as transient.
Recommendation
Add tests that assert non-transient errors (e.g., "HTTP 400 Bad Request", "Validation failed", "Unauthorized") return false. Also add an end-to-end worker test asserting immediate terminal failure on a non-transient error.