AntFleet

Disagreement · 52c1a3b9-openai-0

All errors treated as transient: isTransientError always returns true, causing unnecessary retries and delayed terminalization

solo GPT-5
repo e24ef98c·PR #11·reviewed 1 week ago

GPT-5 finding

All errors treated as transient: isTransientError always returns true, causing unnecessary retries and delayed terminalization

highbughigh
  • apps/web/lib/review-worker.ts
The function intends to classify retryable errors (429, 5xx, network/timeouts) but ends with an unconditional return true. As a result, every failure is treated as transient. In runReviewWorker, retryable=true schedules retries until MAX_PROCESSING_ATTEMPTS, meaning permanent 4xx or logic errors won't be terminally failed immediately, causing repeated work, cost, and latency before terminalization.

Recommendation

Change isTransientError to return false by default and only return true for known transient signals. For example, end with `return false;` instead of `return true;`. Consider adding explicit checks for non-retryable 4xx (other than 429) if needed.

Other reviewer

The other reviewer flagged nothing in this file/line range.

Why this didn't post

This finding didn't meet AntFleet's unanimous agreement threshold. Both frontier models review every PR independently; only findings they both flag with the same severity and category are posted to the PR. This one fell through.

read the methodology →

From the same review

These findings passed the unanimous gate on the same PR review. The disagreement above was filtered out; the findings below were posted.