Repository navigation
Revert #4194: the output allowance floor ends every turn inside the reasoning channel — zero acts on the M5 - #4275
Merged
joelteply merged 1 commit intoSep 20, 2026
Conversation
… decode rate — every turn bounded in time, a pass costs a pass, never the reserve (#4194)" This reverts commit 0047d52. Verified on the M5 within 15 minutes of the restart (build 0047d52, 20:58Z–21:14Z): the decode rate read as unmeasured after the boot, so the allowance fell to its floor — `delib.turn.output_allowance kind=pass budget_secs=20 measured_tps=0.0 allowance=768` and `kind=act budget_secs=150 measured_tps=0.0 allowance=1500` — while the reserve that bounded the turn before this change was 2,172–6,932 tokens. Qwen3.8 reasons before it answers: `persona.act.think_only reasoning_len=2730` and `=2112` (Benchy, twice) — "generation ended inside the reasoning channel — no answer, no act". Zero acts by construction. Even with a measured rate the model is wrong for a thinking model on this box: 20 s × 12 tok/s = 240 tokens for a pass cannot hold the reasoning channel. The allowance must be at least the reasoning channel's measured need (or thinking must be off for a pass), and an unmeasured rate must fall back to the stale/conservative knee, never to zero. That is a redesign, not a patch; card ba82d0a0 carries it. Revert first, the fleet cannot sit on a build whose minds cannot finish a thought. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
deleted the
revert/4194-output-allowance-floor-ends-turns-in-thought
branch
September 20, 2026 21:17
joelteply
added a commit
that referenced
this pull request
Sep 20, 2026
…x(time × her rate, her measured think + answer); unknown is the reserve; the rate is never 0.0 (#4283) * fix(cognition): the output allowance holds the reasoning channel — max(time × her rate, her measured think + answer), unknown is the reserve, the rate is never 0.0 Measured on the M5 (2026-09-20, 20:58–21:14Z) after #4194 (reverted in #4275): the allowance was budget_secs × measured_tps with budgets act 150 s / pass 20 s. After the restart the rate read 0.0 and the allowance fell to a floor — `kind=pass measured_tps=0.0 allowance=768`, `kind=act allowance=1500` — against the reserve of 2,172–6,932 it replaced. Qwen3.8 reasons before it answers; `persona.act.think_only reasoning_len=2730` and `2112`: two turns ended inside the reasoning channel — no answer, no act. Even measured, 20 s × 12 tok/s = 240 tokens cannot hold a thinking pass. Joel's law: bounds sized wrong are where AIs ruin a project; busy is not dead. The design, on the reverted state (#4194's code is not reintroduced): 1. allowance = max(time_budget × rate, reasoning_need + answer_need), under the reserve the prompt left (and an act's runaway bound). The need is this mind's MEASURED per-channel demand: `WorkingSetRegistry` now keeps the last 16 turns' reasoning / answer tokens beside the emission peak (same `emission.json`, same owner, survives a restart like `working_set.rehydrated`); `need_of` is the p90 with 5/4 headroom, unknown (None) before three turns and for a legacy file. Unknown is NOT zero: with no measured need the allowance is the reserve the reverted code used, never a constant. The split is the server's output count apportioned by the bytes the adapter separated into `reasoning` and `text`; a Length stop with no answer doubles the cut think. 2. The rate is never 0.0 for a served model: `decode_knee::rate_for` falls back fresh → stale (the record survives the restart) → the slowest curve on the box → and only with no curve at all, unknown, in which case the time term is skipped and the need term alone bounds. `rate_source` = fresh | stale | conservative | none. 3. A pass on a thinking model keeps thinking and its allowance holds the measured reasoning need: `TextGenerationRequest` carries no per-request thinking switch (only the gateway-level `ThinkingMode`, the JSON `response_format` kicker and the act purpose's `reasoning_budget_tokens`), so the think is budgeted, not disabled. 4. Receipt: `delib.turn.output_allowance` carries kind, rate_source, measured_tps, time_term, need_measured, reasoning_need, answer_need, need_term, need_clipped, allowance, reserve. The hour line gains `think-only N` (`citizen_health::note_think_only` at the think_only seam). 5. Tests, in the existing mods: unmeasured rate + need → the old reserve; a measured need dominates a small time term; a pass never gets less than the measured think + answer; rate falls back stale → conservative → unknown, never 0.0; the need is a p90 with headroom, unknown before measured, survives a restart; the hour line carries think-only. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the hour ledger's window test reads the think-only slot CI (cargo check windows-msvc, lib + tests): two E0308s — `snapshot_and_reset` returns nine counters now and `the_tick_reads_a_window_not_a_lifetime` destructured eight. It reads the ninth and asserts it resets with the rest of the window, which is the invariant that test exists for. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
This reverts commit 0047d52.
Verified on the M5 within 15 minutes of the restart (build 0047d52, 20:58Z–21:14Z):
the decode rate read as unmeasured after the boot, so the allowance fell to its floor —
delib.turn.output_allowance kind=pass budget_secs=20 measured_tps=0.0 allowance=768and
kind=act budget_secs=150 measured_tps=0.0 allowance=1500— while the reserve thatbounded the turn before this change was 2,172–6,932 tokens. Qwen3.8 reasons before it
answers:
persona.act.think_only reasoning_len=2730and=2112(Benchy, twice) —"generation ended inside the reasoning channel — no answer, no act". Zero acts by
construction. Even with a measured rate the model is wrong for a thinking model on this
box: 20 s × 12 tok/s = 240 tokens for a pass cannot hold the reasoning channel.
The allowance must be at least the reasoning channel's measured need (or thinking must
be off for a pass), and an unmeasured rate must fall back to the stale/conservative knee,
never to zero. That is a redesign, not a patch; card ba82d0a0 carries it. Revert first,
the fleet cannot sit on a build whose minds cannot finish a thought.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo