Repository navigation
A context is a FIFO: the governing law of what a mind perceives, with its health number - #5529
Merged
Merged
Conversation
… its health number Joel, 2026-10-27: "The linear nature of an LLM, fifo, makes it fairly obvious what kinds of memory and data architectures make the most sense during this period. Optimization is the difference between many minds and many slots and breakdowns." MIND-CONTEXT-AND-ENGINE-CONFIG.md gains the law ahead of its two faults: order by stability, never re-place what exists, page by position, collapse only the oldest end at a restart, and one health number (re-processed tokens per act against appended tokens, healthy ~1:1). Every regression of this kind broke rule 2; the table names four (10-19 results ring, 10-24 notices and kanban, 10-27 room updates at 12:1, #5526). Architecture work on the engine's memory is measured against the clean 1:1 baseline. CLAUDE.md's stop-section for anything a mind perceives carries the one-paragraph form. 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
Oct 27, 2026
…re-prefill per appended token MIND-CONTEXT-AND-ENGINE-CONFIG.md's governing law (a context is a FIFO, #5529) judges every change to what a mind perceives by the tokens the engine prefills per act over the tokens her prompt grew; healthy is about 1:1. Aris on 10-27 was 12:1 (12-13k prefilled while ~1k was appended). The column sums prefilled over grown across consecutive answered acts; an act whose prompt shrank (a turnover) has no append to measure against and is left out. Test: a_summary_states_its_shares_over_what_was_prefilled asserts 1:1 on a grown pair and leaves the shrunk act out. 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
Oct 29, 2026
…to the engine log and her view probes (#5511) * replay --acts: an act inspector, one row per request each resident sent, joined to the engine log and her view's probes Promotes tonight's throwaway glass-box scripts (breakdown, prefix_breaks, engine_join, prefix_owner, summ, ckpt_validator) into the replay example: per act, the engine's matched vs resumed position and checkpoint, prefill and decode, the prompt's tokens by layer (framing, tools, walls, conversation, views, recall, results whole/summary/collapsed, newest result, duplicates), where it diverged from her previous request, what she did (calls, read/write/shell/board/talk, repeats), and flags; a per-resident summary, a --compare before/after an instant, and --json. The capture loop the replay modes had inline moves to replay/captures.rs, the one reader both modes use (it skips rows outside the window before decoding them). The existing modes' output is unchanged (same numbers on Atlas's captures, old binary vs new). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Pin the engine's over-window refusal wording with a fixture row (Cormac on #5511) The refusal is parsed into Refusal { tokens, window } from the engine's own text, "request (N tokens) exceeds the slot's available context size (M tokens)", and the refused:over-window flag follows a successful parse rather than a substring match. A rewording now fails the_engine_refusal_wording_is_pinned instead of reading 0 tokens. The stated window also bounds the newest>window check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The act inspector's summary reports the context law's health number: re-prefill per appended token MIND-CONTEXT-AND-ENGINE-CONFIG.md's governing law (a context is a FIFO, #5529) judges every change to what a mind perceives by the tokens the engine prefills per act over the tokens her prompt grew; healthy is about 1:1. Aris on 10-27 was 12:1 (12-13k prefilled while ~1k was appended). The column sums prefilled over grown across consecutive answered acts; an act whose prompt shrank (a turnover) has no append to measure against and is left out. Test: a_summary_states_its_shares_over_what_was_prefilled asserts 1:1 on a grown pair and leaves the shrunk act out. 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 minds by making the rule every prompt regression broke explicit, with a number each change is judged by: plan line 2 (context as an epoch, reuse >= 80%) and goal 7.
Joel, 2026-10-27: "The linear nature of an LLM, fifo, makes it fairly obvious what kinds of memory and data architectures make the most sense during this period. Optimization is the difference between many minds and many slots and breakdowns."
MIND-CONTEXT-AND-ENGINE-CONFIG.md: new section ahead of the two faults: five rules, the ratio gate (re-processed per act vs appended, healthy ~1:1), and the four regressions that broke rule 2 (10-19, 10-24 x2, 10-27 What reaches her rooms during a drive arrives in her view once, not re-sent below every act #5526 at 12:1).CLAUDE.md: one paragraph in the stop-section for anything a mind perceives.Docs only. The ratio column in the act inspector follows in its own change once #5511 merges.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo