---
title: "INSTANT RECALL: Finding What the Agent Already Owns"
author: "Oscar Serra · Independent Research"
date: "12 October 2026"
version: "v8.1"
---

## Abstract

A smell from a kitchen can bring back a whole afternoon: the room, the voices, what you were about to do next. You did not search for it. A small structure deep in the brain, the hippocampus, keeps an index of where the pieces of each experience are stored, and it completes the whole memory from a fragment. Picture an assistant that did this for you. You mention that a download is blocked, and it already has in mind the helper you built together last month, the machine whose login is written in your notes, and what you decided about that portal last week.

Assistants now keep plenty, yet their owners still have to tell them "you have a skill for this". What they miss is seldom a note that a word in the request would find. It is something the owner owns, a skill, a machine, a decision or a way of solving a problem, and it often shares no word with the request. A search tool helps only when the agent thinks to call it, and context pushed into every turn fills up with old documents and breaks the prompt cache.

We 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 puts a few pointers in front of the agent before every turn, in the part of the prompt the cache does not cover, and only pointers the current reader may see.

For your assistant this means fewer reminders of what it already has, a correction it can find on the very next request, and a cached prompt that memory does not disturb. This is a design; Section 9 names the tests that would decide it, on a replay of the owner's own corrections.

If it holds, your assistant stops asking what you mean by "the one we did last time".

## 1. Introduction

Three requests arrive on one morning.

*"Download last quarter's report from the company portal."* The agent answers that it cannot reach the portal. A month earlier the owner and the agent built a helper that drives the owner's own browser session for exactly this kind of site. The helper's notes talk about "relaying commands to a logged-in browser". They never say "download".

*"Check the camera on the lab machine."* The agent says it has no credentials. It has them: a note about that machine says where its login is kept.

*"Train it again with the setup we used last time."* The agent asks which setup. The answer sits in a session record from three weeks ago, filed under another project's name.

Each time, the owner has to answer the same thing: you have this. We call it an **ownership miss**: the agent owns what the task needs and does not reach for it. Each one costs the owner his attention and teaches him to do the remembering himself, the job he hired the assistant for.

None of the three is a note that a noun in the request would find. Two are assets and one is a past approach, and none shares a key word with the request. "Download the report" and "relay commands to a logged-in browser" are about different things; what links them is a use, *when a site blocks a download*. The usual retrieval stack returns the text nearest to the request, which finds what the request is about. These misses need what the stored thing is *for*.

The hippocampus offers a frame, as a way to reason and not a mechanism we copy; the design's working name, HIPPOCAMPUS, comes from it. On the indexing theory of memory (Teyler and DiScenna, 1986) it stores an index of where the parts of an experience live in the cortex, 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.

It is hard for plain reasons. Skills, notes, decisions and session records live in different stores, and a search over notes cannot find a skill. Need and answer are linked by use, and a recent study found descriptive similarity a weak predictor of whether a piece of memory helps a decision (Zou et al., 2026). A search tool helps only when the agent suspects it owns something, and in each miss above it did not. And context pushed in front of the model is paid for on every later call, and breaks the provider's cache if it lands inside the cached part of the prompt.

We propose a design for the finding stage, Find for short (Figure 1), and make four claims, each tied to the section that argues it and the test that could refute it. 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 pointers pushed after the cached prefix, filtered by who may see what before anything is ranked, costs a small fraction of the searches it saves and never rewrites the cached prefix (§6, §7, §8.1). And a correction becomes findable on the next request, before any index is rebuilt (§8.2). Section 9.2 gives the test for each. Section 7 also holds the notation and prices the four papers of this series share.

![One turn of Find. Name, use, topic and co-access keys, read from the owner's words without the wrapper, look up two indexes built ahead of time: what the owner owns, and the text of notes and session records. A named item takes its guaranteed slot; the rest compete above a relevance floor. A few pointers go in after the cached prefix, a search tool covers the rest, and every entry shown goes to the use log.](images/fig1-find-turn.png){width=94%}

## 2. Related work

This is one of four designs for an agent's memory: keeping (J1), writing (J14), finding (J2), learning (J5). The keeping paper, J1, decides what survives the context window and keeps the full session record. The writing paper, J14, decides what enters long-term memory and in what shape. The learning paper, J5, turns experience into behaviour. This paper covers how the right thing is found when it is needed, and points to the others in one line wherever they meet.

**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 memory as Markdown files in a git repository: root-level files go into the system prompt every turn, deeper folders are listed in an index file, and the agent finds the rest with file-search tools (Letta, 2026b). Claude Code loads the first 200 lines of its memory index each session and reads topic files on demand (Anthropic, 2026a); the memory tool comes with an instruction, added by the API, to view the memory directory before anything else (Anthropic, 2026b); Agent Skills load every skill's name and description at startup and read a skill only when it looks relevant (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.

**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, 2026). OpenClaw's Active Memory plugin runs bounded retrieval before a reply, and by default escalates to a blocking recall sub-agent only when the message asks about the past and a deterministic lane finds no strong match (OpenClaw, 2026). Automatic push is therefore established. We add what gets pushed (pointers to owned assets, §4), how it is reached (use keys and co-access, §5), what it may never override (access and privacy, ahead of a slot for named items, §6.4, §8.1) and where it goes in the prompt (§7.4).

**RAG-MCP.** Gan and Sun (2025) retrieve tool descriptions from an index before the model is called and report 43.1% tool-selection accuracy against 13.6% for listing every tool. Our asset index (§4) applies the idea to everything the owner owns.

**Zep.** Rasmussen et al. (2025) search a temporal knowledge graph by embeddings, BM25 and a graph walk at once, rerank toward often-mentioned entities, and report gains of up to 18.5% on LongMemEval with 90% lower latency than their baselines. We keep hybrid search and ranking by use; how facts change over time belongs to the writing stage.

**HippoRAG 2.** Gutiérrez et al. (2025) extend HippoRAG's Personalized PageRank with deeper passage integration and report a 7% gain on associative memory tasks over a strong embedding model. Its links come from shared entities; our misses share none with the request, so our edges come from use and co-access (§5). Its repository also rejects a persisted index whose manifest no longer matches the configuration, instead of mixing it (HippoRAG, 2026); we adopt that rule (§8.3).

**Mem0.** Chhikara et al. (2025) retrieve short extracted facts instead of whole conversations, with 91% lower p95 latency than full context on LoCoMo. The platform takes feedback on each memory (positive, negative or very negative, with an optional reason) and says it improves memories and search, without saying how (Mem0, 2026). Our use log (§6.8) gathers that kind of signal from what each turn did.

**T-Mem and document expansion.** T-Mem (Guo et al., 2026) writes *triggers* when a memory is stored, anticipated contexts in which it will be needed, an idea that goes back to indexing a document with the queries it answers (Nogueira et al., 2019). Our use keys are the same idea, applied to assets, with a second source in the owner's corrections (§5).

**Decision-centric memory.** On LoCoMo, Zou et al. (2026) measure descriptive similarity as a weak predictor of whether evidence fits a decision (Spearman $\rho = 0.103$); description-based retrieval recovered 66% of the gold evidence at a matched budget, against 83% for their method. It is the clearest outside measurement behind keying by use.

Each 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 access control, 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.

## 3. Where a find fails

A needed item has to pass five gates before it helps. Each gate fails for its own reason and has its own fix and test, so a miss is diagnosed by the first gate it fails. Figure 2 follows one item, the browser helper of §1, through all five for the request "download last quarter's report from the company portal".

**Gate 1, not indexed.** The item lives in a store the index does not cover: a catalogue of skills, a note about a machine, the titles of a wiki. 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}$,

$$\mathbb{E}[\text{recall}] \le \sum_{s \in \mathcal{Q}} P(s).$$

*Fix:* the asset index (§4). *Test:* for each replayed miss, is the item in any index at all?

**Gate 2, the wrong key.** The item is indexed under what it is about, and the request asks for what it does. A request with no noun ("the one we used last time") fails here too. *Fix:* use keys, co-access edges and a task-reference state (§5, §6.1). *Test:* the item's rank under topic keys alone against its rank with the other keys added.

**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. *Fix:* a push before the model runs, built from the owner's words (§6). *Test:* the share of replayed cases where the item is in front of the model before its first call.

**Gate 4, filtered out.** The item was found and then removed. Access, privacy and validity filters run in a fixed order before ranking (§8.1). The first two are guarantees and are meant to remove things; validity is a default, and if the mark behind it was wrong the item vanishes 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), and count what each filter removed. *Test:* the hidden share per query, and an audit of a sample of hidden rows.

**Gate 5, drowned.** The item was pushed as the fourteenth of twenty old documents, or in a list that is always full. A list that is never empty 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 share of shown entries the turn used successfully (§6.8).

![One item through the five gates, for the request "download last quarter's report from the company portal". The item is the browser helper built a month earlier, whose description never says "download". Each row gives what the gate checks, what happened to this item, and how it would have been lost there. It reaches the model as a 40-token pointer, with the use key that found it as its reason.](images/fig2-one-item-five-gates.png){width=88%}

### 3.1 The query is the owner's words

The push, the use log and the replay suite read the owner's words from the `owner_words` field that the keeping stage fills when a turn is appended (J1 §4.1, what goes in and with whose name), never the wrapper around them. *Test:* a set of wrapped prompts must produce the same pushed list as the same prompts unwrapped.

## 4. Two indexes

### 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, as that stage assigns them. Find adds an address map to every unit (headings, line ranges, and symbols for code), so that a second visit goes straight to the region it needs. This is *retrieve coarse, address fine*: units large enough that related text arrives in one read (§7.1), addressed finely enough that the next visit is a seek.

A session the keeping stage flags as temporary leaves no lasting row in the text index or the use log (J1 §4.7, sessions that are never kept). Search inside that session still works, and the rows it needed go when the session ends.

### 4.2 The asset index

The asset index holds what the owner owns, one entry per thing:

- skills, procedures and tools the agent can run;
- machines and services, with where each one is and where its credentials are kept, never the credentials themselves;
- repositories and their working branches;
- decisions, with their date and their 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, which document, which build is the latest;
- rules the learning stage has moved out of always-loaded files (J5 §7.2, prune by binding), found like any other asset and not only when named.

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

![The asset entry for the browser helper of §1. Name and aliases feed the named slot; one line says what it is; 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 are things fetched with it in the same tasks. The source and the date come from the writing stage; the reader scope is set when the entry is indexed (§8.1).](images/fig3-asset-card.png){width=94%}

Assets get their own index because the unit differs (a pointer, where a text unit is content), the numbers differ (hundreds or a few thousand entries, held in memory, against hundreds of thousands of text units), and the push rule differs: a named item gets a guaranteed slot (§6.4), and text never does. The index stores where a secret is kept and how to use it, never its value, and a pointer to a credential carries the credential's own reader scope (§8.1).

### 4.3 The index file

The entries the owner needs most often are worth having in front of the agent every session, in the index file the writing stage defines: always loaded, one pointer per line with a short hook saying when to read it (J14 §9.3, the index file holds pointers only). The writing stage owns the shape of a line and checks every write to it. Find decides which entries get a line and in what order, the entries with the most successful uses first, up to the budget the learning stage sets for always-loaded files (J5 §7.1, a budget measured in attention). One exception overrides that order: a rule the learning stage moved down keeps its pointer line while its area is active, however few uses it has (J5 §7.2, prune by binding). The per-turn push covers the long tail.

A line the owner wrote by hand is his (J14 §5.2, every writer, one gate): the next build keeps it where he put it and recomputes only the lines it generated. 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 check that failed. Each published change appears as a diff in the learning stage's morning report (J5 §7.5, one channel to the owner). Rules stay out of this file: a line that carries one belongs to the learning stage and needs the owner's approval (J5 §7.4, approval and who may loosen).

## 5. Four keys

A key is a way to reach an entry, and each kind catches misses the others cannot.

**Name keys** are exact names and aliases: a skill's name, a machine's name, a project, a nickname the owner uses. They are cheap and exact, and they feed the named slot (§6.4). When the owner calls something by a new name and then corrects the agent, the name is added.

**Topic keys** say what the entry is about: BM25 and embeddings over its description and body. This is standard retrieval, and it covers the misses where the request does name the topic.

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

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); 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 request he made just before becomes a use key on the entry he meant, in his own words. These keys are cut from real misses.
3. *Offline.* At night, sessions where an entry was used successfully propose keys from the request that led to it.

Generated keys drift toward the generic (*when working on a project*); a key that matches a large share of all entries is dropped, and each entry keeps at most five.

**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 can propose that link. Edges are computed per lane, since automated jobs would swamp the interactive sessions, and drive a one-hop expansion from the entries the other keys found. Co-access sees what was fetched, not why, so an edge is evidence for a proposal and never permission to act on storage: merge and split proposals go to the writing stage, which owns the shape of files (J14 §9.2, one topic per file).

### 5.5 Combining keys: one score

Each candidate $e$ gets one number, $p_e$: the probability that the current turn uses $e$ successfully (§6.8) if it is shown. The event is successful use; the horizon is this turn. The score is logistic in the key matches and the entry's activation:

$$z_e = \beta_0 + \beta_{\text{use}}\,m_{\text{use}}(e) + \beta_{\text{top}}\,m_{\text{top}}(e) + \beta_{\text{co}}\,m_{\text{co}}(e) + \lambda\,(A_e - \bar{A}), \qquad p_e = \frac{1}{1 + e^{-z_e}}.$$

Each match strength lies in $[0,1]$. For use and topic keys it is the best similarity $s$ between the query and the entry's keys of that type, rescaled as $m = \max\!\big(0, (s - s_0)/(1 - s_0)\big)$, where $s_0$ is the similarity of a random pair at the 95th percentile, measured for each encoder and recorded in the index manifest (§8.3); BM25 scores are rescaled the same way. For co-access, $m_{\text{co}}$ is the normalised PMI of the strongest edge from an entry the other keys found, 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.

The keys of one entry are often written from the same description, so they are not independent evidence, and a noisy-OR would count them twice. A logistic model fitted on all keys together learns how much a second key adds when the first already matched, and fading enters its log-odds as one more addend.

**Starting values.** Before any data, $\beta_0 = \operatorname{logit}(0.02) \approx -3.9$, the chance that an arbitrary entry is 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$. These are assumptions chosen before any data, and the ranking's own loop re-estimates them (§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.

**Fading.** Anderson and Schooler (1991) found that the odds that an item is needed again fall as a power of the time since each past use, summed over those uses, and that human memory follows the same curves. So each entry carries an activation from its own use log:

$$A_e = \ln \sum_{j} \max(t_j, t_{\min})^{-d},$$

where $t_j$ is the time in hours since the $j$-th successful use of $e$, 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. Use, not age, sets the clock: an old note read every week stays strong. Find owns how age and importance act at read time; the writing stage marks importance when it writes a fact (J14 §8.5, dates, confirmation, negatives and importance).

Fading lowers a rank and never removes an entry: 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. Importance does not put an entry in the list; it still has to match a key, or every important entry would sit in every list. And 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

The push is the only part of the design that works when the agent does not suspect it owns something (gate 3). Appendix B gives it as pseudocode.

### 6.1 The query, and what "last time" refers to

The query is the owner's current message with the wrapper removed. That alone cannot resolve "the one we did last time", 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 of the entries resolved or used in its recent turns, and any reference the owner made that is still unresolved. It holds IDs, never text, at most twenty of them, and it is 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 the entries of this session's task, then those of the latest earlier session on the same task, found in the text index by its title. Entries reached this way join the candidates with a full co-access match (§5.5), since they are what was fetched in the same task.

### 6.2 What may run on the path

The push has a budget: 50 ms at the 95th percentile from the owner's words to the packed list. Names are a hash lookup and the one-hop walk reads a stored adjacency list. A precomputed index makes the documents cheap but never the query, which 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 with its version 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 what it finds is offered to the next turn, marked as computed for the previous message.

### 6.3 The list

The list holds up to five entries with $p_e \ge \tau$, plus any named items. Each entry carries its ID, its revision and the reason it is there, meaning which key matched; the reason helps the model judge the entry and lets the replay attribute a hit to a key. An entry goes in whole when it is a short fact likely to be needed, and otherwise as a pointer; §7.3 derives the line between the two. When nothing clears the floor the list is empty, and an empty list is a correct answer.

### 6.4 A guaranteed slot for a named item

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.

The slot yields to one thing: whether this reader may see the item. Names are matched against the reader's authorised view of the name table (§8.1), so a name the reader may not see matches nothing, and the list carries neither the entry nor its pointer, nor any hint that it exists. Up to three named entries take slots, in the order the owner named them; further named items share one line that lists their names and says the pull will open them. Named entries never take one of the five ranked places. *Test:* every named case gets its entry, every time, and a named item outside the reader's scope exposes nothing.

### 6.5 Where the list goes

The 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. Section 7.4 gives the price of getting this wrong. The same tail carries the learning stage's provisional rule lines and the owner's correction sentences that are still waiting to be processed (J5 §6.1, the fast path; J5 §7.4, approval and who may loosen). They are priced the same way, by their own tokens, and never enter the cached prefix.

### 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 the same 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). An answer is bounded by count and clipped per item: 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. An oversized hit is clipped, never a reason to drop the hits after it. The push catches what the agent does not suspect; the pull serves what it does. A pull registered but not offered to the model does not exist for the agent, and an unset allow-list hides it without an error, so §9.5 checks that it is offered whichever party controls the context window (J1 §6.1, three window controllers).

### 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 the same region of the same file is already in the context window, unchanged since it was read. A matching content hash proves the file did not change, not that the text is still in the window. So the ledger consumes the keeping stage's compaction receipts (J1 §7.4, one receipt per compaction; J1 §6.6, the adapter contract). It reads one field, the evicted ranges, each with the identity of the file and the region it held, which the receipt has to carry; it drops every entry whose range left the window. Only when the hash matches and the range was never evicted does the read return where the text already sits. The ledger folds two paths to one file into one identity, and 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).

### 6.8 The use log

For each entry shown, by push or by pull, the log keeps three columns. *Shown*: it was in front of the model. *Used*: the reply referred to it, or a later tool call followed its pointer. *Succeeded*: it was used, and nothing turned against it, meaning no correction from the owner that names it in this turn or his next message and no broken pointer. A fourth outcome is recorded when it happens, *wrong memory*: the owner says the item was wrong, outdated or not the one he meant. "Used" alone is an engagement proxy, since a misleading entry can be mentioned and followed. The ranking learns from success and wrong-memory outcomes (§8.5) and reports use only as engagement.

The log also answers the owner's question "which memory made you say that?". Every entry shown carries its ID and revision and every use names it, so an answer can cite the memories behind it. When the owner asks that something not be mentioned, the item joins a suppression list read at the privacy step (§8.1): it stays stored and visible in the owner's own view of memory, and is no longer pushed or returned. Deleting it is the writing stage's job (J14 §7.7, erase and quarantine); a session that keeps nothing at all is the keeping stage's (J1 §4.7, sessions that are never kept), and such a session leaves no lasting row here (§4.1). Tests, health probes and other synthetic calls run under their own identity and never write to this log.

## 7. What a find costs

### 7.1 A read costs a turn

This section holds the notation and prices for the whole series. The other three papers use its symbols and register here the ones they add, so the series has one table; a paper that needs a local symbol picks a letter not in Table 1. Every price is a multiple of the base input price except $\pi_s$ and $\pi_\ell$, which are in dollars; all come from Anthropic's published prices (Anthropic, 2026c). Each probability names its event and its horizon.

| 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 that the item's body is read at least once in the rest of the session (horizon: the $M$ later calls) | 0.1 to 0.5 |
| $p_e$ | probability that this turn uses entry $e$ successfully (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 |

: Notation and prices for the series. Prices are multiples of the base input price, except $\pi_s$ and $\pi_\ell$, in dollars.

A turn that uses an entry needs its body, so for the turn the entry is shown in $p_e$ is a lower bound on $q$; the push uses $p_e$ in place of $q$, which errs toward a pointer.

A pull is one more model call. It re-reads the whole cached context, writes the $x$ tokens it returns into the cache, and pays for its own output:

$$C_{\text{pull}} = rL + wx + g\,o.$$

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

### 7.2 What a push costs

An 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:

$$C_{\text{push}} = B\,(w + rM).$$

With $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, before counting a minute of the owner's time.

### 7.3 Whole or pointer

An item whose body has $B$ tokens can go in whole, at $B(w + rM)$, or as a pointer of $B_p$ tokens. The pointer costs its own $B_p(w + rM)$ and, with probability $q$, a pull that re-reads the context, pays its output, writes the body and leaves it in the session to be re-read: an expected $q\,[\,rL + g\,o + B(w + rM)\,]$. We assume the pull, if any, happens in the turn the pointer arrives, so both alternatives are counted over the same $M$ later calls. A later pull meets a longer context, which raises $rL$, and leaves the body in place for fewer calls, which lowers the residency term; we do not model the two, which pull in opposite directions. Going in whole wins when

$$B < B^{*} = B_p + \frac{q\,(rL + g\,o)}{(1 - q)(w + rM)}.$$

With the values in Table 1, $B^{*}$ is about 2,500 tokens for an item needed with $q = 0.5$ and about 315 tokens for $q = 0.1$. As $q$ approaches 1, $B^{*}$ grows without bound: an item certain to be needed goes in whole. So short facts likely to be needed go in whole, and everything else goes in as a pointer. A longer context raises $B^{*}$, because each pull re-reads more; a cheaper cache read lowers it (Figure 4a).

### 7.4 Where it goes

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

$$\Delta C = (w - r)(L - P)$$

to 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, paid on every turn (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 any change inside the cached prefix, once: evicting a span from the middle of the window is a change at its first token, and the keeping paper weighs that one-time $\Delta C$ against what the eviction saves (J1 §7.2, the price of moving the prefix).

### 7.5 What the tokens leave out

The model leaves out two larger terms: a miss the owner has to correct costs his attention and at least one more turn, and a pull costs seconds of round trip against the milliseconds of an on-path lookup. Tokens set the shape of the list; the owner's time is why there is a push at all.

![What a find costs, from published cache prices. (a) The largest item worth pushing whole, against the probability $q$ that its body is needed in the rest of the session, for three context lengths; solid lines at a cache-read price of 0.1, dashed at 0.05; a 40-token pointer and $M = 30$ later calls. Below a line, push the item whole; above it, push a pointer. The dots mark the two values in §7.3, 315 tokens at $q = 0.1$ and 2,511 at $q = 0.5$. (b) Extra cost per turn of a 1,000-token block placed inside the cached prefix, at 20% of the context, against the same block in the tail, with one pull for scale.](images/fig4-cost-v2.png){width=94%}

## 8. Built ahead, kept current

Most of the work of finding happens before anyone asks. Every accepted write goes into 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, use keys are refined and pruned, the index file is published under the checks of §4.3, and the ranking is refitted (§8.5). Every week, co-access edges are recomputed and missing paths and merge proposals go to the writing stage (J14 §9.2, one topic per file). The learning stage's night pass works on rules (J5 §6.2, the nightly auditor) and never touches these indexes or weights.

### 8.1 Filters, in a fixed order

Every push and every pull applies four steps in this order, and no later step can undo an earlier one.

1. **Authorisation.** The reader is the session asking: the owner's own session, a sub-agent with a narrower scope, or a chat that includes other people. Each entry carries a reader scope, which Find sets when it indexes the entry, from where the content came (the source class of J14 §8.1, three fields) and where it was written: what came from the owner's private sessions, and any pointer to a credential, is his alone. 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: not in the ranked list, the named slot, the name table, the co-access walk, or any count shown to this reader.
2. **Privacy suppression.** Erased items are gone from the indexes (J14 §7.7, erase and quarantine). Quarantined items, kept as evidence of an attack and flagged untrusted, are excluded from every ordinary query and appear only in an audit view that needs audit permission. Items the owner asked not to mention (§6.8) stop here.
3. **Temporal visibility.** By default a query sees what is valid now and believed now. A fact the writing stage superseded (the world changed) or retracted (it was never true) is hidden (J14 §7.3, three ways a fact ends). A query may instead ask what was true at a date, or what was believed at a date (J14 §7.4, two questions about the past).
4. **Ranking** (§5.5) runs over what is left.

A show-hidden mode relaxes step 3 only: it shows superseded and retracted rows, marked as such, and never an item that step 1 or 2 removed. It is not step 2's audit view of quarantined items. Each query reports how many candidates steps 2 and 3 removed, so that a missing result can be told apart from one that never existed. Step 1's count goes only to a reader with audit permission, since a count can itself reveal that something exists. Which facts are closed, and the alarms on closures, are the writing stage's (J14 §7.6, count every closure).

### 8.2 Becoming retrievable

The agent never says "I remembered that" loosely; it names the status an owner's correction has reached, and each status has one owner: **captured** in the session record (J1), **accepted** as a fact or rule line with an ID and revision, or held where the owner can see it (J14), **retrievable**, and **active** or **enforced** (J5). This stage owns the move into retrievable: the next relevant request can find it, in the same session too. The whole journey is replayed in the learning paper (J5 §10, one correction, start to finish; J5 Appendix B, the replay matrix).

A nightly build cannot meet that bar, and the worst miss of all is contradicting what the agent itself wrote an hour ago. So every accepted write also goes into a **fresh-writes overlay**: a small in-memory table of the writes since the last build, with their keys, scanned on every request and merged with the index results before the filters. The writing stage's write receipt triggers the append, and the overlay acknowledges with the fact ID and revision; from then on the fact is retrievable. A new revision replaces the old one in the overlay at once, so the old text stops being served before the night. A held write is not retrievable as a fact; the pull shows it only as a hold. Nor is a line in the writing stage's pending area, written while its judge was down: it is never merged as a fact, the pull serves it only with an "unchecked" label, and the push never shows it (J14 §5.3, when something fails).

A rule line the learning stage accepts in its ledger (J5 §4.3, concurrent writes, isolated nights, and erasure) enters the overlay the same way a fact does: acknowledged as rule ID@revision, retrievable in the same session, and kept findable through a re-index (Table 2). The learning stage relies on both (J5 §6.1, the fast path; J5 Appendix B, the replay matrix).

**A worked record.** At 10:02 the owner says "the relay works for any portal without an API, not only that one". The keeping stage captures his words with an address. The writing stage accepts fact F-118, revision 2, which adds the use key *when a portal has no API* to the asset `browser-relay` (Figure 3), and sends its write receipt. Seconds later the overlay acknowledges F-118@2, and only now may the agent call the correction retrievable. At 11:40 the owner asks for a supplier's invoices from another portal. The push finds the asset through the new use key and shows it as a pointer with the reason "use key"; the use log records shown, used and succeeded. That night the build absorbs F-118@2 and the overlay drops it.

Table 2 lists where the move can fail and what the agent may then say.

| Case | What Find does | Status the agent may name |
|--------------------|----------------------------------------------|------------------------|
| Overlay append fails | retries; the write stays queued with its receipt | accepted, not yet retrievable |
| Writing stage's judge down | line kept in its pending area; the pull shows it labelled unchecked, the push never | pending, not retrievable as a fact |
| Restart before the night | overlay replayed from the write receipts since the build's store revision (§8.3) | retrievable once the replay ends |
| Concurrent writers | overlay keyed by fact or rule ID; the revision that won the commit (J14 §7.2, commit) wins here too | retrievable at that revision |
| Re-index or new encoder | new index built beside the old; switch when its manifest checks; overlay kept until then | retrievable throughout |
| Compaction of the session | indexes untouched; read ledger drops the evicted ranges (§6.7) | retrievable |
| Privacy erasure | rows, keys, edges and overlay rows removed on one path; completion reported to the deletion manifest | erased (J14) |
| Reader outside the scope | nothing shown, not even a pointer | not retrievable for this reader |

: Moving into "retrievable": failure cases and what may be said. The full replay: J5 §10, one correction, start to finish; J5 Appendix B, the replay matrix.

### 8.3 Manifests, restarts and rebuilds

Every build writes a manifest: the index schema version, the encoder and its version, the tokenizer, the similarity baseline $s_0$, the store revision it was built from, and its counts of entries, keys and edges (Appendix A). The push loads an index only if the manifest matches the running configuration. An index built with another encoder or schema is rejected and rebuilt beside the live one, never mixed with it. After a restart, the overlay is replayed from the writing stage's receipts since the manifest's store revision, so a restart loses no accepted write. A change of the chat model leaves the indexes alone; a change of encoder is a rebuild. The push never serves from a build older than its expected age without saying so in its receipt.

### 8.4 Receipts, and what a zero means

The series rule is stated once, in the learning paper (J5 §9.1, a receipt for every run): every run emits a receipt, even an empty one, and the alarm is a missing receipt or a planted opportunity that was missed, never a zero count. Here it means watching three things apart. *Liveness*: every turn produces a push receipt, empty or not, with the build age and whether the push was lexical only; a turn without one is a defect. *Opportunity*: a planted request, run under a test identity, that should find a known asset must find it (§9.5), which tests the path without asking real sessions to manufacture activity. *Outcome*: entries shown, used and succeeded, pulls, read-ledger hits and rows removed per filter are reported, never alarmed at zero. An empty push is a correct answer, and a session that needed nothing has no pulls.

### 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, with success as the outcome and wrong-memory outcomes counted as failures. 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. An entry fetched with the pull, or named by the owner in a correction, counts as a success the push missed; what an entry nobody fetched would have done, only the offline replay can say.

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 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. It is scored only when a question of §9.2 is decided; its cases then join the development replay and a new freeze date starts. The series states the same discipline for every learner (J5 §9.2, three streams, kept apart).

## 9. How we will know

The main test is built from the owner's own corrections, because those are the misses that matter to him.

### 9.1 The correction replay

Each case comes from one correction such as "you have X" or "remember what we did with Y". It holds the owner's words in the request just before the correction, the expected items, the reader's scope and the date, so that the indexes can be rebuilt as they stood then. Cases go into the sets of §8.5. Every failed case is assigned the first gate it failed (§3), and all misses are placed before any gate is declared solved; a miss that fits no gate is itself a finding.

Six arms run on the same cases. Arm A is the control, the shape of the hot-path baseline in §2.

| Arm | What runs |
|------------|------------------------------------------------|
| A (control) | 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 |
| Pull only | No push; the agent has the search tool, as in the agent-searched systems of §2 |

: The arms of the correction replay. A is the control.

Each arm reports hit at 5 (the expected item is in front of the model before its first call), the share found by a pull within the turn, tokens pushed, empty lists, the shares of shown entries used and succeeded, the wrong-memory rate, cache writes before and after the memory block, and push latency.

A question is decided by a paired comparison of two arms on the same cases (McNemar, 1947). To detect a 10-point difference in hit at 5 with about a fifth of the cases discordant between arms, at $\alpha = 0.05$ and 80% power, the paired test needs about 155 cases (Connor, 1987). No question is decided on the owner's cases before the evaluation stream holds that many. Until then the synthetic suite (§9.4) carries the comparison and the owner's cases are reported as a pilot.

### 9.2 What would decide each claim

The bars in Table 4 are set before any run. They are adoption thresholds, not predictions.

| Question | Decided by | Bar to adopt |
|----------------------|------------------------------|--------------------------|
| Does the asset index pay? | B against A, hit at 5 | Higher hit at 5, no more tokens pushed |
| Do use keys pay? | C against B | At least 10 points of hit at 5, 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 |
| Does the named slot work? | E on named cases | Every named case, every time |
| Is access respected? | Named and unnamed items outside the reader's scope | No entry, pointer or count shown |
| Is push worth it at all? | E against pull only | Fewer misses, no higher wrong-memory 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 | Found on the next request in every case |
| Does fading pay? | The best arm with and without fading | Higher hit at 5; no named or important case lost |
| Does the push fit the path? | Push latency, 95th percentile | 50 ms or less |

: The questions the replay decides, and the bar each must clear.

### 9.3 Live measures

In use, four numbers tell whether the design works: the rate of the owner's "you have this" corrections, which should fall; the success rate of shown entries, which should rise; the wrong-memory rate, which should not rise; and cache-write tokens before the memory block, which memory should not change.

### 9.4 Public suites

The owner's corrections are private and few. 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, each with a description, 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.

### 9.5 Integration checks

Before any number above is believed, the paths must be seen running. Every turn has a push receipt. 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 access is counted from a probe, and the planted opportunities of §8.4 are found.

## 10. Conclusions

What an owner has to remind his assistant of is mostly things it owns, needed for what they do, and retrieval by topic serves that badly. The finding stage can serve it if it indexes what the owner owns by when it helps, pushes a few permitted pointers where the cache does not pay for them, and lets the owner's replayed corrections decide what earns its place. If it holds, the assistant remembers what you built together without being told.

The 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 generic or wrong, and pruning removes only the generic ones. Co-access cannot see why things were fetched together. "Succeeded" is inferred from the absence of a complaint, so a quiet owner makes a weak signal. The filter order is only as good as the reader scopes it is given. The cost model depends on prices that change. Fading learns from use, so an entry needed once a year ranks low on the day it is needed unless it is named or marked important. The hippocampus helped us reason about indexing and cues; it is not a claim about how the brain does it.

## 11. Next steps

The order of work follows from where the evidence has to come from. First the instruments, because every later decision depends on them: the owner's words from the keeping stage's field, the use log, the receipts and planted opportunities, and the check that the pull is offered. Then the filter order, the asset index with the named slot, the overlay and the replay sets. Then use keys, co-access and the task-reference state, each adopted only when it clears its bar in §9.2, and fading once the use log holds a few weeks of turns. In parallel, the synthetic ownership suite, the part others can run. Later directions: a floor per kind of task, use keys the agent proposes after a successful turn, and a read ledger shared by agents in one session.

This design will be built in TinkerClaw and tested as above, and an updated version of this paper will report the results.

## References

Anderson, J. R., and Schooler, L. J. (1991). Reflections of the environment in memory. *Psychological Science*, 2(6), 396–408. <https://doi.org/10.1111/j.1467-9280.1991.tb00174.x>

Anderson, J. R., Bothell, D., Byrne, M. D., Douglass, S., Lebiere, C., and Qin, Y. (2004). An integrated theory of the mind. *Psychological Review*, 111(4), 1036–1060. <https://doi.org/10.1037/0033-295X.111.4.1036>

Anthropic (2025). 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>

Anthropic (2026a). How Claude remembers your project (Claude Code memory). <https://code.claude.com/docs/en/memory>

Anthropic (2026b). Memory tool. Claude Platform documentation. <https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool>

Anthropic (2026c). Prompt caching. Claude Platform documentation. <https://platform.claude.com/docs/en/build-with-claude/prompt-caching>

Chhikara, P., Khant, D., Aryan, S., Singh, T., and Yadav, D. (2025). Mem0: Building production-ready AI agents with scalable long-term memory. arXiv:2504.19413. <https://arxiv.org/abs/2504.19413>

Church, K. W., and Hanks, P. (1990). Word association norms, mutual information, and lexicography. *Computational Linguistics*, 16(1), 22–29. <https://aclanthology.org/J90-1003/>

Connor, R. J. (1987). Sample size for testing differences in proportions for the paired-sample design. *Biometrics*, 43(1), 207–211. <https://doi.org/10.2307/2531961>

Gan, T., and Sun, Q. (2025). RAG-MCP: Mitigating prompt bloat in LLM tool selection via retrieval-augmented generation. arXiv:2505.03275. <https://arxiv.org/abs/2505.03275>

Guo, W., Wang, D., Wang, Z., Liu, H., and Xu, Y. (2026). T-Mem: Memory that anticipates, not archives. arXiv:2606.15405. <https://arxiv.org/abs/2606.15405>

Gutiérrez, B. J., Shu, Y., Qi, W., Zhou, S., and Su, Y. (2025). From RAG to memory: Non-parametric continual learning for large language models (HippoRAG 2). *ICML 2025*. <https://arxiv.org/abs/2502.14802>

HippoRAG (2026). HippoRAG repository, README, "Upgrading". OSU NLP Group. <https://github.com/OSU-NLP-Group/HippoRAG>

LangChain (2026). LangMem: hot path quickstart. <https://langchain-ai.github.io/langmem/hot_path_quickstart/>

Letta (2026a). Memory blocks. Letta documentation. <https://docs.letta.com/guides/agents/memory-blocks>

Letta (2026b). MemFS. Letta documentation. <https://docs.letta.com/concepts/memfs>

Maharana, A., Lee, D.-H., Tulyakov, S., Bansal, M., Barbieri, F., and Fang, Y. (2024). Evaluating very long-term conversational memory of LLM agents (LoCoMo). *ACL 2024*. <https://arxiv.org/abs/2402.17753>

Marr, D. (1971). Simple memory: A theory for archicortex. *Philosophical Transactions of the Royal Society B*, 262(841), 23–81. <https://doi.org/10.1098/rstb.1971.0078>

McNemar, Q. (1947). Note on the sampling error of the difference between correlated proportions or percentages. *Psychometrika*, 12(2), 153–157. <https://doi.org/10.1007/BF02295996>

Mem0 (2026). Feedback mechanism. Mem0 platform documentation. <https://docs.mem0.ai/platform/features/feedback-mechanism>

Nogueira, R., Yang, W., Lin, J., and Cho, K. (2019). Document expansion by query prediction. arXiv:1904.08375. <https://arxiv.org/abs/1904.08375>

OpenClaw (2026). Active Memory. OpenClaw documentation. <https://docs.openclaw.ai/concepts/active-memory>

Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., and Gonzalez, J. E. (2023). MemGPT: Towards LLMs as operating systems. arXiv:2310.08560. <https://arxiv.org/abs/2310.08560>

Rasmussen, P., Paliychuk, P., Beauvais, T., Ryan, J., and Chalef, D. (2025). Zep: A temporal knowledge graph architecture for agent memory. arXiv:2501.13956. <https://arxiv.org/abs/2501.13956>

Reimers, N., and Gurevych, I. (2019). Sentence-BERT: Sentence embeddings using Siamese BERT-networks. *EMNLP-IJCNLP 2019*. <https://arxiv.org/abs/1908.10084>

Teyler, T. J., and DiScenna, P. (1986). The hippocampal memory indexing theory. *Behavioral Neuroscience*, 100(2), 147–154. <https://doi.org/10.1037/0735-7044.100.2.147>

Tulving, 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>

Wu, D., Wang, H., Yu, W., Zhang, Y., Chang, K.-W., and Yu, D. (2024). LongMemEval: Benchmarking chat assistants on long-term interactive memory. arXiv:2410.10813. <https://arxiv.org/abs/2410.10813>

Zou, M., Guo, Z., Liang, L., Wang, Z., Wang, Q., Wen, Q., King, I., Qu, L., and Xu, Z. (2026). Remember the decision, not the description: A rate-distortion framework for agent memory. arXiv:2605.10870. <https://arxiv.org/abs/2605.10870>

## Appendix A. Interfaces

These are the records Find writes and reads. Field names are illustrative; the fields are the contract.

| Record | Written | Fields |
|--------------|------------------|----------------------------------------------------------|
| Push receipt | every turn, even when empty | turn ID; reader scope; index build ID and age; mode (full or lexical only); candidates per key type; rows removed by privacy and by validity; 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; used; succeeded; wrong memory; the key that matched |
| Index manifest | every build | index ID; schema version; encoder and version; tokenizer; $s_0$ per key type; store revision built from; counts of entries, keys and edges; result of each publication check |
| Overlay receipt | every accepted write | fact or rule ID@revision; write receipt ID; time; status (retrievable, or queued with its retry count) |
| Task-reference state | end of every turn | session ID; task title; up to twenty entry IDs; unresolved references |

: The records of the finding stage.

## Appendix B. The push in pseudocode

```text
FIND_PUSH(turn, reader):
  words = owner_words(turn)                    # keeping stage, §3.1
  view  = authorised_view(reader)              # §8.1 step 1
  named = view.names.match(words)[:3]          # overflow: one line
  refs  = task_ref_state.resolve(words)        # "last time", §6.1
  if encoder.within(15 ms) and manifest.ok(encoder):
      cand = view.keys.match(embed(words))     # use and topic keys
  else: cand = view.bm25(words); mode = LEXICAL  # §6.2
  cand += view.overlay.match(words)            # fresh writes, §8.2
  cand += one_hop(cand, view.coaccess) + refs  # m_co, §5.5
  cand  = drop_suppressed(cand)                # §8.1 step 2
  cand  = drop_invalid_now(cand)               # §8.1 step 3
  for e in cand: e.p = logistic(score(e))      # §5.5
  ranked = top([e in cand if e.p >= TAU], 5)
  pack   = named + ranked                      # may be empty
  for e in pack: e.form = WHOLE if e.tokens < B_star(e.p) else POINTER
  place pack after the cached prefix           # §6.5
  emit push_receipt(turn, pack, counts, mode)  # even if empty, §8.4
```

---

_J-series paper J2 | Version 8.1 | 2026-10-12_
