v8.4 → v8.5
What changed from v8.4 to v8.5
From v8.4 (21 Oct) to v8.5 (21 Oct): 11,661 words to 14,409 words, 3,777 words in new or rewritten paragraphs and 1,029 taken out, 103 paragraphs changed.
Fifth referee round: plain explanations, details moved to an appendixThe fifth referee round, by a model from the same vendor as the author's, asked mainly for readability.
- The freshness and permission sections open with a plain explanation; the protocol details move to a new appendix.
- A table defines the paper's working words, and the abstract avoids the confusing word "reader".
- Internal codes and trace numbers leave the prose.
- Figure 1 is redrawn as the prompt itself.
- Agent Skills' "use when" text is credited as a hand-written situation key.
v8.4 · 21 October 2026v8.5 · 21 October 2026
··· 1 unchanged paragraph folded ···
v8.4 · AbstractYou mention that a download is blocked, and your assistant has in mind the helper you built together last month for that kind of site, and the machine whose login sits in your notes. Nobody had to tell it "you have a skill for this".
v8.5 · AbstractYou mention that a download is blocked, and your assistant reaches for the browser helper you built together last month. Nobody had to tell it "you have a skill for this".
··· 1 unchanged paragraph folded ···
v8.4 · AbstractWe propose a design for the finding stage of an agent's memory: an index of what the owner owns, keyed by the situations each thing helps in, that pushes a few pointers before every turn, after the cached part of the prompt, and only pointers the current reader may see.
v8.5 · AbstractWe propose a design for the finding stage of an agent's memory: an index of what the owner owns, keyed by the situations each thing helps in, that pushes a few pointers into every turn. They go after the part of the prompt the provider has cached, and they include only what the person or agent receiving the answer is allowed to see.
v8.4 · AbstractFor you this means fewer reminders, a correction found on the very next request, and a cached prompt that memory leaves alone. This is a design; Section 9 names the tests that would decide it, on a replay of the owner's corrections, against a strong catalogue baseline.
v8.5 · AbstractFor you this means fewer reminders, a correction you can find again on your very next request, and no extra cost from rewriting the cached part of the prompt. This is a design; Section 9 names the tests that would decide it, on a replay of the owner's corrections, against the best design we know, one that searches every asset's own description.
··· 8 unchanged paragraphs folded ···
v8.4 · 1. IntroductionThe hippocampus gives us a frame, a way to reason and not a mechanism we copy, and the working name HIPPOCAMPUS. On the indexing theory (Teyler and DiScenna, 1986) it stores an index of where the parts of an experience live, and a partial cue reactivates the whole pattern (Marr, 1971); a cue works best when it matches how the memory was encoded, the *encoding specificity* principle (Tulving and Thomson, 1973). The design takes both ideas: an index separate from the store, and cues stored with each memory that match the situations in which it will be needed.
v8.5 · 1. IntroductionThe hippocampus gives us a frame, a way to reason and not a mechanism we copy. On the indexing theory (Teyler and DiScenna, 1986) it stores an index of where the parts of an experience live, and a partial cue reactivates the whole pattern (Marr, 1971); a cue works best when it matches how the memory was encoded, the *encoding specificity* principle (Tulving and Thomson, 1973). The design takes both ideas: an index separate from the store, and cues stored with each memory that match the situations in which it will be needed.
v8.4 · 1. IntroductionWe propose a design for the finding stage, Find for short (Figure 1), with four claims, each decided by a test in Section 9.2. A miss can be placed at the first of five gates it fails (§3). An index of what the owner owns, keyed by use as well as topic, finds what topic search misses (§4, §5). A short list of eligible pointers pushed after the cached prefix costs a small fraction of the searches it saves and never rewrites that prefix (§6 to §8.1). And a correction becomes findable on the next request, before any index is rebuilt, and stays findable through an index swap (§8.2, §8.3).
v8.5 · 1. IntroductionWe propose a design for the finding stage, Find for short (Figure 1), with four claims, each decided by a test in Section 9.2. A miss can be placed at the first of six gates it fails (§3). An index of what the owner owns, keyed by use as well as topic, finds what topic search misses (§4, §5). A short list of eligible pointers pushed after the cached prefix costs a small fraction of the searches it saves and never rewrites that prefix (§6 to §8.1). And a correction becomes findable on the next request, before any index is rebuilt, and stays findable through an index swap (§8.2, §8.3). Table 1 shows what this would change on that morning.
v8.4 · 1. Introduction{width=94%}
removed in v8.5
not in v8.4
v8.5 · 1. Introduction| Request | Today | With Find | Caught by | Decided by (§9.2) | |--------------|-------------|------------------------|--------------------|------------------| | "Download last quarter's report from the company portal." | "I can't reach the portal." | A pointer to the browser helper, in front of the model before its first call | The use key *when a site blocks a download* (§5) | C1 against B | | "Check the camera on the lab machine." | "I have no credentials." | The machine's entry, which says where its login is kept, never the login | Its name, in the named slot (§6.4) | The named slot, every case | | "Train it again with the setup we used last time." | "Which setup?" | The card of the last session on that task, pointing at the setup | The task-reference state and session cards (§6.1, §6.9) | D against C2; asking a session against searching | | "You have a skill for this." | The owner says it again next week | The request before the correction becomes a use key, findable on the next request | Keys cut from corrections (§5) and the fresh-writes overlay (§8.2) | A correction retrievable at once, every case |
not in v8.4
v8.5 · 1. Introduction: The morning of §1, today and with Find.
not in v8.4
v8.5 · 1. Introduction{width=100%}
not in v8.4
v8.5 · 1. IntroductionA few words carry a fixed meaning in this paper (Table 2).
not in v8.4
v8.5 · 1. Introduction| Word | Meaning here | |-------------|---------------------------------------------------------------| | owner | the person the agent works for, whose memory this is | | reader | the session that will see an answer: the owner's chat, a sub-agent with fewer rights, or a chat with other people in it | | asset | something the owner owns: a skill, a tool, a machine, a decision, a past approach, a past session | | pointer | a line naming an item and where it lives, without its body | | cached prefix | the start of the prompt that the provider keeps from call to call and bills cheaply; the per-turn part comes after it | | wrapper | what the harness adds around the owner's message: timestamps, channel headers, injected context | | hold | a write parked until the owner approves it | | window controller | whoever decides what stays in the model's context: the runtime, the provider's API, or the provider's command-line tool | | epoch | a counter the store raises before every erasure or quarantine, so a reader can tell old state from new | | receipt | the record each step leaves, so that what happened can be checked afterwards |
not in v8.4
v8.5 · 1. Introduction: Words used here.
··· 1 unchanged paragraph folded ···
v8.4 · 2. Related workThis is one of four designs for an agent's memory: keeping (J1, the session record and what survives the context window), writing (J14, what enters long-term memory), finding (J2) and learning (J5, turning experience into behaviour). They share a reference trace and a transition specification (J5 Appendix B); this paper cites the transitions T9, T10, T12, T13, T16, T17, T19, T20, T21 and T23 for its own handoffs. The specification is a model of the design, replayed with a crash, a duplicate and a reordering at every handoff; nothing here has run on real memory.
v8.5 · 2. Related workThis is one of four designs for an agent's memory: keeping (J1, the session record and what survives the context window), writing (J14, what enters long-term memory), finding (J2) and learning (J5, turning experience into behaviour). They share a reference trace and a transition specification (J5 Appendix B), a model of the design replayed with a crash, a duplicate and a reordering at every handoff; Table 8 lists this stage's handoffs and their tests. Nothing here has run on real memory.
v8.4 · 2. Related work**Memory the agent searches for itself.** MemGPT (Packer et al., 2023), now the Letta platform, keeps a few memory blocks in the context window on every call (Letta, 2026a); Letta's MemFS keeps Markdown files in a git repository, puts root-level files in the system prompt each turn, lists deeper folders in an index file and leaves the rest to file search (Letta, 2026b). Claude Code loads the first 200 lines (or 25 KB) of its memory index at the start of each conversation and reads topic files on demand (Anthropic, 2026a), and Agent Skills load every skill's name and description at startup (Anthropic, 2025). Each pushes an index and leaves the body to the agent, the shape our cost model arrives at (§7). But the pushed list grows with the catalogue and ignores the task, each entry says what it is and not when it helps, and a search the agent never thinks of is gate 3 of §3.
v8.5 · 2. Related work**Memory the agent searches for itself.** MemGPT (Packer et al., 2023), now the Letta platform, keeps a few memory blocks in the context window on every call (Letta, 2026a); Letta's MemFS keeps Markdown files in a git repository, puts root-level files in the system prompt each turn, lists deeper folders in an index file and leaves the rest to file search (Letta, 2026b). Claude Code loads the first 200 lines (or 25 KB) of its memory index at the start of each conversation and reads topic files on demand (Anthropic, 2026a), and Agent Skills load every skill's name and description at startup (Anthropic, 2025). Each pushes an index and leaves the body to the agent, the shape our cost model arrives at (§7). Agent Skills already say when to use them: Anthropic's authoring guide asks every description to state what the skill does and when to use it, as in "Use when working with PDF files" (Anthropic, 2026c), so a skill's description is a use key its author wrote. But the pushed list grows with the catalogue and ignores the task, only skills carry such keys (machines, decisions and past approaches do not), nothing learns them from the owner's corrections, and a search the agent never thinks of is gate 3 of §3.
··· 3 unchanged paragraphs folded ···
v8.4 · 2. Related workEach ingredient has a precedent. In the primary sources we read we did not find an index of the owner's assets keyed by use, with a slot for named items that yields only to eligibility, pushed where a cache cost model puts it and judged on the owner's replayed corrections. Our search was not exhaustive, so the novelty of that combination is unverified.
v8.5 · 2. Related workEach ingredient has a precedent (Table 3). In the primary sources we read we did not find an index of the owner's assets keyed by use, with keys cut from the owner's corrections, a slot for named items that yields only to eligibility, pushed where a cache cost model puts it and judged on the owner's replayed corrections. Our search was not exhaustive, so the novelty of that combination is unverified.
not in v8.4
v8.5 · 2. Related work| Approach (example) | What reaches the model | The browser helper | Extra cost | Credit where due | |----------------|----------------|----------------|-------------|----------------| | Nearest chunks pushed (plain RAG; LangMem's hot path) | The five text chunks nearest the request | Likely missed: its note shares no word with "download" ($p = 0.04$ on topic keys, §5.5) | About 10,600 in the tail; about 115,000 a turn at the head of the prompt | Nothing to curate; good for "what did we say about X" | | Running summary (compaction, session summaries) | A few hundred words on what happened | Missed unless the summary kept it | Small, cached | Keeps the thread of the current task | | Extracted facts (Mem0) | A few short facts nearest the request | Found only if a stored fact mentions downloads | Small | Compact; feedback on each memory; ships today | | Built-in lists (ChatGPT saved memories; Claude Code's memory index; skill descriptions) | The same list every session | Found if it is a skill whose description says when to use it | The list, cached; grows with the catalogue | The owner sees and edits it; "use when" text is a use key | | A bigger window (a million tokens) | Everything | Present, one item among thousands (gate 5) | 30,000 a call to re-read 300,000 tokens of memory | Nothing is ever unindexed; simplest to build | | The agent searches (Letta, MemFS, Claude Code topic files) | What the agent decides to look up | Found only if the agent suspects it has one (gate 3) | About 11,000 per search; nothing otherwise | No tokens spent on guesses; deep search | | Find (this design) | 0 to 5 pointers for this turn, plus named items, after the cached prefix | Found through *when a site blocks a download* ($p = 0.35$, floor 0.15) | About 850 for five pointers over their life; 200 in a turn-scoped slot (§7.2) | Costs more to build: an asset index, keys, a ranking loop and the tests of §9 |
not in v8.4
v8.5 · 2. Related work: Seven ways to bring memory into a turn. Costs in base input tokens with the values of Table 4; the browser-helper column is reasoning from each design, not a measurement.
··· 1 unchanged paragraph folded ···
v8.4 · 3. Where a find failsA needed item has to pass five gates before it helps, each with its own fix and test, so a miss is diagnosed by the first gate it fails. Figure 2 follows the browser helper of §1 through all five.
v8.5 · 3. Where a find failsA needed item has to pass six gates before it helps, each with its own fix and test, so a miss is diagnosed by the first gate it fails. Figure 2 follows the browser helper of §1 through all six.
v8.4 · 3. Where a find fails**Gate 1, not indexed.** The item lives in a store the index does not cover, such as a catalogue of skills or a note about a machine. No ranking finds what was never indexed. Recall is bounded by coverage: if $P(s)$ is the share of the items a query needs that live in source $s$, then for any retriever that searches the set of sources $\mathcal{Q}$,
v8.5 · 3. Where a find fails**Gate 1, not indexed.** The item lives in a store the index does not cover, such as a catalogue of skills or a note about a machine. No ranking finds what was never indexed: if a third of what requests need lives in the skill catalogue and the catalogue is not indexed, no ranking recovers that third. *Fix:* the asset index (§4). *Test:* for each replayed miss, is the item in any index at all?
v8.4 · 3. Where a find fails$$\mathbb{E}[\text{recall}] \le \sum_{s \in \mathcal{Q}} P(s).$$
removed in v8.5
v8.4 · 3. Where a find fails*Fix:* the asset index (§4). *Test:* for each replayed miss, is the item in any index at all?
removed in v8.5
··· 3 unchanged paragraphs folded ···
v8.4 · 3. Where a find fails**Gate 5, drowned.** The item was pushed as the fourteenth of twenty old documents, or in a list that is always full, which proves nothing about relevance. *Fix:* atomic entries, a relevance floor, an empty list when nothing clears it, and a slot for named items (§6.3, §6.4). *Test:* the outcome labels of shown entries (§6.8).
v8.5 · 3. Where a find fails**Gate 5, drowned.** The item was pushed as the fourteenth of twenty old documents, or in a list that is always full, which proves nothing about relevance. Models use information in the middle of a long context less well than at its start or end (Liu et al., 2024). *Fix:* atomic entries, a relevance floor, an empty list when nothing clears it, and a slot for named items (§6.3, §6.4). *Test:* the outcome labels of shown entries (§6.8).
not in v8.4
v8.5 · 3. Where a find fails**Gate 6, ignored.** The pointer was in front of the model and the model did not act on it: the reply still says it cannot reach the portal. Delivering an item is not the same as using it. *Fix:* each entry says why it was pushed (§6.3), and an entry shown and not used counts against its rank (§8.5). *Test:* run the model on each replayed turn and score whether it followed the expected pointer before asking the owner (§9.1).
v8.4 · 3. Where a find fails{width=88%}
v8.5 · 3. Where a find fails{width=92%}
··· 1 unchanged paragraph folded ···
not in v8.4
v8.5 · 4. Two indexesFind keeps two indexes: one over text, which finds what a request is about, and one over what the owner owns, which can find what an item is for.
··· 5 unchanged paragraphs folded ···
v8.4 · 4.2 The asset indexAn entry is short; Figure 3 shows the real one for the browser helper of §1. Pushed as a pointer it costs about 40 tokens. Entries are generated from the catalogues themselves, a skill's own description or the header of a note about a machine. The file is the ground truth: the index is a cache over the files, rebuildable from them at any time.
v8.5 · 4.2 The asset indexAn entry is short; Figure 3 shows an example entry for the browser helper of §1. Pushed as a pointer it costs about 40 tokens. Entries are generated from the catalogues themselves, a skill's own description or the header of a note about a machine. The file is the ground truth: the index is a cache over the files, rebuildable from them at any time.
v8.4 · 4.2 The asset index{width=94%}
v8.5 · 4.2 The asset index{width=100%}
··· 5 unchanged paragraphs folded ···
v8.4 · 5. Four keysA key is a way to reach an entry, and each kind catches misses the others cannot.
removed in v8.5
not in v8.4
v8.5 · 5. Four keysA library files a book under its subject; a good workshop labels each drawer by the job it is for. The browser helper's note files it under "browser automation; relay commands", its subject, which is what a topic key matches. The owner's request names a job, "download the report". A use key is the drawer label: *when a site blocks a download*. A name key is asking for the tool by name, which always works if you are allowed to have it. A co-access edge links two tools that come out of the drawer together, here the portal-logins note and the downloads recipe of Figure 3. A key is a way to reach an entry, and each kind catches misses the others cannot.
··· 9 unchanged paragraphs folded ···
v8.4 · 5.5 Combining keys: one scoreEach match strength lies in $[0,1]$. For use and topic keys it is the best score $s$ between the query and the entry's keys of that type, mapped by two anchors measured per key type and scorer and recorded in the index manifest (§8.3):
removed in v8.5
not in v8.4
v8.5 · 5.5 Combining keys: one scoreEach key type gives a match strength $m$ in $[0,1]$, so that scorers on different scales can be combined. For use and topic keys, the best score $s$ between the query and the entry's keys of that type is rescaled between two anchors: $s_0$, beaten by only 5% of random query–entry pairs, and $s_1$, a clear match. Below $s_0$ counts as 0, above $s_1$ as 1, linear in between:
v8.4 · 5.5 Combining keys: one score$$m = \min\!\Big(1, \max\!\big(0, \tfrac{s - s_0}{s_1 - s_0}\big)\Big),$$
v8.5 · 5.5 Combining keys: one score$$m = \min\!\Big(1, \max\!\big(0, \tfrac{s - s_0}{s_1 - s_0}\big)\Big).$$
v8.4 · 5.5 Combining keys: one scorewhere $s_0$ is the 95th percentile of the score over random query–entry pairs and $s_1$ the top of the scale: 1 for cosine similarity, and for BM25, whose scores have no upper bound, the median score of true matches in the development replay (§8.5), or in the synthetic suite's development half until the replay has enough (§9.4). A build whose $s_1$ does not exceed $s_0$ leaves that scorer out of the score and says so in its manifest. For co-access, $m_{\text{co}}$ is the normalised PMI of the strongest edge from an entry the other keys found, $\max\big(0, \ln\frac{p(a,b)}{p(a)\,p(b)} \big/ {-\ln p(a,b)}\big)$, with $p$ the shares of requests that fetched $a$, $b$, or both; it is set to 1 for an entry resolved from the task-reference state (§6.1), and 0 otherwise. Names do not enter the score: they go to the named slot.
v8.5 · 5.5 Combining keys: one score$s_1$ is 1 for cosine similarity; for BM25, which has no upper bound, it is the median score of true matches in the development replay (§8.5), or in the synthetic suite's development half until the replay has enough (§9.4). The anchors, measured per key type and scorer, live in the index manifest (§8.3); a build with $s_1 \le s_0$ drops that scorer and says so there. For co-access, $m_{\text{co}}$ is the normalised PMI of the strongest edge from an entry the other keys found, $\max\big(0, \ln\frac{p(a,b)}{p(a)\,p(b)} \big/ {-\ln p(a,b)}\big)$, with $p$ the shares of requests that fetched $a$, $b$, or both: 0 at chance, 1 when always fetched together. An entry resolved from the task-reference state (§6.1) gets 1, any other 0. Names skip the score and go to the named slot.
··· 10 unchanged paragraphs folded ···
v8.4 · 6.2 What may run on the pathThe push has a budget: 50 ms at the 95th percentile from the owner's words to the packed list. The query is always new, so the encoder gets its own 15 ms: a small local sentence encoder of the Sentence-BERT family (Reimers and Gurevych, 2019), the same model that built the index, named in the index manifest (§8.3). If it misses its budget, is absent or does not match the manifest, the push falls back to names and BM25 over use and topic keys, and its receipt says "lexical only". A full search of the text index does not fit the path; it runs beside the turn, and its result is offered to the next turn, marked as computed for the previous message.
v8.5 · 6.2 What may run on the pathThe push has a budget: 50 ms at the 95th percentile from the owner's words to the packed list. The query is always new, so the encoder gets its own 15 ms: a small local sentence encoder of the Sentence-BERT family (Reimers and Gurevych, 2019), the same model that built the index, named in the index manifest (§8.3). If it misses its budget, is absent or does not match the manifest, the push falls back to names and BM25 over use and topic keys, and its receipt says "lexical only". The rest of the budget is split, as targets to be measured (§9.2): the owner's words and the task-reference state, 2 ms; the epoch check, up to 10 ms (§8.3); names, use and topic keys over the asset index, the use keys of facts and the overlay, 15 ms; eligibility and scoring, 6 ms; packing, 2 ms. A full search of the text index, over the bodies of notes and session records, does not fit; it runs beside the turn, and its hits join the next turn's candidates, scored like any other and marked as found for the previous message.
not in v8.4
v8.5 · 6.2 What may run on the pathAn owner who writes in more than one language needs a multilingual encoder: a key cut from a correction in one language has to match a request in another, which BM25 cannot do. The lexical fallback then finds only keys in the request's language, and its receipt says so.
··· 1 unchanged paragraph folded ···
v8.4 · 6.3 The listThe list holds up to five entries with $p_e \ge \tau$, plus any named items. Each entry carries its ID, revision and the key that matched, which helps the model judge it and lets the replay attribute a hit to a key. An entry goes in whole or as a pointer by the line §7.3 derives. When nothing clears the floor the list is empty, and an empty list is a correct answer.
v8.5 · 6.3 The listThe list holds up to five entries with $p_e \ge \tau$, plus any named items. Each entry carries its ID, revision and the key that matched, which helps the model judge it and lets the replay attribute a hit to a key. An entry goes in whole or as a pointer by the line §7.3 derives, and the whole list is capped at 1,000 tokens a turn: an item that would go in whole past the cap goes as a pointer. When nothing clears the floor the list is empty, and an empty list is a correct answer.
··· 2 unchanged paragraphs folded ···
v8.4 · 6.4 A guaranteed slot for a named itemThe slot yields to one thing: eligibility. Names are matched against the reader's authorised view of the name table, and a named entry then passes the same eligibility steps as every other candidate before any slot is reserved (§8.1). A named item that fails any step takes no slot, and the list carries neither the entry nor its pointer nor any hint that it exists. Up to three eligible named entries take slots, in the order named; further ones share one line listing their names. Named entries never take one of the five ranked places. *Test:* every eligible named case gets its entry, every time, and a named item outside the reader's scope, quarantined, suppressed or erased exposes nothing (T20).
v8.5 · 6.4 A guaranteed slot for a named itemThe slot yields to one thing: eligibility. Names are matched against the reader's authorised view of the name table, and a named entry then passes the same eligibility steps as every other candidate before any slot is reserved (§8.1). A named item that fails any step takes no slot, and the list carries neither the entry nor its pointer nor any hint that it exists. Up to three eligible named entries take slots, in the order named; further ones share one line listing their names. Named entries never take one of the five ranked places. *Test:* every eligible named case gets its entry, every time, and a named item outside the reader's scope, quarantined, suppressed or erased exposes nothing.
··· 1 unchanged paragraph folded ···
v8.4 · 6.5 Where the list goesThe list goes after the cached prefix, in the per-turn slot next to the owner's message, never into the system prompt or an always-loaded file; §7.4 gives the price of getting this wrong. The same tail carries the learning stage's provisional rule lines and correction sentences still waiting to be processed (J5 §6.1, the fast path), priced the same way.
removed in v8.5
not in v8.4
v8.5 · 6.5 Where the list goesThe prompt cache works like a long document the provider keeps typeset: change a page in the middle and every page after it is typeset again; add a page at the end and only that page is. So the list goes after the cached prefix, next to the owner's message, never into the system prompt or an always-loaded file; §7.4 gives the price of getting this wrong.
not in v8.4
v8.5 · 6.5 Where the list goesWhere the provider offers a turn-scoped slot, the list goes there. Anthropic's API takes a system message marked to clear at the next user message: it is shown for the current turn, then stays in the conversation, shows nothing and costs no input tokens, and the cache keeps matching (Anthropic, 2026d). Where there is no such slot (other providers, and command-line tools that own the window) the list goes into the persistent tail next to the owner's message. The tail also carries the learning stage's provisional rule lines and correction sentences still waiting to be processed (J5 §6.1, the fast path), priced the same way.
··· 3 unchanged paragraphs folded ···
v8.4 · 6.7 What the context already holdsAn index answers *where is it?* A read ledger answers *do I already have it?* Before a read, it checks whether that file region is already in the window and unchanged. A matching hash proves the file did not change, not that the text is still in the window, so the ledger consumes the eviction events the keeping stage publishes (J1 §6.6; one receipt per compaction, J1 §7.4) and drops every entry whose range left the window (T16). The event also comes for the window J1 rebuilds after an erase (T15, then T16). After a tool or API compaction everything sent before it is of unknown residency (J1 §6.6), so it drops every entry older than the event. Only when the hash matches and the range was never evicted does the read return where the text already sits. A read of a path that does not exist is logged as a find miss for the writing stage (J14 §9.2, one topic per file).
v8.5 · 6.7 What the context already holdsAn index answers *where is it?* A read ledger answers *do I already have it?* Before a read, it checks whether that file region is already in the window and unchanged. A matching hash proves the file did not change, not that the text is still in the window, so the ledger reads the eviction events the keeping stage publishes, one per compaction (J1 §6.6), and drops every entry whose range left the window, including when the keeping stage rebuilds the window after an erasure. When the provider's API or command-line tool compacts the window itself, nobody can tell what is still in it, so the ledger drops every entry older than the event. Only when the hash matches and the range was never evicted does the read return where the text already sits. A read of a path that does not exist is logged as a find miss for the writing stage (J14 §9.2, one topic per file).
··· 1 unchanged paragraph folded ···
v8.4 · 6.8 The use logFor each entry shown, by push or by pull, the log keeps one row. *Shown* records that it was sent to the model, with the window controller's knowledge level: known input, or sent, unconfirmed (J1 §6.6, the adapter contract). *Used* means the reply referred to it or a later tool call followed its pointer; *body read* means a pull fetched a body not already in the window (§7.1). A used entry then gets one of four outcome labels. **Verified success**: something observed confirms it helped, such as the pointed-to tool call succeeding at the step it was fetched for, the owner's explicit approval, or a sampled audit. **Explicit failure**: the owner says it was wrong, outdated or not the one he meant, or its pointer was broken. **Unchallenged use**: used, and nothing confirmed or contradicted it. **Unknown**: the session ended before an outcome could be seen. Silence is never success. An entry fetched with the pull that the push had not shown is labelled *missed by push*, a fact about the push and not a success. The ranking learns from these labels with their uncertainty (§8.5).
v8.5 · 6.8 The use logFor each entry shown, by push or by pull, the log keeps one row. *Shown* records that it was sent to the model, and how sure the window controller is that the model received it: known input, or sent but unconfirmed (J1 §6.6). *Used* means the reply referred to it or a later tool call followed its pointer; *body read* means a pull fetched a body not already in the window (§7.1). A used entry then gets one of four outcome labels. **Verified success**: something observed confirms it helped, such as the pointed-to tool call succeeding at the step it was fetched for, the owner's explicit approval, or a sampled audit. **Explicit failure**: the owner says it was wrong, outdated or not the one he meant, or its pointer was broken. **Unchallenged use**: used, and nothing confirmed or contradicted it. **Unknown**: the session ended before an outcome could be seen. Silence is never success. An entry fetched with the pull that the push had not shown is labelled *missed by push*, a fact about the push and not a success. The ranking learns from these labels with their uncertainty (§8.5).
v8.4 · 6.8 The use logThe log answers "which memories were supplied or cited for this answer?". Every entry shown carries its ID, revision and knowledge level, and every use names it. That is attribution, not causation: it shows what was in front of the model and what the reply cited or a tool followed, not what determined the answer, least of all for input that was sent but unconfirmed. An item the owner asked not to mention joins a suppression list read at the privacy step (§8.1): it stays stored and visible in his own view and is no longer pushed or returned.
v8.5 · 6.8 The use logThe log answers "which memories were supplied or cited for this answer?". Every entry shown carries its ID, revision and that certainty, and every use names it. That is attribution, not causation: it shows what was in front of the model and what the reply cited or a tool followed, not what determined the answer, least of all for input that was sent but unconfirmed. An item the owner asked not to mention joins a suppression list read at the privacy step (§8.1): it stays stored and visible in his own view and is no longer pushed or returned.
v8.4 · 6.8 The use log**The owner's inspector** is one owner-only view over these records. For any item it shows the sources (addresses) and the state in J14's receipt words (accepted, pending, held, refused) with the receipt and its attempt and previous_receipt chain (a pending or held line never shows as a fact), and keeps three actions apart: correct (a new write through the writing stage's gate), don't mention (the suppression above) and delete (J14 §7.7, whose links list the derived places a delete must reach). ChatGPT's help page likewise separates saved memories from chat history and says deleting a memory leaves the earlier chats that mention it (OpenAI, 2026); the inspector lists such leftovers. *Test:* each state of Table 2 shows under its own label, and a held item never shows as current.
v8.5 · 6.8 The use log**The owner's inspector** is one owner-only view over these records. For any item it shows the sources (addresses) and the state in J14's receipt words (accepted, pending, held, refused) with the receipt and its attempt and previous_receipt chain (a pending or held line never shows as a fact), and keeps three actions apart: correct (a new write through the writing stage's gate), don't mention (the suppression above) and delete (J14 §7.7, whose links list the derived places a delete must reach). ChatGPT's help page likewise separates saved memories from chat history and says deleting a memory leaves the earlier chats that mention it (OpenAI, 2026); the inspector lists such leftovers. *Test:* each state of Table 9 shows under its own label, and a held item never shows as current.
··· 3 unchanged paragraphs folded ···
v8.4 · 6.9 Ask the session that did the workThe learning stage's night pass writes one card per finished session (J5 §6.2, the nightly auditor): what it decided or built, the files it touched, its dates and its reader scope. Cards are indexed like any other asset, with use keys. When a card matches the turn, the push carries a pointer, "session s0412 worked on this, 3 October", and a pull can ask it. Asking means searching that session's record first; if the record answers thinly, the session is woken in place with one question and a wake-up note (J1 §8.3, asking a past session). Its answer is testimony from its own time, labelled with its dates. Reader scope binds here as everywhere (§8.1): a narrower reader never wakes, or learns of, an owner-private session.
v8.5 · 6.9 Ask the session that did the workThe learning stage's night pass writes one card per finished session (J5 §6.2, the nightly auditor): what it decided or built, the files it touched, its dates and its reader scope. Cards are indexed like any other asset, with use keys. When a card matches the turn, the push carries a pointer, "session s0412 worked on this, 3 October", and a pull can ask it. Asking means searching that session's record first; if the record answers thinly, the session itself is resumed, not copied, with one question and a note saying why it was woken (J1 §8.3, asking a past session). Its answer is testimony from its own time, labelled with its dates. Reader scope binds here as everywhere (§8.1): a narrower reader never wakes, or learns of, an owner-private session.
··· 3 unchanged paragraphs folded ···
v8.4 · 7.1 A read costs a turnThis section holds the notation and prices for the whole series (Table 1): symbols another paper reuses are registered here; symbols local to one section are declared there. Prices are Anthropic's published ones (Anthropic, 2026b), and each probability names its event and its horizon.
v8.5 · 7.1 A read costs a turnThis section holds the notation and prices for the whole series (Table 4): symbols another paper reuses are registered here; symbols local to one section are declared there. Prices are Anthropic's published ones (Anthropic, 2026b), and each probability names its event and its horizon.
··· 2 unchanged paragraphs folded ···
v8.4 · 7.1 A read costs a turnWith the values in Table 1 this is about 11,000 base tokens, of which the size of what was read, $wx$, is only 625. A read costs a turn, not bytes. So count reads: a unit that brings related text in one read saves turns (§4.1), and a pointer pushed in advance removes the search that would come before the read.
v8.5 · 7.1 A read costs a turnWith the values in Table 4 this is about 11,000 base tokens, of which the size of what was read, $wx$, is only 625. A read costs a turn, not bytes. So count reads: a unit that brings related text in one read saves turns (§4.1), and a pointer pushed in advance removes the search that would come before the read.
··· 1 unchanged paragraph folded ···
v8.4 · 7.1 A read costs a turn| Symbol | Meaning | Value in the examples | |-------|----------------------------------------------------------|------------------------| | $r$ | price of reading one cached token | 0.1 (0.05 or 0.025 on some models) | | $w$ | price of writing one token to the cache | 1.25 (five-minute cache); 2 (one-hour cache) | | $g$ | price of one output token | 5 | | $o$ | output tokens of one tool call | about 100 | | $L$ | tokens already cached in the context window | 100,000 | | $P$ | position of the first token that changed | 20,000 | | $x$ | tokens returned by one read | 500 | | $B$ | tokens of an item's body | varies | | $B_p$ | tokens of a pointer to it | 40 | | $M$ | later calls in the session that re-read the context | 30 | | $q$ | probability of a body read: a pull fetches the item's body, not already in the window, at least once in the rest of the session (horizon: the $M$ later calls) | 0.1 to 0.5 | | $p_e$ | probability that entry $e$, if shown, is used and helps (horizon: this turn; §5.5) | from the score | | $q_{\text{turn}}$ | probability that a later turn pulls from an evicted span (horizon: one turn; J1 §7.2, the price of moving the prefix) | not yet measured | | $H$ | turns a pulled slice stays in the window (J1 §7.2) | not yet measured | | $c$ | input price of the model that writes a marker (J1 §7.2) | not yet measured | | $K$ | cost of one marker of $m$ tokens over $S$ tokens, $K = cS + g\,m$ (J1 §7.2) | per span | | $q_{90}$ | probability that some session in the next 90 days needs a detail (J14 §4, choosing what to write) | estimated per detail | | $\pi_s$, $\pi_\ell$ | base input price of a small and a large model (Claude Haiku 5.5, Claude Opus 5.5), in dollars per token | \$0.10 and \$4 per million |
v8.5 · 7.1 A read costs a turn| Symbol | Meaning | Value in the examples | |-------|----------------------------------------------------------|------------------------| | $r$ | price of reading one cached token | 0.1 (0.05 or 0.025 on some models) | | $w$ | price of writing one token to the cache | 1.25 (five-minute cache); 2 (one-hour cache) | | $g$ | price of one output token | 5 | | $o$ | output tokens of one tool call | about 100 | | $L$ | tokens already cached in the context window | 100,000 | | $P$ | position of the first token that changed | 20,000 | | $x$ | tokens returned by one read | 500 | | $B$ | tokens of an item's body | varies | | $B_p$ | tokens of a pointer to it | 40 | | $M$ | later calls in the session that re-read the context | 30 | | $q$ | probability of a body read: a pull fetches the item's body, not already in the window, at least once in the rest of the session (horizon: the $M$ later calls) | 0.1 to 0.5 | | $p_e$ | probability that entry $e$, if shown, is used and helps (horizon: this turn; §5.5) | from the score | | $L_s$, $L_a$ | cached context of a past session and of the session asking it (§7.6) | per session | | | **Used by the companion papers** | | | $q_{\text{turn}}$ | probability that a later turn pulls from an evicted span (horizon: one turn; J1 §7.2, the price of moving the prefix) | not yet measured | | $H$ | turns a pulled slice stays in the window (J1 §7.2) | not yet measured | | $c$ | input price of the model that writes a marker (J1 §7.2) | not yet measured | | $K$ | cost of one marker of $m$ tokens over $S$ tokens, $K = cS + g\,m$ (J1 §7.2) | per span | | $q_{90}$ | probability that some session in the next 90 days needs a detail (J14 §4, choosing what to write) | estimated per detail | | $\pi_s$, $\pi_\ell$ | base input price of a small and a large model (Claude Haiku 5.5, Claude Opus 5.5), in dollars per token | \$0.10 and \$4 per million |
v8.4 · 7.1 A read costs a turn: Notation and prices for the series, in multiples of the base input price except $\pi_s$ and $\pi_\ell$ (dollars).
v8.5 · 7.1 A read costs a turn: Notation and prices for the series, in multiples of the base input price except $\pi_s$ and $\pi_\ell$ (dollars). The rows below the heading serve the companion papers.
··· 1 unchanged paragraph folded ···
v8.4 · 7.2 What a push costsAn item of $B$ tokens in the pushed list is written once at $w$. It then stays in the session and is re-read at $r$ by each of the $M$ later calls:
v8.5 · 7.2 What a push costsThe list can sit in one of two places (§6.5). In the persistent tail, an item of $B$ tokens is written once at $w$, then stays in the session and is re-read at $r$ by each of the $M$ later calls:
··· 1 unchanged paragraph folded ···
v8.4 · 7.2 What a push costsWith $M = 30$ the factor is $1.25 + 3 = 4.25$, so a 40-token pointer costs about 170 base tokens over its life and a list of five about 850. A pull costs about 11,000 plus another 1,500 for its result re-read over the same $M$ calls. The list pays for itself if it saves a search turn in more than about one turn in fifteen.
v8.5 · 7.2 What a push costsWith $M = 30$ the factor is $1.25 + 3 = 4.25$, so a 40-token pointer costs about 170 base tokens over its life and a list of five about 850. A pull costs about 11,000 plus another 1,500 for its result re-read over the same $M$ calls. In the tail, the list pays for itself if it saves a search in more than about one turn in fifteen.
not in v8.4
v8.5 · 7.2 What a push costsIn a turn-scoped slot the item cannot be cached, so it bills at the base price, $B$ for each call that sees it, and nothing after its turn. Five pointers then cost 200 for a turn of one call, and the list pays for itself if it saves a search in about one turn in sixty. The slot also removes a cost the tail formula leaves out: thirty turns of a persistent tail leave thirty old lists in the context, and the model can still follow a pointer from turn 3. Its limit is the tool loop. A tool result counts as a new user message and clears the slot, so a list that must stay in view through $k$ calls is sent again after each result, at $kB$.
··· 3 unchanged paragraphs folded ···
v8.4 · 7.3 Whole or pointerWith the values in Table 1 ($F = 4.25$, $C = 10{,}500$), $B^{*}$ is about 2,551 tokens for an item with $q = 0.5$ and about 319 tokens for $q = 0.1$; at $q = 0$ it falls to the pointer itself. As $q$ approaches 1, $B^{*}$ grows without bound, so an item certain to be needed goes in whole and everything else as a pointer. A longer context raises $B^{*}$, a cheaper cache read lowers it (Figure 4a).
v8.5 · 7.3 Whole or pointerWith the values in Table 4 ($F = 4.25$, $C = 10{,}500$), $B^{*}$ is about 2,551 tokens for an item with $q = 0.5$ and about 319 tokens for $q = 0.1$; at $q = 0$ it falls to the pointer itself. As $q$ approaches 1, $B^{*}$ grows without bound, so an item certain to be needed goes in whole and everything else as a pointer. A longer context raises $B^{*}$, a cheaper cache read lowers it (Figure 4a). The line holds for the persistent tail. An item pushed whole into a turn-scoped slot is gone next turn, so a later need pays a pull anyway; there an item goes in whole only when this turn is likely to need it, and the 1,000-token cap of §6.3 bounds the list either way.
··· 1 unchanged paragraph folded ···
v8.4 · 7.4 Where it goesIf a block that changes every turn is placed at position $P$ inside the cached prefix, the next call has to write the $L - P$ tokens after it to the cache again, at $w$ instead of reading them at $r$. That adds
v8.5 · 7.4 Where it goesBack to the typeset document of §6.5. A 1,000-token memory block placed a fifth of the way into a 100,000-token prompt makes the provider rewrite the 80,000 tokens after it on every turn: about 92,000 base tokens, the price of eight searches. The same block at the end costs its own write, about 1,250. In symbols: if a block that changes every turn is placed at position $P$ inside the cached prefix, the next call has to write the $L - P$ tokens after it to the cache again, at $w$ instead of reading them at $r$. That adds
··· 1 unchanged paragraph folded ···
v8.4 · 7.4 Where it goesto every turn. With $L = 100{,}000$ and the block at $P = 20{,}000$, that is about 92,000 base tokens a turn, the price of eight pulls (Figure 4b). In the tail, the same block costs only its own write. The bar for placement follows: memory in the tail adds the write of its own tokens and no rewrite of the unchanged prefix (§9.2). The same term prices a one-time eviction from the middle of the window (J1 §7.2, the price of moving the prefix).
v8.5 · 7.4 Where it goesto every turn. With $L = 100{,}000$ and the block at $P = 20{,}000$, that is the 92,000 above, the price of eight pulls (Figure 4b). In the tail, the same block costs its own write and its re-reads (§7.2); in a turn-scoped slot, 1,000 for each call that sees it. The bar for placement follows: memory in the tail adds the write of its own tokens and no rewrite of the unchanged prefix (§9.2). The same term prices a one-time eviction from the middle of the window (J1 §7.2, the price of moving the prefix).
··· 3 unchanged paragraphs folded ···
v8.4 · 7.6 Waking a session against searchingA woken session that has left the cache rereads its whole context once, written to cache at $w$; call that context $C_s$ tokens. The asker's search costs a turn per step (§7.1), each re-reading the asker's own context of $C_a$ tokens at $r$. Ignoring the answer itself, the wake pays in tokens when it saves more than
v8.5 · 7.6 Waking a session against searchingA woken session that has left the cache rereads its whole context once, written to cache at $w$; call that context $L_s$ tokens. The asker's search costs a turn per step (§7.1), each re-reading the asker's own context of $L_a$ tokens at $r$. Ignoring the answer itself, the wake pays in tokens when it saves more than
v8.4 · 7.6 Waking a session against searching$$k^{*} = \frac{w}{r}\cdot\frac{C_s}{C_a}$$
v8.5 · 7.6 Waking a session against searching$$k^{*} = \frac{w}{r}\cdot\frac{L_s}{L_a}$$
v8.4 · 7.6 Waking a session against searchingsearch calls. At $w = 1.25$ and $r = 0.05$ that is $25\,C_s/C_a$: a 270K-token session asked from a 500K-token chat pays after about 14 saved calls, from a 70K-token chat after about 96. A second question inside the cache lifetime costs only $r\,C_s$. Time favours the wake almost always, since it is one call where a search is several. So a long chat should ask the session, and a short one should search first. §9.2 measures both on the owner's own questions.
v8.5 · 7.6 Waking a session against searchingsearch calls. On Claude Opus 5.5, whose cache reads cost 0.05 of the base input price, that is $25\,L_s/L_a$: a 270K-token session asked from a 500K-token chat pays after about 14 saved calls, from a 70K-token chat after about 96. At the $r = 0.1$ of Table 4 both thresholds halve, to about 7 and 48. A second question inside the cache lifetime costs only $r\,L_s$. Time favours the wake almost always, since it is one call where a search is several. So a long chat should ask the session, and a short one should search first. §9.2 measures both on the owner's own questions.
v8.4 · 7.6 Waking a session against searching{width=94%}
v8.5 · 7.6 Waking a session against searching{width=94%}
··· 3 unchanged paragraphs folded ···
not in v8.4
v8.5 · 8.1 Filters, in a fixed orderThe worst daily failure this stage could cause is a private pointer, such as where a credential is kept, shown in a shared chat or to a sub-agent. So every candidate passes one function, `eligible()`, whatever route brought it: ranked, named, fresh-writes overlay or task reference. Ranking and slots come after it, and no later step can undo an earlier one.
v8.4 · 8.1 Filters, in a fixed orderEvery candidate passes one function, `eligible()`, whatever route brought it: ranked, named, fresh-writes overlay or task reference. It first resolves which revision the candidate would return: the revision map of §8.2 and the temporal mode (current state or a past date) pick that one revision, and they only drop candidates or swap one revision for another. The three steps below then run, in this order, on that exact revision, so a revision substituted by resolution is authorised in its own right and never rides on its predecessor's readers. No later step can undo an earlier one; ranking and slots come after. Authorisation sits inside it and runs again when the answer is returned if the permission version changed meanwhile (T21).
v8.5 · 8.1 Filters, in a fixed orderThe function first settles which revision the candidate would return: the revision map of §8.2 and the temporal mode (current state or a past date) pick that one revision, and they only drop candidates or swap one revision for another. The three steps below then run on that exact revision, so a substituted revision is checked in its own right. If a fact's first revision is public and its second private, a public reader asking about the present is checked against the second and gets nothing; the first revision's permission does not carry over. Authorisation runs again when the answer is returned if permissions changed meanwhile.
v8.4 · 8.1 Filters, in a fixed order1. **Authorisation.** The reader comes from authenticated session state, never from a field of the request: a namespace filter is not authorisation (Zep, 2026). It is the session asking: the owner's, a sub-agent with a narrower scope, or a chat that includes other people. Each entry carries a reader scope, the set of readers allowed to see it, set when Find indexes it from where the content came (the source class of J14 §8.1, three fields and the links) and where it was written: what came from the owner's private sessions, and any pointer to a credential, is his alone. Scopes have no single order. A derived item (a use key, a co-access edge, a generated entry, a hold) is readable only by the *intersection* of its sources' scopes, followed through dependency links (the writing stage owns the schema) and evaluated when the answer is returned; it may be empty. A hold on R-43, derived from an owner-private correction and a recipe a supplier sub-agent may read, is the owner's alone: the sub-agent gets nothing, not even a count, unless the owner grants it (T12, T20). The owner may widen or narrow a scope; an agent may only narrow one. An entry outside the reader's scope does not exist for this query, in no list, slot, walk or count, and a narrower reader reaches memory only through this filtered service, never the store's files. *Tests:* its direct file read is refused (T20); a task reference is refused once the reader loses access to its source, also in a query already running (T21). 2. **Quarantine and privacy suppression.** Erased items are gone from the indexes (J14 §7.7, erase and quarantine), and until the next build the revision map of §8.2 hides any copy left in the base index. Quarantine is an access restriction the writing stage decides; it marks every row reached through links from the span, ordinary retrieval and show-hidden drop them, and only an audit view with audit permission shows them (T23). Items the owner asked not to mention (§6.8) stop here too. 3. **Temporal visibility.** *Current-state* resolution, the default, sees what is valid and believed now: the revision map keeps the latest revision, and a fact the writing stage superseded or retracted is hidden (J14 §7.3, three ways a fact ends). *Historical* resolution answers what was true, or believed, at a date (J14 §7.4, two questions about the past): it skips the latest-revision rule and picks the revision by valid or recorded time. Steps 1 and 2 bind both, and so do the map's tombstones. *Test:* asked what was believed the day before a correction, the owner gets the old revision; once the correction is erased, no row of it. And a fact whose first revision is public and whose second is private returns nothing to a public reader in current-state mode, and only the public revision in historical mode.
v8.5 · 8.1 Filters, in a fixed order1. **Authorisation.** The reader comes from authenticated session state, never from a field of the request: a namespace filter is not authorisation (Zep, 2026). Each entry carries a reader scope, the set of readers allowed to see it, set when Find indexes it from where the content came (the source class of J14 §8.1, three fields and the links) and where it was written: what came from the owner's private sessions, and any pointer to a credential, is his alone. Scopes have no single order. A derived item (a use key, a co-access edge, a generated entry, a hold) is readable only by the *intersection* of its sources' scopes, followed through dependency links (the writing stage owns the schema) and evaluated when the answer is returned; it may be empty. A held rule derived from an owner-private correction and from a recipe a supplier sub-agent may read is the owner's alone: the sub-agent gets nothing, not even a count, unless the owner grants it. The owner may widen or narrow a scope; an agent may only narrow one. An entry outside the reader's scope does not exist for this query, in no list, slot, walk or count, and a narrower reader reaches memory only through this filtered service, never the store's files. *Tests:* its direct file read is refused; a task reference is refused once the reader loses access to its source, also in a query already running. 2. **Quarantine and privacy suppression.** Erased items are gone from the indexes (J14 §7.7, erase and quarantine), and until the next build the revision map of §8.2 hides any copy left in the base index. Quarantine is an access restriction the writing stage decides; it marks every row reached through links from the span, ordinary retrieval and show-hidden drop them, and only an audit view with audit permission shows them. Items the owner asked not to mention (§6.8) stop here too. 3. **Temporal visibility.** *Current-state* resolution, the default, sees what is valid and believed now: the revision map keeps the latest revision, and a fact the writing stage superseded or retracted is hidden (J14 §7.3, three ways a fact ends). *Historical* resolution answers what was true, or believed, at a date (J14 §7.4, two questions about the past): it skips the latest-revision rule and picks the revision by valid or recorded time. Steps 1 and 2 bind both, and so do the map's tombstones. *Test:* asked what was believed the day before a correction, the owner gets the old revision; once the correction is erased, no row of it. A fact whose first revision is public and whose second is private returns nothing to a public reader in current-state mode, and only the public revision in historical mode.
··· 2 unchanged paragraphs folded ···
not in v8.4
v8.5 · 8.2 Becoming retrievableA correction you make now must be findable on your next message, although the index is rebuilt only at night. So each new write also goes into a small table that every request checks, until the next build takes it in.
v8.4 · 8.2 Becoming retrievableThe agent names the status a correction has reached, never "I remembered that": **captured** (J1), **accepted** (committed through the writing stage's gate; a hold is acknowledged, not accepted; J14), **retrievable**, and **active** or **enforced** (J5). They are dimensions, not a chain. This stage owns retrievable: reachable through an eligible read path by the next relevant request, in the same session too; that promises no place in the next push.
v8.5 · 8.2 Becoming retrievableThe agent names the status a correction has reached, never "I remembered that": **captured** (J1), **accepted** (committed through the writing stage's gate; a hold is acknowledged, not accepted; J14), **retrievable**, and **active** or **enforced** (J5). They are dimensions, not a chain. This stage owns retrievable: reachable through an eligible read path by the next relevant request, in the same session too. That promises no place in the next push; the pull will return it.
v8.4 · 8.2 Becoming retrievableA nightly build cannot meet that bar, and the worst miss of all is contradicting what the agent wrote an hour ago. So every accepted write also enters a **fresh-writes overlay**: a small in-memory table of the writes since the last build, with their keys and reader scope, scanned on every request. The writing stage publishes the write and, in the same transaction, a delivery record of IDs, revisions and receipt IDs, never content, resent until this stage acknowledges (J14 §7.2, publish a snapshot, or nothing). For a published item the overlay reads each ID@revision from the published snapshot, so an erased revision arrives as a tombstone; a delivery older than its applied epoch is re-read from the store, and an older revision never overwrites a tombstone or a newer one (T9). A hold or pending line has no snapshot, so the overlay reads the record the write receipt names, at its applied epoch (T12, T4). The overlay receipt is keyed by that receipt_id and closes the delivery record through its `acknowledged_by` (J14 A.2, Table 6). It makes the item retrievable and lets the learning stage mark that child retrievable (T10); the correction's tail line leaves only when every child is retrievable or held (J5 §6.1).
removed in v8.5
not in v8.4
v8.5 · 8.2 Becoming retrievableThat table is the **fresh-writes overlay**: the writes since the last build, in memory, with their keys and reader scope. The worst miss of all is contradicting what the agent wrote an hour ago, and the overlay is what prevents it. The writing stage tells Find about each accepted write with a delivery slip and resends it until Find confirms (J14 §7.2). The confirmation makes the item retrievable, and the correction's provisional line leaves the prompt's tail once every part of the correction is retrievable or held (J5 §6.1). Appendix C gives the delivery in detail, including what happens when an erasure crosses it, and Table 9 lists the failure cases with what the agent may say in each.
v8.4 · 8.2 Becoming retrievableNew text alone cannot stop old text from being served: a query matching only the superseded wording would find the old row in the base index and never meet the new one. So the overlay keeps a **revision map**, an entry for every ID changed since the build with its latest revision or a tombstone, applied to every base-index candidate before the filters: an older revision or a tombstoned ID is dropped in current-state resolution (§8.1). *Test:* a query matching only the old wording misses the old revision (T9).
v8.5 · 8.2 Becoming retrievableNew text alone cannot stop old text from being served: a query matching only the superseded wording would find the old row in the base index and never meet the new one. So the overlay keeps a **revision map**, an entry for every ID changed since the build with its latest revision or a tombstone (a deletion marker), applied to every base-index candidate before the filters: an older revision or a tombstoned ID is dropped in current-state resolution (§8.1). *Test:* a query matching only the old wording misses the old revision.
v8.4 · 8.2 Becoming retrievableA held write is served only as a hold, never as a fact or a rule in force, and only to the readers its sources share (T12). A line in the writing stage's pending area, written while its judge was down, is never merged as a fact: the pull serves it labelled "unchecked" and the push never shows it (J14 §5.3, when something fails; trace step 4). A row in the learning stage's rule ledger is a proposal, not retrievable as a rule in force (J5 §4.1, one row per rule); a rule line enters the overlay only on the writing stage's receipt.
v8.5 · 8.2 Becoming retrievableA held write is served only as a hold, never as a fact or a rule in force, and only to the readers its sources share. A line in the writing stage's pending area, written while its judge was down, is never merged as a fact: the pull serves it labelled "unchecked" and the push never shows it (J14 §5.3, when something fails). A row in the learning stage's rule ledger is a proposal, not retrievable as a rule in force (J5 §4.1, one row per rule); a rule line enters the overlay only on the writing stage's receipt.
v8.4 · 8.2 Becoming retrievable| Case | What Find does | Status the agent may name | |--------------------|----------------------------------------------|------------------------| | Overlay append fails, delivery lost, or the writing stage crashes after publishing | resent from the writing stage's outbox until acknowledged | accepted, not yet retrievable | | Writing stage's judge down | line kept in its pending area; the pull shows it as unchecked, the push never | captured, acceptance pending | | Write held | served only as a hold | held for the owner's approval | | Restart before the night | overlay and revision map replayed from the receipts since the build's snapshot | retrievable once the replay ends | | Concurrent writers | the revision that won the commit wins here too (J14 §7.2) | retrievable at that revision | | Re-index or new encoder | new index built beside the old; swapped in with the newer overlay suffix (§8.3) | retrievable throughout | | Compaction of the session | read ledger drops the evicted ranges (§6.7) | retrievable | | Privacy erasure | overlay rows, use keys and ledger range dropped; the ID tombstoned in the revision map; read service waits for the new epoch and reruns a read in flight; older build refused (§8.3) | erase status, per the writing stage | | Reader outside the scope, or scope narrowed during a query | nothing shown, not even a pointer or a count; `eligible()` runs again at return | not retrievable for this reader |
removed in v8.5
v8.4 · 8.2 Becoming retrievable: Moving into "retrievable": failure cases and what may be said. The whole journey: J5 Appendix B, the reference trace.
removed in v8.5
··· 1 unchanged paragraph folded ···
not in v8.4
v8.5 · 8.3 Manifests, restarts and rebuildsThe nightly build must never bring back something erased, and it must not lose a correction made while it ran.
v8.4 · 8.3 Manifests, restarts and rebuildsEvery build writes a manifest when it starts (T13): schema version, encoder and tokenizer versions, the anchors $s_0$ and $s_1$ per key type, the snapshot of the store it read (its publication watermark), the erasure epoch then, and its counts (Appendix A). The store raises its erasure epoch before any erasure or quarantine (J14 §7.2). A build is swapped in only if its manifest matches the running configuration and its epoch is still current; otherwise it is discarded and rebuilt, never mixed with the live index (T19).
v8.5 · 8.3 Manifests, restarts and rebuildsEvery build writes a manifest when it starts: schema version, encoder and tokenizer versions, the anchors $s_0$ and $s_1$ per key type, the snapshot of the store it read, the erasure epoch then, and its counts (Appendix A). The store raises its epoch before any erasure or quarantine (J14 §7.2). A build is swapped in only if its manifest matches the running configuration and its epoch is still current; otherwise it is discarded and rebuilt, never mixed with the live index.
v8.4 · 8.3 Manifests, restarts and rebuildsA swap is not a clear. It installs the index together with the overlay rows and revision-map entries newer than the build's watermark and drops only those the build already holds. *Test:* a correction committed at S-104 while a build from S-103 runs, with no change of epoch, is found after the swap without another rebuild. Where an erasure changed the epoch, the build is refused and the live index and overlay keep serving; this stage's row of the deletion receipt reports only after that refusal, since until then an old build could still swap in (T17, T19). The read service answers only once this stage has applied the newest erasure or quarantine epoch: an earlier read waits, and one that started at an older epoch and returns after a newer one is discarded and run again, so a query in flight never serves the older state (T17, T20, T23).
removed in v8.5
not in v8.4
v8.5 · 8.3 Manifests, restarts and rebuildsA swap keeps every write newer than the build's snapshot, so a correction made during the build survives it. A read waits until Find has applied the newest erasure or quarantine, and a read caught across one is run again, so no query serves the older state. The push waits at most 10 ms for this; past that it sends an empty list and leaves the finding to the pull. Appendix C gives the rules and their tests.
··· 4 unchanged paragraphs folded ···
v8.4 · 8.5 The ranking's own loopEvery night Find refits the score of §5.5, the weights $\beta$, $\lambda$, the fading exponent $d$ and the floor $\tau$, on the shown entries in the use log. Each row gets a target: 1 for a verified success; 0 for an explicit failure and for an entry shown but not used; for an unchallenged use, the share of a weekly audit sample of such uses that the audit found helpful; unknown rows are left out. The fit is regularised toward the starting values, so a key type seen a handful of times stays near where it began. The log sees only what was shown: a missed-by-push row is a positive only when its use was a verified success, and what an entry nobody fetched would have done, only the offline replay can say.
v8.5 · 8.5 The ranking's own loopEvery night Find refits the score of §5.5, the weights $\beta$, $\lambda$, the fading exponent $d$ and the floor $\tau$, on the shown entries in the use log. Each row gets a target: 1 for a verified success; 0 for an explicit failure and for an entry shown but not used; for an unchallenged use, the share of a weekly audit sample of such uses that the audit found helpful; unknown rows are left out. The audit samples 50 unchallenged uses a week, and a judge model from another vendor labels each helpful or not from the turn, the entry and what followed. The owner sees ten of those labels a month in the learning stage's morning report (J5 §7.5); where he disagrees his label wins, and the judge's agreement with him is reported with each fit. He is never asked to label more than that. The fit is regularised toward the starting values, so a key type seen a handful of times stays near where it began. The log sees only what was shown: a missed-by-push row is a positive only when its use was a verified success, and what an entry nobody fetched would have done, only the offline replay can say.
··· 5 unchanged paragraphs folded ···
v8.4 · 9.1 The correction replaySeven arms run on the same cases. Arm A is the ablation base, the shape of the hot-path systems in §2; the catalogue arm is the strongest asset-aware design we know of.
v8.5 · 9.1 The correction replayEight arms run on the same cases. Arm A is the ablation base, the shape of the hot-path systems in §2; the catalogue arm is the strongest asset-aware design we know of.
v8.4 · 9.1 The correction replay| Arm | What runs | |------------|------------------------------------------------| | A (base) | Topic keys over the text index; five whole chunks pushed each turn | | B | A, plus the asset index with name and topic keys | | C | B, plus use keys | | D | C, plus co-access edges and the task-reference state | | E | D, plus the named slot | | Catalogue | Every asset's name and description, retrieved by the request with the same hybrid search and filters, the top lines pushed at E's token budget and within its latency budget (§6.2) | | Pull only | No push; the agent has the search tool, as in the agent-searched systems of §2 |
v8.5 · 9.1 The correction replay| Arm | What runs | |------------|------------------------------------------------| | A (base) | Topic keys over the text index; five whole chunks pushed each turn | | B | A, plus the asset index with name and topic keys | | C1 | B, plus use keys written by authors and by the build: a skill's "use when" text, keys written with each fact | | C2 | C1, plus use keys cut from the owner's corrections | | D | C2, plus co-access edges and the task-reference state | | E | D, plus the named slot | | Catalogue | Every asset's name and full description, "use when" text included, retrieved by the request with the same hybrid search and filters, the top lines pushed at E's token budget and within its latency budget (§6.2) | | Pull only | No push; the agent has the search tool, as in the agent-searched systems of §2 |
··· 1 unchanged paragraph folded ···
v8.4 · 9.1 The correction replayEach arm reports hit at 5 (the expected item is in front of the model before its first call), pull finds within the turn, tokens pushed, empty lists, outcome labels, the explicit-failure rate, cache writes before and after the memory block, and push latency.
v8.5 · 9.1 The correction replayEach arm reports hit at 5 (the expected item is in front of the model before its first call) and, because delivery is not use, *followed*: the model is run on the replayed turn and scored on whether it followed the expected pointer before asking the owner (gate 6). It also reports pull finds within the turn, tokens pushed, empty lists, outcome labels, the explicit-failure rate, cache writes before and after the memory block, and push latency.
··· 1 unchanged paragraph folded ···
v8.4 · 9.2 What would decide each claimEach deciding comparison carries its own criterion, fixed before any run. A difference between two arms is a paired comparison on the same cases (McNemar, 1947) at $\alpha = 0.05$, sized for 80% power with up to a fifth of the cases discordant (Connor, 1987): about 155 cases detect a 10-point difference in hit at 5, and about 1,750 a 3-point one. A smaller gain than a test is sized for is reported with its 95% interval and not adopted. A bar of "every case" is met by zero failures in at least 300 cases, which bounds the failure rate below 1% at 95% confidence. No question is decided on the owner's cases before the evaluation stream holds the cases its test needs; until then the synthetic suite (§9.4) carries it and the owner's cases are reported as a pilot. The bars in Table 4 are adoption thresholds, not predictions.
v8.5 · 9.2 What would decide each claimEach deciding comparison carries its own criterion, fixed before any run. A difference between two arms is a paired comparison on the same cases (McNemar, 1947) at $\alpha = 0.05$, sized for 80% power with up to a fifth of the cases discordant (Connor, 1987): about 155 cases detect a 10-point difference in hit at 5, and about 1,750 a 3-point one. A smaller gain than a test is sized for is reported with its 95% interval and not adopted. A bar of "every case" is met by zero failures in at least 300 cases, which bounds the failure rate below 1% at 95% confidence. No question is decided on the owner's cases before the evaluation stream holds the cases its test needs; until then the synthetic suite (§9.4) carries it and the owner's cases are reported as a pilot. The bars in Table 6 are adoption thresholds, not predictions.
v8.4 · 9.2 What would decide each claim| Question | Decided by | Bar to adopt | |----------------------|------------------------------|--------------------------| | Does the asset index pay? | B against A, hit at 5 | Higher, paired test on 155 cases; no more tokens pushed | | Do use keys pay? | C against B | At least 10 points, on 155 cases; no more tokens | | Do co-access and the task-reference state pay? | D against C, on synthetic cases sharing no word with the item | At least 3 points, on 1,750 synthetic cases; exploratory on the owner's cases | | Does it beat a strong asset-aware design? | E against the catalogue arm, at matched tokens and latency | Higher hit at 5 on 155 cases, no higher explicit-failure rate | | Does the named slot work? | E on eligible named cases | Every case, every time | | Is access respected? | Items outside the reader's scope, quarantined, suppressed or erased, named and unnamed; derived items of sources with partly different readers; task references after access is lost, also mid-query; direct file reads | Zero entries, pointers or counts leaked in at least 300 cases per route; every direct read refused | | Is push worth it at all? | E against pull only | Fewer misses on 155 cases, no higher explicit-failure rate, cost within §7's bounds | | Is placement free? | Cache writes per turn with and without the list, on the same replayed sessions | No extra rewrite of the unchanged prefix; added writes equal the list's own tokens within 5% | | Is a correction retrievable at once? | Correction, then a relevant request in the same session, including one that matches only the old wording | Found on the next request, old revision never served, every case; also across an index swap with a concurrent ordinary correction | | Does fading pay? | The best arm with and without fading | Higher hit at 5 on 155 cases; no eligible named or important case lost | | Does the push fit the path? | Push latency, 95th percentile | 50 ms or less | | Does asking a session pay? | 30 replayed "what did we decide about X" questions, wake against search | Correct as often, fewer tokens where $k^{*}$ predicts it, faster in every case |
v8.5 · 9.2 What would decide each claim| Question | Decided by | Bar to adopt | |------------------|------------------------------|--------------------------------| | Does the asset index pay? | B against A, hit at 5 | Higher, paired test on 155 cases; no more tokens pushed | | Do use keys pay? | C1 against B | At least 10 points, on 155 cases; no more tokens | | Do keys cut from corrections pay? | C2 against C1 | Higher hit at 5 on 155 cases | | Do co-access and the task-reference state pay? | D against C2, on synthetic cases sharing no word with the item | At least 3 points on 1,750 synthetic cases (a check of the mechanism, §9.4); not lower on the owner's cases | | Is a pushed pointer used? | E, followed, among the cases hit at 5 | At least four in five followed before the owner is asked | | Does it beat a strong asset-aware design? | E against the catalogue arm, at matched tokens and latency | Higher hit at 5 on 155 cases, no higher explicit-failure rate | | Does the named slot work? | E on eligible named cases | Every case, every time | | Is access respected? | Items outside the reader's scope, quarantined, suppressed or erased, named and unnamed; derived items of sources with partly different readers; task references after access is lost, also mid-query; direct file reads | Zero entries, pointers or counts leaked in at least 300 cases per route; every direct read refused | | Is push worth it at all? | E against pull only | Fewer misses on 155 cases, no higher explicit-failure rate, cost within §7's bounds | | Is placement free? | Cache writes per turn with and without the list, on the same replayed sessions | No extra rewrite of the unchanged prefix; added writes equal the list's own tokens within 5% | | Is a correction retrievable at once? | Correction, then a relevant request in the same session, including one that matches only the old wording | Returned by a pull on the next request (pushed when it ranks), old revision never served, every case; also across an index swap with a concurrent ordinary correction | | Does fading pay? | The best arm with and without fading | Higher hit at 5 on 155 cases; no eligible named or important case lost | | Does the push fit the path? | Push latency, 95th percentile | 50 ms or less | | Does asking a session pay? | 30 replayed "what did we decide about X" questions, wake against search | Correct as often, fewer tokens where $k^{*}$ predicts it, faster in every case |
··· 2 unchanged paragraphs folded ···
v8.4 · 9.3 Live measuresIn use, four numbers tell whether the design works: the rate of the owner's "you have this" corrections, which should fall; the share of shown entries with a verified success, which should rise; the explicit-failure rate and the cache-write tokens before the memory block, which should not rise.
v8.5 · 9.3 Live measuresIn use, four numbers tell whether the design works: the rate of the owner's "you have this" corrections, which should fall; the share of shown entries with a verified success, which should rise; the explicit-failure rate and the cache-write tokens before the memory block, which should not rise. The owner gets them as one line a week in the learning stage's morning report (J5 §7.5), for example "you told me 'you have this' three times this week; the items I missed were the lab-camera note and last month's training setup", so he can see whether the design works without opening the inspector.
··· 1 unchanged paragraph folded ···
v8.4 · 9.4 Public suitesLongMemEval (Wu et al., 2024) and LoCoMo (Maharana et al., 2024) test the text index against published systems. A synthetic ownership suite tests the asset index: generated catalogues of skills, machines and past approaches, and requests that need an asset while sharing no content word with it, split into development and held-out halves before any tuning. It runs from a clean copy and prints hit at 5, tokens pushed and the gate each miss failed.
v8.5 · 9.4 Public suitesLongMemEval (Wu et al., 2024) and LoCoMo (Maharana et al., 2024) test the text index against published systems. A synthetic ownership suite tests the asset index: generated catalogues of skills, machines and past approaches, and requests that need an asset while sharing no content word with it, split into development and held-out halves before any tuning. Co-access is learned from which entries were fetched together, so the generator also writes fetch logs: each generated task fetches a planted set of entries together, with noise. D against C2 on this suite therefore shows that the code finds the pairs the generator planted, a check of the mechanism; whether co-access is worth having is for the owner's replay. Some cases pair a request in one language with keys in another (§6.2). The suite runs from a clean copy and prints hit at 5, tokens pushed and the gate each miss failed.
··· 1 unchanged paragraph folded ···
v8.4 · 9.5 Integration checksAt the start of a session, in each case of who controls the window (the runtime, a provider's API, a provider's command-line tool), the test reads the model's tool list directly and looks for the pull and its range mode; a session without them fails. Hidden-row counts carry a reason, no probe counts as access, and the planted opportunities of §8.4 are found. Each handoff of this stage in the transition specification is a check here, with its test stated where it is cited: T9, T10, T12 (§8.2), T13, T17, T19 (§8.3), T16 (§6.7), T20, T21, T23 (§8.1). The specification's replay on a model of the design seeds six defects, each removing one of these mechanisms (a clear on swap, authorisation only at collection, task references skipping it, no read fence, one most restricted source, a hold taking its readers from the topic), and catches all six: the checks can fail, which is not a result on an implementation. Two sequences are kept as regression cases because a model without the return-time check passes them silently: an erase, and a quarantine, that land while a query is running. With the check removed, the first hands the owner the erased number and the second an injected use key; with it, both are rerun and serve nothing forbidden. Three packing checks join them: an oversized top hit does not hide smaller hits, a new session's first push carries the shared file's latest section, and the full-text query never exceeds 2,000 characters.
v8.5 · 9.5 Integration checksAt the start of a session, in each case of who controls the window (the runtime, a provider's API, a provider's command-line tool), the test reads the model's tool list directly and looks for the pull and its range mode; a session without them fails. Hidden-row counts carry a reason, no probe counts as access, and the planted opportunities of §8.4 are found. Each handoff of this stage in the transition specification is a check here (Table 8). The specification's replay on a model of the design seeds six defects, each removing one of these mechanisms (a clear on swap, authorisation only at collection, task references skipping it, no read fence, one most restricted source, a hold taking its readers from the topic), and catches all six: the checks can fail, which is not a result on an implementation. Two sequences are kept as regression cases because a model without the return-time check passes them silently: an erase, and a quarantine, that land while a query is running. With the check removed, the first hands the owner the erased number and the second an injected use key; with it, both are rerun and serve nothing forbidden. Three packing checks join them: an oversized top hit does not hide smaller hits, a new session's first push carries the shared file's latest section, and the full-text query never exceeds 2,000 characters.
··· 1 unchanged paragraph folded ···
v8.4 · 10. ConclusionsIndexing what the owner owns by when it helps, pushing a few eligible pointers where the cache does not pay for them, and letting the owner's replayed corrections decide what earns its place could end most reminders. If it holds, the assistant remembers what you built together without being told.
v8.5 · 10. ConclusionsIndexing what the owner owns by when it helps, pushing a few eligible pointers where the cache does not pay for them, and letting the owner's replayed corrections decide what earns its place should cut the reminders, if the tests of §9.2 pass. On the morning of §1 (Table 1), the browser helper would arrive through its use key, the lab machine through its name, and "last time" through the task reference and a session card. If it holds, the assistant remembers what you built together without being told.
v8.4 · 10. ConclusionsThe design has limits. The owner's corrections are few and private, so the main test fills slowly and the synthetic suite has to show that its results carry over. Use keys written by a model may be wrong, and pruning removes only the generic ones. Verified successes are rare, so the ranking leans on audited unchallenged uses. The filters are only as good as the scopes and links they are given. An entry needed once a year ranks low on the day it is needed unless it is named or marked important.
v8.5 · 10. ConclusionsThe design has limits. The owner's corrections are few and private, so the main test fills slowly and the synthetic suite has to show that its results carry over. Use keys written by a model may be wrong, and pruning removes only the generic ones. Verified successes are rare, so the ranking leans on audited unchallenged uses. A pointer in front of the model is not yet a pointer used, and only the replay's *followed* measure can show the difference. The filters are only as good as the scopes and links they are given. An entry needed once a year ranks low on the day it is needed unless it is named or marked important.
··· 1 unchanged paragraph folded ···
v8.4 · 11. Next stepsThe instruments come first: the owner's-words field, the use log and receipts, planted opportunities and the pull check. Then the eligibility function, the asset index with the named slot, the overlay with its revision map and the replay sets; then use keys, co-access, task references and fading, each adopted only when it clears its bar in §9.2. The synthetic suite, which others can run, goes in parallel. The design will be built in TinkerClaw and tested as above, and an updated version will report the results.
v8.5 · 11. Next stepsThe instruments come first: the owner's-words field, the use log and receipts, planted opportunities and the pull check. Then the eligibility function, the asset index with the named slot, the overlay with its revision map and the replay sets; then use keys, co-access, task references and fading, each adopted only when it clears its bar in §9.2. The synthetic suite, which others can run, goes in parallel. The design will be built in TinkerClaw, an open-source fork of the OpenClaw agent framework, and tested as above, and an updated version will report the results.
··· 6 unchanged paragraphs folded ···
not in v8.4
v8.5 · ReferencesAnthropic (2026c). Skill authoring best practices. Claude Platform documentation. <https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices>
not in v8.4
v8.5 · ReferencesAnthropic (2026d). Mid-conversation system messages (turn-scoped messages, `clear_at`, beta). Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/mid-conversation-system-messages>
··· 11 unchanged paragraphs folded ···
not in v8.4
v8.5 · ReferencesLiu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., and Liang, P. (2024). Lost in the middle: How language models use long contexts. *Transactions of the Association for Computational Linguistics*, 12, 157–173. <https://arxiv.org/abs/2307.03172>
··· 11 unchanged paragraphs folded ···
not in v8.4
v8.5 · ReferencesTulving, E., and Thomson, D. M. (1973). Encoding specificity and retrieval processes in episodic memory. *Psychological Review*, 80(5), 352–373. <https://doi.org/10.1037/h0020071>
··· 1 unchanged paragraph folded ···
v8.4 · ReferencesTulving, E., and Thomson, D. M. (1973). Encoding specificity and retrieval processes in episodic memory. *Psychological Review*, 80(5), 352–373. <https://doi.org/10.1037/h0020071>
removed in v8.5
··· 5 unchanged paragraphs folded ···
v8.4 · Appendix A. Interfaces| Record | Written | Fields | |--------------|------------------|----------------------------------------------------------| | Push or pull receipt | every turn and every pull, even when empty | turn ID; reader scope and permission version; index build ID and age; snapshot and erasure epoch served; mode (full or lexical only); candidates per key type; rows removed by each filter step (audit permission only); entries shown as ID@revision with form, reason and $p_e$; latency | | Use-log row | per entry shown | turn ID; entry ID@revision; route (push, named slot, pull); shown, with knowledge level; used; body read; outcome (verified success, explicit failure, unchallenged use, unknown); missed by push; the key that matched | | Index manifest | every build | index ID; schema version; encoder and version; tokenizer; $s_0$ and $s_1$ per key type and scorer; snapshot read and its erasure epoch; counts of entries, keys and edges; result of each publication and swap check | | Overlay receipt | every accepted write, hold or pending line | fact or rule ID@revision, or hold; J14's receipt_id as key, closing the delivery record via `acknowledged_by` (J14 A.2, Table 6); snapshot (none for a hold or pending line); applied epoch; time; status (retrievable, served as a hold, or queued with its retry count) | | Revision map entry | every changed or erased ID since the build, kept across a swap while newer than the build's snapshot | ID; latest revision or tombstone; write or deletion receipt ID | | Use key | at write, from a correction, or at night | text; entry ID; dependency links to the addresses it came from; reader scope: the intersection of theirs | | Task-reference state | end of every turn | session ID; task title; up to twenty entry IDs; unresolved references |
v8.5 · Appendix A. Interfaces| Record | Written | Fields | |--------------|------------------|----------------------------------------------------------| | Push or pull receipt | every turn and every pull, even when empty | turn ID; reader scope and permission version; index build ID and age; snapshot and erasure epoch served; mode (full or lexical only); candidates per key type; rows removed by each filter step (audit permission only); entries shown as ID@revision with form, reason and $p_e$; latency | | Use-log row | per entry shown | turn ID; entry ID@revision; route (push, named slot, pull); shown, with its certainty (known input, or sent but unconfirmed); used; body read; outcome (verified success, explicit failure, unchallenged use, unknown); missed by push; the key that matched | | Index manifest | every build | index ID; schema version; encoder and version; tokenizer; $s_0$ and $s_1$ per key type and scorer; snapshot read and its erasure epoch; counts of entries, keys and edges; result of each publication and swap check | | Overlay receipt | every accepted write, hold or pending line | fact or rule ID@revision, or hold; J14's receipt_id as key, closing the delivery record via `acknowledged_by` (J14 A.2, Table 6); snapshot (none for a hold or pending line); applied epoch; time; status (retrievable, served as a hold, or queued with its retry count) | | Revision map entry | every changed or erased ID since the build, kept across a swap while newer than the build's snapshot | ID; latest revision or tombstone; write or deletion receipt ID | | Use key | at write, from a correction, or at night | text; entry ID; dependency links to the addresses it came from; reader scope: the intersection of theirs | | Task-reference state | end of every turn | session ID; task title; up to twenty entry IDs; unresolved references |
··· 1 unchanged paragraph folded ···
not in v8.4
v8.5 · Appendix A. InterfacesThe transition specification shared by the four stages (J5 Appendix B) gives each handoff a code. Table 8 lists the ones that reach this stage, with the test that checks each.
not in v8.4
v8.5 · Appendix A. Interfaces| Code | What arrives or leaves | Where | Test | |------|---------------------------------|----------|---------------------------------| | T4 | a write decided while the writing stage's judge is down | §8.2 | the pull shows it as unchecked, the push never shows it | | T9 | the delivery slip for an accepted write | §8.2, App. C | a query on the old wording misses the old revision | | T10 | Find's confirmation that part of a correction is retrievable | §8.2 | the tail line leaves only when every part is retrievable or held | | T12 | a held write | §8.2 | served only as a hold, only to the readers its sources share | | T13 | a night build starts | §8.3 | its manifest records snapshot, epoch and anchors | | T15, T16 | an eviction event after a compaction or a rebuilt window | §6.7 | the ledger never answers from an evicted range | | T17 | an erase order | §8.3, App. C | an older build is refused; Find's deletion row only after the refusal | | T19 | a night build finishes | §8.3 | a correction made during the build is found after the swap | | T20 | a narrower reader names an item or reads a file | §8.1, §6.4 | nothing, not even a count; the file read is refused | | T21 | the owner narrows a reader's scope | §8.1 | a query in flight is checked again when it returns | | T23 | a quarantine order | §8.1 | only an audit view shows the rows |
not in v8.4
v8.5 · Appendix A. Interfaces: This stage's handoffs in the transition specification.
··· 1 unchanged paragraph folded ···
v8.4 · Appendix B. The push in pseudocode```text FIND_PUSH(turn, reader): # reader: authenticated state e0 = wait_until_applied(newest_epoch) # §8.3 fence words = owner_words(turn) # §6.1 v0 = permission_version() view = authorised_view(reader) # §8.1 step 1 named = view.names.match(words) # §6.4 refs = task_ref_state.resolve(words) # §6.1 if encoder.within(15 ms) and manifest.ok(encoder): cand = view.keys.match(embed(words)) # use, topic keys else: cand = view.bm25(words); mode = LEXICAL # §6.2 cand += view.overlay.match(words) # §8.2 cand = eligible(cand, reader) # every route cand += eligible(one_hop(cand, view.coaccess) + refs, reader) named = eligible(named, reader)[:3] # overflow: 1 line for e in cand: e.p = logistic(score(e)) # §5.5 ranked = top([e in cand - named if e.p >= TAU], 5) pack = named + ranked # may be empty if newest_epoch != e0: # T17: started at an older return FIND_PUSH(turn, reader) # epoch; discard, run again if permission_version() != v0: # T21 pack = eligible(pack, reader) for e in pack: e.form = WHOLE if e.tokens < B_star(q(e)) else POINTER place pack after the cached prefix # §6.5 emit receipt(turn, pack, counts, mode, snapshot, epoch)
v8.5 · Appendix B. The push in pseudocode```text FIND_PUSH(turn, reader, rerun=False): # reader: authenticated state e0 = newest_epoch if not applied_within(e0, 10 ms): # §8.3 fence, bounded return empty(turn, "skipped: erasure in progress") words = owner_words(turn) # §6.1 v0 = permission_version() view = authorised_view(reader) # §8.1 step 1 named = view.names.match(words) # §6.4 refs = task_ref_state.resolve(words) # §6.1 if encoder.within(15 ms) and manifest.ok(encoder): cand = view.keys.match(embed(words)) # use, topic keys else: cand = view.bm25(words); mode = LEXICAL # §6.2 cand += view.overlay.match(words) # §8.2 cand += side_search_hits(previous_turn) # §6.2, marked cand = eligible(cand, reader) # every route cand += eligible(one_hop(cand, view.coaccess) + refs, reader) named = eligible(named, reader) extra = named[3:]; named = named[:3] # past three: one line for e in cand: e.p = logistic(score(e)) # §5.5 ranked = top([e in cand - named if e.p >= TAU], 5) pack = named + names_line(extra) + ranked # may be empty if newest_epoch != e0: # an erasure landed if rerun: return empty(turn, "skipped: erasure in progress") return FIND_PUSH(turn, reader, rerun=True) # once only if permission_version() != v0: pack = eligible(pack, reader) # checked again for e in pack: # §7.3, cap §6.3 whole = e.tokens < B_star(q(e)) and fits(pack, 1000) e.form = WHOLE if whole else POINTER place pack in turn-scoped slot if offered, # §6.5 else after the cached prefix emit receipt(turn, pack, counts, mode, snapshot, epoch)
··· 1 unchanged paragraph folded ···
not in v8.4
v8.5 · Appendix C. Freshness in detail## Appendix C. Freshness in detail
not in v8.4
v8.5 · Appendix C. Freshness in detail**Delivering a write.** In the same transaction as the write, the writing stage sends a delivery slip (IDs, revisions and receipt IDs, never content) and resends it until Find confirms (J14 §7.2). Find fetches each published revision from the store's published snapshot, so a revision erased meanwhile arrives as a tombstone. A slip older than the latest erasure Find has applied is re-read from the store, and an older revision never replaces a tombstone or a newer one. A hold or a pending line has no snapshot: Find reads the record its write receipt names, at the epoch it was applied under. Find's confirmation carries that receipt ID and closes the slip through its `acknowledged_by` field (J14 A.2). From then on the item is retrievable, and the learning stage marks that part of the correction retrievable. *Test:* a slip delivered late, after an erasure of the same fact, never brings the erased revision back.
not in v8.4
v8.5 · Appendix C. Freshness in detail**Swapping a build.** A build reads the store up to one snapshot, its watermark. The swap installs the new index together with the overlay rows and revision-map entries newer than that, and drops only what the build already holds. *Test:* a correction committed at snapshot 104 while a build from snapshot 103 runs, with the epoch unchanged, is found after the swap without another rebuild. If the epoch moved, the build is refused, the live index and overlay keep serving, and Find fills its row of the deletion receipt only after the refusal, since until then the old build could still swap in.
not in v8.4
v8.5 · Appendix C. Freshness in detail**Reading across an erasure.** Find answers only after applying the newest erasure or quarantine epoch: an earlier read waits, and a read started under an older epoch that returns after a newer one is discarded and run again, so no query in flight serves the older state. The push must not stall a turn while it waits. It waits at most 10 ms of its budget; past that, it sends an empty list with a receipt reading "skipped: erasure in progress" and leaves the finding to the pull, which may wait. A push caught across an epoch change runs again once, and a second change sends the empty list (Appendix B). *Test:* during a large erasure every turn still gets its receipt within the 50 ms budget, and none serves an erased row.
not in v8.4
v8.5 · Appendix C. Freshness in detail| Case | What Find does | Status the agent may name | |--------------------|----------------------------------------------|------------------------| | Overlay append fails, delivery lost, or the writing stage crashes after publishing | resent from the writing stage's outbox until acknowledged | accepted, not yet retrievable | | Writing stage's judge down | line kept in its pending area; the pull shows it as unchecked, the push never | captured, acceptance pending | | Write held | served only as a hold | held for the owner's approval | | Restart before the night | overlay and revision map replayed from the receipts since the build's snapshot | retrievable once the replay ends | | Concurrent writers | the revision that won the commit wins here too (J14 §7.2) | retrievable at that revision | | Re-index or new encoder | new index built beside the old; swapped in with the newer overlay suffix (§8.3) | retrievable throughout | | Compaction of the session | read ledger drops the evicted ranges (§6.7) | retrievable | | Privacy erasure | overlay rows, use keys and ledger range dropped; the ID tombstoned in the revision map; read service waits for the new epoch and reruns a read in flight; older build refused (§8.3) | erase status, per the writing stage | | Reader outside the scope, or scope narrowed during a query | nothing shown, not even a pointer or a count; `eligible()` runs again at return | not retrievable for this reader |
not in v8.4
v8.5 · Appendix C. Freshness in detail: Moving into "retrievable": failure cases and what may be said. The whole journey: J5 Appendix B, the reference trace.
··· 1 unchanged paragraph folded ···
v8.4 · Appendix C. Freshness in detail_J-series paper J2 | Version 8.4 | 2026-10-21_
v8.5 · Appendix C. Freshness in detail_J-series paper J2 | Version 8.5 | 2026-10-21_
Changed paragraphs in the same form, for scripts: JSON
· Markdown