Repository navigation
fix(cognition): a turn's output allowance is the room the prompt left; her measured need is an expectation, never the ceiling - #4815
Conversation
…; her measured need is an expectation, never the ceiling
The 5090, 2026-10-06 (BigMama): Kimi's push + PR-comment tool call was cut
mid-output ('tools/<cut at the output limit> ✗') and the whole turn was
lost. Her last four delib.turn.output_allowance receipts: allowance
10,177 / 10,177 / 10,410 / 12,333 = the need term, against a reserve of
12,464 / 15,436 / 13,506 / 25,024. The need is a p90 × 5/4: by
construction about one turn in ten runs past it, and a cut tool call
commits nothing.
max_tokens does not make a turn shorter, it only decides whether a long one
lands. So the allowance is the bound: the reserve the prompt left, and for
an act the runaway cap (12,288). The time and need terms stay on the
receipt as what she is expected to use (need_clipped still says when her
need exceeds the room). A latency budget enforced by truncation buys no
latency; the cut turn re-runs from scratch.
Test: with a measured need and a rate, a pass gets the reserve and an act
gets min(reserve, cap); Kimi's numbers pinned (act 12,288, pass 25,024).
The earlier pins (unknown = the reserve, never #4194's floor, the reserve
and the act cap bind, a 0.0/NaN rate is no rate) all hold.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
APPROVED at 8413cfa, pending its lib-test check. Right call, and the doc says why: a cut tool call commits nothing and the turn is re-run from scratch, so truncation buys no latency. The measured need and time stay on the receipt as expectations. The test pins Kimi's own numbers (an act at the 12,288 cap, a pass at its 25,024 reserve). One question, not blocking: a PASS now gets the whole reserve with no runaway cap (acts keep ACT_OUTPUT_CAP). A pass that loops would hold the lane for the full reserve, ~25k tokens, which is minutes at her rate. Does a pass want its own runaway bound, e.g. the same cap, or a multiple of her p90 well above the 1-in-10 tail? |
|
Agreed, a pass wants its own runaway bound. Today it is the reserve, the same as before #4194 whenever the need was unmeasured, so this PR doesn't widen it. But a loop at 25k is minutes of a lane. Follow-up, so this approved head stays put: a pass is bounded by max(ACT_OUTPUT_CAP, 2 × her p90 need) under the reserve, well above the 1-in-10 tail and still finite, with a pinned test that a pass at 2 × need + 1 is cut and one at the p99 of her measured turns is not. |
…rn, never below the act cap (Cormac on #4815) With #4815 the allowance is the room the prompt left, which for a pass was the whole reserve (25,024 for Kimi): a loop could hold the lane for minutes. A pass is now bounded at max(ACT_OUTPUT_CAP, 2 x her p90 need) under the reserve. That is far above the one-in-ten tail a p90 lets through, so no real turn is cut by it; unmeasured, the reserve as before. Test: Kimi's need (10,177) bounds a pass at 20,354 under a 25,024 reserve; a small need still gets the act cap; the reserve still binds. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rn, never below the act cap (Cormac on #4815) (#4816) With #4815 the allowance is the room the prompt left, which for a pass was the whole reserve (25,024 for Kimi): a loop could hold the lane for minutes. A pass is now bounded at max(ACT_OUTPUT_CAP, 2 x her p90 need) under the reserve. That is far above the one-in-ten tail a p90 lets through, so no real turn is cut by it; unmeasured, the reserve as before. Test: Kimi's need (10,177) bounds a pass at 20,354 under a 25,024 reserve; a small need still gets the act cap; the reserve still binds. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
BigMama's 5090 report: Kimi's tool call was cut mid-output and the whole turn lost. Her allowance was her p90 need × 5/4 (10,177 / 10,177 / 10,410 / 12,333) while the prompt left 12,464 / 15,436 / 13,506 / 25,024. One turn in ten runs past a p90 by construction, and a cut act commits nothing.
max_tokensdoesn't shorten a turn; it only decides whether a long one lands. Now the allowance is the bound (the reserve, and for an act the 12,288 runaway cap). The time and need terms stay on the receipt as expectations, andneed_clippedstill reports a need past the room.84 green in the faculty suite (Kimi's numbers pinned); hygiene green; no new warnings.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo