You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doxBench R-7 (product half): a model timeout must not read as "model not available" #83
Handed over from the codexFactory 010 register (T100 residual register, P2 — the PRODUCT half only; runtime relocated here).
Defect. During the T100 real-corpus runs, Sonnet exceeded the 120s adapter ceiling on real ~18KB envelopes and the overrun surfaced to the operator as "model not available". A timeout and an unavailable model are DIFFERENT operator actions (wait/retry vs reconfigure) and must read differently.
Two halves, one is not ours: the CEILING itself is a deployment-adapter concern (the operator-gated T099 adapter, outside this repository). The product half: verify the deadline-overrun path surfaces the fixed model_timeout vocabulary end to end — doxbench_model.dispatch_turn + serve.py's _deadline_bound_dispatch already map overruns to model_timeout (504), so the misreport likely lives in the adapter's own error mapping or in how the rail renders that failure envelope. Reproduce against a slow fake port first; fix whichever leg lies.
Code: scripts/ideation_dashboard/doxbench_model.py, serve.py (deadline-bound dispatch), web/views/doxbench-chat.js (failure note rendering). Full run context: ~/session-prompts/doxbench-t100-evidence.md.
Re-triaged 2026-08-24 against main @ 4a83e35: the product half this issue scoped is FIXED in-repo. Traced and reproduced end to end at route AND rail level, both envelope families: a dispatch overrun → TurnDispatchFailure(model_timeout) (doxbench_model.py:978-980; serve.py:3339-3385, where a worker EXCEPTION is deliberately model_failed, not a timeout) → 504 with the fixed sentence 'the model did not answer within the declared timeout' (serve.py:335, map at :434) → rendered verbatim by the rail (doxbench-chat.js:431-446, :1223-1225). model_unavailable is a distinct 409 with its own sentence.
There is NO in-repo path from a timeout to a 'not available' sentence: the only two 'not available' sites (serve.py:2671-2675, doxbench_model.py:964-966) are gated on the catalog entry's own available flag, declared by the adapter, no probing — confirming this issue's own hypothesis that the misreport lives in the T099 adapter's error mapping, out of this repo. The T100-era catalog posture that said 'no approved model is configured' for ANY catalog failure was separately split into three honest postures by T104 F10-1 (doxbench-chat.js:129-162).
One RESIDUAL in a new shape, filed separately: when the released failure body fails wire self-validation, serve.py:3318-3319 falls back to the pre-identity {ok,error,message} shape, the rail's kind-check discards the code, and a genuine 504 timeout renders as 'the chat transport refused this turn'. Contract-v1.34 changes nothing here (failure_v2 is structurally identical; error is a pattern, not an enum — no schema byte needed for the fix).
Activity
brettheap commentedon Aug 24, 2026
Re-triaged 2026-08-24 against main @ 4a83e35: the product half this issue scoped is FIXED in-repo. Traced and reproduced end to end at route AND rail level, both envelope families: a dispatch overrun → TurnDispatchFailure(model_timeout) (doxbench_model.py:978-980; serve.py:3339-3385, where a worker EXCEPTION is deliberately model_failed, not a timeout) → 504 with the fixed sentence 'the model did not answer within the declared timeout' (serve.py:335, map at :434) → rendered verbatim by the rail (doxbench-chat.js:431-446, :1223-1225). model_unavailable is a distinct 409 with its own sentence.
There is NO in-repo path from a timeout to a 'not available' sentence: the only two 'not available' sites (serve.py:2671-2675, doxbench_model.py:964-966) are gated on the catalog entry's own available flag, declared by the adapter, no probing — confirming this issue's own hypothesis that the misreport lives in the T099 adapter's error mapping, out of this repo. The T100-era catalog posture that said 'no approved model is configured' for ANY catalog failure was separately split into three honest postures by T104 F10-1 (doxbench-chat.js:129-162).
One RESIDUAL in a new shape, filed separately: when the released failure body fails wire self-validation, serve.py:3318-3319 falls back to the pre-identity {ok,error,message} shape, the rail's kind-check discards the code, and a genuine 504 timeout renders as 'the chat transport refused this turn'. Contract-v1.34 changes nothing here (failure_v2 is structurally identical; error is a pattern, not an enum — no schema byte needed for the fix).