From e6ecb83744d38b33703c1e7210193cf25c848278 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 14 Aug 2026 22:23:30 -0700 Subject: [PATCH] arena: bound 429 backoff to fit the step watchdog (flat 12s; unbounded waits booked as step_hang) Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01WsbS5x2rYsMDxP2kW3qqmQ --- e2e/browser-v3/arena/llm_policy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/browser-v3/arena/llm_policy.py b/e2e/browser-v3/arena/llm_policy.py index d1d25522..47363a59 100644 --- a/e2e/browser-v3/arena/llm_policy.py +++ b/e2e/browser-v3/arena/llm_policy.py @@ -276,7 +276,9 @@ class LlmPolicy: # Rolling TPM 429s reset in ~15-60s; a 2-6s backoff converts a slow lane into # booked infra episodes (measured: 14 in one chore half-hour). Wait the window out. is_rl = "429" in str(exc) or "rate limit" in str(exc).lower() - time.sleep((20.0 if is_rl else 2.0) * (attempt + 1)) + # Bounded: act() runs under a ~150s step watchdog -- unbounded 429 waits turned + # every rate-limited step into a booked step_hang (measured: 10 in 30 min). + time.sleep(12.0 if is_rl else 2.0 * (attempt + 1)) d.think_ms = (time.time() - t0) * 1000 return str(text).strip(), d