# INSTANT RECALL: Finding What the Agent Already Owns: v8.5 → v8.6

From v8.5 (21 Oct) to v8.6 (21 Oct): 14,409 words to 16,173 words, 3,280 words in new or rewritten paragraphs and 1,516 taken out, 107 paragraphs changed.

## Change note of v8.6

**Sixth referee round: honest test plan, push after a failed call**

The sixth referee round reworked the test plan and widened when the push runs.

- The four keys each get their own subsection.
- The push runs again when a tool call fails, using the tool's name and error.
- The test plan says the first verdict on the owner's own cases is about a year away, adds ordinary turns as a negative set, and turns "no worse" claims into stated margins.
- A new appendix describes what the owner can inspect, and a new figure shows freshness over time.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

Assistants keep plenty and still miss [-these.-] {+things like that.+} What they miss is something the owner owns, a skill, a machine, a decision or a way of solving a problem, tied to the request by what it is for and often sharing no word with it. A search tool helps only when the agent suspects it owns something; context pushed [-into-] {+at the head of+} every turn fills with old documents and breaks the prompt cache.

### Abstract

For you this means fewer reminders, a correction [-you-] {+your assistant+} 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.

### 1. Introduction

{+A few words carry a fixed meaning in this paper (Table 1).+}

### 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 | | lane | a stream of sessions of one kind (the owner's chats, scheduled jobs, sub-agents), kept apart when learning which entries are fetched together | | 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 |+}

### 1. Introduction

{+: Words used here.+}

### 1. Introduction

We 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-] {+2+} shows what this would change on that morning.

### 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-] {+state, which sends "last time" to the named slot (§6.1),+} and session cards [-(§6.1, §6.9)-] {+(§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 |

### 1. Introduction

![One turn of Find, drawn as the prompt the model receives. The system prompt, the index file and the conversation so far form the cached prefix, which memory never touches. Each turn the push reads the owner's words, matches its keys, drops what this reader may not see, puts named items first and the rest above a relevance floor, and places at most five [-pointers-] {+ranked pointers, plus any named items,+} next to the owner's message. A fuller search runs beside the turn, the agent can still search for itself, and every entry shown goes to the use log.](diagrams/tikz/fig1.pdf){width=100%}

### 1. Introduction

[-A few words carry a fixed meaning in this paper (Table 2).-]

### 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 |-]

### 1. Introduction

[-: Words used here.-]

### 2. Related work

This 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-] {+9+} lists this stage's [-handoffs and their tests.-] {+handoffs.+} Nothing here has run on real memory.

### 2. Related work

**Memory the agent searches for itself.** MemGPT (Packer et al., 2023), now [-the Letta platform,-] {+Letta,+} keeps a few memory blocks in the [-context-] window on every call (Letta, [-2026a);-] {+2026a), and+} 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-] {+deeper ones+} to file search (Letta, 2026b). Claude Code loads the first 200 lines [-(or 25 KB)-] of its memory index [-at the start of each-] {+into every+} conversation and reads topic files on demand (Anthropic, [-2026a),-] {+2026a); Claude Managed Agents mount each memory store as a directory+} and [-Agent Skills load every skill's name and description at startup-] {+describe it in the system prompt+} (Anthropic, [-2025).-] {+2026e). Anthropic's Tool Search Tool keeps deferred tools out of the prompt until the model searches their descriptions, which raised tool selection from 49% to 74% for Claude Opus 4 in Anthropic's tests (Anthropic, 2025b).+} Each pushes an index and leaves the body to the agent, the shape our cost model arrives at [-(§7). Agent Skills already say when-] {+(§7), and each waits for the agent+} 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-] {+search:+} a search [-the agent-] {+it+} never thinks of is gate 3 [-of §3.-] {+(§3).+}

### 2. Related work

{+**Keys that say when.** Agent Skills load every skill's name and description at startup (Anthropic, 2025a), and Anthropic's authoring guide asks each description to say when to use the skill, as in "Use when working with PDF files" (Anthropic, 2026c): a use key its author wrote. Claude Code's path-scoped rules load when the agent reads or edits a file matching their paths (Anthropic, 2026a), a hand-written situation that triggers a push. T-Mem (Guo et al., 2026) writes *triggers*, anticipated contexts of need, when a memory is stored, after the older idea of indexing a document with the queries it answers (Nogueira et al., 2019). We give use keys to every asset, cut them from the owner's corrections and pick the few that fit each turn (§5). Zou et al. (2026) find descriptive similarity a weak predictor of whether evidence fits a decision (Spearman $\rho = 0.103$ on LoCoMo), the clearest outside support for keying by use.+}

### 2. Related work

**Memory pushed before the model runs.** LangMem's hot-path example searches the store with the user's latest message before every [-model-] call and puts the results [-in a system message-] at the head of the [-prompt (LangChain, 2026a); its guide says recall should combine similarity with-] {+prompt, ranked by similarity,+} importance and [-with a memory's-] strength, [-a function of how recently and often it was used (LangChain, 2026b),-] which is our fading term [-(§5.5). OpenClaw's Active Memory-] {+(LangChain, 2026a, 2026b; §5.5). OpenClaw, an open-source agent framework,+} runs a [-blocking-] recall sub-agent [-by default-] only when the message asks about the past and a [-deterministic lane-] {+quick lookup+} found [-no-] {+nothing+} strong [-match-] (OpenClaw, {+2026). ChatGPT also draws on past chats in a new conversation without being asked (OpenAI,+} 2026). We add what gets pushed (pointers to owned [-assets, §4), how it is reached (use keys and co-access, §5),-] {+assets),+} one eligibility check for every route (§8.1) and where it goes in the prompt (§7.4).

### 2. Related work

**Retrieval over tools and [-graphs.**-] {+graphs, and feedback.**+} RAG-MCP (Gan and Sun, 2025) retrieves tool descriptions before the model is [-called and reports-] {+called:+} 43.1% tool-selection accuracy against 13.6% for listing every [-tool; the-] {+tool. The+} same retrieval over [-a catalogue of-] asset descriptions is our strongest baseline (§9.1). [-Zep (Rasmussen et al., 2025) searches a temporal knowledge graph by-] {+We keep Zep's hybrid of+} embeddings, BM25 and a graph walk [-and reports gains of up to 18.5% on LongMemEval; we keep its hybrid search.-] {+(Rasmussen et al., 2025).+} HippoRAG 2 (Gutiérrez et al., 2025) links passages through shared entities, [-while-] {+which+} our misses [-share none with the request, so our edges come from use and co-access (§5);-] {+lack; we adopt+} its [-repository rejects a persisted-] {+rule that an+} index whose manifest no longer matches the configuration {+is rejected+} (HippoRAG, [-2026), a rule we adopt (§8.3).-] {+2026; §8.3). Mem0 takes feedback on each memory (Chhikara et al., 2025; Mem0, 2026); our use log keeps explicit outcomes apart from silence (§6.8).+}

### 2. Related work

[-**Feedback and cues.** Mem0 (Chhikara et al., 2025) retrieves short extracted facts, and its platform takes feedback on each memory (Mem0, 2026); our use log keeps explicit outcomes apart from silence (§6.8). T-Mem (Guo et al., 2026) writes *triggers*, anticipated contexts of need, when a memory is stored, an idea that goes back to indexing a document with the queries it answers (Nogueira et al., 2019); our use keys apply it to assets, and add the owner's corrections as a source (§5). On LoCoMo, Zou et al. (2026) measure descriptive similarity as a weak predictor of whether evidence fits a decision (Spearman $\rho = 0.103$), the clearest outside support for keying by use.-]

### 2. Related work

Each ingredient has a precedent (Table [-3).-] {+3), and skill descriptions and path-scoped rules are hand-written use keys.+} In the primary sources we read we did not find {+them combined:+} an index of {+all+} the owner's assets keyed by use, with keys cut from [-the owner's-] {+his+} corrections, a {+named+} slot [-for named items-] that yields only to eligibility, pushed where a cache cost model puts it and judged on [-the owner's-] {+his+} replayed corrections. Our search was not exhaustive, so [-the-] {+that+} novelty [-of that combination-] is unverified.

### 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-] {+never says+} "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-] {+Saved+} 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 | | {+Recall from past chats (ChatGPT's chat history) | Details from past chats the provider judges relevant | Found if a past chat about it reads like the request | Not published | Nothing to set up; covers every past chat | | Situation rules (Claude Code's path-scoped rules) | A rule file, when the agent opens a file matching its paths | Missed: a blocked download opens no file | The rule's tokens, only when it fires | A hand-written situation key that ships today | | Tool search (Anthropic's Tool Search Tool) | The few tool definitions the model searched for | Found if it is registered as a tool, the agent searches, and its description matches | One search call, about 11,000 | Ships today; tool choice rose from 49% to 74% for Claude Opus 4 | |+} A bigger window (a million tokens) | Everything | Present, one item among [-thousands (gate 5)-] {+thousands, most of them in the middle, where models use information least+} | 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)-] {+files, Managed Agents memory stores)+} | What the agent decides to look up | Found only if the agent [-suspects it has one (gate 3)-] {+thinks to look+} | 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-] {+Found: its use key,+} *when a site blocks a [-download* ($p = 0.35$, floor 0.15)-] {+download*, matches the request+} | 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 |

### 2. Related work

: [-Seven-] {+Ten+} ways to bring memory into a turn. Costs in base input tokens with the values of Table [-4;-] {+4 (§7 derives them);+} the browser-helper column is reasoning from each design, not a measurement.

### 3. Where finding fails

## 3. Where [-a find-] {+finding+} fails

### 3. Where finding fails

{+![One item through the six gates, for the request "download last quarter's report from the company portal". The item is the browser helper, whose description never says "download". Each row names the gate by how an item is lost there, what happened to this item, and what would have lost it.](diagrams/tikz/fig2.pdf){width=92%}+}

### 3. Where finding fails

**Gate 3, nobody asked.** The index could have found the item, but the agent did not search and no push ran, or it ran on the wrong text. {+The need often appears mid-task, when a tool call fails.+} *Fix:* a push before the model runs, built from the owner's [-words (§6).-] {+words, and again when a tool call fails (§6.1).+} *Test:* the share of replayed cases where the item is in front of the model before its first call.

### 3. Where finding fails

**Gate 4, filtered out.** The item was found and then removed by the filters that run before ranking (§8.1). Access, quarantine and privacy are meant to remove things; validity is a default, and a wrong mark behind it makes the item vanish from every search with no error. *Fix:* hide on validity only what the writing stage's judge closed (J14 [-§7.5, only a judge closes),-] {+§7.5),+} and count what each filter removed. *Test:* the hidden share per query, read from the receipts, and an audit of a sample of hidden rows.

### 3. Where a find fails

[-![One item through the six gates, for the request "download last quarter's report from the company portal". The item is the browser helper, whose description never says "download". Each row names the gate by how an item is lost there, what happened to this item, and what would have lost it.](diagrams/tikz/fig2.pdf){width=92%}-]

### 4.1 The text index

The text index covers the session record kept by the keeping stage and the facts written by the writing stage. It is hybrid: BM25 over words, embeddings over meaning, exact match over names. Each unit is a file or a section, whose shape the writing stage decides, and each row carries the ID and revision of the fact it shows. Find adds an address map to every unit (headings, line ranges, and symbols for code), so a second visit goes straight to the region it needs: *retrieve coarse, address fine*, with units large enough that related text arrives in one read (§7.1). A session the keeping stage flags as temporary leaves no lasting row here or in the use log (J1 [-§4.7, sessions that are never kept).-] {+§4.7).+}

### 4.2 The asset index

- skills, procedures, tools and repositories the agent can run or work in; - machines and services, with where each is and where its credentials are kept, never the credentials; - decisions, with their date and reason; - past approaches: how a kind of problem was solved last time, and where that work lives; - the current version of an artefact: which model, document or build is the latest; - rules the learning stage has moved out of always-loaded files (J5 [-§7.2, prune by binding),-] {+§7.2),+} found like any other asset and not only when named; - past sessions, one card each, written by the learning stage's night pass (§6.9).

### 4.2 The asset index

![An example asset entry for the browser helper of §1 (illustrative values). {+The header gives its entry ID and revision; the pointer gives the file.+} Name and aliases feed the named slot; the pointer says where it lives and how to run it; the use keys say when it helps, in the words of the session that built it and of one later correction; co-access neighbours were fetched with it in the same tasks, with their normalised PMI between 0 and 1 (§5.5); the reader scope is set at indexing (§8.1).](diagrams/tikz/fig3.pdf){width=100%}

### 4.3 The index file

The entries needed most often belong in the index file, {+which is+} always [-loaded,-] {+loaded:+} one pointer per [-line-] {+line,+} with a short hook saying when to read [-it; the-] {+it. The+} writing stage owns the shape of a line and checks every write to it (J14 [-§9.3, the index file holds pointers only).-] {+§9.3).+} Find chooses [-the-] {+which+} lines {+go in+} and [-their-] {+in what+} order, the entries most often used without an explicit failure first, up to the budget the learning stage sets (J5 [-§7.1, a budget measured in attention), except that-] {+§7.1). One exception:+} a rule the learning stage moved [-down-] {+out of the always-loaded files+} keeps its pointer line while its area is [-active-] {+active, meaning that a request in the last 30 days matched one of its use keys+} (J5 [-§7.2, prune by binding).-] {+§7.2).+} The per-turn push covers the long tail.

### 4.3 The index file

A line the owner wrote by hand stays where he put it (J14 [-§5.2, every writer, one gate).-] {+§5.2).+} A rebuilt file is published only if every pointer resolves, no generated line carries rule text and the file fits its budget; otherwise yesterday's file stays and the build receipt names the failed check. The diff goes to the {+owner in the+} learning stage's morning report (J5 [-§7.5, one channel to the owner);-] {+§7.5), and+} a line that carries a rule [-belongs to that stage and-] needs [-the owner's-] {+his+} approval (J5 [-§7.4, approval and who may loosen).-] {+§7.4).+}

### 5.1 Name keys

{+### 5.1 Name keys+}

### 5.1 Name keys

[-**Name keys**-] {+Name keys+} are exact names and aliases, a skill, a machine, a project, a nickname the owner uses; they feed the named slot (§6.4), and a name the owner corrects the agent on is added.

### 5.2 Topic keys

{+### 5.2 Topic keys+}

### 5.2 Topic keys

[-**Topic keys**-] {+Topic keys+} say what the entry is about: BM25 and embeddings over its description and body, standard retrieval for requests that do name the topic.

### 5.3 Use keys

{+### 5.3 Use keys+}

### 5.3 Use keys

[-**Use keys**-] {+Use keys+} say when the entry helps, as short phrases: *when a site blocks a download*, *when you need to reach the lab machines*, *when a training run has to be repeated*. They follow encoding specificity (§1): store, with the memory, the cue that will be present when it is needed. They come from three sources.

### 5.3 Use keys

1. *At write time.* The writer adds up to five use keys to a fact as it stores it (J14 [-§9.4, write the use key with the fact);-] {+§9.4);+} the build that generates an asset entry writes them from the catalogue and from the session that produced the asset. 2. *From the owner's corrections.* When the owner says "you have a skill for this", the {+entry he meant is the one the agent uses next, in that turn or the one after. The key is the situation cut from the+} request he made just before [-becomes-] {+(*when+} a [-use key on-] {+site blocks a download*, from "Download last quarter's report from+} the [-entry he meant,-] {+company portal"), and the request itself is kept as the key's source. If the correction came+} in [-his own words.-] {+a chat with other people, the key's readers are those its sources share (§8.1).+} These keys are cut from real misses. 3. *Offline.* At night, sessions where an entry's use was a verified success propose keys from the request that led to it.

### 5.3 Use keys

Generated keys drift toward the generic (*when working on a [-project*);-] {+project*). So each key is tested against past requests: one that would have matched more than one past request in fifty is dropped, whichever entry it sits on, which also stops+} a {+planted+} key that [-matches a large share of all entries is dropped, and each-] {+fires on everything. Each+} entry keeps at most five. Every key records the addresses it was cut from, its dependency links, so its readers are those its sources share (§8.1), and it goes when a source is erased or quarantined.

### 5.4 Co-access edges

{+### 5.4 Co-access edges+}

### 5.4 Co-access edges

[-**Co-access edges**-] {+Co-access edges+} link entries fetched together for one request more often than chance predicts, measured by pointwise mutual information (Church and Hanks, 1990). A prompt file, the payload that uses it and the report it writes may share almost no vocabulary and still be fetched together almost every time; no similarity measure proposes that link. Edges are computed per lane, so automated jobs do not swamp interactive sessions, and drive a one-hop expansion from the entries the other keys found. Co-access sees what was fetched, not why, so merge and split proposals go to the writing stage, which owns the shape of files (J14 [-§9.2, one topic per file).-] {+§9.2).+}

### 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-] {+Names, and entries+} resolved from the task-reference state [-(§6.1) gets 1, any other 0. Names-] {+(§6.1),+} skip the score and go to the named slot.

### 5.5 Combining keys: one score

**Starting values.** Before any data, $\beta_0 = \operatorname{logit}(0.02) \approx [--3.9$, the chance that an arbitrary entry-] {+-3.9$: about one retrieved candidate in fifty+} is [-used;-] {+used.+} $\beta_{\text{use}} = 3.3$, $\beta_{\text{top}} = 2.5$ and $\beta_{\text{co}} = 1.5$, so that a full use-key match alone gives $p \approx 0.35$, a full topic match 0.20 and a co-access neighbour 0.08; $\lambda = 1$; and a relevance floor $\tau = 0.15$. [-They-] {+The floor is not set by cost, since one pointer pays for itself if it saves a search in more than about one turn in seventy (§7.2). It is set by gate 5: a list that is mostly noise teaches the model to skip it. These values+} are assumptions, re-estimated by the ranking's own loop [-(§8.5). For the browser helper of Figure 2, $m_{\text{use}} = 0.8$, $m_{\text{top}} = 0.1$ and $A_e - \bar{A} = 0.4$ give $z_e = -0.61$ and $p_e = 0.35$; on topic keys alone, $p_e = 0.04$, below the floor.-] {+(§8.5).+}

### 5.5 Combining keys: one score

{+The requests of Table 2 come out as follows. The browser helper has $m_{\text{use}} = 0.8$, $m_{\text{top}} = 0.1$ and $A_e - \bar{A} = 0.4$, so $z_e = -0.61$ and $p_e = 0.35$; on topic keys alone, $p_e = 0.04$, below the floor. The lab machine is named, and "the setup we used last time" resolves through the task-reference state, so both go to the named slot without a score. A key cut from a correction matches the request it was cut from in full, so at the index's mean activation that entry scores 0.35.+}

### 5.5 Combining keys: one score

where $t_j$ is the time in hours since the $j$-th use of $e$ not labelled an explicit failure, the floor $t_{\min} = 1$ hour keeps a use a moment ago from giving an infinite activation, and $d$ starts at 0.5, the default of the ACT-R theory built on that finding (Anderson et al., 2004). An entry never used counts its write as one use; $\bar{A}$ is the mean over the index at the last build. {+With $\lambda = 1$, fading can outweigh a key. In an index whose mean is two uses 1,000 hours ago, an entry used once, a year ago, sits 1.8 below the mean, which takes a full use-key match from 0.35 to about 0.09, under the floor.+} The writing stage marks importance when it writes a fact (J14 [-§8.5, dates, confirmation, negatives and importance);-] {+§8.5);+} this stage decides how it acts at read time.

### 5.5 Combining keys: one score

Fading lowers a rank and never removes an [-entry:-] {+entry from the index:+} the named slot ignores it and the pull still finds it. For entries marked important, corrections and decisions, the term is floored at zero, $\lambda \max(A_e - \bar{A}, 0)$, because a correction is needed when the old mistake comes back, perhaps months later; such an entry still has to match a key to enter the list. Fading is about need, not truth: a fact that stopped being true is closed by the writing stage's judge.

### 6. The turn: push and pull

{+Picture three assistants. One waits until you ask whether you already have something for this: the pull. One piles every file you own on your desk each morning: a bigger window. One reads your request over your shoulder and puts a sticky note on top of the pile, "the browser helper, for blocked downloads": the push. Find is the third, and its note always goes on top of the pile, never into the middle, which is what keeps the cache (§6.5).+}

### 6.1 The query, "last time" and a failed call

### 6.1 The query, [-and what-] "last time" [-refers to-] {+and a failed call+}

### 6.1 The query, "last time" and a failed call

The query is the owner's words, read from the `owner_words` field the keeping stage fills when a turn is appended (J1 [-§4.1, what goes in and with whose name),-] {+§4.1),+} never the wrapper; *test:* wrapped prompts must produce the same list as unwrapped ones. For full-text search it is the tail of those words, at most 2,000 characters, since the request usually sits at the end of a long paste. A session with no history of its own, a new sub-agent or a fresh chat, starts its first push from the latest [-section-] {+entries+} of the [-shared memory file-] {+owner's previous session that+} it may read, not from an empty list. Those words alone cannot resolve [-"the one-] {+"train it again with the setup+} we [-did-] {+used+} last [-time",-] {+time" (Table 2),+} because the retriever does not see the context window the model sees. So each session keeps a small **task-reference state**: the title of the task in progress, the IDs (at most twenty, never text) of the entries resolved or used in its recent turns, and any reference still unresolved, updated at the end of each turn from the use log. A mention with no noun ("that setup", "last time") is resolved against it: first this session's task, then the latest earlier session on the same task, found by its title. [-Entries-] {+The owner pointed at one thing, so an entry+} reached this way [-join-] {+takes+} the [-candidates with a full co-access match (§5.5) and pass-] {+named slot (§6.4), after passing+} eligibility like any [-other, so-] {+other:+} an ID the reader has lost access to is dropped (§8.1).

### 6.1 The query, "last time" and a failed call

{+**When a tool call fails.** The need often appears mid-task: the agent fetches the report, the portal refuses, and the agent is about to write "I can't reach the portal". So the push runs again on a failed tool call, with the tool's name, its arguments and its error class as the query, never the free text of the result, so a fetched page cannot choose what gets pushed. The list goes after the tool result.+}

### 6.4 A guaranteed slot for a named item

{+*"Check the camera on the lab machine"* names the machine.+} When the owner's words name something the name table knows, a skill, a machine or a project, its entry goes in first, whatever its score. The named case is where a miss annoys most ("I told you its name") and the cheapest to get right, and a line in an always-loaded file telling the agent to check its catalogue is text, which does not bind reliably. So the slot is a check in code.

### 6.5 Where the list goes

The 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;-] {+file. The spot has a second merit: models use information at the end of a long prompt better than in its middle (Liu et al., 2024).+} §7.4 gives the price of getting [-this-] {+the place+} wrong.

### 6.5 Where the list goes

Where 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),-] {+§6.1),+} priced the same way.

### 6.6 The pull

A search tool over both indexes is part of the agent's base tool set. It answers in a second or two, uses the same keys and filters, returns pointers first, and has a range mode that returns the session-record entries a compaction marker names (J1 [-§8.1, the range read).-] {+§8.1).+} At most $N$ pointers come back (10 to start), each clipped to a token bound (300 to start), and the answer says how many further matches exist, so a clipped answer never reads as complete. The answer is bounded by that count and that clip, never by a token budget derived from the count, and the packer skips an item that does not fit and goes on to the next: one oversized top hit must not hide the smaller hits behind it. A pull registered but not offered to the model does not exist for the agent, so §9.5 checks it is offered under every window controller (J1 [-§6.1, three window controllers).-] {+§6.1).+}

### 6.7 What the context already holds

An 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-] {+lookup+} miss for the writing stage (J14 [-§9.2, one topic per file).-] {+§9.2).+}

### 6.8 The use log

For 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-] {+unconfirmed, when a provider's API or command-line tool manages the window and may compact or drop the item before the model reads it+} (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).

### 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.-]

### 6.8 The use log

{+**The owner's inspector**, one owner-only view over these records, shows each item's sources and state and keeps three actions apart: correct, don't mention and delete (Appendix D).+}

### 6.9 Ask the session that did the work

The learning stage's night pass writes one card per finished session (J5 [-§6.2, the nightly auditor):-] {+§6.2):+} 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).-] {+§8.3).+} 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.

### 7. What finding costs

## 7. What [-a find-] {+finding+} costs

### 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)-] {+§4)+} | 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 |

### 7.2 What a push costs

With $M = 30$ the factor is $1.25 + 3 = 4.25$, so a 40-token [-pointer-] {+pointer, such as the browser helper's,+} 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.

### 7.2 What a push costs

{+Table 5 puts these prices in cents, at a large model's base input price of \$4 per million tokens (Table 4).+}

### 7.2 What a push costs

{+| Choice | Base tokens | Cents | |----------------------------------------------------------|-------------|-------------| | One search (a pull), its result re-read over 30 calls | 12,600 | 5.0 | | One pointer in the tail, over its life | 170 | 0.07 | | Five pointers in the tail, over their life | 850 | 0.34 | | Five pointers in a turn-scoped slot, one call | 200 | 0.08 | | Five 500-token chunks in the tail (plain RAG) | 10,600 | 4.3 | | The same chunks at the head of the prompt, every turn | 115,000 | 46 | | A 1,000-token block a fifth of the way in, every turn | 92,000 | 37 | | 300,000 tokens of memory in a large window, every call | 30,000 | 12 | | One ownership miss: the owner's "you have this" turn and the search it starts | about 23,000 | 9, and his interruption |+}

### 7.2 What a push costs

{+: What each choice costs, as arithmetic on Table 4 at \$4 per million base input tokens. On a model whose cache reads cost half as much, the search and large-window rows roughly halve; the rewrite rows barely move.+}

### 7.2 What a push costs

{+The last row makes the case in one line: a list that costs a third of a cent prevents a miss that costs nine cents and a sentence from the owner.+}

### 7.4 Where it goes

Back 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-] {+If+} a block that changes every turn [-is placed-] {+sits+} 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

### 7.4 Where it goes

to every turn. [-With $L-] {+A 1,000-token block a fifth of the way into a 100,000-token prompt ($P+} = [-100{,}000$ and the block at $P = 20{,}000$, that is the-] {+20{,}000$) costs about+} 92,000 [-above,-] {+base tokens a turn,+} the price of eight [-pulls-] {+searches+} (Figure [-4b). In-] {+4b); at+} the [-tail, the same block-] {+end it+} costs its own [-write and its re-reads (§7.2); in a turn-scoped slot, 1,000 for each call that sees it.-] {+write, about 1,250.+} 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).-] {+§7.2).+}

### 7.6 Waking a session against searching

search 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-] {+In time, a+} wake [-almost always, since it-] is one call where a search is [-several.-] {+several, but that call reads a long context and may answer at length, so which is faster depends on the question; we have not measured it.+} 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.

### 7.6 Waking a session against searching

![What [-a find-] {+finding+} costs, from published cache prices. (a) The largest item worth pushing whole, against the probability $q$ of a body read, for three context lengths; solid lines at a cache-read price of 0.1, dashed at 0.05; a 40-token pointer, $M = 30$. Below a line, push whole; above it, push a pointer. The dots mark 319 tokens at $q = 0.1$ and 2,551 at $q = 0.5$ (§7.3). (b) Extra cost per turn of a 1,000-token block that changes every turn, on a log scale: inside the cached prefix at 20% of the context (the rewrite it forces), in the persistent tail (its write and 30 re-reads), and in a turn-scoped slot (one call), with one pull for scale.](images/fig4-cost-v4.png){width=94%}

### 8. Built ahead, kept current

Most of the work of finding happens before anyone asks. Every accepted write enters the fresh-writes overlay at once (§8.2), and a changed catalogue regenerates its asset entries. Every night a new index is built beside the live one (§8.3), use keys are refined, the index file is published (§4.3) and the ranking is refitted (§8.5); every week, co-access edges are recomputed. The learning stage's night pass works on rules (J5 [-§6.2, the nightly auditor)-] {+§6.2)+} and never touches these.

### 8.1 Filters, in a fixed order

[-The worst daily failure this stage could cause is-] {+Ask *"check the camera on the lab machine"* in+} a [-private pointer, such as-] {+chat shared with a colleague, and the machine's entry, which says+} where [-a credential-] {+its login+} is kept, {+must not appear. A private pointer+} shown in a shared chat or to a [-sub-agent.-] {+sub-agent is the worst daily failure this stage could cause.+} 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.

### 8.1 Filters, in a fixed order

[-The function-] {+A fact can have several revisions, each with its own readers, so `eligible()`+} first [-settles which revision the candidate would return:-] {+picks+} the revision {+it would return and checks only that. The revision+} map {+(§8.2), holding the latest revision+} of [-§8.2-] {+anything changed since the build,+} and the [-temporal mode (current state or-] {+date asked about (today, unless another is named) pick it; picking can drop+} a [-past date) pick that one revision, and they only drop candidates-] {+candidate+} or swap [-one revision for another. The three steps below then run on that exact-] {+its+} revision, [-so a substituted revision is checked in its own right.-] {+never add one.+} 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;-] {+nothing:+} the first revision's permission does not carry over. [-Authorisation-] {+If permissions change mid-query, authorisation+} runs again [-when the answer is returned if permissions changed meanwhile.-] {+at return.+}

### 8.1 Filters, in a fixed order

1. **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),-] {+§7.7),+} 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).-] {+§7.3).+} *Historical* resolution answers what was true, or believed, at a date (J14 [-§7.4, two questions about the past):-] {+§7.4):+} 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.

### 8.2 Becoming retrievable

[-A 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.-]

### 8.2 Becoming retrievable

{+A correction you make now, such as the "you have a skill for this" of Table 2, must be findable on your next message, although the index is rebuilt only at night. A library has the same problem. It reshelves returned books overnight; until then they wait on a trolley by the desk, and the desk checks the trolley before the shelves, so a book returned at noon can go out again at one. A slip on the old shelf, "withdrawn, newer copy on the trolley", stops the old copy going out, and while a book is being recalled the desk stops lending for a moment and says so. Find has all three: the fresh-writes overlay is the trolley, the revision map the slip, and the epoch fence of §8.3 the pause.+}

### 8.2 Becoming retrievable

[-The agent names the status a correction has reached, never-] {+Never+} "I remembered that": {+the agent names a correction's status. Each stage owns one:+} **captured** [-(J1),-] {+(recorded, J1),+} **accepted** [-(committed through-] {+(through+} the writing stage's [-gate;-] {+check, J14;+} a [-hold-] {+held write+} is acknowledged, not [-accepted; J14), **retrievable**, and-] {+accepted), **retrievable** (here),+} **active** or **enforced** (J5). They are [-dimensions, not-] {+independent;+} a [-chain. This stage owns retrievable: reachable through an eligible read path by-] {+correction can be active in the tail before it is retrievable. Retrievable means+} the next relevant request, {+even+} in {+this session, reaches it through+} the [-same session too. That promises no place in the next push; the-] {+filters of §8.1; a+} pull [-will return it.-] {+returns it, a push may not.+}

### 8.2 Becoming retrievable

[-That-] {+The **fresh-writes overlay** is a small+} table [-is the **fresh-writes overlay**:-] {+every request checks:+} the writes since the last build, in memory, with their keys and reader [-scope.-] {+scope, until the next build takes them in.+} 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-] {+11+} lists the failure cases with what the agent may say in each.

### 8.2 Becoming retrievable

A 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).-] {+§5.3).+} 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);-] {+§4.1);+} a rule line enters the overlay only on the writing stage's receipt.

### 8.3 Manifests, restarts and rebuilds

A swap keeps every write newer than the build's snapshot, [-so a correction made during the build survives it. A-] {+and no+} read [-waits until Find has applied-] {+serves state older than+} the newest [-erasure or quarantine, and a read caught across one is run again, so no query serves-] {+erasure;+} the [-older state. The-] push waits at most 10 ms for [-this; past that it-] {+that, then+} sends an empty list and leaves the finding to the pull. {+Figure 5 shows both cases, and+} Appendix C gives the rules and their tests.

### 8.3 Manifests, restarts and rebuilds

{+![Freshness across a night build, four lanes on one time axis. (a) A correction made while the build runs enters the overlay at once and survives the swap, because the swap keeps every overlay row newer than the snapshot the build read. (b) An erasure during the build raises the epoch: the build is refused, the live index and the overlay keep serving, and Find writes its row of the deletion receipt only after the refusal. A push that arrives while the erasure is being applied waits at most 10 ms, then sends an empty list.](diagrams/tikz/fig5.pdf){width=100%}+}

### 8.4 Receipts, and what a zero means

The series rule that the alarm is a missing receipt or a missed planted opportunity, never a zero count (J5 [-§9.1, a receipt for every run),-] {+§9.1),+} means three things are watched apart here. *Liveness*: every turn produces a push receipt, empty or not, with the build age and whether it was lexical only; a turn without one is a defect. *Opportunity*: a planted request, run under a test identity, must find its known asset (§9.5). *Outcome*: entries shown and used, outcome labels, pulls, read-ledger hits and rows removed per filter are reported, never alarmed at zero.

### 8.5 The ranking's own loop

Every 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,-] {+use the audit labelled, that label; for one it did not,+} the share of [-a weekly audit sample of such-] {+that week's audited+} 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.

### 8.5 The ranking's own loop

A loop that learns from its own outcomes can overfit them, so three sets are kept apart. The *development replay*, corrections up to a freeze date, is all the nightly fit and any tuning may read. The *regression suite* holds every eligible named case, every fixed failure and the planted opportunities; new weights are adopted only if they lose none of them and do not lower hit at 5 on the development replay. The *evaluation stream*, corrections after the freeze date, is held by a separate evaluator: the loop and whoever tunes it never see its expected items, and the fit leaves out the use-log rows of those cases' turns, from the request through the owner's correction to the turn after. The stream is scored only when a question of §9.2 is decided; its cases then join the development replay and a new freeze date starts (J5 [-§9.2, three streams, kept apart).-] {+§9.2).+}

### 9.1 The correction replay

Each case comes from one correction such as "you have X". It holds the owner's words in the request just before it, the expected items, the reader's scope and the date, so the indexes can be rebuilt as they stood then. Cases go into the sets of §8.5. [-Every-] {+Some come from corrections made mid-task, after a tool call failed, so the push on a failure (§6.1) is tested too. Two raters, working apart, assign every+} failed case [-is assigned-] the first gate it failed (§3); a miss that fits no gate is itself a finding.

### 9.1 The correction replay

{+The replay holds only misses the owner named. A *negative set* of ordinary turns with no correction after them shows what each arm pushes when nothing was needed, and how often the model *followed wrongly*, acting on a pointer a judge labels unhelpful there. Misses he worked around in silence stay invisible (§10).+}

### 9.1 The correction replay

Each arm reports hit at 5 (the expected item is in front of the model before its first [-call)-] {+call; an item already in the always-loaded index file counts, and is reported apart)+} 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 {+followed wrongly on the negative set,+} 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.

### 9.2 What would decide each claim

Each 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. {+At three corrections a week, the rate in the example of §9.3, 155 cases take about a year, and longer as the design works, since each catch removes a correction. So the rate is counted in the session record before building, and the date of the first verdict printed. The questions that need the owner's cases are decided together on one stream, with Holm's (1979) correction, and share one freeze date. A "no worse" bar is a margin: the arm passes when the 95% bound of the difference stays within it.+} The bars in Table [-6-] {+7+} are adoption thresholds, not predictions.

### 9.2 What would decide each claim

| Question | Decided by | Bar to adopt | |------------------|------------------------------|--------------------------------| {+| Can a miss be placed at a gate? | Two raters assign each failed case its first failed gate, apart | They agree on at least nine cases in ten, over at least 100 failed cases |+} | 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-] {+cases, at most 2 points lower+} | | Is a pushed pointer used? | E, followed, among the cases hit at 5 | At least four in five followed before the owner is [-asked-] {+asked, on at least 155 cases hit at 5; followed wrongly in at most one negative turn in twenty+} | | 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-] {+cases;+} explicit-failure rate {+at most 2 points higher+} | | 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-] {+cases;+} explicit-failure [-rate,-] {+rate at most 2 points higher;+} 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-] {+155+} replayed "what did we decide about X" [-questions,-] {+questions (the first 30 as a pilot),+} wake against search | Correct [-as often,-] {+at most 5 points less often;+} fewer tokens where $k^{*}$ predicts [-it,-] {+it;+} faster [-in every case-] {+at the median+} |

### 9.4 Public suites

LongMemEval (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. {+The same holds for use keys: the generator writes both the "use when" text and the requests that must match it, so C1 against B here checks the mechanism too.+} 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.

### 9.5 Integration checks

At 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).-] {+9).+} The [-specification's replay on-] {+series' design model (J5 Appendix B) is broken six ways, one at+} a [-model-] {+time: the swap empties the overlay; access is checked at collection only; "last time" references skip that check; reads ignore an erasure in progress; a derived item takes the readers+} 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-] {+its+} most restricted source, {+not those all its sources share;+} a hold [-taking-] {+takes+} its [-readers from the topic), and catches all six:-] {+topic's readers. All six are caught, so+} the checks can [-fail, which is not a result on an implementation.-] {+fail; no code has run.+} Two [-sequences are kept-] {+races stay+} as regression [-cases-] {+cases,+} because a [-model without-] {+query that skips+} the [-return-time-] check {+at return+} passes them silently: an [-erase, and a quarantine, that land while a query is running. With the check removed, the first-] {+erasure mid-query+} hands the owner {+an erased phone number, and a quarantine mid-query a use key made from injected text. With+} the [-erased number and the second an injected use key; with it,-] {+check,+} 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-] {+draws on+} the [-shared file's-] latest [-section,-] {+entries of the owner's previous session,+} and the full-text query never exceeds 2,000 characters.

### 10. Conclusions

Indexing 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),-] {+2),+} 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.

### 10. Conclusions

The design has limits. The owner's corrections are few and private, so the main test fills [-slowly-] {+slowly, about a year to its first verdict at three a week,+} and the synthetic suite has to show that its results carry over. {+The replay sees only the misses he named, never those he worked around in silence. The push runs on the owner's words and on failed tool calls; a need that appears mid-task without a failure waits for the agent to search.+} 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.

### References

Anthropic [-(2025).-] {+(2025a).+} Equipping agents for the real world with Agent Skills. Anthropic Engineering. <https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills>

### References

{+Anthropic (2025b). Introducing advanced tool use on the Claude Developer Platform (Tool Search Tool), 24 November 2025. Anthropic Engineering. <https://www.anthropic.com/engineering/advanced-tool-use>+}

### References

{+Anthropic (2026e). Using agent memory (Claude Managed Agents memory stores, beta). Claude Platform documentation. <https://platform.claude.com/docs/en/managed-agents/memory>+}

### References

{+Holm, S. (1979). A simple sequentially rejective multiple test procedure. *Scandinavian Journal of Statistics*, 6(2), 65–70. <https://www.jstor.org/stable/4615733>+}

### Appendix A. Interfaces

| Record | Written | Fields | |--------------|------------------|----------------------------------------------------------| | Push or pull receipt | every [-turn-] {+turn, every failed tool call that triggers a push,+} and every pull, even when empty | turn ID; {+trigger (owner message or failed tool call);+} 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, {+J14's+} 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 |

### Appendix A. Interfaces

The transition specification shared by the four stages (J5 Appendix B) gives each handoff a code. Table [-8-] {+9+} lists the ones that reach this stage, with the test that checks each.

### Appendix A. Interfaces

{+The body cites the companion papers by section only. Table 10 says, once, what this stage takes from each.+}

### Appendix A. Interfaces

{+| Section | What this stage takes from it | |----------------|--------------------------------------------------------------| | J1 §4.1 | the owner's words, kept apart from the wrapper (§6.1) | | J1 §4.7 | sessions that are never kept (§4.1) | | J1 §6.1 | the three window controllers (§6.6) | | J1 §6.6 | eviction events, and how sure delivery is (§6.7, §6.8) | | J1 §7.2 | the price of moving the prefix (§7.4, Table 4) | | J1 §8.1, §8.3 | the range read; asking a past session (§6.6, §6.9) | | J14 §4 | choosing what to write (Table 4) | | J14 §5.2, §5.3 | every writer through one gate; the pending area while the judge is down (§4.3, §8.2) | | J14 §7.2 | delivery slips, epochs and concurrent writers (§8.2, §8.3, Appendix C) | | J14 §7.3, §7.4 | three ways a fact ends; two questions about the past (§8.1) | | J14 §7.5, §7.7 | only a judge closes; erase and quarantine (§3, §8.1) | | J14 §8.1, §8.5 | source classes and links; dates, confirmation and importance (§5.5, §8.1) | | J14 §9.2, §9.3, §9.4 | one topic per file; pointers only in the index file; use keys written with the fact (§4.3, §5.3, §6.7) | | J5 §4.1 | the rule ledger, one row per rule (§8.2) | | J5 §6.1, §6.2 | the fast path for corrections; the nightly auditor (§6.5, §6.9, §8) | | J5 §7.1, §7.2 | the index file's budget; prune by binding (§4.2, §4.3) | | J5 §7.4, §7.5 | approval and who may loosen; the morning report (§4.3, §8.5, §9.3) | | J5 §9.1, §9.2 | a receipt for every run; three streams kept apart (§8.4, §8.5) | | J5 Appendix B | the transition specification and the reference trace (§2, Table 9) |+}

### Appendix A. Interfaces

{+: Where the companion papers specify what this stage relies on.+}

### Appendix B. The push in pseudocode

```text FIND_PUSH(turn, reader, {+query=None,+} rerun=False): # reader: authenticated state e0 = newest_epoch {+wait = 0 ms+} if [-not applied_within(e0,-] {+rerun else+} 10 [-ms):-] {+ms+} # §8.3 fence, bounded {+if not applied_within(e0, wait):+} return empty(turn, "skipped: erasure in progress") words = {+query or+} owner_words(turn) # §6.1 v0 = permission_version() view = authorised_view(reader) # §8.1 step 1 named = view.names.match(words) # §6.4 [-refs =-] {+named +=+} task_ref_state.resolve(words) # [-§6.1-] {+§6.1, "last time"+} 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,-] {+view.coaccess),+} 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-] {+arrived+} if rerun: return empty(turn, "skipped: erasure in progress") return FIND_PUSH(turn, reader, {+query,+} 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-] {+prefix, or after the failed result+} emit receipt(turn, pack, counts, mode, snapshot, epoch)

### Appendix B. The push in pseudocode

{+ON_TOOL_FAILURE(call, turn, reader): # §6.1 q = [call.tool, call.args, call.error_class] # never result text FIND_PUSH(turn, reader, query=q)+}

### 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, {+without waiting at the fence,+} and [-a second change-] sends the empty list {+if the epoch is still moving+} (Appendix B). *Test:* during a large erasure every turn still gets its receipt within the 50 ms [-budget,-] {+budget at the 95th percentile,+} and none serves an erased row.

### Appendix D. The owner's inspector

{+## Appendix D. The owner's inspector+}

### Appendix D. The owner's inspector

{+The owner's inspector is one owner-only view over the use log and the receipts (§6.8). 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 11 shows under its own label, and a held item never shows as current.+}

### Appendix D. The owner's inspector

_J-series paper J2 | Version [-8.5-] {+8.6+} | 2026-10-21_
