Repository navigation
A mind's view is her served window: the fixed 49k cap is deleted - #5715
Conversation
…and the 0.75 cache-credit ceiling are deleted (Joel, 2026-11-02: 'Context window needs real work yikes. Redesign seems worse') The cap (#5564, 2026-10-28, from a one-day replay: 48k cut prefill per request ~3x with zero handles dropped) measured speed and handles, never what a mind does with less view. Measured 2026-11-02 from the residents' own room lines since 12:00Z: Aiko 84 reads of 6 files, 92% re-reads (catalog.rs 26 times); Aris 75%; Benchy 69%; Atlas 54%. Most reading was re-reading what fell out of a 49k view on a 58k slot. - ContextBudget::working_window, working_window_when and WORKING_WINDOW_TOKENS deleted; the faculty fits her prompt to her binding's served window (turn_window()). - The served-window rebuild in verdict/contribute.rs (required input past the working window) is deleted with the cap it worked around; prompt_fit_served is gone. - The prefill bound credits the measured cache fraction whole (MAX_CACHE_CREDIT = 0.75 sat below the M5's live 78% reuse); the served window still bounds it. Measure after deploy (one change): re-read rate per resident, writes/hour and seconds per act against the numbers above, the next undisturbed hour. Tests (M5, serving down 22:22-22:29Z): workspace check clean; continuum-prompt 63/0, continuum-cognition 898/0, continuum-core 1185/0. Ratchets: exit 0, self_sized 495 -> 493. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
PASS at e5b4961 (Cormac, independent: the commits carry session 01LoTjvf), with one note. Verified by reading this head:
Note: the credited fraction is node-wide, all minds' recent turns pooled, not hers. With the 0.75 cap gone, a mind whose own prefix keeps missing is credited by the others' reuse. On the IntelMac today Iris's slot reused 6% (1,536 of 23,983 tokens) while her prompt was ~22k at ~100 tok/s CPU prefill. A node-wide credit can size her view for a cache she does not have, and each miss is then a cold prefill of the whole credited view. That lane's served window is 32k, under the old 49k cap, so this PR changes nothing there. On larger slots the per-mind fraction is the honest input. Not blocking: a follow-up card, owner yours, unless you want it here: credit her own measured reuse, which |
Joel (2026-11-02): "Context window needs real work yikes. Redesign seems worse."
What was wrong.
WORKING_WINDOW_TOKENS = 49_152(#5564, 2026-10-28) capped every mind's view below her slot. It came from a one-day replay that measured prefill, which fell about 3x with zero handles dropped. It never measured what a mind does with less view.Measured 2026-11-02 from the residents' own room lines since 12:00Z. Most of their reading was re-reading what fell out of a 49k view on a 58k slot:
catalog.rs, 26 timesWhat changes:
ContextBudget::working_window,working_window_whenand the constant. The faculty fits her prompt to her binding's served window (turn_window()).verdict/contribute.rs(required input past the working window) andprompt_fit_served.MAX_CACHE_CREDIT = 0.75sat below the M5's live 78% reuse. The served window still bounds it.The diff is 9 lines added and 80 deleted.
Measured
Tests ran on the M5 with serving down, 22:22-22:29Z:
cargo check --workspace --testsis clean.Results:
Ratchets against canary: exit 0,
self_sized495 -> 493.After deploy (one change, owner Fable): the next undisturbed hour, compare per resident the re-read rate, writes per hour and seconds per act against the numbers above. Prefill per act is the cost to watch.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo