We raised $3M for agent-native runners

Retry only infrastructure failures

Automatic retries are for a lost machine, not for a test shard that timed out.

How Anthropic used this technique

Read what Anthropic changed and follow the original sources.

Retry only infrastructure failures

Bun's automatic retry rules matched every timed-out test shard. The change scopes them to a lost agent, so a shard that times out reports once, with no second run.

Across about 200 recent builds, about 670 automatic retries of timed-out test shards: 465 timed out again and 182 were canceled, which the PR counts as 97% wasted. Source

Use it when
CI retries timed-out or erroring jobs automatically, and most retries end the same way the first attempt did.
Before applying it
Retries stay on for a lost runner or a process that never started.

Company Playbooks