Skip to content

runtime: raise the per-response, question and wall-clock limits - #65

Merged
daniel-rossier merged 1 commit into
mainfrom
fix/raise-turn-limits
Dec 2, 2026
Merged

daniel-rossier merged 1 commit into
mainfrom
fix/raise-turn-limits

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

Reasoning counts against the per-response cap: all five held-out questions that ended with no conclusion stopped on max_tokens at 16384. Raises SPEAR_RESPONSE_MAX_TOKENS to 49152, gives questions the base budget (250 rounds / 500 calls instead of 60 / 80, previously chosen by keyword), and SPEAR_MAX_TURN_SECONDS to 7200. All remain overridable from the environment. Unit tests of the touched modules pass (1184).

Reasoning counts against the per-response cap. On deep kernel and libc
traces Qwen3.8 thinks for more than 16384 tokens, so turns were cut
before they acted or answered: all five held-out questions that ended
with no conclusion (SO3 futex, pipe, sleep/SIGINT, cond broadcast and the
Infrabase ab deploy) stopped on max_tokens at 16384, three of them after
losing six whole turns each, one with its forced tool-less synthesis cut
before the first word.

- SPEAR_RESPONSE_MAX_TOKENS: 16384 -> 49152, still below the core's
  65536 reservation.
- A question now gets the base budget (250 rounds, 500 calls) instead of
  60 rounds and 80 calls. The budget was chosen by keyword, so a question
  that happened to contain "write(" got 500/1000 while the others were cut
  at 80 calls. The reading-round nudge still asks for the answer early.
- SPEAR_MAX_TURN_SECONDS: 1800 -> 7200; with three server slots a deep
  question runs well past half an hour.

All three stay overridable from the environment.
@daniel-rossier
daniel-rossier merged commit 8af4380 into main Dec 2, 2026
@daniel-rossier
daniel-rossier deleted the fix/raise-turn-limits branch December 2, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant