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

## Abstract

You mention that a download is blocked, and your assistant has in mind the helper you built together last month for that kind of site, and the machine whose login sits in your notes. Nobody had to tell it "you have a skill for this".

Assistants keep plenty and still miss these. 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 every turn fills 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 pushes a few pointers before every turn, after the cached part of the prompt, and only pointers the current reader may see.

For you this means fewer reminders, a correction found on the very next request, and a cached prompt that memory leaves alone. This is a design; Section 9 names the tests that would decide it, on a replay of the owner's corrections, against a strong catalogue baseline.

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. Its notes talk about "relaying commands to a logged-in browser" and 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 say 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.

None of the three shares a key word with its request; what links "download the report" to "relay commands to a logged-in browser" 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*. A search tool helps only when the agent suspects it owns something, 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 prefix.

The hippocampus gives us a frame, a way to reason and not a mechanism we copy, and the working name HIPPOCAMPUS. On the indexing theory (Teyler and DiScenna, 1986) it stores an index of where the parts of an experience live, and a partial cue reactivates the whole pattern (Marr, 1971); a cue works best when it matches how the memory was encoded, the *encoding specificity* principle (Tulving and Thomson, 1973). The design takes both ideas: an index separate from the store, and cues stored with each memory that match the situations in which it will be needed.

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 five gates it fails (§3). An index of what the owner owns, keyed by use as well as topic, finds what topic search misses (§4, §5). A short list of eligible pointers pushed after the cached prefix costs a small fraction of the searches it saves and never rewrites that prefix (§6 to §8.1). And a correction becomes findable on the next request, before any index is rebuilt, and stays findable through an index swap (§8.2, §8.3).

![One turn of Find. Keys read from the owner's words 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-tinker.png){width=94%}

## 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); this paper cites the transitions T9, T10, T12, T13, T16, T17, T19, T20, T21 and T23 for its own handoffs. The specification is a model of the design, replayed with a crash, a duplicate and a reordering at every handoff; nothing here has run on real memory.

**Memory the agent searches for itself.** MemGPT (Packer et al., 2023), now the Letta platform, keeps a few memory blocks in the context window on every call (Letta, 2026a); Letta's MemFS keeps Markdown files in a git repository, puts root-level files in the system prompt each turn, lists deeper folders in an index file and leaves the rest to file search (Letta, 2026b). Claude Code loads the first 200 lines (or 25 KB) of its memory index at the start of each conversation and reads topic files on demand (Anthropic, 2026a), and Agent Skills load every skill's name and description at startup (Anthropic, 2025). Each pushes an index and leaves the body to the agent, the shape our cost model arrives at (§7). But the pushed list grows with the catalogue and ignores the task, each entry says what it is and not when it helps, and a search the agent never thinks of is gate 3 of §3.

**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 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 runs a blocking recall sub-agent by default only when the message asks about the past and a deterministic lane found no strong match (OpenClaw, 2026). We add what gets pushed (pointers to owned assets, §4), how it is reached (use keys and co-access, §5), one eligibility check for every route (§8.1) and where it goes in the prompt (§7.4).

**Retrieval over tools and graphs.** RAG-MCP (Gan and Sun, 2025) retrieves tool descriptions before the model is called and reports 43.1% tool-selection accuracy against 13.6% for listing every 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 embeddings, BM25 and a graph walk and reports gains of up to 18.5% on LongMemEval; we keep its hybrid search. HippoRAG 2 (Gutiérrez et al., 2025) links passages through shared entities, while our misses share none with the request, so our edges come from use and co-access (§5); its repository rejects a persisted index whose manifest no longer matches the configuration (HippoRAG, 2026), a rule we adopt (§8.3).

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

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 eligibility, pushed where a cache cost model puts it and judged on the owner's replayed corrections. Our search was not exhaustive, so the novelty of that combination is unverified.

## 3. Where a find fails

A needed item has to pass five gates before it helps, each with its own fix and test, so a miss is diagnosed by the first gate it fails. Figure 2 follows the browser helper of §1 through all five.

**Gate 1, not indexed.** The item lives in a store the index does not cover, such as a catalogue of skills or a note about a machine. No ranking finds what was never indexed. Recall is bounded by coverage: if $P(s)$ is the share of the items a query needs that live in source $s$, then for any retriever that searches the set of sources $\mathcal{Q}$,

$$\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.

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

**Gate 5, drowned.** The item was pushed as the fourteenth of twenty old documents, or in a list that is always full, which proves nothing about relevance. *Fix:* atomic entries, a relevance floor, an empty list when nothing clears it, and a slot for named items (§6.3, §6.4). *Test:* the outcome labels of shown entries (§6.8).

![One item through the five 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 gives what the gate checks, what happened to this item, and how it would have been lost there.](images/fig2-one-item-five-gates.png){width=88%}

## 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. 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.2 The asset index

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

- 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), 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; 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; the reader scope is set at indexing (§8.1).](images/fig3-asset-card.png){width=94%}

Assets get their own index because the unit is a pointer, the numbers are small (a few thousand entries, in memory) and only an asset can take the named slot (§6.4). A credential's pointer carries the credential's own reader scope (§8.1).

### 4.3 The index file

The entries needed most often belong in the index file, always loaded, one pointer per line with a short hook saying when to read 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). Find chooses the lines and their 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 a rule the learning stage moved down keeps its pointer line while its area is active (J5 §7.2, prune by binding). The per-turn push covers the long tail.

A line the owner wrote by hand stays where he put it (J14 §5.2, every writer, one gate). 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 learning stage's morning report (J5 §7.5, one channel to the owner); a line that carries a rule belongs to that 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, 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.

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

**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's use was a verified success 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. 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.

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

### 5.5 Combining keys: one score

Each candidate $e$ gets one number, $p_e$: the probability that, if shown, $e$ is used in this turn and helps. The event is a helpful use, as the use log labels it (§6.8); 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 score $s$ between the query and the entry's keys of that type, mapped by two anchors measured per key type and scorer and recorded in the index manifest (§8.3):

$$m = \min\!\Big(1, \max\!\big(0, \tfrac{s - s_0}{s_1 - s_0}\big)\Big),$$

where $s_0$ is the 95th percentile of the score over random query–entry pairs and $s_1$ the top of the scale: 1 for cosine similarity, and for BM25, whose scores have no upper bound, the median score of true matches in the development replay (§8.5), or in the synthetic suite's development half until the replay has enough (§9.4). A build whose $s_1$ does not exceed $s_0$ leaves that scorer out of the score and says so in its manifest. For co-access, $m_{\text{co}}$ is the normalised PMI of the strongest edge from an entry the other keys found, $\max\big(0, \ln\frac{p(a,b)}{p(a)\,p(b)} \big/ {-\ln p(a,b)}\big)$, with $p$ the shares of requests that fetched $a$, $b$, or both; it is set to 1 for an entry resolved from the task-reference state (§6.1), and 0 otherwise. Names do not enter the score: they go to the named slot.

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

**Fading.** The odds that an item is needed again fall as a power of the time since each past use, summed over those uses, and human memory follows the same curves (Anderson and Schooler, 1991). 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 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. The writing stage marks importance when it writes a fact (J14 §8.5, dates, confirmation, negatives and importance); this stage decides how it acts at read time.

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; 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

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 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), never the wrapper; *test:* wrapped prompts must produce the same list as unwrapped ones. Those words 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 (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 reached this way join the candidates with a full co-access match (§5.5) and pass eligibility like any other, so an ID the reader has lost access to is dropped (§8.1).

### 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. The query is always new, so the encoder gets its own 15 ms: a small local sentence encoder of the Sentence-BERT family (Reimers and Gurevych, 2019), the same model that built the index, named in the index manifest (§8.3). If it misses its budget, is absent or does not match the manifest, the push falls back to names and BM25 over use and topic keys, and its receipt says "lexical only". A full search of the text index does not fit the path; it runs beside the turn, and its result is offered to the next turn, marked as computed for the previous message.

### 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, revision and the key that matched, which helps the model judge it and lets the replay attribute a hit to a key. An entry goes in whole or as a pointer by the line §7.3 derives. When nothing clears the floor the list is empty, and an empty list is a correct answer.

### 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: eligibility. Names are matched against the reader's authorised view of the name table, and a named entry then passes the same eligibility steps as every other candidate before any slot is reserved (§8.1). A named item that fails any step takes no slot, and the list carries neither the entry nor its pointer nor any hint that it exists. Up to three eligible named entries take slots, in the order named; further ones share one line listing their names. Named entries never take one of the five ranked places. *Test:* every eligible named case gets its entry, every time, and a named item outside the reader's scope, quarantined, suppressed or erased exposes nothing (T20).

### 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; §7.4 gives the price of getting this wrong. The same tail carries the learning stage's provisional rule lines and correction sentences still waiting to be processed (J5 §6.1, the fast path), priced the same way.

### 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). 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. 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.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 consumes the eviction events the keeping stage publishes (J1 §6.6; one receipt per compaction, J1 §7.4) and drops every entry whose range left the window (T16). The event also comes for the window J1 rebuilds after an erase (T15, then T16). After a tool or API compaction everything sent before it is of unknown residency (J1 §6.6), so it drops every entry older than the event. Only when the hash matches and the range was never evicted does the read return where the text already sits. A read of a path that does not exist is logged as a find miss for the writing stage (J14 §9.2, one topic per file).

### 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, with the window controller's knowledge level: known input, or sent, unconfirmed (J1 §6.6, the adapter contract). *Used* means the reply referred to it or a later tool call followed its pointer; *body read* means a pull fetched a body not already in the window (§7.1). A used entry then gets one of four outcome labels. **Verified success**: something observed confirms it helped, such as the pointed-to tool call succeeding at the step it was fetched for, the owner's explicit approval, or a sampled audit. **Explicit failure**: the owner says it was wrong, outdated or not the one he meant, or its pointer was broken. **Unchallenged use**: used, and nothing confirmed or contradicted it. **Unknown**: the session ended before an outcome could be seen. Silence is never success. An entry fetched with the pull that the push had not shown is labelled *missed by push*, a fact about the push and not a success. The ranking learns from these labels with their uncertainty (§8.5).

The log answers "which memories were supplied or cited for this answer?". Every entry shown carries its ID, revision and knowledge level, and every use names it. That is attribution, not causation: it shows what was in front of the model and what the reply cited or a tool followed, not what determined the answer, least of all for input that was sent but unconfirmed. An item the owner asked not to mention joins a suppression list read at the privacy step (§8.1): it stays stored and visible in his own view and is no longer pushed or returned.

**The owner's inspector** is one owner-only view over these records. For any item it shows the sources (addresses) and the state in J14's receipt words (accepted, pending, held, refused) with the receipt and its attempt and previous_receipt chain (a pending or held line never shows as a fact), and keeps three actions apart: correct (a new write through the writing stage's gate), don't mention (the suppression above) and delete (J14 §7.7, whose links list the derived places a delete must reach). ChatGPT's help page likewise separates saved memories from chat history and says deleting a memory leaves the earlier chats that mention it (OpenAI, 2026); the inspector lists such leftovers. *Test:* each state of Table 2 shows under its own label, and a held item never shows as current.

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 (Table 1): symbols another paper reuses are registered here; symbols local to one section are declared there. Prices are Anthropic's published ones (Anthropic, 2026b), and each probability names its event and its horizon.

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.

A helpful use does not imply a body read: a pointer may be all the turn needs, or the body may already be in the window (§6.7). So the log records body reads apart from uses (§6.8), and $q$ is estimated per kind of entry as the share of shown pointers followed by a body read; until it holds those counts, the push uses $p_e$ as a stand-in, an assumption the estimate replaces.

| Symbol | Meaning | Value in the examples |
|-------|----------------------------------------------------------|------------------------|
| $r$ | price of reading one cached token | 0.1 (0.05 or 0.025 on some models) |
| $w$ | price of writing one token to the cache | 1.25 (five-minute cache); 2 (one-hour cache) |
| $g$ | price of one output token | 5 |
| $o$ | output tokens of one tool call | about 100 |
| $L$ | tokens already cached in the context window | 100,000 |
| $P$ | position of the first token that changed | 20,000 |
| $x$ | tokens returned by one read | 500 |
| $B$ | tokens of an item's body | varies |
| $B_p$ | tokens of a pointer to it | 40 |
| $M$ | later calls in the session that re-read the context | 30 |
| $q$ | probability of a body read: a pull fetches the item's body, not already in the window, at least once in the rest of the session (horizon: the $M$ later calls) | 0.1 to 0.5 |
| $p_e$ | probability that entry $e$, if shown, is used and helps (horizon: this turn; §5.5) | from the score |
| $q_{\text{turn}}$ | probability that a later turn pulls from an evicted span (horizon: one turn; J1 §7.2, the price of moving the prefix) | not yet measured |
| $H$ | turns a pulled slice stays in the window (J1 §7.2) | not yet measured |
| $c$ | input price of the model that writes a marker (J1 §7.2) | not yet measured |
| $K$ | cost of one marker of $m$ tokens over $S$ tokens, $K = cS + g\,m$ (J1 §7.2) | per span |
| $q_{90}$ | probability that some session in the next 90 days needs a detail (J14 §4, choosing what to write) | estimated per detail |
| $\pi_s$, $\pi_\ell$ | base input price of a small and a large model (Claude Haiku 5.5, Claude Opus 5.5), in dollars per token | \$0.10 and \$4 per million |

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

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

### 7.3 Whole or pointer

An item whose body has $B$ tokens can go in whole or as a pointer of $B_p$ tokens. Write $F = w + rM$ for the life cost of one pushed token and $C = rL + g\,o$ for the turn a pull costs. Whole costs $BF$. The pointer costs $B_pF$ and, with probability $q$, a pull that also writes the body and leaves it to be re-read, an expected $q\,(C + BF)$. Both are counted over the same $M$ later calls, as if any pull came in the turn the pointer arrives; a later pull re-reads a longer context but leaves the body in place for fewer calls, two opposite effects we do not model. Going in whole wins when $BF < B_pF + q\,(C + BF)$, that is, when

$$B < B^{*} = \frac{B_p}{1 - q} + \frac{q\,C}{(1 - q)\,F}.$$

With the values in Table 1 ($F = 4.25$, $C = 10{,}500$), $B^{*}$ is about 2,551 tokens for an item with $q = 0.5$ and about 319 tokens for $q = 0.1$; at $q = 0$ it falls to the pointer itself. As $q$ approaches 1, $B^{*}$ grows without bound, so an item certain to be needed goes in whole and everything else as a pointer. A longer context raises $B^{*}$, a cheaper cache read lowers it (Figure 4a).

### 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 (Figure 4b). In the tail, the same block costs only its own write. The bar for placement follows: memory in the tail adds the write of its own tokens and no rewrite of the unchanged prefix (§9.2). The same term prices a one-time eviction from the middle of the window (J1 §7.2, the price of moving the prefix).

### 7.5 What the tokens leave out

The model leaves out two larger terms: a miss costs the owner's attention and at least one more turn, and a pull costs seconds against the milliseconds of an on-path lookup.

![What a find 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 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-v3.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) and never touches these.

### 8.1 Filters, in a fixed order

Every candidate passes one function, `eligible()`, in three steps and this order, whatever route brought it: ranked, named, fresh-writes overlay or task reference. No later step can undo an earlier one; ranking and slots come after. Authorisation sits inside it and runs again when the answer is returned if the permission version changed meanwhile (T21).

1. **Authorisation.** The reader comes from authenticated session state, never from a field of the request: a namespace filter is not authorisation (Zep, 2026). It is the session asking: the owner's, a sub-agent with a narrower scope, or a chat that includes other people. Each entry carries a reader scope, the set of readers allowed to see it, set when Find indexes it from where the content came (the source class of J14 §8.1, three fields and the links) and where it was written: what came from the owner's private sessions, and any pointer to a credential, is his alone. Scopes have no single order. A derived item (a use key, a co-access edge, a generated entry, a hold) is readable only by the *intersection* of its sources' scopes, followed through dependency links (the writing stage owns the schema) and evaluated when the answer is returned; it may be empty. A hold on R-43, derived from an owner-private correction and a recipe a supplier sub-agent may read, is the owner's alone: the sub-agent gets nothing, not even a count, unless the owner grants it (T12, T20). The owner may widen or narrow a scope; an agent may only narrow one. An entry outside the reader's scope does not exist for this query, in no list, slot, walk or count, and a narrower reader reaches memory only through this filtered service, never the store's files. *Tests:* its direct file read is refused (T20); a task reference is refused once the reader loses access to its source, also in a query already running (T21).
2. **Quarantine and privacy suppression.** Erased items are gone from the indexes (J14 §7.7, erase and quarantine), and until the next build the revision map of §8.2 hides any copy left in the base index. Quarantine is an access restriction the writing stage decides; it marks every row reached through links from the span, ordinary retrieval and show-hidden drop them, and only an audit view with audit permission shows them (T23). Items the owner asked not to mention (§6.8) stop here too.
3. **Temporal visibility.** *Current-state* resolution, the default, sees what is valid and believed now: the revision map keeps the latest revision, and a fact the writing stage superseded or retracted is hidden (J14 §7.3, three ways a fact ends). *Historical* resolution answers what was true, or believed, at a date (J14 §7.4, two questions about the past): it skips the latest-revision rule and picks the revision by valid or recorded time. Steps 1 and 2 bind both, and so do the map's tombstones. *Test:* asked what was believed the day before a correction, the owner gets the old revision; once the correction is erased, no row of it.

A show-hidden mode relaxes step 3 only: it shows superseded and retracted rows, marked, and never relaxes quarantine or privacy suppression. The counts each step removed go to the receipt, readable with audit permission, since a count can itself reveal that something exists; a show-hidden reader also sees how many rows step 3 hid, so a missing result can be told from one that never existed. 

### 8.2 Becoming retrievable

The agent names the status a correction has reached, never "I remembered that": **captured** (J1), **accepted** (committed through the writing stage's gate; a hold is acknowledged, not accepted; J14), **retrievable**, and **active** or **enforced** (J5). They are dimensions, not a chain. This stage owns retrievable: reachable through an eligible read path by the next relevant request, in the same session too; that promises no place in the next push.

A nightly build cannot meet that bar, and the worst miss of all is contradicting what the agent wrote an hour ago. So every accepted write also enters a **fresh-writes overlay**: a small in-memory table of the writes since the last build, with their keys and reader scope, scanned on every request. The writing stage publishes the write and, in the same transaction, a delivery record of IDs, revisions and receipt IDs, never content, resent until this stage acknowledges (J14 §7.2, publish a snapshot, or nothing). For a published item the overlay reads each ID@revision from the published snapshot, so an erased revision arrives as a tombstone; a delivery older than its applied epoch is re-read from the store, and an older revision never overwrites a tombstone or a newer one (T9). A hold or pending line has no snapshot, so the overlay reads the record the write receipt names, at its applied epoch (T12, T4). The overlay receipt is keyed by that receipt_id and closes the delivery record through its `acknowledged_by` (J14 A.2, Table 6). It makes the item retrievable and lets the learning stage mark that child retrievable (T10); the correction's tail line leaves only when every child is retrievable or held (J5 §6.1).

New text alone cannot stop old text from being served: a query matching only the superseded wording would find the old row in the base index and never meet the new one. So the overlay keeps a **revision map**, an entry for every ID changed since the build with its latest revision or a tombstone, applied to every base-index candidate before the filters: an older revision or a tombstoned ID is dropped in current-state resolution (§8.1). *Test:* a query matching only the old wording misses the old revision (T9).

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 (T12). A line in the writing stage's pending area, written while its judge was down, is never merged as a fact: the pull serves it labelled "unchecked" and the push never shows it (J14 §5.3, when something fails; trace step 4). A row in the learning stage's rule ledger is a proposal, not retrievable as a rule in force (J5 §4.1, one row per rule); a rule line enters the overlay only on the writing stage's receipt.

| Case | What Find does | Status the agent may name |
|--------------------|----------------------------------------------|------------------------|
| Overlay append fails, delivery lost, or the writing stage crashes after publishing | resent from the writing stage's outbox until acknowledged | accepted, not yet retrievable |
| Writing stage's judge down | line kept in its pending area; the pull shows it as unchecked, the push never | captured, acceptance pending |
| Write held | served only as a hold | held for the owner's approval |
| Restart before the night | overlay and revision map replayed from the receipts since the build's snapshot | retrievable once the replay ends |
| Concurrent writers | the revision that won the commit wins here too (J14 §7.2) | retrievable at that revision |
| Re-index or new encoder | new index built beside the old; swapped in with the newer overlay suffix (§8.3) | retrievable throughout |
| Compaction of the session | read ledger drops the evicted ranges (§6.7) | retrievable |
| Privacy erasure | overlay rows, use keys and ledger range dropped; the ID tombstoned in the revision map; read service waits for the new epoch and reruns a read in flight; older build refused (§8.3) | erase status, per the writing stage |
| Reader outside the scope, or scope narrowed during a query | nothing shown, not even a pointer or a count; `eligible()` runs again at return | not retrievable for this reader |

: Moving into "retrievable": failure cases and what may be said. The whole journey: J5 Appendix B, the reference trace.

### 8.3 Manifests, restarts and rebuilds

Every build writes a manifest when it starts (T13): schema version, encoder and tokenizer versions, the anchors $s_0$ and $s_1$ per key type, the snapshot of the store it read (its publication watermark), the erasure epoch then, and its counts (Appendix A). The store raises its erasure epoch before any erasure or quarantine (J14 §7.2). A build is swapped in only if its manifest matches the running configuration and its epoch is still current; otherwise it is discarded and rebuilt, never mixed with the live index (T19).

A swap is not a clear. It installs the index together with the overlay rows and revision-map entries newer than the build's watermark and drops only those the build already holds. *Test:* a correction committed at S-104 while a build from S-103 runs, with no change of epoch, is found after the swap without another rebuild. Where an erasure changed the epoch, the build is refused and the live index and overlay keep serving; this stage's row of the deletion receipt reports only after that refusal, since until then an old build could still swap in (T17, T19). The read service answers only once this stage has applied the newest erasure or quarantine epoch: an earlier read waits, and one that started at an older epoch and returns after a newer one is discarded and run again, so a query in flight never serves the older state (T17, T20, T23).

After a restart, the overlay and the revision map are replayed from the writing stage's receipts since the manifest's snapshot, so a restart loses no accepted write. A change of encoder is a rebuild; a change of chat model is not.

### 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), 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, the share of a weekly audit sample of such uses that the audit found helpful; unknown rows are left out. The fit is regularised toward the starting values, so a key type seen a handful of times stays near where it began. The log sees only what was shown: a missed-by-push row is a positive only when its use was a verified success, and what an entry nobody fetched would have done, only the offline replay can say.

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. How we will know

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

### 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 failed case is assigned the first gate it failed (§3); a miss that fits no gate is itself a finding.

Seven arms run on the same cases. Arm A is the ablation base, the shape of the hot-path systems in §2; the catalogue arm is the strongest asset-aware design we know of.

| Arm | What runs |
|------------|------------------------------------------------|
| A (base) | Topic keys over the text index; five whole chunks pushed each turn |
| B | A, plus the asset index with name and topic keys |
| C | B, plus use keys |
| D | C, plus co-access edges and the task-reference state |
| E | D, plus the named slot |
| Catalogue | Every asset's name and description, retrieved by the request with the same hybrid search and filters, the top lines pushed at E's token budget and within its latency budget (§6.2) |
| Pull only | No push; the agent has the search tool, as in the agent-searched systems of §2 |

: The arms of the correction replay. A is the ablation base; the catalogue arm is the competitive baseline.

Each arm reports hit at 5 (the expected item is in front of the model before its first call), pull finds within the turn, tokens pushed, empty lists, outcome labels, the explicit-failure rate, cache writes before and after the memory block, and push latency.

### 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. The bars in Table 4 are adoption thresholds, not predictions.

| Question | Decided by | Bar to adopt |
|----------------------|------------------------------|--------------------------|
| Does the asset index pay? | B against A, hit at 5 | Higher, paired test on 155 cases; no more tokens pushed |
| Do use keys pay? | C against B | At least 10 points, on 155 cases; no more tokens |
| Do co-access and the task-reference state pay? | D against C, on synthetic cases sharing no word with the item | At least 3 points, on 1,750 synthetic cases; exploratory on the owner's cases |
| Does it beat a strong asset-aware design? | E against the catalogue arm, at matched tokens and latency | Higher hit at 5 on 155 cases, no higher explicit-failure rate |
| Does the named slot work? | E on eligible named cases | Every case, every time |
| Is access respected? | Items outside the reader's scope, quarantined, suppressed or erased, named and unnamed; derived items of sources with partly different readers; task references after access is lost, also mid-query; direct file reads | Zero entries, pointers or counts leaked in at least 300 cases per route; every direct read refused |
| Is push worth it at all? | E against pull only | Fewer misses on 155 cases, no higher explicit-failure rate, cost within §7's bounds |
| Is placement free? | Cache writes per turn with and without the list, on the same replayed sessions | No extra rewrite of the unchanged prefix; added writes equal the list's own tokens within 5% |
| Is a correction retrievable at once? | Correction, then a relevant request in the same session, including one that matches only the old wording | Found on the next request, old revision never served, every case; also across an index swap with a concurrent ordinary correction |
| Does fading pay? | The best arm with and without fading | Higher hit at 5 on 155 cases; no eligible named or important case lost |
| Does the push fit the path? | Push latency, 95th percentile | 50 ms or less |

: 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 share of shown entries with a verified success, which should rise; the explicit-failure rate and the cache-write tokens before the memory block, which should not rise.

### 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. It 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, with its test stated where it is cited: T9, T10, T12 (§8.2), T13, T17, T19 (§8.3), T16 (§6.7), T20, T21, T23 (§8.1). The specification's replay on a model of the design seeds six defects, each removing one of these mechanisms (a clear on swap, authorisation only at collection, task references skipping it, no read fence, one most restricted source, a hold taking its readers from the topic), and catches all six: the checks can fail, which is not a result on an implementation.

## 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 could end most reminders. 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 wrong, and pruning removes only the generic ones. Verified successes are rare, so the ranking leans on audited unchallenged uses. The filters are only as good as the scopes and links they are given. An entry needed once a year ranks low on the day it is needed unless it is named or marked important.

## 11. Next steps

The instruments come first: the owner's-words field, the use log and receipts, planted opportunities and the pull check. Then the eligibility function, the asset index with the named slot, the overlay with its revision map and the replay sets; then use keys, co-access, task references and fading, each adopted only when it clears its bar in §9.2. The synthetic suite, which others can run, goes in parallel. The design will be built in TinkerClaw and tested as above, and an updated version will report the results.

## 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). 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 (2026a). LangMem: hot path quickstart. <https://langchain-ai.github.io/langmem/hot_path_quickstart/>

LangChain (2026b). LangMem: conceptual guide. <https://langchain-ai.github.io/langmem/concepts/conceptual_guide/>

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>

OpenAI (2026). Memory in ChatGPT. OpenAI Help Center. <https://help.openai.com/en/articles/8590148-memory-in-chatgpt>

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>

Zep (2026). Graph namespacing. Graphiti documentation. <https://help.getzep.com/graphiti/core-concepts/graph-namespacing>

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 or pull receipt | every turn and every pull, even when empty | turn ID; reader scope and permission version; index build ID and age; snapshot and erasure epoch served; mode (full or lexical only); candidates per key type; rows removed by each filter step (audit permission only); entries shown as ID@revision with form, reason and $p_e$; latency |
| Use-log row | per entry shown | turn ID; entry ID@revision; route (push, named slot, pull); shown, with knowledge level; used; body read; outcome (verified success, explicit failure, unchallenged use, unknown); missed by push; the key that matched |
| Index manifest | every build | index ID; schema version; encoder and version; tokenizer; $s_0$ and $s_1$ per key type and scorer; snapshot read and its erasure epoch; counts of entries, keys and edges; result of each publication and swap check |
| Overlay receipt | every accepted write, hold or pending line | fact or rule ID@revision, or hold; J14's receipt_id as key, closing the delivery record via `acknowledged_by` (J14 A.2, Table 6); snapshot (none for a hold or pending line); applied epoch; time; status (retrievable, served as a hold, or queued with its retry count) |
| Revision map entry | every changed or erased ID since the build, kept across a swap while newer than the build's snapshot | ID; latest revision or tombstone; write or deletion receipt ID |
| Use key | at write, from a correction, or at night | text; entry ID; dependency links to the addresses it came from; reader scope: the intersection of theirs |
| Task-reference state | end of every turn | session ID; task title; up to twenty entry IDs; unresolved references |

: The records of the finding stage.

## Appendix B. The push in pseudocode

```text
FIND_PUSH(turn, reader):            # reader: authenticated state
  e0    = wait_until_applied(newest_epoch)      # §8.3 fence
  words = owner_words(turn)                     # §6.1
  v0    = permission_version()
  view  = authorised_view(reader)               # §8.1 step 1
  named = view.names.match(words)               # §6.4
  refs  = task_ref_state.resolve(words)         # §6.1
  if encoder.within(15 ms) and manifest.ok(encoder):
      cand = view.keys.match(embed(words))      # use, topic keys
  else: cand = view.bm25(words); mode = LEXICAL # §6.2
  cand += view.overlay.match(words)             # §8.2
  cand  = eligible(cand, reader)                # every route
  cand += eligible(one_hop(cand, view.coaccess) + refs, reader)
  named = eligible(named, reader)[:3]           # overflow: 1 line
  for e in cand: e.p = logistic(score(e))       # §5.5
  ranked = top([e in cand - named if e.p >= TAU], 5)
  pack   = named + ranked                       # may be empty
  if newest_epoch != e0:                        # T17: started at an older
      return FIND_PUSH(turn, reader)            # epoch; discard, run again
  if permission_version() != v0:                # T21
      pack = eligible(pack, reader)
  for e in pack:
      e.form = WHOLE if e.tokens < B_star(q(e)) else POINTER
  place pack after the cached prefix            # §6.5
  emit receipt(turn, pack, counts, mode, snapshot, epoch)

eligible(xs, reader, mode=CURRENT):   # every route, task refs too
  xs = [x for x in xs if authorised(reader, x)]
      # §8.1 step 1: x.readers = intersection of its sources'
  xs = revision_map.apply(xs, mode)
      # tombstones always; latest revision in current mode only
  xs = drop_quarantined_suppressed(xs)          # §8.1 step 2
  return visible(xs, mode)                      # §8.1 step 3
```

---

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