AntFleet

Disagreement · d9ae4fa5-openai-4

AbortSignal listener added during backoff can leak if not aborted

solo GPT-5
repo 56f59a0d·PR #3·reviewed 4 days ago

GPT-5 finding

AbortSignal listener added during backoff can leak if not aborted

lowmaintainabilitymedium
  • src/providers/orchestrator.ts:323-329
The abort listener is registered with `{ once: true }` so it cleans itself up on abort, but if the backoff completes normally (no abort), the listener remains attached to the signal. With few retries this is small, but over many orchestrations it is a minor leak.

Recommendation

Capture the listener and remove it after the timer fires (in the resolve path) if an AbortSignal was provided and did not abort.

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 →