v8.2 → v8.3
What changed from v8.2 to v8.3
From v8.2 (12 Oct) to v8.3 (12 Oct): 9,482 words to 9,478 words, 1,098 words in new or rewritten paragraphs and 1,102 taken out, 79 paragraphs changed.
Tightened further; more on the range read and on the testsAnother tightening pass, with the total length unchanged. Related work and several sections are shorter. The range read gets more detail, the list of tests that would settle the open questions grows, and the appendix on appending to the record is longer.
v8.2 · 12 October 2026v8.3 · 12 October 2026
··· 2 unchanged paragraphs folded ···
v8.2 · AbstractBut an agent reads only what fits in its context window. When it fills, a model usually summarises the old part, keeping the gist and dropping what a long job needs: exact strings, the cause of a failure, the attempt that failed, the owner's own words. Nothing in the window points to the full log, and often a provider does the compacting.
v8.3 · AbstractBut an agent reads only what fits in its context window. When it fills, a model usually summarises the old part, keeping the gist and dropping what a long job needs: exact strings, causes, failed attempts, the owner's own words. Nothing in the window points to the full log, and often a provider does the compacting.
v8.2 · AbstractWe propose Total Recall, a design for keeping, the first stage of an agent's memory. The session record is the ground truth and the context window a cache over it. Compaction, through the hooks of whoever controls the window, leaves a marker carrying the evicted range's address, its exact strings and the owner's instructions word for word.
v8.3 · AbstractWe propose Total Recall, a design for keeping, the first stage of an agent's memory. The session record is the ground truth and the context window a cache over it. Compaction, through the hooks of whoever controls the window, leaves a marker carrying the evicted range's address, its exact strings, budgeted verbatim instructions from the owner and addresses for the rest.
··· 9 unchanged paragraphs folded ···
v8.2 · 1.2 Why a bigger window does not settle itContext windows have grown to a million tokens, but models do not read long inputs evenly. Detail in the middle of a long context is used less well than detail at the start or end (Liu et al., 2024), and accuracy falls as input grows even on simple tasks (Hong et al., 2025). And a long-running agent fills any window: a day of tool output, file reads and logs runs to millions of tokens. So compaction stays, and the question is what it should leave behind.
v8.3 · 1.2 Why a bigger window does not settle itContext windows have grown to a million tokens, but models do not read long inputs evenly. Detail in the middle of a long context is used less well than detail at the start or end (Liu et al., 2024), and accuracy falls as input grows even on simple tasks (Hong et al., 2025). A day of tool output, file reads and logs can also outrun any window. So compaction stays, and the question is what it should leave behind.
··· 3 unchanged paragraphs folded ···
v8.2 · 1.3 What summaries loseA fifth kind matters more: the owner's own words. An instruction or a correction given during the session is the one thing the owner expects never to repeat, and in a summary it becomes "the user gave some guidance", or vanishes. Repeated compaction makes this worse: when each summary is written from the previous one, detail erodes at every round, which Zhang et al. (2025) call "context collapse".
v8.3 · 1.3 What summaries loseA fifth kind matters more: the owner's own words. An instruction or a correction is the one thing the owner expects never to repeat, and in a summary it becomes "the user gave some guidance", or vanishes. Repeated compaction makes this worse: each summary written from the previous one loses detail again, which Zhang et al. (2025) call "context collapse".
··· 1 unchanged paragraph folded ···
v8.2 · 1.4 Who holds the penIn many deployments the agent's runtime does not control the context window. A provider's command-line agent decides when to compact and writes the summary itself. A provider's API may clear old tool results before the model reads them, or compact on its servers partway through a response. A memory layer that assumes it builds every model call will compact its own copy of the conversation while the model goes on reading the provider's version, and nothing the model sees changes.
v8.3 · 1.4 Who holds the penIn many deployments the agent's runtime does not control the context window. A provider's command-line agent decides when to compact and writes the summary itself; a provider's API may clear old tool results, or compact on its servers partway through a response. A memory layer that assumes it builds every model call will compact its own copy of the conversation while the model goes on reading the provider's version, and nothing the model sees changes.
··· 2 unchanged paragraphs folded ···
v8.2 · 1.5 The claim**The context window is a cache over the session record, and compaction is eviction from that cache, not a rewrite of history.** The record keeps every turn word for word and is never edited, except for privacy erasure (§4.4). What leaves the window is replaced by a marker that carries the evicted range's exact strings and the owner's instructions and points back into the record. The design has four parts: the record (§4), the marker (§5), one adapter contract for every kind of window controller (§6, Appendix C) and a price for compaction (§7); §10 names the tests that decide it.
v8.3 · 1.5 The claim**The context window is a cache over the session record, and compaction is eviction from that cache, not a rewrite of history.** The record keeps every turn word for word and is never edited, except for privacy erasure (§4.4). What leaves the window is replaced by a marker that carries the evicted range's exact strings, the owner's instructions within a budget (an address for any beyond it, §5.5) and a pointer back into the record. The design has four parts: the record (§4), the marker (§5), one adapter contract for every window controller (§6) and a price for compaction (§7); §10 names the tests.
v8.2 · 1.5 The claimThe codename, ENGRAM, is the neuroscientists' word for the physical trace a memory leaves in the brain: a durable trace that outlives the moment. This is one of four designs for one agent's memory: keeping (this paper, J1), writing what becomes a long-term fact (the writing paper, J14), finding it again (the finding paper, J2) and turning experience into behaviour (the learning paper, J5). The series follows one owner correction through all four on a shared reference trace, printed in the learning paper (J5 Appendix B, the reference trace); this stage owns its first status, *captured* (§4.6).
v8.3 · 1.5 The claimThe codename, ENGRAM, is the neuroscientists' word for the trace a memory leaves in the brain. This is one of four designs for one agent's memory: keeping (this paper, J1), writing what becomes a long-term fact (the writing paper, J14), finding it again (the finding paper, J2) and turning experience into behaviour (the learning paper, J5). The series follows one owner correction through all four on a shared reference trace and its transitions (J5 Appendix B); this stage owns the first status, *captured* (§4.6).
··· 2 unchanged paragraphs folded ···
v8.2 · 2. Related Work**MemGPT and Letta** (Packer et al., 2023) treat the context window like a computer's main memory and let the model page information in and out through function calls, with the full message history kept in a searchable recall store. Total Recall keeps the hierarchy and the full history. It differs on who decides: eviction is the window controller's decision (§6), so the model spends no attention on managing its own pages, and the marker carries the exact strings a later search needs (§5.1).
v8.3 · 2. Related Work**MemGPT and Letta** (Packer et al., 2023) treat the context window like main memory and let the model page information in and out through function calls, with the full history in a searchable recall store. Total Recall keeps the hierarchy and the full history. It differs on who decides: eviction is the window controller's decision (§6), so the model spends no attention on its own pages, and the marker carries the exact strings a later search needs (§5.1).
v8.2 · 2. Related Work**Provider context management** makes the provider a window controller. Anthropic's context editing clears the oldest tool results once the prompt passes a threshold and leaves a placeholder; the caller can name tools whose results are never cleared and a minimum amount to clear, because each clearing invalidates the cached prefix, and the client keeps the full history (Anthropic, 2026d). Its threshold compaction has the model summarise older turns partway through a request and then continue the response, unless the caller asks it to pause after the summary (Anthropic, 2026a). OpenAI's compaction also prunes context and continues inference in the same response, carrying prior state forward in an item that is opaque and not meant to be read (OpenAI, 2026). So the history is often kept, but what the next inference sees is a placeholder or a summary with no address for the missing part. Our marker (§5.1) is that placeholder with the address and the exact strings added, and the main test (T1, §10) gives both the same way back into the history.
v8.3 · 2. Related Work**Provider context management** makes the provider a window controller. Anthropic's context editing clears the oldest tool results past a threshold and leaves a placeholder; the caller can protect named tools and set a minimum to clear, since each clearing invalidates the cached prefix, and the client keeps the full history (Anthropic, 2026d). Its compaction runs on demand, where the caller requests the summary and swaps it in, optionally keeping recent turns word for word (Anthropic, 2026e), or at a token threshold, where the model summarises older turns inside the request and continues the response unless the caller asks it to pause (Anthropic, 2026a). OpenAI's compaction also prunes context and continues inference in the same response, carrying prior state in an item that is opaque and not meant to be read (OpenAI, 2026). So the history is often kept, but the next inference can see a placeholder or a summary with no address for the missing part. Our marker (§5.1) adds the address and the exact strings, and the main test (test 1, §10) gives both the same way back.
v8.2 · 2. Related Work**Claude Code's hooks** (Anthropic, 2026b) are the levers a memory layer has when a provider's tool controls the window: an event before compaction that can block it, an event after it that receives the summary the tool wrote, a session-start event after a compaction that adds text to the new context, and an event on every prompt that adds text alongside it. **claude-mem** (thedotmack, 2026) uses hooks of the same family to capture what an agent does, compresses it with a model and injects relevant context into later sessions. Its memory is the compressed observation; ours is the record itself, with compression only as a map that points back into it (§6.3).
removed in v8.3
v8.2 · 2. Related Work**Manus** (Ji, 2025) reports a production agent's lessons: compress only in ways that can be restored (drop a page's content, keep its URL), keep the prompt prefix stable because the cache hit rate drives cost, keep the context append-only, and leave failed attempts in view. Total Recall takes "restorable" from tool outputs to the whole conversation and puts a price on moving the prefix (§7.2). **headroom** (Headroom Labs, 2026) compresses what an agent reads before the model sees it, stores the originals locally and gives the model a tool to fetch them. It keeps a smaller version in the window; we remove the span and leave a pointer. The two compose, and §7.2 says when each is cheaper.
v8.3 · 2. Related Work**claude-mem** (thedotmack, 2026) uses hooks of the family §6.3 relies on (Anthropic, 2026b) to capture what an agent does, compress it with a model and inject it into later sessions; its memory is the compressed observation, ours the record itself, with compression only as a map back. **Manus** (Ji, 2025) compresses only in restorable ways (drop a page's content, keep its URL), keeps the prompt prefix stable because cache hits drive cost and leaves failed attempts in view; Total Recall extends "restorable" to the whole conversation and prices moving the prefix (§7.2). **headroom** (Headroom Labs, 2026) compresses what an agent reads and gives the model a tool to fetch the originals; it keeps a smaller version in the window, we remove the span and leave a pointer.
v8.2 · 2. Related Work**Agentic Context Engineering** (Zhang et al., 2025) shows brevity bias, where summaries drop domain detail, and context collapse; our cure for collapse is that every marker is written from the record (§5.4). **Zep** (Rasmussen et al., 2025) keeps raw conversation episodes beneath the facts it extracts, so every fact points back to its source; Total Recall applies the same layering to the context window.
v8.3 · 2. Related Work**Agentic Context Engineering** (Zhang et al., 2025) shows brevity bias and context collapse; our cure for collapse is that every marker is written from the record (§5.4). **Zep** (Rasmussen et al., 2025) keeps raw conversation episodes beneath the facts it extracts; Total Recall applies the same layering to the context window.
v8.2 · 2. Related WorkTwo older ideas frame the rest. Belady (1966) showed that the best page to evict is the one needed furthest in the future; no runtime knows that, so §5.3 uses what is cheapest to recover as the proxy. And the prompt cache prices every edit to the prefix (Anthropic, 2026c), which turns "when to compact" into arithmetic (§7.2). Each part of our design has close relatives here; we claim the combination and the contract.
v8.3 · 2. Related WorkTwo older ideas frame the rest. Belady (1966) showed that the best page to evict is the one needed furthest ahead; no runtime knows that, so §5.3 uses what is cheapest to recover as the proxy. And the prompt cache prices every edit to the prefix (Anthropic, 2026c), which turns "when to compact" into arithmetic (§7.2). Each part of our design has close relatives here; we claim the combination and the contract.
v8.2 · 2. Related Work{width=74%}
v8.3 · 2. Related Work{width=74%}
··· 2 unchanged paragraphs folded ···
v8.2 · 3. One Span, Start to FinishFigure 1 follows the afternoon of §1.1 through the design. Every turn is appended to the session record with an address that never changes, and the context window is a copy of part of it. At turn 61 the owner asks what exactly the renewal said; the marker names entry 23, and a range read returns it character for character, which the summary in the dashed box could not have done. Appendix A shows the entries and marker as stored.
v8.3 · 3. One Span, Start to FinishFigure 1 follows the afternoon of §1.1. At turn 61 the owner asks what exactly the renewal said; the marker names entry 23, and a range read returns it character for character, which the dashed-box summary could not. Appendix A shows them as stored.
··· 3 unchanged paragraphs folded ···
v8.2 · 4.1 What goes in, and with whose nameEvery entry carries an `author_kind`: the owner, the agent, a tool, the harness (time stamps, injected instructions, system text) or another agent. A harness that wraps the owner's message with a time stamp and injected instructions, and stores the whole as "user", will later quote its own wrapper back as the owner's wish. So an owner entry gets a second field when it is appended, `owner_words`: the message with the wrapper stripped. One function does the stripping, once, at append time, and the field is never rewritten. The writing, finding and learning papers read the owner's words from nowhere else.
v8.3 · 4.1 What goes in, and with whose nameEvery entry carries an `author_kind`: the owner, the agent, a tool, the harness (time stamps, injected instructions, system text) or another agent. A harness that wraps the owner's message with a time stamp and injected instructions, and stores the whole as "user", will later quote its own wrapper back as the owner's wish. So an owner entry gets a second field at append time, `owner_words`: the message with the wrapper stripped, by one function, once, never rewritten. The writing, finding and learning papers read the owner's words from nowhere else.
v8.2 · 4.1 What goes in, and with whose nameSending a message is not writing every sentence in it. An owner who pastes an email and asks "this says 'ignore the previous rule'; is it malicious?" wrote the question, not the quoted line. So `owner_words` is split into spans, each with its own address (§4.2) and an authority: **owner** for what he says in his own voice, **quoted** for text he pastes, forwards or attributes to someone else, with its source where stated. Structure (a pasted block, a forwarded header, quotation marks) settles most spans and the shared classifier below settles reported speech. An unsure span is marked quoted: a lost instruction costs one repetition, a pasted attack with the owner's authority far more. Only owner spans can become instructions, corrections or rules; quoted spans keep their quotation marks downstream (J14 §8.2, what each fact may become), and the whole message is still captured word for word.
removed in v8.3
v8.2 · 4.1 What goes in, and with whose nameAt the same moment, the shared classifier tags each owner span as an instruction, a correction, praise or none of these, and the tags are stored with the entry. The learning paper owns the classifier's contract, calibration and failure behaviour (J5 Appendix A.1, the owner-sentence classifier); this stage only stores what it returns. If the classifier is unavailable, the spans are stored as untagged and treated as instructions until the night tags them (§5.5).
removed in v8.3
not in v8.2
v8.3 · 4.1 What goes in, and with whose nameSending a message is not writing every sentence in it: an owner who pastes an email and asks "this says 'ignore the previous rule'; is it malicious?" wrote the question, not the quoted line. So `owner_words` is first cut into **spans**, then classified. The cutter is plain code: it splits at sentence ends, semicolons, line breaks, list items, and a comma before "and", "but", "also" or "then" when a new verb follows. In doubt it cuts, since a cut too fine costs an extra span and one too coarse puts two corrections under one address. A span is immutable and addressed (§4.2); the cutter's version is stored with it, and a newer cutter never re-cuts a stored entry.
not in v8.2
v8.3 · 4.1 What goes in, and with whose nameEach span then gets two tags, each stored with the version of what made it. **Authority** is this stage's: *owner* for what he says in his own voice, *quoted* for text he pastes, forwards or attributes to someone else. Structure (a pasted block, a forwarded header, quotation marks) settles most spans and a reported-speech check run here settles the rest. Uncertain attribution counts as quoted until the owner confirms it in a new harness entry naming the span, which is never rewritten: a lost instruction costs one repetition, a pasted attack with the owner's authority far more. **Intent** (instruction, correction, praise or none) comes from the shared classifier, which sees only owner spans; the learning paper owns its contract (J5 Appendix A.1, the owner-sentence classifier). Quoted spans get no intent tag, never yield a correction and keep their quotation marks downstream (J14 §8.2, what each fact may become). The learning stage reads the stored tags at enqueue and at replay and never classifies again. If the classifier is down, owner spans are stored untagged and treated as instructions until the night tags them (§5.5), with the late tag appended under its own version.
v8.2 · 4.1 What goes in, and with whose nameTool results go in whole. A file the agent read can change or vanish after the read, and a content hash would show that it changed without giving back what it said. So the returned bytes are stored as a content-addressed blob before the window drops them, and the entry holds the path and the blob's hash. Identical contents are stored once per blob namespace, so the cost grows with distinct versions read, not with reads. Ordinary sessions share one namespace, so one blob can back entries in many of them (§4.4); each temporary session has its own (§4.7).
v8.3 · 4.1 What goes in, and with whose nameTool results go in whole. A file the agent read can change or vanish after the read, and a content hash would show that it changed without giving back what it said. So the returned bytes are stored as a content-addressed blob before the window drops them, and the entry holds the path and the blob's hash. Identical contents are stored once per blob namespace, so the cost grows with distinct versions read, not with reads. Ordinary sessions share one namespace, so one blob can back entries in many of them (§4.4); each temporary session has its own (§4.7). A namespace comes from the authenticated session, never from a name in a request or a tool argument.
··· 1 unchanged paragraph folded ···
v8.2 · 4.2 Addresses that never moveEach entry gets an address made of the session and a sequence number (s7#12), and a span of an owner entry adds its index (s7#12/0). A range is the session and two numbers. Addresses are assigned once, at append, and never reused or renumbered, so a pointer written today still resolves next month. The learning paper's correction ID is a span address, so one message can carry several corrections.
v8.3 · 4.2 Addresses that never moveEach entry gets an address made of the session and a sequence number (s7#12), and a span of an owner entry adds its index (s7#12/0). A range is the session and two numbers. Addresses are assigned once, at append, and never reused or renumbered, so a pointer written today still resolves next month. The learning paper's correction ID is a span address, so one message carries several.
··· 1 unchanged paragraph folded ···
v8.2 · 4.3 Never edited, never supersededThe record is append-only. No compaction or clean-up edits or deletes an entry, and the record has no supersede: a turn that was said stays said, even after what it said stops being true. Facts change one stage later, as new revisions (J14 §7.3, three ways a fact ends), and the record entry a fact was drawn from is not touched. What a default search hides is the finding paper's call (J2 §8.1, filters in a fixed order).
v8.3 · 4.3 Never edited, never supersededThe record is append-only. No compaction or clean-up edits or deletes an entry, and the record has no supersede: a turn that was said stays said, even after what it said stops being true. Facts change one stage later, as new revisions (J14 §7.3, three ways a fact ends); the record entry a fact was drawn from is not touched. What a default search hides is the finding paper's call (J2 §8.1, filters in a fixed order).
··· 1 unchanged paragraph folded ···
v8.2 · 4.4 Erase and quarantineThe writing paper decides when an erase or a quarantine applies and runs the deletion manifest over everything derived (J14 §7.7, erase and quarantine); this section says how each looks in the record.
v8.3 · 4.4 Erase and quarantineThe writing paper decides when an erase or a quarantine applies and runs the deletion manifest over everything derived (J14 §7.7, erase and quarantine); this section says how each looks in the record. Either one raises an erasure epoch first, and this stage serves no read until it has applied it (§8.1).
v8.2 · 4.4 Erase and quarantine**Erase** is for privacy. The entry, or only the spans the erase names, is redacted, the one edit the record allows. Address, author and time stay; the text, `owner_words`, tags and any blob are replaced by a tombstone that says content was removed, when, why, and under which deletion receipt. The tombstone holds no part of the content, not even a hash, because the hash of a short string such as a phone number can be confirmed by guessing. A blob is shared by every read in its namespace that returned the same bytes, so an erase that reaches a blob deletes it and tombstones every entry that references it. A harness entry records that something left, and when. Everything derived is rebuilt from the redacted record: the text index drops the rows, every marker whose range covers it is written again (§5.4), and the copies the runtime handed the controller (markers, per-turn injections, the learning stage's provisional lines) are redacted in the controller's transcript. Trace step 11 shows it on a two-correction message: span 0 erased, span 1 kept, every marker resolving, the live window rebuilt with an eviction event (§6.6), the provider's copy named.
v8.3 · 4.4 Erase and quarantine**Erase** is for privacy. The entry, or only the spans the erase names, is redacted, the one edit the record allows. Address, author and time stay; the text, `owner_words`, tags and any blob are replaced by a tombstone that says content was removed, when, why, and under which deletion receipt. It holds no part of the content, not even a hash: the hash of a short string such as a phone number can be guessed. A blob is shared by every read in its namespace that returned the same bytes, so erasing it tombstones every entry that references it. Everything derived is rebuilt from the redacted record: the text index drops the rows, every marker whose range covers it is written again (§5.4), and the copies the runtime handed the controller (markers, per-turn injections, the learning stage's provisional lines) are redacted in the controller's transcript. Trace step 11 shows it on a two-correction message: span 0 erased, span 1 kept, every marker resolving, the live window rebuilt (§6.6).
v8.2 · 4.4 Erase and quarantine**Quarantine** is for attack evidence: a line shown to have been injected. Nothing is edited; a harness entry flags the entry as untrusted, with the writing paper's decision. The content stays as evidence, but it leaves the window, every marker (rebuilt without it), ordinary range reads (which return a "quarantined" placeholder) and ordinary search; only an audit view shows it.
v8.3 · 4.4 Erase and quarantine**Quarantine** is for attack evidence: a line shown to have been injected. Nothing is edited; a harness entry flags the entry as untrusted, with the writing paper's decision. The content stays as evidence, but it leaves every marker (rebuilt without it), ordinary range reads (which return a "quarantined" placeholder) and ordinary search; only an audit view shows it. It must also leave a window it has already entered, so the adapter invalidates the live window as it does for an erase (§6.6) and writes a receipt naming what it rebuilt and what it could not reach.
v8.2 · 4.4 Erase and quarantineEither way addresses do not move, so every pointer still resolves (§8). For an erase, this stage fills in its rows of the deletion manifest: the runtime's record entries, the controller's transcript, the blobs, the markers, and live sessions or provider state, reached through the adapter (§6.6). Each place is reported done, not present, or out of reach, and a copy out of reach is named; "all reachable copies removed" is the strongest claim this stage makes.
v8.3 · 4.4 Erase and quarantineEither way addresses do not move, so every pointer still resolves (§8). For an erase, this stage fills in its rows of the deletion manifest: record entries, the controller's transcript, blobs, markers, and live sessions or provider state (§6.6). Each place is reported done, not present, or out of reach (named); "all reachable copies removed" is the strongest claim this stage makes.
··· 1 unchanged paragraph folded ···
v8.2 · 4.5 One record, not copiesMost deployments already have a lossless record: the runtime writes a transcript of every session, and a provider's command-line tool writes its own. A third, partial copy would be worse than none, because a range read against it returns an answer that looks complete and is not. The record is therefore an index over the transcript the runtime already writes, plus the blob store; the memory layer writes entries of its own only where no readable transcript exists (§6.4), and for the markers and maps it derives.
v8.3 · 4.5 One record, not copiesMost deployments already have a lossless record: the runtime writes a transcript of every session, and a provider's command-line tool writes its own. A third, partial copy would be worse than none: a range read against it returns an answer that looks complete and is not. The record is therefore an index over the runtime's transcript plus the blob store; the memory layer writes entries of its own only where no readable transcript exists (§6.4), and for the markers and maps it derives.
v8.2 · 4.5 One record, not copiesWhere two transcripts exist for one session, the one the model read is the ground truth for what the model saw, and the runtime's is the ground truth for what the owner said. A sequence map pairs each runtime address with the controller's own entry ID (Appendix C).
v8.3 · 4.5 One record, not copiesWhere two transcripts exist for one session, the model's is the ground truth for what it saw, and the runtime's for what the owner said. A sequence map pairs each runtime address with the controller's own entry ID (Appendix C).
··· 1 unchanged paragraph folded ···
v8.2 · 4.6 When a turn is capturedAn owner turn is *captured* when its entry, with `owner_words`, its spans and their tags, is in the session record durably (written and flushed) and has its address. The runtime appends the turn from its own copy before the model call that answers it, so capture does not wait for a provider's transcript to catch up. In the reference trace this is step 1: one flush captures both corrections of one message, and if the process dies before the learning stage queues them, both are rebuilt from the record (step 2).
v8.3 · 4.6 When a turn is capturedAn owner turn is *captured* when its entry, with `owner_words`, its spans and their tags, is in the session record durably (written and flushed) and has its address. The runtime appends the turn from its own copy before the model call that answers it, so capture does not wait for a provider's transcript. In the reference trace this is step 1 (transition T1): one flush captures both corrections of one message, each an immutable span with its authority and intent tags and their classifier versions. If the process dies before the learning stage queues them, the restart rebuilds both queue events from the record, asking no classifier (step 2, transition T2).
v8.2 · 4.6 When a turn is capturedUntil then the turn is pending, and the agent says nothing about having kept it. If the append fails (a full disk, a crash), the harness shows the turn as not captured and retries from its in-memory copy. After a crash, the restart reconciles the record with the controller's transcript through the sequence map and appends what is missing in the controller's order. A turn that cannot be recovered from either side is reported as lost; it never reads as kept (T10, §10).
v8.3 · 4.6 When a turn is capturedUntil then the turn is pending, and the agent says nothing about keeping it. If the append fails (a full disk, a crash), the harness shows the turn as not captured and retries from its in-memory copy. After a crash, the restart reconciles the record with the controller's transcript through the sequence map and appends what is missing in the controller's order. A turn recoverable from neither side is reported as lost, never as kept (test 10, §10).
··· 2 unchanged paragraphs folded ···
v8.2 · 4.7 Sessions that are never keptA **temporary session** keeps its record only for its own life, since compaction and range reads inside it need it. Its record and blobs live in a namespace of their own, so it shares no blob with an ordinary session, even for the same file. The long-term stages skip it: no fact, no lasting index row, no learning evidence. At its end the namespace is deleted whole, with a receipt, and an ordinary session that read the same bytes keeps its own copy. Where the controller offers a no-retention setting, the adapter turns it on; otherwise the owner is told at the start that the provider keeps its own copy.
v8.3 · 4.7 Sessions that are never keptA **temporary session** keeps its record only for its own life, since compaction and range reads inside it need it. Its record and blobs live in a namespace shared with no ordinary session, even for the same file. The long-term stages skip it: no fact, no lasting index row, no learning evidence. At its end the namespace is deleted whole, with a receipt, and an ordinary session that read the same bytes keeps its own copy. Where the controller offers a no-retention setting, the adapter turns it on; otherwise the owner is told at the start that the provider keeps its own copy.
v8.2 · 4.7 Sessions that are never kept**Prohibited capture classes** are never written in any session: credentials and keys by default, plus any class the owner names. The detector sits on the runtime's one write path, which every copy the runtime persists passes through: its transcript writer, which the record indexes (§4.5), file bytes bound for the blob store, and text handed to a controller (injections, markers). A match becomes a typed placeholder (`[credential removed]`) before anything is written, and an altered blob is marked as such. Prohibited bytes are outside the verbatim guarantee; a range read returns the placeholder. Two copies lie beyond this path. A provider's tool keeps its own transcript, and blocking a prompt does not keep its text off the tool's disk (Anthropic, 2026b); the adapter replaces a match in a tool result before the tool's model reads it, through the hook after each tool call, redacts the tool's transcript at the next hook, and names any copy it cannot reach in a receipt. And the model may have read a value in the turn it arrived. A detector miss found later is handled as an erase (§4.4).
v8.3 · 4.7 Sessions that are never kept**Prohibited capture classes** are never written in any session: credentials and keys by default, plus any class the owner names. The detector sits on the runtime's one write path, which every copy the runtime persists passes through: its transcript writer (§4.5), file bytes bound for the blob store, and text handed to a controller (injections, markers). A match becomes a typed placeholder (`[credential removed]`) before anything is written, and an altered blob is marked as such. Prohibited bytes are outside the verbatim guarantee; a range read returns the placeholder. Two copies lie beyond this path. A provider's tool keeps its own transcript, and blocking a prompt does not keep its text off the tool's disk (Anthropic, 2026b): the adapter replaces a match in a tool result before the tool's model reads it, redacts the tool's transcript at the next hook, and names any copy it cannot reach in a receipt. And the model may have read a value in the turn it arrived. A detector miss found later is handled as an erase (§4.4).
··· 5 unchanged paragraphs folded ···
v8.2 · 5.1 The markerThere is no narrative in it. A sentence like "we made good progress on the setup" gives the model nothing to act on and nothing to search with, and it can be mistaken for a fact. Everything in a marker is a quote or a line that points at one. The exact strings serve two readers: the model, which can often act without pulling anything because the hash is right there, and a later search, which finds the span by the same strings the owner will use when he asks.
v8.3 · 5.1 The markerThere is no narrative in it. A sentence like "we made good progress on the setup" gives the model nothing to act on or search with, and can be mistaken for a fact. Everything in a marker is a quote or a line that points at one. The exact strings serve the model, which can often act without pulling anything because the hash is right there, and a later search, which finds the span by the strings the owner will use.
··· 2 unchanged paragraphs folded ···
v8.2 · 5.2 Word for word, one line, or a pointer| Content | Kept in the marker | Why | |------------------|-----------|---------------------| | Owner's instructions, preferences, corrections | word for word, within the budget of §5.5 | the owner should never have to say them twice; a paraphrase changes what was asked | | Exact strings (paths, hashes, hosts, errors, times) | word for word, capped by count | a paraphrase of a string is a different string | | Decisions, failed attempts, open items | one line each, with an address | the line says that it happened; the address gives how | | Agent's reasoning and replies | pointer only | the record holds them | | Tool output, file contents included | pointer only | the record holds it whole, files as blobs (§4.1) | | Harness text (time stamps, injected rules) | nothing | the harness injects it again; it is not memory |
v8.3 · 5.2 Word for word, one line, or a pointer| Content | Kept in the marker | Why | |------------------|-----------|---------------------| | Owner's instructions, preferences, corrections | word for word, within the budget of §5.5 | a paraphrase changes what was asked | | Exact strings (paths, hashes, hosts, errors, times) | word for word, capped by count | a paraphrase of a string is a different string | | Decisions, failed attempts, open items | one line each, with an address | the line says it happened; the address gives how | | Agent's reasoning and replies | pointer only | the record holds them | | Tool output, file contents included | pointer only | the record holds it whole, files as blobs (§4.1) | | Harness text (time stamps, injected rules) | nothing | the harness injects it again; it is not memory |
··· 3 unchanged paragraphs folded ···
v8.2 · 5.3 What leaves firstNever evicted: the system text, the always-loaded files and the current task's own short statement. Markers are not evicted either; they merge (§5.5). Within each class, older content leaves before newer, since recent content is the best available guess at what will be needed next. This is the practical stand-in for Belady's rule (§2): what costs least to get back, since no one knows what is needed furthest ahead. The selector chooses from the window as the model will read it on the next call, after any provider clearing, and reports what it evicted by class, adding up to the total removed.
v8.3 · 5.3 What leaves firstNever evicted: the system text, the always-loaded files and the current task's short statement. Markers merge instead (§5.5). Within each class, older content leaves first, since recent content is the best guess at what is needed next. The selector chooses from the window as the model will read it on the next call, after any provider clearing, and reports what it evicted by class, adding up to the total removed.
··· 4 unchanged paragraphs folded ···
v8.2 · 5.5 Merging markers, and the budget for the owner's words$B_o$ holds the instructions kept verbatim, at most $k$ pointer lines ($k$ fixed with $B_o$) and one directory line. Untagged spans count as instructions until the night tags them (J5 §6.2, the nightly auditor). When a new instruction does not fit, the oldest verbatim one becomes a pointer line: when it was said, its first words, its address. When one more pointer would pass $k$, all pointer lines fold into the directory line, "*N* earlier instructions, s7#12 to s7#311, are not shown one by one". It points at a directory entry appended to the record that lists every moved instruction with its address, so one range read returns them all. However long the session, the owner's instructions never take more than $B_o$ of the window. Each move is told to the owner in the next reply, with the warning that what moved is no longer individually in view, and listed in the receipt (§7.4).
v8.3 · 5.5 Merging markers, and the budget for the owner's words$B_o$ holds the instructions kept verbatim, at most $k$ pointer lines ($k$ fixed with $B_o$) and one directory line. Untagged spans count as instructions until the night tags them (J5 §6.2, the nightly auditor). When a new instruction does not fit, the oldest verbatim one becomes a pointer line: when it was said, its first words, its address. When one more pointer would pass $k$, all pointer lines fold into the directory line, "*N* earlier instructions, s7#12 to s7#311, are not shown one by one". It points at a directory entry appended to the record that lists every moved instruction with its address, read a page at a time: an expansion returns at most $D$ tokens of the list ($D$ is fixed with $B_o$) and the address to continue from, and a page is an ordinary tool result that §5.3 may evict again. Reading $N$ instructions of about $\ell$ tokens takes $\lceil N\ell/D\rceil$ pages; 300 instructions of 30 tokens at $D = 2{,}000$ are 9,000 tokens, five pages ($\ell$ is unmeasured). However long the session, the instructions never take more than $B_o$ of the window. Each move is told to the owner in the next reply, with the warning that what moved is no longer individually in view, and listed in the receipt (§7.4).
v8.2 · 5.5 Merging markers, and the budget for the owner's wordsSo the promise has two parts. Every instruction stays **recoverable** word for word through its address, for as long as the record lives and it has not been erased. It stays **in the window** word for word only while it fits, and when it leaves, the owner is told. An instruction the owner wants held beyond the session belongs in the always-loaded file, which the writing and learning papers admit (J14 §8.2, what each fact may become; J5 §7, keeping the always-loaded file honest).
v8.3 · 5.5 Merging markers, and the budget for the owner's wordsSo the promise has three parts. Every instruction stays **recoverable** word for word through its address, as long as the record lives and it has not been erased; that does not make them all loadable together, since a long directory is read a page at a time. It stays **in the window** word for word only while it fits, and when it leaves, the owner is told. An instruction the owner wants held beyond the session belongs in the always-loaded file (J14 §8.2, what each fact may become; J5 §7, keeping the always-loaded file honest).
··· 3 unchanged paragraphs folded ···
v8.2 · 6.1 Three window controllersThe window controller is whoever decides, on each call, what the model reads. There are three cases, shown in Figure 2, and one agent can move between them as it switches models or tools during a day:
v8.3 · 6.1 Three window controllersThe window controller is whoever decides, on each call, what the model reads. There are three cases, shown in Figure 2, and one agent can move between them as it switches models or tools:
v8.2 · 6.1 Three window controllers- The runtime builds every call to the model API from its own state. Compaction is the runtime's to do. - A provider's command-line tool keeps its own conversation, decides when to compact and writes the summary. The runtime sees what goes in and what comes out, but not every call the tool makes inside. - A provider's API takes the calls the runtime builds, then clears old tool results or compacts on its servers once a threshold is crossed.
v8.3 · 6.1 Three window controllers- The runtime builds every call to the model API from its own state. Compaction is the runtime's to do. - A provider's command-line tool keeps its own conversation, decides when to compact and writes the summary; the runtime sees what goes in and what comes out. - A provider's API takes the calls the runtime builds, then clears old tool results or compacts on its servers once a threshold is crossed.
v8.2 · 6.1 Three window controllers{width=86%}
v8.3 · 6.1 Three window controllers{width=86%}
··· 1 unchanged paragraph folded ···
v8.2 · 6.2 When the runtime controls the windowThis is the case §5 describes. The runtime chooses when to compact by the price rule of §7, evicts by the order of §5.3, builds the markers and places them where the evicted range was. It built the call, so it knows exactly what the model read.
v8.3 · 6.2 When the runtime controls the windowThis is the case §5 describes. The runtime chooses when to compact by the price rule of §7, evicts by the order of §5.3, builds the markers and places them where the evicted range was. It built the call, so it knows what the model read.
··· 2 unchanged paragraphs folded ···
v8.2 · 6.3 When a provider's tool controls the window- Before compaction. The hook makes the record complete up to this moment, reading the tool's own transcript where needed. The hooks do not say which part the tool will summarise, so the adapter takes everything since the previous compaction (or the session start) as the range and builds markers from the record; a marker for a turn the tool keeps verbatim costs a few tokens. The pending markers are written durably before the hook returns. The hook could block the compaction, but when the tool compacts to recover from a full window, blocking fails the request, so the default is to let it run. - After compaction. The event after compaction hands the hook the summary the tool wrote, which the adapter stores as a harness entry. The session-start event that follows a compaction adds text to the new context before the next model call, and the adapter adds the markers there, beside the tool's summary. - Every turn. Text injected with each prompt reaches the tool's model, so the finding paper's push works here as anywhere else, and a marker whose delivery failed is sent again this way.
v8.3 · 6.3 When a provider's tool controls the window- Before compaction. The hook makes the record complete up to this moment, reading the tool's own transcript where needed. It does not say which part the tool will summarise, so the adapter takes everything since the previous compaction (or the session start) as the range and builds markers from the record; a marker for a turn the tool keeps verbatim costs a few tokens. The pending markers are written durably before the hook returns. The hook could block the compaction, but when the tool compacts to recover from a full window blocking fails the request, so the default is to let it run.
··· 2 unchanged paragraphs folded ···
v8.2 · 6.4 When a provider's API controls part of the windowHere the runtime builds every call, but the API may change the conversation after it is sent. Three moves cover it. First, the runtime keeps its own record of everything it sent and everything that came back; after a server-side compaction this may be the only readable copy, and when the compacted state is opaque it certainly is. Second, it uses the API's own controls to protect what must stay: it names the tools whose results must never be cleared and sets a minimum amount to clear, so a small clearing does not break the cache for a small gain.
v8.3 · 6.4 When a provider's API controls part of the windowHere the runtime builds every call, but the API may change the conversation after it is sent. Three moves cover it. First, the runtime keeps its own record of everything it sent and received; after a server-side compaction this may be the only readable copy, and with opaque compacted state it certainly is. Second, it uses the API's own controls to protect what must stay: it names the tools whose results are never cleared and sets a minimum to clear, so a small clearing does not break the cache for a small gain.
v8.2 · 6.4 When a provider's API controls part of the windowThird, it promises only what it can deliver. A threshold compaction runs inside a request, and the model may go on answering from the compacted context in the same response (Anthropic, 2026a; OpenAI, 2026). The runtime places markers only in requests it builds, so the guarantee is delivery before the next client-controlled request. Where the API can pause after its summary, the adapter takes the pause and adds the markers, so the first inference after compaction has them; where it cannot, the rest of that response is recorded in the receipt as unprotected. Markers go in the same place every time, so the prefix stays stable.
v8.3 · 6.4 When a provider's API controls part of the windowThird, it promises only what it can deliver. A threshold compaction runs inside a request, and the model may go on answering from the compacted context in the same response (Anthropic, 2026a; OpenAI, 2026). The runtime places markers only in requests it builds, so the guarantee is delivery before the next client-controlled request. Where the API can pause after its summary, the adapter takes the pause and adds the markers, so the first inference after compaction has them; where it cannot, the rest of that response is recorded in the receipt as unprotected.
··· 1 unchanged paragraph folded ···
v8.2 · 6.5 Never compact a copy nobody readsIn the provider-tool case the runtime never compacts its mirror of the conversation, which would cost time and change nothing the model reads (§1.4). It writes a receipt for each of the tool's compactions (§7.4) and builds markers for them (§6.3); a compaction is counted only when it changed what the model reads.
v8.3 · 6.5 Never compact a copy nobody readsIn the provider-tool case the runtime never compacts its mirror of the conversation: it would cost time and change nothing the model reads (§1.4). It writes a receipt for each of the tool's compactions (§7.4) and builds markers for them (§6.3); a compaction is counted only when it changed what the model reads.
··· 1 unchanged paragraph folded ···
v8.2 · 6.6 The adapter contractAll three paths share one versioned contract, given in full in Appendix C. Each adapter declares its controller's capabilities and re-detects them when the model or tool changes; a capability it cannot confirm counts as absent. Each compaction moves through durable pending states (detected, flushed, markers built, injected, delivered, closed), each appended to the record before the next step starts, so a crash between hooks resumes where it stopped. A marker counts as delivered when its ID appears in a call the runtime sent or in the tool's transcript; until then its range is not treated as in view, the per-turn injection sends it again, and the receipt counts the turns run without it.
v8.3 · 6.6 The adapter contractAll three paths share one versioned contract (Appendix C): each adapter declares its controller's capabilities, counts one it cannot confirm as absent, and moves each compaction through durable pending states, each appended to the record before the next step starts, so a crash resumes where it stopped. A marker counts as delivered when its ID appears in a call the runtime sent or in the tool's transcript; until then its range is not treated as in view, the per-turn injection sends it again, and the receipt counts the turns run without it.
v8.2 · 6.6 The adapter contractEvery receipt carries one of two knowledge levels. **Known input**: the runtime built the call, so it knows what the model read. **Sent, unconfirmed**: a tool or an API stands between, so the memory layer knows what it sent (and, for a tool, the summary the tool wrote), not what the model kept. No claim about the model's view goes beyond that level, and the learning stage never treats a sent-but-unconfirmed rule as one the model saw (J5 §5.4, when a rule recurs, ask why before climbing).
v8.3 · 6.6 The adapter contractEvery receipt carries one of two knowledge levels. **Known input**: the runtime built the call, so it knows what the model read. **Sent, unconfirmed**: a tool or an API stands between, so the memory layer knows what it sent (for a tool, also the summary the tool wrote), not what the model kept. No claim about the model's view goes beyond that level, and the learning stage never treats a sent-but-unconfirmed rule as one the model saw (J5 §5.4, when a rule recurs, ask why before climbing).
v8.2 · 6.6 The adapter contractThe adapter also serves two other stages. Its compaction receipts are published as eviction events for the finding paper's read ledger (J2 §6.7, what the context already holds). Where residency is unknown, after any compaction by a tool or an API, the event covers everything sent before it, not only the inferred range, since an unannounced summary may also have dropped what an earlier one kept; the read ledger forgets all of it. And an erase that reaches a live session goes through the adapter: the runtime rebuilds its window without the content; for a tool or an API the adapter ends or compacts the live session, uses the controller's deletion control where one exists, and otherwise reports the copy as out of reach (J14 §7.7, erase and quarantine).
v8.3 · 6.6 The adapter contractThe adapter serves two other stages. Its compaction receipts, and the window rebuilt after an erase or a quarantine, are published as eviction events (transition T16) for the finding paper's read ledger (J2 §6.7, what the context already holds). And an erase or a quarantine that reaches a live session goes through the adapter, with a receipt: the runtime rebuilds its window without it; for a tool or an API the adapter ends or compacts the live session, uses the controller's deletion control where one exists, and otherwise reports the copy as out of reach. A quarantine promises that the content is absent from every call the runtime builds after the receipt, and from a tool's or an API's context only where the session was ended or compacted (transition T22; J14 §7.7, erase and quarantine).
··· 3 unchanged paragraphs folded ···
v8.2 · 7.1 Forced and electiveA compaction is forced when the next call would not fit the window: there is no choice about whether, only about what to evict (§5.3) and what to leave (§5.1). It is elective when the window still has room but keeping a span costs more than evicting it, or when a smaller window would be read better (§1.2). The price matters for elective compaction, because it is the one we can decline.
v8.3 · 7.1 Forced and electiveA compaction is forced when the next call would not fit the window: there is no choice about whether, only about what to evict (§5.3) and what to leave (§5.1). It is elective when the window has room but keeping a span costs more than evicting it, or a smaller window would be read better (§1.2); only an elective compaction can be declined on price.
··· 2 unchanged paragraphs folded ···
v8.2 · 7.2 The price of moving the prefixWe use the finding paper's notation and prices (J2 §7.1, a read costs a turn): a cache read costs $r$, a cache write $w$ and an output token $g$, as multiples of the base input price. Let the span have $S$ tokens, the marker $m$ tokens, and let $A$ tokens follow the span in the window. Let $q_{\text{turn}}$ be the probability that a given later turn of the same session pulls from the evicted span (horizon: one later turn; the finding paper's $q$ has the rest of the session as its horizon). A pull is a full turn and costs the finding paper's $C_{\text{pull}} = rL + wx + g\,o$: it re-reads the $L$ tokens of cached context, writes the $x$ tokens it returns and produces $o$ output tokens. Here the returned slice then stays in the window for $H$ turns until it is evicted again, so a pull from an evicted span costs
v8.3 · 7.2 The price of moving the prefixWe use the finding paper's notation and prices (J2 §7.1, a read costs a turn): a cache read costs $r$, a cache write $w$ and an output token $g$, as multiples of the base input price. Let the span have $S$ tokens, the marker $m$ tokens, and let $A$ tokens follow the span in the window. Let $q_{\text{turn}}$ be the probability that a given later turn of the same session pulls from the evicted span (horizon: one later turn; the finding paper's $q$ has the rest of the session as its horizon). A pull is a full turn and costs the finding paper's $C_{\text{pull}} = rL + wx + g\,o$: it re-reads the $L$ tokens of cached context, writes the $x \ll S$ tokens it returns and produces $o$ output tokens. The returned slice then stays in the window for $H$ turns until it is evicted again, so a pull from an evicted span costs
··· 1 unchanged paragraph folded ···
v8.2 · 7.2 The price of moving the prefixThe added term makes the residency assumption explicit: a pull returns a slice of the span ($x \ll S$), resident until the next eviction.
removed in v8.3
··· 3 unchanged paragraphs folded ···
v8.2 · 7.2 The price of moving the prefixThe first term of the numerator is the one-time rewrite of everything after the span: the finding paper's suffix-rewrite term $\Delta C = (w - r)(L - P)$ (J2 §7.4, where it goes) with $P$ at the start of the span, so $L - P = m + A$, paid once here instead of on every turn. The denominator is the per-turn saving net of expected pulls. When $q_{\text{turn}}\, C_{\text{pull}}^{H} \ge (S-m)\,r$, it is not positive and an elective eviction never pays: the span is read back too often and should stay, or be compressed in place.
v8.3 · 7.2 The price of moving the prefixThe first term of the numerator is the one-time rewrite of everything after the span: the finding paper's suffix-rewrite term $\Delta C = (w - r)(L - P)$ (J2 §7.4, where it goes) with $L - P = m + A$, paid once here instead of on every turn. The denominator is the per-turn saving net of expected pulls. When $q_{\text{turn}}\, C_{\text{pull}}^{H} \ge (S-m)\,r$ it is not positive and an elective eviction never pays: the span is read back too often and should stay, or be compressed in place.
v8.2 · 7.2 The price of moving the prefix{width=72%}
v8.3 · 7.2 The price of moving the prefix{width=72%}
v8.2 · 7.2 The price of moving the prefixFigure 3 is an illustration, not a rule, since $q_{\text{turn}}$, $H$ and $c$ are unmeasured. In it, a 40K-token span pays back after about 40 turns if it is never pulled, of which about 10 are the cost of building its marker; after about 57 turns if a later turn pulls from it with probability 0.05; and never if that probability exceeds about 0.17. A 100K-token span pays back after about 22 turns. A 10K-token span needs about 131 turns with no pulls and never pays above a probability of 0.04. Cheaper cache reads make eviction pay later: at a read price of 0.05 the 40K span needs about 82 turns.
v8.3 · 7.2 The price of moving the prefixFigure 3 is an illustration, since $q_{\text{turn}}$, $H$ and $c$ are unmeasured. In it, a 40K-token span pays back after about 40 turns if never pulled (about 10 of them the cost of building its marker), after about 57 if a later turn pulls from it with probability 0.05, and never above about 0.17. A 100K-token span pays back after about 22 turns; a 10K-token span needs about 131 and never pays above 0.04. At a read price of 0.05 the 40K span needs about 82 turns.
v8.2 · 7.2 The price of moving the prefixThree design rules hold whatever the numbers: evict large spans at once, since the rewrite is paid per eviction and the saving grows with the span; prefer spans that are large and rarely pulled, which §5.3's order selects; and keep markers at a stable place, so the next eviction does not move them and pay the rewrite again. One benefit is left out: a shorter window is read better (§1.2); it is real but unpriced, so T7 tests it instead of the formula guessing it.
v8.3 · 7.2 The price of moving the prefixThree design rules hold whatever the numbers: evict large spans at once, since the rewrite is paid per eviction and the saving grows with the span; prefer spans that are large and rarely pulled, which §5.3's order selects; and keep markers at a stable place, so the next eviction does not pay the rewrite again. The benefit of a shorter window (§1.2) is unpriced; test 7 measures it.
··· 1 unchanged paragraph folded ···
v8.2 · 7.3 A trigger you can trustEvery compaction decision starts from one number: how full the window is. That number must come from the call actually sent. A usage figure that sums several internal calls of one turn can be many times the window and will fire compaction far too early; a figure that misses a block of the prompt, because the counter does not recognise that block's role, will fire it too late.
v8.3 · 7.3 A trigger you can trustEvery compaction decision starts from one number: how full the window is, taken from the call actually sent. A figure that sums several internal calls of one turn can be many times the window and fires compaction far too early; one that misses a block of the prompt fires it too late.
v8.2 · 7.3 A trigger you can trustSo the trigger reads a per-call breakdown: the blocks of the prompt, each attributed to a kind (system text, always-loaded files, tool schemas, history, markers, tool results, the new message), plus a slice for anything it could not attribute. The slices must add up, within the tokenizer's tolerance, to the input count the provider reports for that call. Unattributed content is an error that is reported, never a zero that is assumed. A breakdown that does not add up blocks elective compaction; forced compaction still runs, because the provider will reject a call that does not fit whatever our counter believes. A guard against thrashing completes the trigger: an elective compaction does not run again until the window has grown by at least the amount the last one freed.
v8.3 · 7.3 A trigger you can trustSo the trigger reads a per-call breakdown: the blocks of the prompt, each attributed to a kind (system text, always-loaded files, tool schemas, history, markers, tool results, the new message), plus a slice for anything it could not attribute. The slices must add up, within the tokenizer's tolerance, to the input count the provider reports. Unattributed content is an error that is reported, never a zero that is assumed. A breakdown that does not add up blocks elective compaction; forced compaction still runs, because the provider rejects a call that does not fit whatever our counter believes. An elective compaction does not run again until the window has grown by at least what the last one freed.
··· 1 unchanged paragraph folded ···
v8.2 · 7.4 One compaction receipt per compaction, whoever ran itEvery compaction, by every executor, writes one receipt, and so does a decision not to compact, under the series rule that a missing receipt is the alarm (J5 §9.1, a receipt for every run, and a zero means zero). The receipt is also the eviction event of §6.6, and its evicted field lists cleared tool results as well as marker ranges, since an API's clearing leaves no marker.
v8.3 · 7.4 One compaction receipt per compaction, whoever ran itEvery compaction, by every executor, writes one receipt, and so does a decision not to compact: a missing receipt is the alarm (J5 §9.1, a receipt for every run, and a zero means zero). The receipt is also the eviction event of §6.6, and its evicted field lists cleared tool results as well as marker ranges, since an API's clearing leaves no marker.
v8.2 · 7.4 One compaction receipt per compaction, whoever ran it| Field | Meaning | |-----------|---------------------| | session, started, ended | which session, and when | | executor, controller case | runtime, provider tool or provider API; the §6 case | | kind, decision | forced, elective or none; ran, declined on price, blocked on call breakdown, did not run | | call breakdown | attributed slices, unattributed slice, provider-reported input count | | tokens before and after | as measured on the call before and the call after | | evicted | each evicted record range, with path, region and blob hash of every file read in it; each tool result an API cleared; after a tool or API compaction, everything sent before it, as residency unknown | | markers | IDs and ranges written; whether each resolved and was delivered | | instructions moved | owner instructions moved to pointers or the directory (§5.5) | | knowledge level, fallbacks | known input or sent, unconfirmed (§6.6); each degraded path used; any inference run unprotected (§6.4) | | outcome | completed, failed (with reason), interrupted |
v8.3 · 7.4 One compaction receipt per compaction, whoever ran it| Field | Meaning | |-----------|---------------------| | session, started, ended | which session, and when | | executor, controller case | runtime, provider tool or provider API; the §6 case | | kind, decision | forced, elective or none; ran, declined on price, blocked on breakdown, did not run | | call breakdown | attributed slices, unattributed slice, provider-reported input count | | tokens before and after | as measured on the call before and the call after | | evicted | each evicted record range, with path, region and blob hash of every file read in it; each tool result an API cleared; after a tool or API compaction, everything sent before it (residency unknown) | | markers | IDs and ranges written; whether each resolved and was delivered | | instructions moved | owner instructions moved to pointers or the directory (§5.5) | | knowledge level, fallbacks | known input or sent, unconfirmed (§6.6); each degraded path used; any inference run unprotected (§6.4) | | outcome | completed, failed (with reason), interrupted |
··· 3 unchanged paragraphs folded ···
v8.2 · 8.1 The range readThe range read takes a range and returns the record's entries in it, verbatim, with their authors and times; a file read comes back with its blob, whatever happened to the file since. An erased entry or span comes back as its tombstone, a quarantined one as its placeholder (§4.4), and a prohibited match as its typed placeholder (§4.7). The finding paper's pull tool offers it as one mode, next to a search over the record (J2 §6.6, the pull); ranking and push are the finding paper's, and this stage guarantees that the search runs over the same record the markers point into.
v8.3 · 8.1 The range readThe range read takes a range and returns the record's entries in it, verbatim, with their authors and times; a file read comes back with its blob, whatever happened to the file since. An erased entry or span comes back as its tombstone, a quarantined one as its placeholder (§4.4), and a prohibited match as its typed placeholder (§4.7). The finding paper's pull tool offers it as one mode next to a search over the record (J2 §6.6, the pull); this stage guarantees that the search runs over the same record the markers point into.
not in v8.2
v8.3 · 8.1 The range readAn erase or a quarantine raises an erasure epoch first (J14 §7.7). This stage applies epochs in order: redact or flag, rebuild the markers, then rebuild the window. A range read or window build is served only once the newest published epoch is applied here: one that arrives earlier waits, and one that started at an older epoch and returns after a newer one is discarded and run again. So erased text cannot reach the live model between the decision and the rebuild (transition T15; Appendix B.1).
··· 1 unchanged paragraph folded ···
v8.2 · 8.2 Every marker resolvesA marker that names entries the range read cannot return is a broken promise, and a check forbids it. For every marker written, resolving its range must return every sequence number from first to last, with none missing (a tombstone or a placeholder counts as present); every blob it refers to must be in the blob store; and every exact string and owner sentence it carries must appear in an entry inside the range. The check runs when the marker is written and again in the nightly tests.
v8.3 · 8.2 Every marker resolvesA marker that names entries the range read cannot return is a broken promise, and a check forbids it. Resolving a marker's range must return every sequence number from first to last (a tombstone or a placeholder counts as present); every blob it refers to must be in the blob store; and every exact string and owner sentence it carries must appear in an entry inside the range. The check runs when the marker is written and again in the nightly tests.
··· 3 unchanged paragraphs folded ···
v8.2 · 9.1 In shortAfter compaction, an agent's next inference sees a description of its past and has no way back to the past itself. Total Recall keeps the whole session as an addressed record, makes compaction leave markers that quote what a description drops and point back into the record, and works through whichever controller holds the window, claiming no more about the model's view than that controller lets it know. If it holds, the owner's Friday question about Monday's instruction has an exact answer: the instruction is in view, or a line says where it is, and the owner knows which.
v8.3 · 9.1 In shortAfter compaction, an agent's next inference sees a description of its past and no way back to it. Total Recall keeps the whole session as an addressed record and makes compaction leave markers that quote what a description drops and point back into the record, whichever controller holds the window, claiming no more about the model's view than that controller lets it know. If it holds, the owner's Friday question has an exact answer: the instruction is in view, or a line says where it is.
··· 1 unchanged paragraph folded ···
v8.2 · 9.2 Limitations- Markers depend on extraction by code and a classifier; a missed string is still in the record, but the marker no longer advertises it. - Past the owner's budget, old instructions are a pointer or a directory away, and the agent must follow it when it matters. - Hooks are the provider's to change, and an API that compacts mid-response without a pause leaves the rest of that response unprotected; the receipt says so, but the gap remains. Opaque compaction cannot be checked at all. - The record grows without bound; years of sessions will need tiered storage, which the design does not cover. - The price rule rests on unmeasured inputs ($q_{\text{turn}}$, $H$, $c$); until they are measured, elective eviction should be conservative. - The capture detector will miss some secrets, and a provider's own copies are reached only after the fact. - Recoverable is not recovered: whether the agent asks for what it can read back is the finding paper's question.
v8.3 · 9.2 Limitations- Markers depend on extraction by code and a classifier; a missed string is still in the record, but the marker no longer advertises it. - Past the owner's budget, old instructions are a pointer or a directory page away; the agent must follow it when it matters. - Hooks are the provider's to change. An API that compacts mid-response without a pause leaves the rest of that response unprotected, and opaque compaction cannot be checked; the receipt says so, but the gap remains. A tool's or an API's own copy of erased or quarantined content is reached only by ending or compacting the session. - The record grows without bound, and the capture detector will miss some secrets; years of sessions will need tiered storage, which the design does not cover. - The price rule rests on unmeasured inputs ($q_{\text{turn}}$, $H$, $c$, $\ell$); until they are measured, elective eviction should be conservative. - Recoverable is not recovered: whether the agent asks for what it can read back is the finding paper's question.
··· 3 unchanged paragraphs folded ···
v8.2 · 10.1 Tests that would settle what we do not knowEach test names the claim it decides and what result would change the design. A test that tunes something (the string extractor, the classifier thresholds, the budgets) tunes on development sessions and is scored on held-out ones, from a later period or, for synthetic data, other seeds and string types (J5 §9.2, three streams, kept apart). Live arms are assigned sessions at random.
v8.3 · 10.1 Tests that would settle what we do not knowEach test names the claim it decides and what result would change the design. A test that tunes something (the string extractor, the classifier thresholds, the budgets) tunes on development sessions and is scored on held-out ones (J5 §9.2, three streams, kept apart). Live arms are randomised by session. Tests are numbered 1 to 12; "transition T" names a series handoff (J5 Appendix B).
v8.2 · 10.1 Tests that would settle what we do not know| # | Test | Decides | What would change the design | |--|---------------------|-------|---------------| | T1 | Needle survival. Seed exact strings, owner instructions, failed attempts and times early in long synthetic sessions; force 1, 3 and 5 compactions; ask for each. Arms: the provider's summary alone; truncation; **the summary plus the same searchable record and range read (the control)**; markers plus range read; markers alone. | §5: the marker, not mere access to the record, keeps what summaries lose | Control matches markers: the gain is the way back, not the marker. Markers alone match markers with the read: the read matters less | | T2 | Back-reference replay. Real moments where the owner refers to earlier in the session ("the hash from before"), replayed after compaction under the control and under markers. | §4, §5 in real use | No clear margin over the control: markers do not pay their cost | | T3 | Forget-cue rate. Owner messages that repeat an instruction or ask "did you forget", per 100, under the control and under markers, split by a compaction in the previous ten turns. | the outcome the design serves | No difference: the owner's pain lies in finding or learning, and §1 must be rewritten | | T4 | Marker coverage. For each evicted range, the share of its exact strings and owner instructions present in its marker. | §5.1, §5.2 | Below half: the extraction, not the design, is the weak part | | T5 | Every marker resolves. Property test over generated sessions plus the nightly check; files read, then changed and deleted, come back as read. | §4.1, §8.2 | Any failure is a defect, not a trade-off | | T6 | Trigger validity. Slices against the provider's input count; evicted tokens by class against the total; a thrashing session trips the guard; a provider-tool session shows no runtime compaction. | §5.3, §6.5, §7.3 | An unreconciled call breakdown keeps elective compaction off | | T7 | Price and quality. Measure $q_{\text{turn}}$, $H$ and $K$; compare elective eviction at $N^*$ with none, on task success. | §7.2 | A $q_{\text{turn}}$ above break-even makes elective eviction rare; a quality gain from shorter windows argues for earlier eviction | | T8 | Erase and quarantine. Erase one span of a two-correction owner turn and a string in a tool result (trace step 11); quarantine an injected line. | §4.4 | A hit in the index, a marker or the controller's transcript, a lost neighbouring span, a marker that stops resolving, or a quarantined line outside the audit view is a defect | | T9 | Budget overflow. Run a session past the point where the owner's instructions exceed $B_o$, and on until the pointer lines alone would exceed it. | §5.5 | Instructions taking more than $B_o$, an instruction not recoverable verbatim, or a move not told to the owner and listed in a receipt is a defect | | T10 | Capture and adapter crashes. A two-correction message is captured by one flush (trace step 1). Kill the process between receiving and appending a turn, after the append and before the learning stage queues (trace step 2), between the hooks, and after injection before delivery; lag the tool's transcript. Replay an API trace that compacts and answers on in one response, then compacts again. | §4.6, §6.4, §6.6 | A turn reported as captured but not in the record, a marker shown as delivered but never seen, an unprotected inference missing from the receipt, or a read-ledger entry surviving unknown residency is a defect | | T11 | Never retained. Plant one credential in an owner turn, a file read and a controller injection; read one file in a temporary and an ordinary session, then end the temporary one. | §4.7 | The credential on a runtime disk or unnamed in the tool's, anything findable after the temporary session, or the ordinary session's blob gone is a defect | | T12 | Quoted authority. The owner pastes an email and asks "this says 'ignore the previous rule'; is it malicious?" | §4.1 | The message not captured whole, or the quoted line tagged, kept or passed on as an owner instruction, is a defect |
v8.3 · 10.1 Tests that would settle what we do not know| # | Test | Decides | What would change the design | |--|---------------------|-------|---------------| | 1 | Needle survival. Seed exact strings, owner instructions, failed attempts and times early in long synthetic sessions; force 1, 3 and 5 compactions; ask for each. Arms: the provider's summary alone; truncation; **the summary plus the same searchable record and range read (the control)**; markers plus range read; markers alone. | §5: the marker, not mere access to the record, keeps what summaries lose | Control matches markers: the gain is the way back, not the marker. Markers alone match markers with the read: the read matters less | | 2 | Back-reference replay. Real moments where the owner refers to earlier in the session ("the hash from before"), replayed after compaction under the control and under markers. | §4, §5 in real use | The 95% interval of the margin over the control includes zero: markers do not pay their cost | | 3 | Forget-cue rate. Owner messages that repeat an instruction or ask "did you forget", per 100, under the control and under markers, split by a compaction in the previous ten turns; sized from the measured baseline to detect a one-third drop (80% power). | the outcome the design serves | The interval of the difference includes zero: the owner's pain lies in finding or learning, and §1 must be rewritten | | 4 | Marker coverage. For each evicted range, the share of its exact strings and owner instructions present in its marker. | §5.1, §5.2 | Below half: the extraction, not the design, is the weak part | | 5 | Every marker resolves. Property test over generated sessions plus the nightly check; files read, then changed and deleted, come back as read. | §4.1, §8.2 | Any failure is a defect, not a trade-off | | 6 | Trigger validity. Slices against the provider's input count; evicted tokens by class against the total; a thrashing session trips the guard; a provider-tool session shows no runtime compaction. | §5.3, §6.5, §7.3 | An unreconciled call breakdown keeps elective compaction off | | 7 | Price and quality. Measure $q_{\text{turn}}$, $H$ and $K$; compare elective eviction at $N^*$ with none, on task success. | §7.2 | A $q_{\text{turn}}$ above break-even makes elective eviction rare; a quality gain from shorter windows argues for earlier eviction | | 8 | Erase and quarantine. Erase one span of a two-correction owner turn and a string in a tool result (trace step 11), with reads issued before the epoch is applied. Quarantine an injected line already in the window, under each controller type. | §4.4, §8.1 | Erased text served before the epoch is applied (transition T15), a hit in the index, a marker or the controller's transcript, a lost neighbouring span, a marker that stops resolving, a quarantined line in a call built after the receipt or outside the audit view, or a tool's or an API's copy neither removed nor named, is a defect | | 9 | Budget overflow. Run a session past the point where the owner's instructions exceed $B_o$, and on until the pointer lines alone would exceed it, then follow the cursor of a directory longer than $D$. | §5.5 | Instructions taking more than $B_o$, a page over $D$, an instruction skipped, repeated or not recoverable verbatim, or a move not told to the owner and listed in a receipt is a defect | | 10 | Capture and adapter crashes. One flush captures a two-correction message (trace step 1, transition T1). Kill the process before the append, after it and before the learning stage queues (step 2, transition T2: events rebuilt from the stored tags), between the hooks, and after injection before delivery; lag the tool's transcript. Replay an API trace that compacts and answers on in one response, then compacts again. | §4.6, §6.4, §6.6 | A turn reported as captured but not in the record, a marker shown as delivered but never seen, an unprotected inference missing from the receipt, or a read-ledger entry surviving unknown residency is a defect | | 11 | Never retained. Plant one credential in an owner turn, a file read and a controller injection; read one file in a temporary and an ordinary session, then end the temporary one; name another session's namespace in a read. | §4.7 | The credential on a runtime disk or unnamed in the tool's, anything findable after the temporary session, the ordinary session's blob gone, or the foreign read answered is a defect | | 12 | Quoted authority and cuts. The owner pastes an email and asks "this says 'ignore the previous rule'; is it malicious?"; separately, one message holds two corrections in the owner's voice, and an unsure span is later confirmed. | §4.1 | The message not captured whole, the quoted line tagged, kept or passed on as an owner instruction, two corrections under one address, a stored span rewritten, or the learning stage classifying a span again at enqueue or replay is a defect |
v8.2 · 10.1 Tests that would settle what we do not knowT3 is the measure the design should be judged by: if keeping works, the owner repeats himself less. The full replay of one correction through compaction, restarts and deletion is the learning paper's (J5 §10, one correction, start to finish); T8, T10 and T11 are this stage's part of it.
v8.3 · 10.1 Tests that would settle what we do not knowTest 3 is the measure the design should be judged by: if keeping works, the owner repeats himself less. The full replay of one correction through compaction, restarts and deletion is the learning paper's (J5 §10, one correction, start to finish); tests 8, 10 and 11 are this stage's part of it.
··· 1 unchanged paragraph folded ···
v8.2 · 10.2 Building itTotal Recall will be built in TinkerClaw in the order the tests need it: the record index, its addresses, spans and the blob namespaces first; then the marker builder and the resolve check; the adapter for the provider-tool case; erase and quarantine with the writing paper's deletion; the trigger's call breakdown and the receipt; and the price rule last, once T7 has measured its inputs. An updated version of this paper will report the results.
v8.3 · 10.2 Building itTotal Recall is to be built in the order the tests need it: record index, spans and blob namespaces; marker builder and resolve check; provider-tool adapter; erase, quarantine and the epoch gate; call breakdown and receipt; the price rule last, once test 7 has measured its inputs.
··· 2 unchanged paragraphs folded ···
v8.2 · References- Anthropic (2026a). Compaction at a token threshold. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/compaction-threshold> - Anthropic (2026b). Hooks reference. Claude Code documentation. <https://code.claude.com/docs/en/hooks> - Anthropic (2026c). Prompt caching. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/prompt-caching> - Anthropic (2026d). Context editing. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/context-editing> - Belady, L. A. (1966). A study of replacement algorithms for a virtual-storage computer. *IBM Systems Journal*, 5(2), 78–101. <https://doi.org/10.1147/sj.52.0078> - Headroom Labs (2026). headroom: compress what your AI agent reads. GitHub, Apache-2.0. <https://github.com/headroomlabs-ai/headroom> - Hong, K., Troynikov, A., & Huber, J. (2025). Context rot: how increasing input tokens impacts LLM performance. Chroma technical report. <https://research.trychroma.com/context-rot> - Ji, Y. (2025). Context engineering for AI agents: lessons from building Manus. 18 July 2025. <https://manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus> - Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., & Liang, P. (2024). Lost in the middle: how language models use long contexts. *Transactions of the ACL*, 12, 157–173. <https://arxiv.org/abs/2307.03172> - OpenAI (2026). Compaction. OpenAI API documentation. <https://developers.openai.com/api/docs/guides/compaction> - Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., & Gonzalez, J. E. (2023). MemGPT: towards LLMs as operating systems. arXiv:2310.08560. <https://arxiv.org/abs/2310.08560> - Rasmussen, P., Paliychuk, P., Beauvais, T., Ryan, J., & Chalef, D. (2025). Zep: a temporal knowledge graph architecture for agent memory. arXiv:2501.13956. <https://arxiv.org/abs/2501.13956> - thedotmack (2026). claude-mem: persistent memory for Claude Code. GitHub. <https://github.com/thedotmack/claude-mem> - Zhang, Q., Hu, C., Upasani, S., Ma, B., et al. (2025). Agentic context engineering: evolving contexts for self-improving language models. arXiv:2510.04618. <https://arxiv.org/abs/2510.04618>
v8.3 · References- Anthropic (2026a). Compaction at a token threshold. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/compaction-threshold> - Anthropic (2026b). Hooks reference. Claude Code documentation. <https://code.claude.com/docs/en/hooks> - Anthropic (2026c). Prompt caching. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/prompt-caching> - Anthropic (2026d). Context editing. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/context-editing> - Anthropic (2026e). Compaction overview. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/compaction> - Belady, L. A. (1966). A study of replacement algorithms for a virtual-storage computer. *IBM Systems Journal*, 5(2), 78–101. <https://doi.org/10.1147/sj.52.0078> - Headroom Labs (2026). headroom: compress what your AI agent reads. GitHub, Apache-2.0. <https://github.com/headroomlabs-ai/headroom> - Hong, K., Troynikov, A., & Huber, J. (2025). Context rot: how increasing input tokens impacts LLM performance. Chroma technical report. <https://research.trychroma.com/context-rot> - Ji, Y. (2025). Context engineering for AI agents: lessons from building Manus. 18 July 2025. <https://manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus> - Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., & Liang, P. (2024). Lost in the middle: how language models use long contexts. *Transactions of the ACL*, 12, 157–173. <https://arxiv.org/abs/2307.03172> - OpenAI (2026). Compaction. OpenAI API documentation. <https://developers.openai.com/api/docs/guides/compaction> - Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., & Gonzalez, J. E. (2023). MemGPT: towards LLMs as operating systems. arXiv:2310.08560. <https://arxiv.org/abs/2310.08560> - Rasmussen, P., Paliychuk, P., Beauvais, T., Ryan, J., & Chalef, D. (2025). Zep: a temporal knowledge graph architecture for agent memory. arXiv:2501.13956. <https://arxiv.org/abs/2501.13956> - thedotmack (2026). claude-mem: persistent memory for Claude Code. GitHub. <https://github.com/thedotmack/claude-mem> - Zhang, Q., Hu, C., Upasani, S., Ma, B., et al. (2025). Agentic context engineering: evolving contexts for self-improving language models. arXiv:2510.04618. <https://arxiv.org/abs/2510.04618>
··· 3 unchanged paragraphs folded ···
v8.2 · Appendix A. A Worked Record and Marker``` entry s7#12 author_kind owner time 14:02:11 text [harness wrapper] Never restart the production database during the day. owner_words Never restart the production database during the day. span s7#12/0 authority owner tag instruction (shared classifier) controller tool transcript, entry 118
v8.3 · Appendix A. A Worked Record and Marker``` entry s7#12 author_kind owner time 14:02:11 text [harness wrapper] Never restart the production database during the day. owner_words Never restart the production database during the day. span s7#12/0 authority owner (a2) intent instruction (classifier k5) cutter c3 controller tool transcript, entry 118
··· 7 unchanged paragraphs folded ···
v8.2 · B.1 Appending to the record``` APPEND(session, entry): # before the model call that answers it ns <- session.temporary ? namespace(session) : "ordinary" # 4.7 entry.seq <- next_sequence(session) # once, never reused entry.author_kind <- owner | agent | tool | harness | other_agent entry.text <- persist_filter(entry.text) # 4.7; also on text sent to a controller if entry.author_kind == owner: entry.owner_words <- strip_wrapper(entry.text) # once; never rewritten entry.spans <- split_authority(entry.owner_words) # owner | quoted; unsure: quoted tag_owner_spans(entry.spans) # J5 A.1; else "untagged" if entry.returns_file: entry.content <- blob_put(ns, persist_filter(bytes)) record.append_durable(session, entry) # status: captured (4.6) index.add(session, entry.seq, entry) # derived, rebuildable
v8.3 · B.1 Appending to the record``` APPEND(session, entry): # before the model call that answers it ns <- session.temporary ? namespace(session) : "ordinary" # 4.7 entry.seq <- next_sequence(session) # once, never reused entry.author_kind <- owner | agent | tool | harness | other_agent entry.text <- persist_filter(entry.text) # 4.7; also on text sent to a controller if entry.author_kind == owner: entry.owner_words <- strip_wrapper(entry.text) # once; never rewritten entry.spans <- cut_spans(entry.owner_words) # 4.1: immutable, addressed tag_authority(entry.spans) # owner | quoted; unsure: quoted tag_intent(owner_spans(entry.spans)) # J5 A.1; versions stored if entry.returns_file: entry.content <- blob_put(ns, persist_filter(bytes)) record.append_durable(session, entry) # status: captured (4.6) index.add(session, entry.seq, entry) # derived, rebuildable
v8.2 · B.1 Appending to the recordERASE(session, seq, spans, receipt): # writing stage's decision b <- record.blob(session, seq) # none if the entry holds no file hit <- entries_with_blob(b) if b else [(session, seq, spans)] # same namespace for (s, n, sp) in hit: record.redact(s, n, sp, tombstone(now, receipt)) # the one edit record.append(s, harness("erased", n, sp)) index.reindex(s, n); rebuild(markers_covering(s, n)) adapter.redact_controller_copies(s, n, sp) # 4.4, 6.6 adapter.erase_live(s, n, sp) # 6.6: rebuild window, eviction event, name provider copy if b: blob_delete(b) manifest.report(status_per_place) # J14 7.7; out of reach named
v8.3 · B.1 Appending to the recordERASE(session, seq, spans, receipt, epoch): # writing stage decides; erasure epoch raised first await applied_epoch == epoch - 1 # epochs apply in order b <- record.blob(session, seq) # none if the entry holds no file hit <- entries_with_blob(b) if b else [(session, seq, spans)] # same namespace for (s, n, sp) in hit: record.redact(s, n, sp, tombstone(now, receipt)) # the one edit record.append(s, harness("erased", n, sp)) index.reindex(s, n); rebuild(markers_covering(s, n)) adapter.redact_controller_copies(s, n, sp) # 4.4, 6.6 adapter.erase_live(s, n, sp) # 6.6: rebuild window, eviction event, name provider copy if b: blob_delete(b) manifest.report(status_per_place) # J14 7.7; out of reach named applied_epoch <- epoch # reads at this epoch may now be served
v8.2 · B.1 Appending to the recordQUARANTINE(session, seq, decision): # no edit record.append(session, harness("quarantine", seq, decision)) rebuild(markers_covering(session, seq)) ```
removed in v8.3
not in v8.2
v8.3 · B.1 Appending to the recordQUARANTINE(session, seq, decision, epoch): # no edit to the record await applied_epoch == epoch - 1 record.append(session, harness("quarantine", seq, decision)) rebuild(markers_covering(session, seq)) adapter.invalidate_live(session, seq) # 6.6: rebuild or end/compact receipt("quarantine", seq, rebuilt, out_of_reach) # per controller applied_epoch <- epoch
not in v8.2
v8.3 · B.1 Appending to the recordSERVE(kind, args): # range read or window build; 8.1 loop: e <- store.epoch(); await applied_epoch >= e; out <- build(kind, args) if store.epoch() == e: return out # else an epoch arrived: run again ```
··· 4 unchanged paragraphs folded ···
v8.2 · Appendix C. The Window Controller Adapter ContractVersion 2 of the contract. Every adapter implements all rows; a capability it cannot confirm counts as absent.
v8.3 · Appendix C. The Window Controller Adapter ContractVersion 3 of the contract. Every adapter implements all rows; a capability it cannot confirm counts as absent.
v8.2 · Appendix C. The Window Controller Adapter Contract| Part | What it holds | Rule | |----------|-------------------------|-------------------------| | Version | contract version; adapter version; controller name and version | re-detected at session start and on any model or tool change | | Capabilities | builds calls; event before compaction (can block); summary after compaction; injection before the next call; per-turn injection; tool-result replacement; readable transcript; clearing controls; pause after compaction; compacted state readable or opaque | choose the path of §6.2, §6.3 or §6.4 | | Pending state | one harness entry per step: detected, flushed, markers built, injected, delivered, closed | each state appended durably before the next step; a restart resumes from the last state; marker IDs make a repeat harmless | | Sequence map | runtime address paired with the controller's entry ID | written at flush; entries only the controller saw get runtime numbers in the controller's order | | Delivery check | marker ID seen in the next call sent (runtime, API) or in the tool's transcript; an API's pause used where offered | promised before the next client-controlled request; not seen by the next turn: resend with the per-turn injection and count the turns without it; inference before delivery recorded as unprotected | | Knowledge level | known input (runtime); sent, unconfirmed (tool, API) | on every receipt; no claim about the model's view exceeds it; after a tool or API compaction, everything sent before it is residency unknown | | Degraded paths | no event before compaction: detect afterwards (a summary appears, input tokens fall), flush, then build; no injection after compaction: per-turn injection, receipt marked late; unreadable transcript: record what the runtime saw and mark the gap in range reads | each path used is named in the receipt | | Capture filter | the runtime's one write path, before persistence; tool results replaced where a hook allows; the tool's transcript redacted at the next hook | a copy out of reach is named in a receipt (§4.7) | | Erase in live state | rebuild the window (runtime); redact copies handed to the controller; end or compact the session, using the controller's deletion control (tool, API) | each place reported to the deletion manifest (§4.4), unreachable copies named | | Never retained | the controller's no-retention setting, where offered | where none is offered, the owner is told at session start |
v8.3 · Appendix C. The Window Controller Adapter Contract| Part | What it holds | Rule | |----------|-------------------------|-------------------------| | Version | contract version; adapter version; controller name and version | re-detected at session start and on any model or tool change | | Capabilities | builds calls; event before compaction (can block); summary after compaction; injection before the next call; per-turn injection; tool-result replacement; readable transcript; clearing controls; pause after compaction; compacted state readable or opaque | choose the path of §6.2, §6.3 or §6.4 | | Pending state | one harness entry per step: detected, flushed, markers built, injected, delivered, closed | each state appended durably before the next step; a restart resumes from the last state; marker IDs make a repeat harmless | | Sequence map | runtime address paired with the controller's entry ID | written at flush; entries only the controller saw get runtime numbers in the controller's order | | Delivery check | marker ID seen in the next call sent (runtime, API) or in the tool's transcript; an API's pause used where offered | promised before the next client-controlled request; not seen by the next turn: resend with the per-turn injection and count the turns without it; inference before delivery recorded as unprotected | | Knowledge level | known input (runtime); sent, unconfirmed (tool, API) | on every receipt; no claim about the model's view exceeds it; after a tool or API compaction, everything sent before it is residency unknown | | Degraded paths | no event before compaction: detect afterwards (a summary appears, input tokens fall), flush, then build; no injection after compaction: per-turn injection, receipt marked late; unreadable transcript: record what the runtime saw and mark the gap in range reads | each path used is named in the receipt | | Capture filter | the runtime's one write path, before persistence; tool results replaced where a hook allows; the tool's transcript redacted at the next hook | a copy out of reach is named in a receipt (§4.7) | | Erase and quarantine in live state | rebuild the window (runtime); redact copies handed to the controller; end or compact the session, using the controller's deletion control (tool, API) | each place reported to the deletion manifest (§4.4), unreachable copies named; a quarantine writes the same receipt; reads wait for the epoch (§8.1) | | Never retained | the controller's no-retention setting, where offered | where none is offered, the owner is told at session start |
··· 1 unchanged paragraph folded ···
v8.2 · Appendix C. The Window Controller Adapter Contract_J-series paper J1 | Version 8.2 | 2026-10-12_
v8.3 · Appendix C. The Window Controller Adapter Contract_J-series paper J1 | Version 8.3 | 2026-10-12_
Changed paragraphs in the same form, for scripts: JSON
· Markdown