v2.0 → v2.0.1
What changed from v2.0 to v2.0.1
From v2.0 (21 Feb) to v2.0.1 (23 Feb): 11,788 words to 11,803 words, 129 words in new or rewritten paragraphs and 114 taken out, 54 paragraphs changed.
Formatting onlyFormatting only: italics changed from asterisks to underscores. The text is unchanged.
v2.0 · 21 February 2026v2.0.1 · 23 February 2026
··· 1 unchanged paragraph folded ···
v2.0 · HIPPOCAMPUS: A Pre-Computed Concept Index for O(1) Memory Retrieval in Persistent AI Agents**Oscar Serra¹** ¹Independent Research *Version 2.0 — 21 February 2026*
v2.0.1 · HIPPOCAMPUS: A Pre-Computed Concept Index for O(1) Memory Retrieval in Persistent AI Agents**Oscar Serra¹** ¹Independent Research _Version 2.0 — 21 February 2026_
··· 4 unchanged paragraphs folded ···
v2.0 · AbstractKey contributions: (1) a CORF taxonomy plus a source-coverage upper bound that separates *coverage* error from *ranking* error; (2) HIPPOCAMPUS, an offline **anchor→chunk cache** with real-time incremental updates; (3) semantic anchor expansion + post-retrieval re-ranking to reduce paraphrase brittleness and false positives; (4) a design-space comparison against inverted index, all-sources ANN, and knowledge-graph overlays; (5) an annotated CORF benchmark derived from deployment logs **(to be released in anonymized form)** and an all-sources ANN baseline that isolates the value of concept anchoring. Theoretical analysis proves that parallel source coverage dominates query quality for retrieval completeness, and that HIPPOCAMPUS amortizes search cost to O(|A|) per query independent of corpus size.
v2.0.1 · AbstractKey contributions: (1) a CORF taxonomy plus a source-coverage upper bound that separates _coverage_ error from _ranking_ error; (2) HIPPOCAMPUS, an offline **anchor→chunk cache** with real-time incremental updates; (3) semantic anchor expansion + post-retrieval re-ranking to reduce paraphrase brittleness and false positives; (4) a design-space comparison against inverted index, all-sources ANN, and knowledge-graph overlays; (5) an annotated CORF benchmark derived from deployment logs **(to be released in anonymized form)** and an all-sources ANN baseline that isolates the value of concept anchoring. Theoretical analysis proves that parallel source coverage dominates query quality for retrieval completeness, and that HIPPOCAMPUS amortizes search cost to O(|A|) per query independent of corpus size.
··· 4 unchanged paragraphs folded ···
v2.0 · 1. IntroductionThe gap between what a persistent AI agent *knows* and what it *retrieves* is one of the least-studied problems in agent architecture. As agents accumulate months of interaction history, project notes, emails, and imported documents, the stored memory base grows far faster than the retrieval mechanisms designed to access it. The result is not amnesia — the data is there — but *retrieval failure under load*: the agent holds extensive history but cannot surface it when it matters.
v2.0.1 · 1. IntroductionThe gap between what a persistent AI agent _knows_ and what it _retrieves_ is one of the least-studied problems in agent architecture. As agents accumulate months of interaction history, project notes, emails, and imported documents, the stored memory base grows far faster than the retrieval mechanisms designed to access it. The result is not amnesia — the data is there — but _retrieval failure under load_: the agent holds extensive history but cannot surface it when it matters.
··· 1 unchanged paragraph folded ···
v2.0 · 1. IntroductionConsider a concrete scenario. An agent has collaborated with its user on six technical papers over eighteen months. The papers are stored across multiple sources: a local memory directory, an imported ChatGPT conversation archive, and a project index file. The user sends a single message: *"Can we talk about peer review for our papers?"* The agent, despite possessing complete knowledge of every paper, responds: *"What type of papers are you referring to?"*
v2.0.1 · 1. IntroductionConsider a concrete scenario. An agent has collaborated with its user on six technical papers over eighteen months. The papers are stored across multiple sources: a local memory directory, an imported ChatGPT conversation archive, and a project index file. The user sends a single message: _"Can we talk about peer review for our papers?"_ The agent, despite possessing complete knowledge of every paper, responds: _"What type of papers are you referring to?"_
v2.0 · 1. IntroductionThis is not a hallucination. It is not a context-length problem. The agent has the data. The failure is *architectural*: the retrieval layer was not triggered by the right signals, did not search the right sources, and could not surface the right memories within the latency budget of a single inference step.
v2.0.1 · 1. IntroductionThis is not a hallucination. It is not a context-length problem. The agent has the data. The failure is _architectural_: the retrieval layer was not triggered by the right signals, did not search the right sources, and could not surface the right memories within the latency budget of a single inference step.
··· 1 unchanged paragraph folded ···
v2.0 · 1. IntroductionThe solution — **HIPPOCAMPUS** — takes inspiration from neuroscience. The biological hippocampus does not store long-term memories; it indexes them. Hippocampal damage leaves long-term storage intact but destroys the ability to form new episodic memories and to index existing ones for retrieval. The hippocampus is the *address book*, not the *library*. Current AI agent architectures have built sophisticated libraries (ENGRAM-class storage) and sophisticated readers (LLM context windows), but have not built the address book connecting them.
v2.0.1 · 1. IntroductionThe solution — **HIPPOCAMPUS** — takes inspiration from neuroscience. The biological hippocampus does not store long-term memories; it indexes them. Hippocampal damage leaves long-term storage intact but destroys the ability to form new episodic memories and to index existing ones for retrieval. The hippocampus is the _address book_, not the _library_. Current AI agent architectures have built sophisticated libraries (ENGRAM-class storage) and sophisticated readers (LLM context windows), but have not built the address book connecting them.
··· 7 unchanged paragraphs folded ···
v2.0 · 2.1 Persistent Agent Memory SystemsMemory in AI agents has evolved from pure in-context storage toward hierarchical architectures separating short-term working memory from long-term storage. The dominant paradigm is Retrieval-Augmented Generation (RAG): relevant documents are fetched from a retriever (dense, sparse, or hybrid) and injected into the context window at inference time [Lewis et al., 2020]. For persistent-agent memory, prior architectures typically store interaction logs and perform *query-time* retrieval using recency/salience heuristics, reflection, and controller-mediated memory access (e.g., Generative Agents [Park et al., 2023], MemoryBank [Zhong et al., 2023], Self-Controlled Memory [Wang et al., 2023], Think-in-Memory [Liu et al., 2023]). HIPPOCAMPUS complements these by pre-computing a small anchor→chunk index so retrieval cost is constant in corpus size and less dependent on the query being well-formed.
v2.0.1 · 2.1 Persistent Agent Memory SystemsMemory in AI agents has evolved from pure in-context storage toward hierarchical architectures separating short-term working memory from long-term storage. The dominant paradigm is Retrieval-Augmented Generation (RAG): relevant documents are fetched from a retriever (dense, sparse, or hybrid) and injected into the context window at inference time [Lewis et al., 2020]. For persistent-agent memory, prior architectures typically store interaction logs and perform _query-time_ retrieval using recency/salience heuristics, reflection, and controller-mediated memory access (e.g., Generative Agents [Park et al., 2023], MemoryBank [Zhong et al., 2023], Self-Controlled Memory [Wang et al., 2023], Think-in-Memory [Liu et al., 2023]). HIPPOCAMPUS complements these by pre-computing a small anchor→chunk index so retrieval cost is constant in corpus size and less dependent on the query being well-formed.
v2.0 · 2.1 Persistent Agent Memory Systems**Retrieval caching and query expansion.** HIPPOCAMPUS can be viewed as an offline query-expansion cache: a small set of trigger concepts expands to a pre-materialized candidate set before query-specific ranking. This connects to classical query expansion / pseudo-relevance feedback in IR (e.g., Manning et al., 2008), and to retrieval-augmented language modeling where external memories are accessed at inference time (REALM, kNN-LM, RETRO) [Guu et al., 2020; Khandelwal et al., 2020; Borgeaud et al., 2022]. HIPPOCAMPUS differs by targeting *persistent-agent ownership queries* and by shifting most retrieval work offline into an anchor→chunk cache.
v2.0.1 · 2.1 Persistent Agent Memory Systems**Retrieval caching and query expansion.** HIPPOCAMPUS can be viewed as an offline query-expansion cache: a small set of trigger concepts expands to a pre-materialized candidate set before query-specific ranking. This connects to classical query expansion / pseudo-relevance feedback in IR (e.g., Manning et al., 2008), and to retrieval-augmented language modeling where external memories are accessed at inference time (REALM, kNN-LM, RETRO) [Guu et al., 2020; Khandelwal et al., 2020; Borgeaud et al., 2022]. HIPPOCAMPUS differs by targeting _persistent-agent ownership queries_ and by shifting most retrieval work offline into an anchor→chunk cache.
··· 1 unchanged paragraph folded ···
v2.0 · 2.1 Persistent Agent Memory Systems**MemGPT** [Packer et al., 2023] introduced virtual context management inspired by operating system paging, where an LLM manages its own memory through explicit read/write function calls. This places retrieval control inside the model's reasoning loop, which is powerful but costly: every retrieval decision consumes reasoning tokens and adds latency proportional to retrieval depth. MemGPT's retrieval can be parallelized, but the model must still *decide* what to retrieve — a meta-cognitive load absent in HIPPOCAMPUS.
v2.0.1 · 2.1 Persistent Agent Memory Systems**MemGPT** [Packer et al., 2023] introduced virtual context management inspired by operating system paging, where an LLM manages its own memory through explicit read/write function calls. This places retrieval control inside the model's reasoning loop, which is powerful but costly: every retrieval decision consumes reasoning tokens and adds latency proportional to retrieval depth. MemGPT's retrieval can be parallelized, but the model must still _decide_ what to retrieve — a meta-cognitive load absent in HIPPOCAMPUS.
··· 7 unchanged paragraphs folded ···
v2.0 · 2.3 Neuroscience BasisThe biological hippocampus is a medial temporal lobe structure critical for episodic memory formation and retrieval. Lesion studies establish that it does not store long-term memories — those are distributed across neocortical areas — but encodes *indices*: patterns of cortical activity that bind distributed memory components [Teyler & DiScenna, 1986; Squire, 1992].
v2.0.1 · 2.3 Neuroscience BasisThe biological hippocampus is a medial temporal lobe structure critical for episodic memory formation and retrieval. Lesion studies establish that it does not store long-term memories — those are distributed across neocortical areas — but encodes _indices_: patterns of cortical activity that bind distributed memory components [Teyler & DiScenna, 1986; Squire, 1992].
v2.0 · 2.3 Neuroscience BasisThe hippocampus performs two complementary functions: *pattern separation* (encoding similar experiences as distinct traces) and *pattern completion* (retrieving a full memory from a partial cue). Current HIPPOCAMPUS implements the completion function; the design space section (Section 8.5) discusses how pattern separation can be approximated via post-retrieval re-ranking.
v2.0.1 · 2.3 Neuroscience BasisThe hippocampus performs two complementary functions: _pattern separation_ (encoding similar experiences as distinct traces) and _pattern completion_ (retrieving a full memory from a partial cue). Current HIPPOCAMPUS implements the completion function; the design space section (Section 8.5) discusses how pattern separation can be approximated via post-retrieval re-ranking.
··· 6 unchanged paragraphs folded ···
not in v2.0
v2.0.1 · 3.1 Formal Definition**Definition (CORF).** A Contextual Ownership Retrieval Failure occurs when:
v2.0 · 3.1 Formal Definition**Definition (CORF).** A Contextual Ownership Retrieval Failure occurs when: 1. There exists $m^* \in M$ such that $m^*$ is ground-truth relevant to $q$. 2. $m^* \notin R(q, M)$ — the retrieval function fails to surface $m^*$. 3. The agent generates a response $a$ that contradicts, ignores, or is incompatible with the content of $m^*$.
v2.0.1 · 3.1 Formal Definition1. There exists $m^* \in M$ such that $m^*$ is ground-truth relevant to $q$. 2. $m^* \notin R(q, M)$ — the retrieval function fails to surface $m^*$. 3. The agent generates a response $a$ that contradicts, ignores, or is incompatible with the content of $m^*$.
··· 8 unchanged paragraphs folded ···
v2.0 · 3.3 Probabilistic Source-Coverage Analysis**Observation 1 (Source-coverage upper bound).** Fix a query distribution $q \sim \mathcal{D}$, and let $m^*$ denote a randomly drawn ground-truth relevant chunk for $q$ (one target chunk per query). Define $P(s)=\Pr_{q\sim\mathcal{D},\,m^*}[s(m^*)=s]$, i.e., the probability mass of *relevant* chunks that reside in each source. Consider any retrieval strategy whose returned set is restricted to chunks from a subset of sources $\mathcal{Q} \subseteq S$ (it never returns chunks from $S \setminus \mathcal{Q}$). Then the expected Recall@∞ satisfies:
v2.0.1 · 3.3 Probabilistic Source-Coverage Analysis**Observation 1 (Source-coverage upper bound).** Fix a query distribution $q \sim \mathcal{D}$, and let $m^*$ denote a randomly drawn ground-truth relevant chunk for $q$ (one target chunk per query). Define $P(s)=\Pr_{q\sim\mathcal{D},\,m^*}[s(m^*)=s]$, i.e., the probability mass of _relevant_ chunks that reside in each source. Consider any retrieval strategy whose returned set is restricted to chunks from a subset of sources $\mathcal{Q} \subseteq S$ (it never returns chunks from $S \setminus \mathcal{Q}$). Then the expected Recall@∞ satisfies:
··· 8 unchanged paragraphs folded ···
v2.0 · 3.4 Frequency Analysis| Failure Mode | Est. Frequency (ownership queries) | Severity | |---|---|---| | Pronoun Blindness | ~12% | High | | Associative Depth Failure | ~8% | High | | Source Blindness | ~23% | Critical | | Anchor Silence | ~31% | High |
v2.0.1 · 3.4 Frequency Analysis| Failure Mode | Est. Frequency (ownership queries) | Severity | | ------------------------- | ---------------------------------- | -------- | | Pronoun Blindness | ~12% | High | | Associative Depth Failure | ~8% | High | | Source Blindness | ~23% | Critical | | Anchor Silence | ~31% | High |
··· 29 unchanged paragraphs folded ···
not in v2.0
v2.0.1 · 4.4 Pre-Computed Index StructureDesign decisions:
v2.0 · 4.4 Pre-Computed Index StructureDesign decisions: - **Chunk-level addressing** (file + chunk offset) enables precise retrieval without loading entire files. - **Source field** enables source-aware loading and coverage reporting. - **Multi-source aggregation** — all sources indexed together at build time, eliminating Source Blindness. - **Small footprint** — a 300-anchor, K=20 path-only index is ~150KB, trivially cached in RAM.
v2.0.1 · 4.4 Pre-Computed Index Structure- **Chunk-level addressing** (file + chunk offset) enables precise retrieval without loading entire files. - **Source field** enables source-aware loading and coverage reporting. - **Multi-source aggregation** — all sources indexed together at build time, eliminating Source Blindness. - **Small footprint** — a 300-anchor, K=20 path-only index is ~150KB, trivially cached in RAM.
··· 31 unchanged paragraphs folded ···
v2.0 · 4.6a Importance ScoringNot all memory chunks are equally valuable for retrieval. A two-tier architecture (episodic + semantic) separates *freshness* from *richness*, but within each tier, all chunks compete equally for the K slots in each anchor cluster. This flat-weighting limitation means that a casual greeting and a critical architectural decision receive identical treatment during index construction and retrieval.
v2.0.1 · 4.6a Importance ScoringNot all memory chunks are equally valuable for retrieval. A two-tier architecture (episodic + semantic) separates _freshness_ from _richness_, but within each tier, all chunks compete equally for the K slots in each anchor cluster. This flat-weighting limitation means that a casual greeting and a critical architectural decision receive identical treatment during index construction and retrieval.
··· 32 unchanged paragraphs folded ···
v2.0 · 4.9 Implementation Notes (Hyperparameters, Caching, and Safety)| Symbol / Setting | Default | Guidance | |---|---:|---| | `K` | 20 | Increase for diffuse anchors; decrease for tight anchors. | | `THETA` | 0.80 | Anchor→chunk inclusion threshold; tune to control candidate set size. | | `SEM_THETA` | 0.75 | Query→anchor semantic expansion threshold; tune on paraphrase set. | | `K_MAX` | 50 | Hard cap per-anchor list during real-time updates. | | `max_chunks` | 30 | Set by context budget: `max_chunks ≈ budget_tokens / 400`. |
v2.0.1 · 4.9 Implementation Notes (Hyperparameters, Caching, and Safety)| Symbol / Setting | Default | Guidance | | ---------------- | ------: | --------------------------------------------------------------------- | | `K` | 20 | Increase for diffuse anchors; decrease for tight anchors. | | `THETA` | 0.80 | Anchor→chunk inclusion threshold; tune to control candidate set size. | | `SEM_THETA` | 0.75 | Query→anchor semantic expansion threshold; tune on paraphrase set. | | `K_MAX` | 50 | Hard cap per-anchor list during real-time updates. | | `max_chunks` | 30 | Set by context budget: `max_chunks ≈ budget_tokens / 400`. |
··· 6 unchanged paragraphs folded ···
v2.0 · 5.0 Empirical Validation of Core Claims| Source Subset | P(s) sum | Observed Recall | Obs. 1 Bound | Gap | |---|---|---|---|---| | memory/ only | 0.52 | 0.51 | 0.52 | -0.01 | | archive/ only | 0.28 | 0.27 | 0.28 | -0.01 | | emails/ only | 0.15 | 0.14 | 0.15 | -0.01 | | memory/ + archive/ | 0.80 | 0.78 | 0.80 | -0.02 | | All sources (HIPPOCAMPUS) | 1.00 | 0.85* | 1.00 | -0.15* |
v2.0.1 · 5.0 Empirical Validation of Core Claims| Source Subset | P(s) sum | Observed Recall | Obs. 1 Bound | Gap | | ------------------------- | -------- | --------------- | ------------ | ------- | | memory/ only | 0.52 | 0.51 | 0.52 | -0.01 | | archive/ only | 0.28 | 0.27 | 0.28 | -0.01 | | emails/ only | 0.15 | 0.14 | 0.15 | -0.01 | | memory/ + archive/ | 0.80 | 0.78 | 0.80 | -0.02 | | All sources (HIPPOCAMPUS) | 1.00 | 0.85\* | 1.00 | -0.15\* |
v2.0 · 5.0 Empirical Validation of Core Claims*The 15-point gap at full coverage is due to anchor vocabulary misses (paraphrase queries) and semantic ambiguity, not source blindness. This isolates the architectural contribution: once source coverage is saturated, recall is limited by anchor richness, not retrieval mechanism.
v2.0.1 · 5.0 Empirical Validation of Core Claims\*The 15-point gap at full coverage is due to anchor vocabulary misses (paraphrase queries) and semantic ambiguity, not source blindness. This isolates the architectural contribution: once source coverage is saturated, recall is limited by anchor richness, not retrieval mechanism.
v2.0 · 5.0 Empirical Validation of Core Claims**Conclusion:** Observation 1 accurately predicts recall bounds for any source subset. For partial-coverage source subsets (the first four rows), the average absolute gap between observed recall and the bound is 0.0125. At full coverage, the bound is intentionally loose (gap 0.15), because the dominant errors shift from *source blindness* to *anchor/ranking* misses.
v2.0.1 · 5.0 Empirical Validation of Core Claims**Conclusion:** Observation 1 accurately predicts recall bounds for any source subset. For partial-coverage source subsets (the first four rows), the average absolute gap between observed recall and the bound is 0.0125. At full coverage, the bound is intentionally loose (gap 0.15), because the dominant errors shift from _source blindness_ to _anchor/ranking_ misses.
··· 1 unchanged paragraph folded ···
v2.0 · 5.0 Empirical Validation of Core Claims| System | CORF-Recall@20 | Latency (p95, ms) | FPR | Index Build | |---|---|---|---|---| | No Retrieval (NR) | 0.12 | <1 | — | — | | Single-Source RAG (SS-RAG) | 0.51 | 178 | 0.28 | — | | All-Sources ANN (AS-ANN) | 0.76 | 94 | 0.31 | 45s | | MemGPT-style Sequential (MG-REC) | 0.79 | 320 | 0.19 | — | | **HIPPOCAMPUS** | **0.85** | **54** | **0.18** | **12s** |
v2.0.1 · 5.0 Empirical Validation of Core Claims| System | CORF-Recall@20 | Latency (p95, ms) | FPR | Index Build | | -------------------------------- | -------------- | ----------------- | -------- | ----------- | | No Retrieval (NR) | 0.12 | <1 | — | — | | Single-Source RAG (SS-RAG) | 0.51 | 178 | 0.28 | — | | All-Sources ANN (AS-ANN) | 0.76 | 94 | 0.31 | 45s | | MemGPT-style Sequential (MG-REC) | 0.79 | 320 | 0.19 | — | | **HIPPOCAMPUS** | **0.85** | **54** | **0.18** | **12s** |
not in v2.0
v2.0.1 · 5.0 Empirical Validation of Core Claims**Key Findings:**
v2.0 · 5.0 Empirical Validation of Core Claims**Key Findings:** - **vs. MemGPT (MG-REC):** 6-point recall advantage (0.85 vs 0.79) with 5.9× latency speedup (54ms vs 320ms). Critical for interactive multi-turn agent use. - **vs. All-Sources ANN (AS-ANN):** 9-point recall advantage validates concept anchoring. AS-ANN fails on Pronoun Blindness (no noun anchor triggers search) and Associative Depth (single-pass search misses multi-hop connections). - **vs. Single-Source RAG (SS-RAG):** 34-point improvement directly validates source-coverage observation — adding sources is more impactful than optimizing embeddings. - **Build Cost:** 12s for HIPPOCAMPUS vs 45s for AS-ANN. Real-time updates preserve freshness; AS-ANN requires full rebuild.
v2.0.1 · 5.0 Empirical Validation of Core Claims- **vs. MemGPT (MG-REC):** 6-point recall advantage (0.85 vs 0.79) with 5.9× latency speedup (54ms vs 320ms). Critical for interactive multi-turn agent use. - **vs. All-Sources ANN (AS-ANN):** 9-point recall advantage validates concept anchoring. AS-ANN fails on Pronoun Blindness (no noun anchor triggers search) and Associative Depth (single-pass search misses multi-hop connections). - **vs. Single-Source RAG (SS-RAG):** 34-point improvement directly validates source-coverage observation — adding sources is more impactful than optimizing embeddings. - **Build Cost:** 12s for HIPPOCAMPUS vs 45s for AS-ANN. Real-time updates preserve freshness; AS-ANN requires full rebuild.
··· 7 unchanged paragraphs folded ···
v2.0 · 5.2 Amortized Complexity Analysis| Method | Per-query inference cost | Build cost | |---|---|---| | No retrieval | O(1) | — | | Single-source exact KNN | O(n) | — | | Single-source ANN (FAISS) | O(log n) | O(n log n) | | All-sources ANN (FAISS) | O(log n) | O(n log n) | | HIPPOCAMPUS (lexical anchors only) | O(\|A\|) | O(\|V\|·n) offline | | HIPPOCAMPUS (+ semantic anchor expansion) | O(\|V\| + \|A\| + K·\|A\|) | O(\|V\|·n) offline |
v2.0.1 · 5.2 Amortized Complexity Analysis| Method | Per-query inference cost | Build cost | | ----------------------------------------- | -------------------------- | ------------------ | | No retrieval | O(1) | — | | Single-source exact KNN | O(n) | — | | Single-source ANN (FAISS) | O(log n) | O(n log n) | | All-sources ANN (FAISS) | O(log n) | O(n log n) | | HIPPOCAMPUS (lexical anchors only) | O(\|A\|) | O(\|V\|·n) offline | | HIPPOCAMPUS (+ semantic anchor expansion) | O(\|V\| + \|A\| + K·\|A\|) | O(\|V\|·n) offline |
··· 6 unchanged paragraphs folded ···
not in v2.0
v2.0.1 · 5.4 Neuroscience Analogy — Correct and Incorrect Mappings**What the analogy gets right:**
v2.0 · 5.4 Neuroscience Analogy — Correct and Incorrect Mappings**What the analogy gets right:** - Storage/indexing separation: the core insight, correct in both systems. - Offline consolidation as the index-building mechanism: structural parallel holds. - Recognition speed advantage: maps to O(1) lookup.
v2.0.1 · 5.4 Neuroscience Analogy — Correct and Incorrect Mappings- Storage/indexing separation: the core insight, correct in both systems. - Offline consolidation as the index-building mechanism: structural parallel holds. - Recognition speed advantage: maps to O(1) lookup.
not in v2.0
v2.0.1 · 5.4 Neuroscience Analogy — Correct and Incorrect Mappings**What the analogy oversimplifies:**
v2.0 · 5.4 Neuroscience Analogy — Correct and Incorrect Mappings**What the analogy oversimplifies:** - The biological hippocampus supports *context-dependent* recall — the same cue surfaces different memories depending on emotional state and prior activation. Our implementation uses fixed anchor-to-cluster mappings; context is only introduced via re-ranking. - Biological indices are sparse distributed representations. Our implementation uses dense continuous vectors. - *Pattern separation* (encoding similar inputs as distinct traces) is not implemented at the index level. The post-retrieval re-ranking step (Section 4.7) provides a computational approximation: re-scoring by query proximity discards semantically distant chunks from an anchor's cluster. - The biological hippocampus supports *graceful degradation*: partial cues retrieve partial memories. Our implementation degrades discontinuously — if no anchor is detected, retrieval falls back to Layer 0 context only.
v2.0.1 · 5.4 Neuroscience Analogy — Correct and Incorrect Mappings- The biological hippocampus supports _context-dependent_ recall — the same cue surfaces different memories depending on emotional state and prior activation. Our implementation uses fixed anchor-to-cluster mappings; context is only introduced via re-ranking. - Biological indices are sparse distributed representations. Our implementation uses dense continuous vectors. - _Pattern separation_ (encoding similar inputs as distinct traces) is not implemented at the index level. The post-retrieval re-ranking step (Section 4.7) provides a computational approximation: re-scoring by query proximity discards semantically distant chunks from an anchor's cluster. - The biological hippocampus supports _graceful degradation_: partial cues retrieve partial memories. Our implementation degrades discontinuously — if no anchor is detected, retrieval falls back to Layer 0 context only.
··· 5 unchanged paragraphs folded ···
v2.0 · 6.1 Alternative 1: Inverted Index (Classical IR)**Why HIPPOCAMPUS is preferred:** Embeddings capture synonymy and paraphrase. A user who writes "manuscript" instead of "paper" will not trigger an inverted index entry for "paper" — but will be captured by embedding similarity. An inverted index also fails to index *related concepts*: the anchor "paper" should surface chunks about "peer review" and "publishing" even if those words are not present. Embedding-based KNN captures these semantic neighbors; TF-IDF does not.
v2.0.1 · 6.1 Alternative 1: Inverted Index (Classical IR)**Why HIPPOCAMPUS is preferred:** Embeddings capture synonymy and paraphrase. A user who writes "manuscript" instead of "paper" will not trigger an inverted index entry for "paper" — but will be captured by embedding similarity. An inverted index also fails to index _related concepts_: the anchor "paper" should surface chunks about "peer review" and "publishing" even if those words are not present. Embedding-based KNN captures these semantic neighbors; TF-IDF does not.
··· 3 unchanged paragraphs folded ···
v2.0 · 6.2 Alternative 2: All-Sources ANN (Single FAISS Index)**Why HIPPOCAMPUS is preferred:** All-sources ANN still requires a query embedding computation at inference time (~10ms) and FAISS search (~5ms for n=50k). More importantly, it still requires a *good query* — Pronoun Blindness (Mode 1) and Anchor Silence (Mode 4) are not addressed. A query "can we talk about peer review" will find chunks containing "peer review" but will not surface the broader paper project context that HIPPOCAMPUS loads via the "paper" anchor.
v2.0.1 · 6.2 Alternative 2: All-Sources ANN (Single FAISS Index)**Why HIPPOCAMPUS is preferred:** All-sources ANN still requires a query embedding computation at inference time (~10ms) and FAISS search (~5ms for n=50k). More importantly, it still requires a _good query_ — Pronoun Blindness (Mode 1) and Anchor Silence (Mode 4) are not addressed. A query "can we talk about peer review" will find chunks containing "peer review" but will not surface the broader paper project context that HIPPOCAMPUS loads via the "paper" anchor.
··· 4 unchanged paragraphs folded ···
v2.0 · 6.3 Alternative 3: Knowledge Graph Overlay**When knowledge graph is preferred:** When the relationship type between concepts matters for retrieval (e.g., "find all chunks that are *authored by* Oscar" vs. "find all chunks that *mention* Oscar"). The knowledge graph overlay is a natural HIPPOCAMPUS extension for structured domains.
v2.0.1 · 6.3 Alternative 3: Knowledge Graph Overlay**When knowledge graph is preferred:** When the relationship type between concepts matters for retrieval (e.g., "find all chunks that are _authored by_ Oscar" vs. "find all chunks that _mention_ Oscar"). The knowledge graph overlay is a natural HIPPOCAMPUS extension for structured domains.
··· 2 unchanged paragraphs folded ···
not in v2.0
v2.0.1 · 6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)**Why HIPPOCAMPUS is preferred for agent memory:**
v2.0 · 6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)**Why HIPPOCAMPUS is preferred for agent memory:** - **Cost efficiency:** Fully self-hosted; no per-query API costs. For high-frequency memory access (agents with 50-200 queries/day), HIPPOCAMPUS amortizes to near-zero marginal cost. - **Privacy:** All embeddings remain on-device or on private infrastructure; no data sent to third-party vector DB services. - **Latency predictability:** No network round-trip to external service; O(50ms) vs O(200-500ms) over network for vector DB queries. - **Concept anchoring:** Vector databases provide semantic search but not anchor-based concept clustering. HIPPOCAMPUS's recognition-based design (anchor → pre-computed cluster) is fundamentally different from vector DB's recall-based design (query embedding → ANN search).
v2.0.1 · 6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)- **Cost efficiency:** Fully self-hosted; no per-query API costs. For high-frequency memory access (agents with 50-200 queries/day), HIPPOCAMPUS amortizes to near-zero marginal cost. - **Privacy:** All embeddings remain on-device or on private infrastructure; no data sent to third-party vector DB services. - **Latency predictability:** No network round-trip to external service; O(50ms) vs O(200-500ms) over network for vector DB queries. - **Concept anchoring:** Vector databases provide semantic search but not anchor-based concept clustering. HIPPOCAMPUS's recognition-based design (anchor → pre-computed cluster) is fundamentally different from vector DB's recall-based design (query embedding → ANN search).
··· 1 unchanged paragraph folded ···
v2.0 · 6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)| Dimension | GravityClaw / Pinecone | HIPPOCAMPUS | |---|---|---| | **Retrieval model** | Flat similarity search at query time (O(log n) via HNSW) | Pre-computed anchor→chunk cache (O(1) at inference) | | **Extraction timing** | Always-on: auto-extracts and indexes on every turn | Two-tier: episodic tier real-time, semantic tier nightly | | **Cost** | Pinecone: $8+/month (starter), scaling with usage | Zero ongoing cost (local compute, one-time build) | | **Privacy** | Embeddings sent to Pinecone cloud infrastructure | All data remains local; no external API calls for retrieval | | **Query flexibility** | Any query embedding can search the full corpus | Retrieval is anchored to vocabulary; novel queries may miss | | **Latency** | ~50–200ms (network round-trip to Pinecone) | ~50ms (local, no network) |
v2.0.1 · 6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)| Dimension | GravityClaw / Pinecone | HIPPOCAMPUS | | --------------------- | -------------------------------------------------------- | ----------------------------------------------------------- | | **Retrieval model** | Flat similarity search at query time (O(log n) via HNSW) | Pre-computed anchor→chunk cache (O(1) at inference) | | **Extraction timing** | Always-on: auto-extracts and indexes on every turn | Two-tier: episodic tier real-time, semantic tier nightly | | **Cost** | Pinecone: $8+/month (starter), scaling with usage | Zero ongoing cost (local compute, one-time build) | | **Privacy** | Embeddings sent to Pinecone cloud infrastructure | All data remains local; no external API calls for retrieval | | **Query flexibility** | Any query embedding can search the full corpus | Retrieval is anchored to vocabulary; novel queries may miss | | **Latency** | ~50–200ms (network round-trip to Pinecone) | ~50ms (local, no network) |
v2.0 · 6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)GravityClaw's always-on extraction is a strength: every interaction is immediately searchable without waiting for a nightly consolidation cycle. HIPPOCAMPUS achieves comparable freshness through its episodic tier (Section 4.6), which indexes new chunks in <2 minutes via the ON_MEMORY_WRITE path. The residual gap—novel *concepts* (not just chunks) discovered between nightly rebuilds—is addressed by real-time anchor discovery (Section 4.5b).
v2.0.1 · 6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)GravityClaw's always-on extraction is a strength: every interaction is immediately searchable without waiting for a nightly consolidation cycle. HIPPOCAMPUS achieves comparable freshness through its episodic tier (Section 4.6), which indexes new chunks in <2 minutes via the ON_MEMORY_WRITE path. The residual gap—novel _concepts_ (not just chunks) discovered between nightly rebuilds—is addressed by real-time anchor discovery (Section 4.5b).
··· 6 unchanged paragraphs folded ···
v2.0 · 7.1 Metrics**Source Coverage Rate (SCR):** Proportion of sources that are *eligible for retrieval* by the system (i.e., indexed/queried). For HIPPOCAMPUS and AS-ANN this is 1.0 by construction because all sources are indexed; for SS-RAG it is <1.0 because only `memory/` is eligible. (We do **not** require each query to inject chunks from every source.)
v2.0.1 · 7.1 Metrics**Source Coverage Rate (SCR):** Proportion of sources that are _eligible for retrieval_ by the system (i.e., indexed/queried). For HIPPOCAMPUS and AS-ANN this is 1.0 by construction because all sources are indexed; for SS-RAG it is <1.0 because only `memory/` is eligible. (We do **not** require each query to inject chunks from every source.)
··· 19 unchanged paragraphs folded ···
v2.0 · 7.4 Empirical Results (Deployment Validation)| Metric | NR | SS-RAG | AS-ANN | MS-RAG | HIPPOCAMPUS | |---|---|---|---|---|---| | CORF-Recall@20 | 0.12 | 0.51 | 0.76 | 0.87 | 0.85 | | Source Coverage Rate | 0.25 | 0.33 | 1.00 | 1.00 | 1.00 | | Inference Latency (p95, ms) | <1 | 178 | 94 | 418 | 54 | | FPR (post-rerank) | — | 0.28 | 0.31 | 0.22 | 0.18 | | Index Build Time | — | — | 45s | — | 12s | | Same-Day Index Freshness | — | — | 24h | — | <2min |
v2.0.1 · 7.4 Empirical Results (Deployment Validation)| Metric | NR | SS-RAG | AS-ANN | MS-RAG | HIPPOCAMPUS | | --------------------------- | ---- | ------ | ------ | ------ | ----------- | | CORF-Recall@20 | 0.12 | 0.51 | 0.76 | 0.87 | 0.85 | | Source Coverage Rate | 0.25 | 0.33 | 1.00 | 1.00 | 1.00 | | Inference Latency (p95, ms) | <1 | 178 | 94 | 418 | 54 | | FPR (post-rerank) | — | 0.28 | 0.31 | 0.22 | 0.18 | | Index Build Time | — | — | 45s | — | 12s | | Same-Day Index Freshness | — | — | 24h | — | <2min |
··· 1 unchanged paragraph folded ···
v2.0 · 7.4 Empirical Results (Deployment Validation)| Variant | CORF-Recall@20 | Latency (p95, ms) | FPR | |---|---:|---:|---:| | A1 — HIPPOCAMPUS w/o pronoun expansion | 0.79 | 52 | 0.19 | | A2 — HIPPOCAMPUS w/o post-retrieval re-ranking | 0.85 | 41 | 0.35 | | A3 — HIPPOCAMPUS nightly-only (disable real-time episodic updates) | 0.82 | 54 | 0.18 |
v2.0.1 · 7.4 Empirical Results (Deployment Validation)| Variant | CORF-Recall@20 | Latency (p95, ms) | FPR | | ------------------------------------------------------------------ | -------------: | ----------------: | ---: | | A1 — HIPPOCAMPUS w/o pronoun expansion | 0.79 | 52 | 0.19 | | A2 — HIPPOCAMPUS w/o post-retrieval re-ranking | 0.85 | 41 | 0.35 | | A3 — HIPPOCAMPUS nightly-only (disable real-time episodic updates) | 0.82 | 54 | 0.18 |
··· 7 unchanged paragraphs folded ···
v2.0 · 7.4 Empirical Results (Deployment Validation)6. **Ablation Results:** - **A1 (w/o pronoun expansion):** Recall drops 6 points (0.85 → 0.79), confirming that pronoun-triggered queries account for a substantial fraction of CORF failures. The 12% pronoun blindness frequency (Section 3.4) translates directly to recall loss when the expansion mechanism is disabled. Latency decreases slightly (52ms) since pronoun detection and project-anchor fallback are skipped. *Implementation status:* The A1 unit test is currently marked `.todo` in the automated benchmark suite (Section 7.4a); this figure reflects deployment log observation, pending formal unit test coverage once pronoun expansion is exposed in the `hippocampus-enhancement` API. - **A2 (w/o re-ranking):** Recall is unchanged (0.85) — re-ranking does not affect whether the target chunk appears in the candidate set, only its rank. However, the false positive rate nearly doubles (0.18 → 0.35), confirming that raw anchor-match clusters contain substantial noise that re-ranking filters effectively. Latency drops to 41ms (re-ranking step costs ~13ms). - **A3 (nightly-only, no real-time updates):** Recall drops 3 points (0.85 → 0.82), with the loss concentrated on freshness-dependent queries where ground-truth chunks were written after the last nightly rebuild. FPR and latency are unchanged, confirming the real-time tier affects coverage, not precision.
v2.0.1 · 7.4 Empirical Results (Deployment Validation)6. **Ablation Results:** - **A1 (w/o pronoun expansion):** Recall drops 6 points (0.85 → 0.79), confirming that pronoun-triggered queries account for a substantial fraction of CORF failures. The 12% pronoun blindness frequency (Section 3.4) translates directly to recall loss when the expansion mechanism is disabled. Latency decreases slightly (52ms) since pronoun detection and project-anchor fallback are skipped. _Implementation status:_ The A1 unit test is currently marked `.todo` in the automated benchmark suite (Section 7.4a); this figure reflects deployment log observation, pending formal unit test coverage once pronoun expansion is exposed in the `hippocampus-enhancement` API. - **A2 (w/o re-ranking):** Recall is unchanged (0.85) — re-ranking does not affect whether the target chunk appears in the candidate set, only its rank. However, the false positive rate nearly doubles (0.18 → 0.35), confirming that raw anchor-match clusters contain substantial noise that re-ranking filters effectively. Latency drops to 41ms (re-ranking step costs ~13ms). - **A3 (nightly-only, no real-time updates):** Recall drops 3 points (0.85 → 0.82), with the loss concentrated on freshness-dependent queries where ground-truth chunks were written after the last nightly rebuild. FPR and latency are unchanged, confirming the real-time tier affects coverage, not precision.
··· 9 unchanged paragraphs folded ···
v2.0 · 7.4a Unit Benchmark Validation (Implementation-Level)| Condition | Recall@20 | FPR | Avg Latency (ms) | Queries | |---|---:|---:|---:|---:| | Without re-ranking (flat score) | 1.0000 | 0.75 | 0.130 | 6 | | With importance re-ranking | 1.0000 | 0.75 | 0.088 | 6 |
v2.0.1 · 7.4a Unit Benchmark Validation (Implementation-Level)| Condition | Recall@20 | FPR | Avg Latency (ms) | Queries | | ------------------------------- | --------: | ---: | ---------------: | ------: | | Without re-ranking (flat score) | 1.0000 | 0.75 | 0.130 | 6 | | With importance re-ranking | 1.0000 | 0.75 | 0.088 | 6 |
v2.0 · 7.4a Unit Benchmark Validation (Implementation-Level)*Key findings:* Re-ranking preserves recall at 1.0 on the synthetic corpus, consistent with the deployment finding that re-ranking does not degrade CORF-Recall@20 (Section 7.4 A2 analysis). The `A2-delta` test confirms that recall on a uniform-importance corpus is not degraded by the re-ranking step (within the ≥90% tolerance bound). The structural FPR parity between conditions in the synthetic test is expected; see corpus design note above. The `A2-enhanceIndex` test confirms that `enhanceIndex()` applies importance scores to every chunk in the serialized index format.
v2.0.1 · 7.4a Unit Benchmark Validation (Implementation-Level)_Key findings:_ Re-ranking preserves recall at 1.0 on the synthetic corpus, consistent with the deployment finding that re-ranking does not degrade CORF-Recall@20 (Section 7.4 A2 analysis). The `A2-delta` test confirms that recall on a uniform-importance corpus is not degraded by the re-ranking step (within the ≥90% tolerance bound). The structural FPR parity between conditions in the synthetic test is expected; see corpus design note above. The `A2-enhanceIndex` test confirms that `enhanceIndex()` applies importance scores to every chunk in the serialized index format.
··· 1 unchanged paragraph folded ···
v2.0 · 7.4a Unit Benchmark Validation (Implementation-Level)| Condition | Recall@20 | FPR | Avg Latency (ms) | Queries | |---|---:|---:|---:|---:| | Episodic real-time tier | 1.0000 | 0.0000 | 0.097 | 6 | | Nightly rebuild (6 small files) | — | — | 13.9 | 0 |
v2.0.1 · 7.4a Unit Benchmark Validation (Implementation-Level)| Condition | Recall@20 | FPR | Avg Latency (ms) | Queries | | ------------------------------- | --------: | -----: | ---------------: | ------: | | Episodic real-time tier | 1.0000 | 0.0000 | 0.097 | 6 | | Nightly rebuild (6 small files) | — | — | 13.9 | 0 |
v2.0 · 7.4a Unit Benchmark Validation (Implementation-Level)*Key findings:*
removed in v2.0.1
not in v2.0
v2.0.1 · 7.4a Unit Benchmark Validation (Implementation-Level)_Key findings:_
··· 10 unchanged paragraphs folded ···
v2.0 · 8.1 Limitations and Mitigation Strategies*Mitigation:* Implement stemming + phonetic matching (Soundex, Metaphone) for anchor detection (Section 4.7). For the test set, paraphrase robustness improves from 68% to 82% with these additions. Future: hybrid detection using lightweight language model (e.g., DistilBERT) to identify semantic synonyms in real-time.
v2.0.1 · 8.1 Limitations and Mitigation Strategies_Mitigation:_ Implement stemming + phonetic matching (Soundex, Metaphone) for anchor detection (Section 4.7). For the test set, paraphrase robustness improves from 68% to 82% with these additions. Future: hybrid detection using lightweight language model (e.g., DistilBERT) to identify semantic synonyms in real-time.
··· 1 unchanged paragraph folded ···
v2.0 · 8.1 Limitations and Mitigation Strategies*Mitigation:* Implement sense-specific sub-clustering via contextual embeddings. For each anchor, identify sub-clusters via embedding-space clustering (k-means on chunks' contextual embeddings). At query time, use query context to select the relevant sub-cluster. Example: query "paper material" → selects sub-cluster for "physical paper"; query "peer review our paper" → selects sub-cluster for "research papers". This increases index overhead but reduces FPR. Deployment results: FPR drops from 0.18 to 0.14 with sub-clustering, with minimal latency impact (<5ms additional).
v2.0.1 · 8.1 Limitations and Mitigation Strategies_Mitigation:_ Implement sense-specific sub-clustering via contextual embeddings. For each anchor, identify sub-clusters via embedding-space clustering (k-means on chunks' contextual embeddings). At query time, use query context to select the relevant sub-cluster. Example: query "paper material" → selects sub-cluster for "physical paper"; query "peer review our paper" → selects sub-cluster for "research papers". This increases index overhead but reduces FPR. Deployment results: FPR drops from 0.18 to 0.14 with sub-clustering, with minimal latency impact (<5ms additional).
··· 1 unchanged paragraph folded ···
v2.0 · 8.1 Limitations and Mitigation Strategies*Mitigation:* Implement percentile-based adaptive K: expand until cosine_similarity drops below 75th percentile of the full cluster distribution. This allows small high-confidence clusters to load fewer chunks, and large diffuse clusters to load more. Deployment results: adaptive K reduces context overhead by 15% with no recall loss.
v2.0.1 · 8.1 Limitations and Mitigation Strategies_Mitigation:_ Implement percentile-based adaptive K: expand until cosine_similarity drops below 75th percentile of the full cluster distribution. This allows small high-confidence clusters to load fewer chunks, and large diffuse clusters to load more. Deployment results: adaptive K reduces context overhead by 15% with no recall loss.
··· 12 unchanged paragraphs folded ···
v2.0 · 8.3 Large-Scale Deployment (n > 100,000 chunks)| Corpus Size | Build Time (full) | Build Time (diff.) | Index Size | p95 Latency | Memory (DRAM) | |---|---|---|---|---|---| | 50k (deployed) | 12s | — | 150KB | 54ms | <1MB | | 100k (FAISS IVF) | 8min | 5min | 500KB | 58ms | 100MB | | 500k (multi-source) | 35min | 8min | 2.5MB | 72ms | 400MB | | 1M (DiskANN) | 90min | 20min | 6.2GB | 62ms* | 200MB* |
v2.0.1 · 8.3 Large-Scale Deployment (n > 100,000 chunks)| Corpus Size | Build Time (full) | Build Time (diff.) | Index Size | p95 Latency | Memory (DRAM) | | ------------------- | ----------------- | ------------------ | ---------- | ----------- | ------------- | | 50k (deployed) | 12s | — | 150KB | 54ms | <1MB | | 100k (FAISS IVF) | 8min | 5min | 500KB | 58ms | 100MB | | 500k (multi-source) | 35min | 8min | 2.5MB | 72ms | 400MB | | 1M (DiskANN) | 90min | 20min | 6.2GB | 62ms\* | 200MB\* |
v2.0 · 8.3 Large-Scale Deployment (n > 100,000 chunks)*With disk backing; 6GB on disk + 200MB metadata in DRAM.
v2.0.1 · 8.3 Large-Scale Deployment (n > 100,000 chunks)\*With disk backing; 6GB on disk + 200MB metadata in DRAM.
··· 8 unchanged paragraphs folded ···
v2.0 · 9. ConclusionWe have presented HIPPOCAMPUS, a pre-computed concept index that addresses Contextual Ownership Retrieval Failure in persistent AI agents by moving the computational cost of memory retrieval from inference time to build time. The architecture draws on the neuroscientific insight that the biological hippocampus is an *indexing* structure — and that this separation between storage and indexing is the key to fast, reliable episodic recall.
v2.0.1 · 9. ConclusionWe have presented HIPPOCAMPUS, a pre-computed concept index that addresses Contextual Ownership Retrieval Failure in persistent AI agents by moving the computational cost of memory retrieval from inference time to build time. The architecture draws on the neuroscientific insight that the biological hippocampus is an _indexing_ structure — and that this separation between storage and indexing is the key to fast, reliable episodic recall.
··· 7 unchanged paragraphs folded ···
v2.0 · References1. Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. *NeurIPS 2020*. 2. Packer, C., et al. (2023). MemGPT: Towards LLMs as Operating Systems. *arXiv:2310.08560*. 3. Sarthi, P., et al. (2024). RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval. *ICLR 2024*. 4. Collins, A. M., & Loftus, E. F. (1975). A spreading-activation theory of semantic processing. *Psychological Review*, 82(6), 407–428. 5. Teyler, T. J., & DiScenna, P. (1986). The hippocampal memory indexing theory. *Behavioral Neuroscience*, 100(2), 147–154. 6. Squire, L. R. (1992). Memory and the hippocampus: A synthesis from findings with rats, monkeys, and humans. *Psychological Review*, 99(2), 195–231. 7. Wilson, M. A., & McNaughton, B. L. (1994). Reactivation of hippocampal ensemble memories during sleep. *Science*, 265(5172), 676–679. 8. Tulving, E. (1976). Ecphoric processes in recall and recognition. *Recall and Recognition*, 37–73. 9. Mandler, G. (1980). Recognizing: The judgment of previous occurrence. *Psychological Review*, 87(3), 252–271. 10. Yonelinas, A. P. (2002). The nature of recollection and familiarity: A review of 30 years of research. *Journal of Memory and Language*, 46(3), 441–517. 11. MemoryOS. (2024). Mem0: The Memory Layer for Personalized AI. *arXiv:2504.19413*. 12. Serra, O. (2026a). ENGRAM: Compaction as Cache Eviction in Persistent AI Agent Memory. *Independent Research*. 13. Serra, O. (2026b). CORTEX: Persistent Agent Identity Through Structured Persona Maintenance. *Independent Research*. 14. Park, J. S., O'Brien, J. C., Cai, C. J., Ringel Morris, M., Liang, P., & Bernstein, M. S. (2023). Generative Agents: Interactive Simulacra of Human Behavior. *UIST 2023*. 15. Zhong, W., Guo, L., Gao, Q., Ye, H., & Wang, Y. (2023). MemoryBank: Enhancing Large Language Models with Long-Term Memory. *arXiv:2305.10250*. 16. Wang, B., Liang, X., Yang, J., Huang, H., Wu, S., Wu, P., Lu, L., Ma, Z., & Li, Z. (2023). Enhancing Large Language Model with Self-Controlled Memory Framework. *arXiv:2304.13343*. 17. Liu, L., Yang, X., Shen, Y., Hu, B., Zhang, Z., Gu, J., & Zhang, G. (2023). Think-in-Memory: Recalling and Post-thinking Enable LLMs with Long-Term Memory. *arXiv:2311.08719*. 18. Manning, C. D., Raghavan, P., & Schütze, H. (2008). *Introduction to Information Retrieval*. Cambridge University Press. 19. Guu, K., Lee, K., Tung, Z., Pasupat, P., & Chang, M.-W. (2020). REALM: Retrieval-Augmented Language Model Pre-Training. *ICML 2020*. 20. Khandelwal, U., Lewis, M., Jurafsky, D., & Zettlemoyer, L. (2020). Generalization through Memorization: Nearest Neighbor Language Models. *ICLR 2020*. 21. Borgeaud, S., et al. (2022). Improving language models by retrieving from trillions of tokens. *ICML 2022*. 22. Xu, X., et al. (2025). A-MEM: Agentic Memory for LLM Agents. *arXiv:2502.12345*. 23. Wu, D., et al. (2024). LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. *arXiv:2407.xxxxx*. 24. Yan, Z., et al. (2025). Memory-R1: RL-Trained Memory Management for LLM Agents. *arXiv:2505.xxxxx*. 25. Barnes, D. (2026). Mastra Observational Memory: Achieving 95% on LongMemEval. *Blog post / Technical Report*. 26. Gama, J., Žliobaitė, I., Bifet, A., Pechenizkiy, M., & Bouchachia, A. (2014). A survey on concept drift adaptation. *ACM Computing Surveys*, 46(4), 1–37.
v2.0.1 · References1. Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. _NeurIPS 2020_. 2. Packer, C., et al. (2023). MemGPT: Towards LLMs as Operating Systems. _arXiv:2310.08560_. 3. Sarthi, P., et al. (2024). RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval. _ICLR 2024_. 4. Collins, A. M., & Loftus, E. F. (1975). A spreading-activation theory of semantic processing. _Psychological Review_, 82(6), 407–428. 5. Teyler, T. J., & DiScenna, P. (1986). The hippocampal memory indexing theory. _Behavioral Neuroscience_, 100(2), 147–154. 6. Squire, L. R. (1992). Memory and the hippocampus: A synthesis from findings with rats, monkeys, and humans. _Psychological Review_, 99(2), 195–231. 7. Wilson, M. A., & McNaughton, B. L. (1994). Reactivation of hippocampal ensemble memories during sleep. _Science_, 265(5172), 676–679. 8. Tulving, E. (1976). Ecphoric processes in recall and recognition. _Recall and Recognition_, 37–73. 9. Mandler, G. (1980). Recognizing: The judgment of previous occurrence. _Psychological Review_, 87(3), 252–271. 10. Yonelinas, A. P. (2002). The nature of recollection and familiarity: A review of 30 years of research. _Journal of Memory and Language_, 46(3), 441–517. 11. MemoryOS. (2024). Mem0: The Memory Layer for Personalized AI. _arXiv:2504.19413_. 12. Serra, O. (2026a). ENGRAM: Compaction as Cache Eviction in Persistent AI Agent Memory. _Independent Research_. 13. Serra, O. (2026b). CORTEX: Persistent Agent Identity Through Structured Persona Maintenance. _Independent Research_. 14. Park, J. S., O'Brien, J. C., Cai, C. J., Ringel Morris, M., Liang, P., & Bernstein, M. S. (2023). Generative Agents: Interactive Simulacra of Human Behavior. _UIST 2023_. 15. Zhong, W., Guo, L., Gao, Q., Ye, H., & Wang, Y. (2023). MemoryBank: Enhancing Large Language Models with Long-Term Memory. _arXiv:2305.10250_. 16. Wang, B., Liang, X., Yang, J., Huang, H., Wu, S., Wu, P., Lu, L., Ma, Z., & Li, Z. (2023). Enhancing Large Language Model with Self-Controlled Memory Framework. _arXiv:2304.13343_. 17. Liu, L., Yang, X., Shen, Y., Hu, B., Zhang, Z., Gu, J., & Zhang, G. (2023). Think-in-Memory: Recalling and Post-thinking Enable LLMs with Long-Term Memory. _arXiv:2311.08719_. 18. Manning, C. D., Raghavan, P., & Schütze, H. (2008). _Introduction to Information Retrieval_. Cambridge University Press. 19. Guu, K., Lee, K., Tung, Z., Pasupat, P., & Chang, M.-W. (2020). REALM: Retrieval-Augmented Language Model Pre-Training. _ICML 2020_. 20. Khandelwal, U., Lewis, M., Jurafsky, D., & Zettlemoyer, L. (2020). Generalization through Memorization: Nearest Neighbor Language Models. _ICLR 2020_. 21. Borgeaud, S., et al. (2022). Improving language models by retrieving from trillions of tokens. _ICML 2022_. 22. Xu, X., et al. (2025). A-MEM: Agentic Memory for LLM Agents. _arXiv:2502.12345_. 23. Wu, D., et al. (2024). LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. _arXiv:2407.xxxxx_. 24. Yan, Z., et al. (2025). Memory-R1: RL-Trained Memory Management for LLM Agents. _arXiv:2505.xxxxx_. 25. Barnes, D. (2026). Mastra Observational Memory: Achieving 95% on LongMemEval. _Blog post / Technical Report_. 26. Gama, J., Žliobaitė, I., Bifet, A., Pechenizkiy, M., & Bouchachia, A. (2014). A survey on concept drift adaptation. _ACM Computing Surveys_, 46(4), 1–37.
··· 1 unchanged paragraph folded ···
v2.0 · References*Word count: ~10,000 words* *Version 2.0 — 21 February 2026* *Changes from v1.3: Section 7.4a added — Unit Benchmark Validation with real results from the TypeScript implementation benchmark (run 2026-02-21T18:01:05Z); A2 and A3 ablations validated against synthetic 6-query corpus with full result tables; A1 pronoun expansion unit test status noted as pending (.todo); Section 7.5 Reproducibility Checklist updated with concrete source file paths and implementation status; A1 implementation status note added inline in Section 7.4 ablation analysis; version header updated to 2.0.* *Version 1.3 — Peer review revisions — February 2026* *Changes from v1.2: Ablation results A1/A2/A3 completed (Section 7.4); Pareto analysis of HIPPOCAMPUS vs. MS-RAG added; Theorem 1 reframed as Observation 1 with honest assessment of its simplicity; embedding model sensitivity note added (Section 4.9); anchor vocabulary lifecycle added (Section 4.2); IIR/FPR terminology unified to FPR throughout; theta/THETA standardized; embed_cached path→embedding resolution clarified; chunk size 400 vs 256-512 reconciled; failure mode co-occurrence rate added (Section 3.4); five new references added (A-MEM, LongMemEval, Memory-R1, Mastra, concept drift); LongMemEval future evaluation section added (Section 8.5); related work expanded with recent agent memory systems.* *Version 1.2 — Importance scoring, deduplication, and GravityClaw comparison — February 2026* *Changes from v1.1: Section 4.5a added (deduplication via similarity check at write time to prevent index bloat); Section 4.6a added (importance scoring with formula and integration into index construction); Section 5 expanded with expected impact of importance-weighted retrieval on FPR; Section 6.4 expanded with explicit GravityClaw/Pinecone comparison table and analysis; cross-references to TRACE event model added for importance scoring alignment.* *Changes from v1.0: Section 4.6 reframed around two-tier memory architecture (episodic real-time tier vs. semantic nightly tier); staleness gap recast as cost of abstraction with neuroscience grounding (Wilson & McNaughton, 1994); Section 8.1 limitation updated from "index staleness" to "semantic tier lag" to match new framing.* *Changes from draft: Observation 1 strengthened (probabilistic); AS-ANN baseline added; real-time incremental update promoted to Section 4.6; post-retrieval re-ranking added to Section 4.7; design space analysis added as Section 6; FPR added to evaluation; chunk-level addressing and n-gram anchors added to architecture; scalability scope declared.*
v2.0.1 · References_Word count: ~10,000 words_ _Version 2.0 — 21 February 2026_ _Changes from v1.3: Section 7.4a added — Unit Benchmark Validation with real results from the TypeScript implementation benchmark (run 2026-02-21T18:01:05Z); A2 and A3 ablations validated against synthetic 6-query corpus with full result tables; A1 pronoun expansion unit test status noted as pending (.todo); Section 7.5 Reproducibility Checklist updated with concrete source file paths and implementation status; A1 implementation status note added inline in Section 7.4 ablation analysis; version header updated to 2.0._ _Version 1.3 — Peer review revisions — February 2026_ _Changes from v1.2: Ablation results A1/A2/A3 completed (Section 7.4); Pareto analysis of HIPPOCAMPUS vs. MS-RAG added; Theorem 1 reframed as Observation 1 with honest assessment of its simplicity; embedding model sensitivity note added (Section 4.9); anchor vocabulary lifecycle added (Section 4.2); IIR/FPR terminology unified to FPR throughout; theta/THETA standardized; embed_cached path→embedding resolution clarified; chunk size 400 vs 256-512 reconciled; failure mode co-occurrence rate added (Section 3.4); five new references added (A-MEM, LongMemEval, Memory-R1, Mastra, concept drift); LongMemEval future evaluation section added (Section 8.5); related work expanded with recent agent memory systems._ _Version 1.2 — Importance scoring, deduplication, and GravityClaw comparison — February 2026_ _Changes from v1.1: Section 4.5a added (deduplication via similarity check at write time to prevent index bloat); Section 4.6a added (importance scoring with formula and integration into index construction); Section 5 expanded with expected impact of importance-weighted retrieval on FPR; Section 6.4 expanded with explicit GravityClaw/Pinecone comparison table and analysis; cross-references to TRACE event model added for importance scoring alignment._ _Changes from v1.0: Section 4.6 reframed around two-tier memory architecture (episodic real-time tier vs. semantic nightly tier); staleness gap recast as cost of abstraction with neuroscience grounding (Wilson & McNaughton, 1994); Section 8.1 limitation updated from "index staleness" to "semantic tier lag" to match new framing._ _Changes from draft: Observation 1 strengthened (probabilistic); AS-ANN baseline added; real-time incremental update promoted to Section 4.6; post-retrieval re-ranking added to Section 4.7; design space analysis added as Section 6; FPR added to evaluation; chunk-level addressing and n-gram anchors added to architecture; scalability scope declared._
Changed paragraphs in the same form, for scripts: JSON
· Markdown