Skip to content

Her newest result's room subtracts her view's irreducible floor, so a result her required view leaves no room for comes in at its summary, never refused (card 3335c512) - #5554

Merged
joelteply merged 2 commits into
canaryfrom
3335c512/her-newest-result-s-room-subtracts-her-v
Oct 28, 2026
Merged

joelteply merged 2 commits into
canaryfrom
3335c512/her-newest-result-s-room-subtracts-her-v

Conversation

@joelteply

@joelteply joelteply commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

How this serves the minds: Kimi has been parked since this morning, 41 asks and 0 acts. Her newest result was too big for the room her required view left it, and instead of seeing it at its summary she was refused outright. With this fix she sees the result reduced, with its handle, and acts. It serves goal 7 (one budget; keep the newest whole when it fits, its summary plus a handle when it doesn't) and goal 2 (residents code at pace).

Why (receipts from Codex, the Windows 5090, a035f35 and 93fced8)

  • The refusal: delib.prompt.capacity required 33,719 > budget 30,243 at window 49,664 (refusal 1eef970d).
  • No reduction happened: neither delib.payload.over_window nor any delib.newest_result.* fired.
  • The view ran over: delib.view.sized at 1793174739768 shows view_tokens 25,474 against granted 2,308, with room 0.
  • Why: her view's required sources (notices, the lines of files she has open) are never shed (epoch.rs fit_view). But fit_newest_result priced her newest result against the window less framing and tools only. So the result looked like it fit and stayed whole, and the view's floor then took its room.
  • No second chance: the fit refused before sending. newest_refit only answers the engine's ContextExceeded, so nothing refit it.

Change (continuum-cognition prompt/view.rs)

  • The required view claims' floor (view_claims, required, floor_tokens) is subtracted from after_reserves before fit_newest_result.
  • The over-window probe (which now carries view_floor_tokens) and the grounding budget read that same room.
  • Notices aren't counted twice: they live in her view, which required_parts excludes.

Tests

Test What it pins
the_newest_result_over_her_window::a_result_her_required_view_leaves_no_room_for_comes_in_reduced_not_refused Alone, the result arrives whole. Beside 60 required notices, it arrives reduced with its handle and the turn is not refused.
  • Proven by mutation: with the old room restored, the test is refused with required 34,650 > budget 30,278, Kimi's shape.
  • Local results (macOS x86_64, at 8591237): prompt_shaping 60/60.
  • Ratchets: 68/68 (exit 0).

Not in this PR (named)

  • Codex's allocator seam: a capacity refusal never updates her serving minimum (view.rs:568 need_sample on refusal).
  • Fable's checkpoint and MTP draft RAM: fork branch fable/draft-kv-once.

Measured after deploy

Owner: Cormac, with Codex reading the box. When: Kimi's first turns after adoption.

What it should show: delib.newest_result.* showing her result reduced, an act with model_ms > 0, and no delib.prompt.capacity for the same shape.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

… result her required view leaves no room for comes in at its summary, never refused (card 3335c512)

Kimi on the windows 5090 (2026-10-28, a035f35/93fced8a9) parked: delib.prompt.capacity
required 33,719 > budget 30,243 at window 49,664 (refusal 1eef970d), 41 asks and 0
completions by 09:01Z. No delib.payload.over_window and no delib.newest_result.* fired;
delib.view.sized: view_tokens 25,474, granted 2,308, room 0 (Codex's receipts).

Her view's required sources (notices, the lines of files she has open) are never shed
(epoch.rs fit_view), but fit_newest_result priced her newest result against the window
less framing and tools alone. It fit there, stayed whole, and the view's floor took its
room: the fit refused before sending, and newest_refit answers only the engine's
ContextExceeded.

view.rs: the required view claims' floor (view_claims, required, floor_tokens) is
subtracted before fit_newest_result, and the over-window probe (now with
view_floor_tokens) and the grounding budget read that same room.

Test: a_result_her_required_view_leaves_no_room_for_comes_in_reduced_not_refused (a
result whole alone, reduced with its handle beside 60 required notices). Mutant (the
old room): refused, required 34,650 > budget 30,278, Kimi's shape. prompt_shaping 60/60.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit f7af1b8 into canary Oct 28, 2026
16 checks passed
@joelteply
joelteply deleted the 3335c512/her-newest-result-s-room-subtracts-her-v branch October 28, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant