Skip to content

A context is a FIFO: the governing law of what a mind perceives, with its health number - #5529

Merged
joelteply merged 1 commit into
canaryfrom
fable/context-is-a-fifo
Oct 30, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/context-is-a-fifo

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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."

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

… 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]>
@joelteply
joelteply merged commit 1eecc1d into canary Oct 30, 2026
10 checks passed
@joelteply
joelteply deleted the fable/context-is-a-fifo branch October 30, 2026 23:17
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