Repository navigation
runtime: raise the per-response, question and wall-clock limits - #65
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).