← Back to Pull requests

Turn reasoning off for a forced submission, and run no lookups then #25

Closed
unknown closed this pull request without merging on Nov 22, 2026 13:11 UTC
View on GitHub
unknown unknown commented on Nov 22, 2026 07:36 UTC
Author

A follow-up to #22, which asks again at low reasoning effort for an answer that reasoning used up. I could try it against the real models since, as dry runs with nothing posted, and it helped one draft model and cost the other two passes.

What the runs show

The same review each time: zephyrproject-rtos/zephyr#122800 at 7be4568, the models and settings of Zephyr's workflow (max_tokens 8000, specialist_max_steps 25), read from a local checkout without GitHub. One run per tree, so differences are also sampling.

| Tree | Time | Passes without a result | Prompt / completion tokens |
|---|---|---|---|
| 7bc5540, before #22 | 1270 s | 5 of 14, all z-ai/glm-5.3-flash | 25.5 M / 906 k |
| e6e89a2, main | 536 s | 2 of 14, both deepseek/deepseek-v4.1-flash | 19.2 M / 491 k |
| this change, first version | 513 s | 0 of 14 | 18.0 M / 473 k |
| this change, as reviewed here but for the last point below | 533 s | 0 of 14 | 17.7 M / 417 k |

On main the glm passes each hit one cut-off answer and got through at low effort. The two deepseek passes were asked to submit at step 25 and reasoned the 8000 tokens away; at low effort they did the same at step 26; at steps 27 and 28, with any tool accepted, they called search and read_file, which were run, and the steps were used up. Before #22 the cut-off turn's reasoning stayed in the history and the model built its submission on it.

Single requests to both models (a small review, one tool):

| Setting | deepseek | glm |
|---|---|---|
| low or minimal effort | reasoning still fills the limit | gets through (60 to 150 reasoning tokens) |
| reasoning.max_tokens | still fills the limit | not tried |
| effort: none | gets through, 0 reasoning tokens | HTTP 400 "Reasoning is mandatory for this endpoint and cannot be disabled." |

So "low" is a request, not a budget, and neither setting works for both.

The change

  • A cut-off answer while the investigation goes on asks for low effort, as now, and no more than that however often it happens.

  • A cut-off answer when the model is asked to submit switches reasoning off: the thinking is done and the turns are few.

  • A setting a route refuses is replaced by the one below it within the same step, and not asked for again. A refusal is a client error (400, 404, 422) that names the reasoning or its effort; a rejected key or an outage is not, whatever its text says. For that OpenRouterError now carries its status, also for an error in the body of a 200 response.

  • Once the model is asked to submit, a call of another tool is answered with the instruction to submit and not run (recorded as tool_refused, not counted as a tool call). When any tool is accepted, only the terminal tool is offered; all three models accepted such a request with other tool calls in the history.

  • A history that was elided in full, after which the model is asked to submit, no longer says "call the tool again if you still need it".
  • In the last run three deepseek passes, the two lost on main among them, were cut off at step 25 and submitted at step 26 with 0 reasoning tokens, and two glm passes in the same position fell back to low effort and submitted.

    What you should weigh

  • A submission written with reasoning switched off comes from the history alone. I have no measure of its quality against one written at default effort.

  • In both runs with this change the review had no finding; in the two runs without it, one low finding (the removal of the anonymous entry is not tested). In all four the candidate was raised. Without the change the verifier confirmed it directly; with it, the verifier sent it to a hard case, which refuted it ("the test already validates both states"). With more passes returning a result the candidate arrived two or three times under different titles. I have not judged which outcome is right.

  • No run reached the point where a lookup is refused, and none met a route that rejects the reasoning field altogether; those are covered by unit tests only.

  • Not changed: after a full elision the evidence is gone and a reread is no longer possible once the model is asked to submit; keeping an excerpt would be a change of its own. The wall-clock budget is not checked again inside the retry that follows a refusal, which can cost one turn.

  • glm used 5700 to 7900 reasoning tokens on a 30-line function at default effort, and once returned nothing at the default limit. A low effort from the first request for that model would remove most cut-off answers; that is configuration and not part of this.
  • Tested with the unit tests (212 pass; the five new or changed agent tests fail without the change) and the dry runs above. The last dry run predates the status on OpenRouterError; the refusal it relied on was an HTTP 400 naming the reasoning, which is classified the same way.

    Diff: 604 lines (+453 / -151) across 7 files Reviewer: nashif Review duration: 334m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 604 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.383
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #25"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.1% (MEDIUM) · Higher = larger blast radius
    50.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.8% · Safe to merge
    19.8%