From 3d1b5c9cbf3dcfef3b97cf081afcffea109c6239 Mon Sep 17 00:00:00 2001 From: Erik LaBianca Date: Mon, 9 Nov 2026 09:02:14 -0500 Subject: [PATCH] Keep fabricated setup turns inside the shared model window The shared test limits gave each model request 5 seconds. That window also covers the attempt recorder's journal commits, and on JSONL each commit syncs to disk. On a loaded host those syncs can use the whole window, so the client harness's fabricated setup turn ended model_unavailable (reason timeout) instead of confirmation_required. Slowing each sync to 0.5 s reproduces it; the 15-second window passes. Timeout tests set their own short per-request windows, so none is weakened or slowed. Co-authored-by: Erik LaBianca Co-Authored-By: Claude Opus 5.5 --- tests/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index dc818ca..6bca958 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -13,11 +13,15 @@ @pytest.fixture def limits() -> ModelExecutionLimits: + # The request window also covers the attempt recorder's journal commits, and each JSONL + # commit syncs to disk. A loaded host can spend more than 5 seconds in those syncs and + # turn a fabricated setup turn into a model timeout. Timeout tests set their own short + # per-request windows, so this ceiling only bounds a hang. return ModelExecutionLimits( max_response_bytes=8192, max_tool_argument_bytes=512, max_attempts=2, - request_timeout_seconds=5, + request_timeout_seconds=15, max_retry_delay_seconds=0.001, )