AntFleet

Disagreement · d9ae4fa5-anthropic-5

Watchdog abort-error detection relies on brittle string matching

solo Opus
repo 56f59a0d·PR #3·reviewed 4 days ago

Opus finding

Watchdog abort-error detection relies on brittle string matching

lowmaintainabilityhigh
  • src/providers/orchestrator.ts:408-416
  • src/providers/orchestrator.ts:46-62
isRetryableError and the watchdog-abort detection both rely on substring matching of localized error messages. This is fragile across Node versions and provider SDKs (e.g. 'AbortError' vs 'aborted'); 'aborted' will also match unrelated messages like 'request aborted by user'. Moreover, the watchdog-abort branch in the catch block has an empty body and a comment but does nothing — dead code.

Recommendation

Use error codes / instanceof checks (err.name === 'AbortError', err.code, err.status). Remove the empty branch or implement the documented behavior.

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 →