1. Async retry with backoff
hard50 XPWrite async def call_with_retry(fn, *, attempts, base_delay, sleep, is_retryable). Call await fn(); on exception, if is_retryable(exc) and attempts remain, await sleep(delay) where delay = base_delay * 2 ** (attempt_index) (0-based, no jitter — tests need determinism) and retry. Otherwise re-raise. sleep is injected so tests don't actually wait.
Ctrl/⌘ + Enter runs the tests · Esc then Tab leaves the editor