Repository navigation
Her prompt only appends: facts and tool switches are keyed items, her previous turn renders identically (M5: ~6,000 prefill-seconds in 3 h) - #5802
Merged
Conversation
…d states, tool switches wait for a start, her turn is one message On the hybrid Qwen3.6-35B-A3B any change inside her previous prompt re-prefills from the last checkpoint before it. Measured on the M5 (core ed142f1, 2026-11-06 16:13-19:17Z, 124 acts): 2,822 s over 78 acts re-prefilled her previous tail, 1,250 s her previous reply. - continuum-context: View::append_sent appends a served prompt's tail in the bytes it was sent; what it showed (her newest act, the ask) is covered and never arrives again from its source this epoch; a start re-renders from the sources. Source::states/ended: a source of states ends an item it no longer offers once, so a state that returns appends at the newest end. - cognition: perception facts are a keyed Source of states (context_streams::facts); the act's tail joins her view when served (epoch.rs view_served, once in contribute.rs), and the next tail drops what her view already holds; view_messages points at her prompt's end; native protocol is a ContextMessage (context_streams::native). - tools_epoch: the template renders tools first (read from the served GGUF), so a held card's moves change no longer re-selects her set mid-epoch: her head holds, the new verbs ride tail_tools, the budget reserves the larger set, the next start of her view adopts it. - messages: her words and the native calls she made with them are one assistant message (working_memory::statement_of_act), as she wrote them. Dyno over 158 recorded pairs: the tail class shares 0.978 -> 1.000 of the previous prompt, fresh 558,070 -> 383,079 tokens; all pairs 0.897 -> 0.914. Turnovers (13) were required by the epoch's rules and are unchanged. prompt_messages_outside_the_view 9 -> 8. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This was referenced Nov 6, 2026
Merged
joelteply
added a commit
that referenced
this pull request
Nov 6, 2026
…nchanged blocks, orders sources most stable first, and keeps tallies behind what holds On the M5 (core ed142f1, 2026-11-06 16:13-19:17Z) all 13 turnovers resumed only from the system+tools head (11,198 / 9,078 tokens): the start's front moved. - continuum-context View::begin lays a start's blocks out to share the longest prefix with the epoch it replaces (lead_with_what_held): that epoch's blocks in its order while each renders byte for byte, the first changed one laid where it stood (its unchanged front is reused too), then the rest; a source's items never pass one another. - motion: sources order by measured stability (how often each rendered as at the start before), most stable first; a tie keeps the order the last start laid them in. The old kept / (1 - p) ratio moved with each start's sizes and swapped neighbours. - Tallies leave the head: RagItem::as_tally marks units that state moving counts; a block's tallies become their own `<faculty> counts` block (Grounding::split_tally). The board marks its headline, available-work lead and history; its cards list oldest first, so a new card appends. Her [investigation] distribution is a tally pin, listed after every notice that holds. Replay of the 13 recorded starts: shared prefix 219,682 -> 255,515 tokens (+35,833, ~249 s at 144 tok/s); all 158 pairs, prefill 8,033 s as captured, 6,818 s with #5802, 6,569 s with this. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Nov 6, 2026
…nchanged blocks, orders sources most stable first, and keeps tallies behind what holds (#5803) On the M5 (core ed142f1, 2026-11-06 16:13-19:17Z) all 13 turnovers resumed only from the system+tools head (11,198 / 9,078 tokens): the start's front moved. - continuum-context View::begin lays a start's blocks out to share the longest prefix with the epoch it replaces (lead_with_what_held): that epoch's blocks in its order while each renders byte for byte, the first changed one laid where it stood (its unchanged front is reused too), then the rest; a source's items never pass one another. - motion: sources order by measured stability (how often each rendered as at the start before), most stable first; a tie keeps the order the last start laid them in. The old kept / (1 - p) ratio moved with each start's sizes and swapped neighbours. - Tallies leave the head: RagItem::as_tally marks units that state moving counts; a block's tallies become their own `<faculty> counts` block (Grounding::split_tally). The board marks its headline, available-work lead and history; its cards list oldest first, so a new card appends. Her [investigation] distribution is a tally pin, listed after every notice that holds. Replay of the 13 recorded starts: shared prefix 219,682 -> 255,515 tokens (+35,833, ~249 s at 144 tok/s); all 158 pairs, prefill 8,033 s as captured, 6,818 s with #5802, 6,569 s with this. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
… the rest, so the reply's priority never collapses her newest turn #5807's CI (merged with canary #5802/#5803): reply_priority_grows_the_reply_not_at_history_or_required_input failed, history 1 on the pass and 0 on the act. Receipts (16,384 window, d601074): - start_room is the same on both turns (979: view grants 3,570 + room 0 - reply short 2,591 on the pass; 2,376 + 0 - 1,397 on the act), and start_grants raised the growing start to cover her newest turn (newest 570, start 766 on both). - start_shares then split the growing room in proportion to what each source lacks of its GRANT, and the grants are the act's: the reply's priority moved her conversation's grant (3,197 on the pass, 2,003 on the act). Conversation share 449 on the pass, 437 on the act: 1,331 chars vs 1,295, her newest turn 1,296. The act collapsed it by one char. - The same split on canary alone: conversation grant 3,461 / 2,161 (tools 8,240), the same leak with more slack; it passed by margin. tool/output's +474 tokens in this fixture (tools 8,714) removed the margin and exposed it. The reply WAS reaching her history through the split; the fixture window is not stale. Fix: StartSource carries `newest` (its newest item's cost); start_shares gives each growing source its newest item, capped by its grant and the start, before the proportional share. start_grants passes it. After: pass and act render byte-identical history (segments equal, est 10,754 both). Test: continuum-context allocation::tests::a_growing_source_holds_its_newest_item_whatever_the_grants_divide (the receipt's numbers: both grants hold the newest turn). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
…and a marker can only name a verb she holds (#5807) * Every handle she's shown is one she can open: tool/output is native, and a marker can only name a verb she holds tool/output was catalog-only (NATIVE defaulted false), so a native-call model could not emit it, while every folded act, repeat, saved result, thought handle, collapsed receipt and too-large note named it (2026-11-06, the M5: no act called it). And the slash name the text used is not the name her tool list offers (the first alias, read_output), so the prose never matched her function list even for native verbs. - tool/output moves beside the spill it reads (continuum-cognition), declares native: true, disclosure Always (the only tier a room's narrowed surface keeps, and a handle can appear in any surface), effect Reopens, and projects its outcome: a read that brought nothing back is Failed, like grep exit 1. Its description and param docs are cut to a few words (it rides every act). - VerbRef<C> (kernel sdk_codegen): a reference to a command by TYPE, built only in a const from a native command in her hands (VerbRef::in_hands) or in every surface (VerbRef::always); a non-native or narrowed verb fails const evaluation (compile_fail doctests). It renders through wire_name, the one function her offered tool list is named by (OfferStyle/offer_style_for moved down beside it; tool_dialect re-exports them and routes to_wire_spec_with through it). - Reopen (tool_output.rs): THE reopen affordance, one verb, one call form, the command's own params serialized: read_output({"act":3}), read_output({"outputId":"h"}). Migrated: actions fold + repeat, saved-result recall, thought pointers, newest-result too-large note, result attribution, collapsed pointers, open-views banner, spill byte-offset refusal, web/fetch filter note. - CollapsedReceipt: one type renders the collapsed line and reads it back (accepted only when its fields re-render to the exact text); replaces the recogniser that accepted a form the index never emitted. - tool_dialect::offered_name_of_stored: a verb name stored before a rename resolves through its kept alias and renders as offered today. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * tool/output lives in the mind's ring beside its spill, and never sizes what she sees The ratchets on the first commit: cognition files naming crate::commands rose upward_imports 33 -> 48 and closed module cycles; moving the command made its file touched, so its self-sized sites had to go (ONE-BUDGET: a touched file leaves with none). - tool_output.rs moves to cognition/tool_executor/ (beside spill.rs), so every reopen site imports within the mind ring; core's web/fetch note and the core -> cognition dependency are reverted (web/mod.rs carries self-sized sites this slice does not own; its "page it with tool/output" note is a follow-up). - The read no longer sizes itself: render_slice_chars (a fraction of the window, a second budget the turn's allocation never saw) and the grep defaults (2 context lines, 50 matches) are gone. spill::Allowance::{Whole, Chars} types the read's bound: tool/output reads Whole (bounded by the saved file, which was held in memory once), a reopen with no selection is the whole output (ToolEffect::Reopens), and her view sizes it. The tail header names "the newest N of M lines", never a budget. - Reopen's argument serialization names its boundary (her tool-call wire). - Agentic surface re-pinned at the measured 17927 (+441: tool/output's ten params, the reach itself). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A view start holds each growing source's newest item before it shares the rest, so the reply's priority never collapses her newest turn #5807's CI (merged with canary #5802/#5803): reply_priority_grows_the_reply_not_at_history_or_required_input failed, history 1 on the pass and 0 on the act. Receipts (16,384 window, d601074): - start_room is the same on both turns (979: view grants 3,570 + room 0 - reply short 2,591 on the pass; 2,376 + 0 - 1,397 on the act), and start_grants raised the growing start to cover her newest turn (newest 570, start 766 on both). - start_shares then split the growing room in proportion to what each source lacks of its GRANT, and the grants are the act's: the reply's priority moved her conversation's grant (3,197 on the pass, 2,003 on the act). Conversation share 449 on the pass, 437 on the act: 1,331 chars vs 1,295, her newest turn 1,296. The act collapsed it by one char. - The same split on canary alone: conversation grant 3,461 / 2,161 (tools 8,240), the same leak with more slack; it passed by margin. tool/output's +474 tokens in this fixture (tools 8,714) removed the margin and exposed it. The reply WAS reaching her history through the split; the fixture window is not stale. Fix: StartSource carries `newest` (its newest item's cost); start_shares gives each growing source its newest item, capped by its grant and the start, before the proportional share. start_grants passes it. After: pass and act render byte-identical history (segments equal, est 10,754 both). Test: continuum-context allocation::tests::a_growing_source_holds_its_newest_item_whatever_the_grants_divide (the receipt's numbers: both grants hold the newest turn). 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]>
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.
Serves the residents' pace (the path's step 1, Fast; order of work line 2, a mind's context as an epoch): on the hybrid Qwen3.6-35B-A3B her sequence resumes only at its end or at a checkpoint, so any change inside her previous prompt re-prefills from the last checkpoint before it. Three of the four measured classes were her prompt changing where it had already been sent. Every fix goes through the one owner,
continuum-context'sView(MIND-CONTEXT invariant 1: within an epoch the prompt only appends).What changed, by owner
A. Her act's tail joins her view as sent (
continuum-contextView::append_sent; cognitionepoch.rsview_served, called once incontribute.rswhen the engine serves the request)[facts] [now …] her words, her call, its result. The next act dropped the facts and re-rendered the result as a[result #n]item of her actions, in other bytes, at the same position. The previous prompt was never the next prompt's prefix past her view, so every act re-prefilled the previous act's tail.context_streams::native).view_messages(the fork's checkpoint hint, kept in her page) now points at her prompt's end, so the engine resumes there.delib.view.tail_not_kept) and re-renders as before.context_streams::facts, aSourceof states).render_factsnow returns(id, text)); a perception the system spoke into her room is keyed by its event.Source::states/Source::ended, which is new in the codec). Events are never ended.prompt_messages_outside_the_viewratchet goes from 9 to 8.B. Her tool set is stable within an epoch (
prompt/tools_epoch.rs)Qwen3.6-35B-A3B-Q4_K_M.gguf,tokenizer.chat_template). It renders<|im_start|>system\n# Tools … <tools>{schemas}</tools> … {system text}: the tools come first, before the system text. Any change to the set rewrites the head.held.moves != moves, the old line 95-97) re-selected the set immediately, mid-epoch.tail_tools, after the messages and outside the prefix, so they are callable at once..prev.jsonl. That act is a slot-placement miss: her page was not restored onto a slot another mind held. Follow-up: Codex (placement/paging).epoch_moves_changedfor Aiko at 17:04Z, 17:15Z and 19:04Z and for Benchy at 19:03Z. Aiko's captured list went from 39 to 30 verbs at 19:21Z.D. Her previous turn renders canonically (
prompt/messages.rs,working_memory::statement_of_act)<|im_end|>and a second assistant header between them that she never generated.words\n\n<tool_call>…, as she wrote it), and the tail persistence keeps it byte-identical on every later act.<think>wrapper depends on the message's position relative to the last user query. In our flow a user message always follows her turn: the result label, or[continuation]fromclose_trailing_assistant. So the wrapper never flips between acts.preserve_thinkingwould duplicate it.C. Turnovers were required; the trigger is unchanged
delib.view.turnoverin the window followed the epoch's own rules:view_tokens > granted + room, for example Aiko 17:19Z with 106,653 > 104,434).turnover_due). For example, Aris 18:47Z had a 55,060 / 61,246 view with a median of 37,925 chars appended per act.[my work]/[room-kanban]and notices/[tasks].--checkpoint-min-step 5637). Follow-up: Fable (start order) and Cormac (checkpoints at the head boundary and on turnover).Measured
a_served_prompt_is_the_whole_head_of_her_next_act) puts three consecutive acts throughprompt_view+view_served:view_messagessits at her prompt's end.nice -n 19, own target dir, no workspace build, no reboot):continuum-context: 72 lib tests pass.continuum-cognition --features metal: 938 lib tests pass.continuum-core --features metal,acceleratemind-integration tests (test_env::mind_integration): 96 pass.prompt_messages_outside_the_view9 -> 8, every other ratchet unchanged).oversized-edits.sh:contribute.rsends at 999 lines.Post-deploy check (owner: Fable, the 15-minute read plus 3 h, same classes)
.prev.jsonland.jsonl.resume:should showlcpat about the previousn_prompt, with a checkpoint at its end.delib.view.tail_keptonce per served act;delib.view.tail_not_keptonly on media acts;delib.tools.epoch_moves_changedfollowed by no tool-list change untildelib.view.turnover.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo