{
 "paper": "instant-recall",
 "a": "2.0.1",
 "b": "2.1",
 "summary": "From v2.0.1 (23 Feb) to v2.1 (24 Feb): 11,803 words to 11,961 words, 346 words in new or rewritten paragraphs and 188 taken out, 116 paragraphs changed.",
 "note": {
  "title": "Test-suite results added to the evaluation",
  "kind": "revision",
  "body": "## Summary\n\nThe evaluation now reports a full run of the implementation's tests: 158 tests, 154 passed and 4 left as to-do, with a per-file table. The paper's own footer gives this as the only change. Dashes were also changed from long to short throughout.",
  "source": "change note"
 },
 "paragraphs_changed": 116,
 "changes": [
  {
   "section": "HIPPOCAMPUS: A Pre-Computed Concept Index for O(1) Memory Retrieval in Persistent AI Agents",
   "old": "**Oscar Serra¹** ¹Independent Research _Version 2.0 — 21 February 2026_",
   "new": null,
   "marked": "[-**Oscar Serra¹** ¹Independent Research _Version 2.0 — 21 February 2026_-]"
  },
  {
   "section": "HIPPOCAMPUS: A Pre-Computed Concept Index for O(1) Memory Retrieval in Persistent AI Agents",
   "old": null,
   "new": "**Oscar Serra¹** ¹Independent Research *Version 2.1 - 24 February 2026*",
   "marked": "{+**Oscar Serra¹** ¹Independent Research *Version 2.1 - 24 February 2026*+}"
  },
  {
   "section": "Abstract",
   "old": "We propose **HIPPOCAMPUS** — a pre-computed concept-to-memory-address index mapping anchor terms to pre-ranked chunk lists offline, enabling inference-time retrieval that is **O(1) in corpus size n** (work O(|V| + |A| + K·|A|) including semantic anchor expansion over |V| anchors, plus re-ranking over ≤K·|A| candidates). The architecture is inspired by the neuroscientific role of the biological hippocampus as an indexing structure — not a storage structure — between long-term cortical memory and working memory. HIPPOCAMPUS closes the missing architectural layer between ENGRAM (persistent storage) and CORTEX (agent identity).",
   "new": "We propose **HIPPOCAMPUS** - a pre-computed concept-to-memory-address index mapping anchor terms to pre-ranked chunk lists offline, enabling inference-time retrieval that is **O(1) in corpus size n** (work O(|V| + |A| + K·|A|) including semantic anchor expansion over |V| anchors, plus re-ranking over ≤K·|A| candidates). The architecture is inspired by the neuroscientific role of the biological hippocampus as an indexing structure - not a storage structure - between long-term cortical memory and working memory. HIPPOCAMPUS closes the missing architectural layer between ENGRAM (persistent storage) and CORTEX (agent identity).",
   "marked": "We propose **HIPPOCAMPUS** [-—-] {+-+} a pre-computed concept-to-memory-address index mapping anchor terms to pre-ranked chunk lists offline, enabling inference-time retrieval that is **O(1) in corpus size n** (work O(|V| + |A| + K·|A|) including semantic anchor expansion over |V| anchors, plus re-ranking over ≤K·|A| candidates). The architecture is inspired by the neuroscientific role of the biological hippocampus as an indexing structure [-—-] {+-+} not a storage structure [-—-] {+-+} between long-term cortical memory and working memory. HIPPOCAMPUS closes the missing architectural layer between ENGRAM (persistent storage) and CORTEX (agent identity)."
  },
  {
   "section": "Abstract",
   "old": "Key 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.",
   "new": "Key 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.",
   "marked": "Key contributions: (1) a CORF taxonomy plus a source-coverage upper bound that separates [-_coverage_-] {+*coverage*+} error from [-_ranking_-] {+*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."
  },
  {
   "section": "1. Introduction",
   "old": "The 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.",
   "new": "The 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.",
   "marked": "The gap between what a persistent AI agent [-_knows_-] {+*knows*+} and what it [-_retrieves_-] {+*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-] {+*retrieval+} failure under [-load_:-] {+load*:+} the agent holds extensive history but cannot surface it when it matters."
  },
  {
   "section": "1. Introduction",
   "old": "**Scope note:** This paper addresses deployments up to ~50,000 memory chunks (roughly 2-3 years of a personal assistant accumulating documents, notes, emails, and conversation summaries). Large-scale adaptations — required at 100,000+ chunks — are discussed in Section 8.",
   "new": "**Scope note:** This paper addresses deployments up to ~50,000 memory chunks (roughly 2-3 years of a personal assistant accumulating documents, notes, emails, and conversation summaries). Large-scale adaptations - required at 100,000+ chunks - are discussed in Section 8.",
   "marked": "**Scope note:** This paper addresses deployments up to ~50,000 memory chunks (roughly 2-3 years of a personal assistant accumulating documents, notes, emails, and conversation summaries). Large-scale adaptations [-—-] {+-+} required at 100,000+ chunks [-—-] {+-+} are discussed in Section 8."
  },
  {
   "section": "1. Introduction",
   "old": "Consider 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?\"_",
   "new": "Consider 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?\"*",
   "marked": "Consider 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-] {+*\"Can+} we talk about peer review for our [-papers?\"_-] {+papers?\"*+} The agent, despite possessing complete knowledge of every paper, responds: [-_\"What-] {+*\"What+} type of papers are you referring [-to?\"_-] {+to?\"*+}"
  },
  {
   "section": "1. Introduction",
   "old": "This 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.",
   "new": "This 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.",
   "marked": "This is not a hallucination. It is not a context-length problem. The agent has the data. The failure is [-_architectural_:-] {+*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."
  },
  {
   "section": "1. Introduction",
   "old": "We call this failure mode **Contextual Ownership Retrieval Failure (CORF)** — \"ownership\" refers to the agent's ownership of the relevant memory (it is stored in the agent's memory system). We argue CORF is endemic to current agent memory architectures and propose a solution that addresses all four of its underlying failure modes.",
   "new": "We call this failure mode **Contextual Ownership Retrieval Failure (CORF)** - \"ownership\" refers to the agent's ownership of the relevant memory (it is stored in the agent's memory system). We argue CORF is endemic to current agent memory architectures and propose a solution that addresses all four of its underlying failure modes.",
   "marked": "We call this failure mode **Contextual Ownership Retrieval Failure (CORF)** [-—-] {+-+} \"ownership\" refers to the agent's ownership of the relevant memory (it is stored in the agent's memory system). We argue CORF is endemic to current agent memory architectures and propose a solution that addresses all four of its underlying failure modes."
  },
  {
   "section": "1. Introduction",
   "old": "The 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.",
   "new": "The 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.",
   "marked": "The 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_,-] {+*address book*,+} not the [-_library_.-] {+*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."
  },
  {
   "section": "1. Introduction",
   "old": "HIPPOCAMPUS is that address book. It is a pre-computed index built offline, during a sleep consolidation phase, that maps anchor vocabulary terms — domain-significant words like \"paper\", \"project\", \"patent\", \"family\", \"health\" — to their nearest memory clusters in embedding space. At inference time, when an anchor word is detected in the user's message, the corresponding memory cluster is loaded in O(1) time: no search, no multi-query overhead, no source blindness.",
   "new": "HIPPOCAMPUS is that address book. It is a pre-computed index built offline, during a sleep consolidation phase, that maps anchor vocabulary terms - domain-significant words like \"paper\", \"project\", \"patent\", \"family\", \"health\" - to their nearest memory clusters in embedding space. At inference time, when an anchor word is detected in the user's message, the corresponding memory cluster is loaded in O(1) time: no search, no multi-query overhead, no source blindness.",
   "marked": "HIPPOCAMPUS is that address book. It is a pre-computed index built offline, during a sleep consolidation phase, that maps anchor vocabulary terms [-—-] {+-+} domain-significant words like \"paper\", \"project\", \"patent\", \"family\", \"health\" [-—-] {+-+} to their nearest memory clusters in embedding space. At inference time, when an anchor word is detected in the user's message, the corresponding memory cluster is loaded in O(1) time: no search, no multi-query overhead, no source blindness."
  },
  {
   "section": "1. Introduction",
   "old": "1. **Formal CORF definition and taxonomy** — four failure modes with empirical frequency estimates and a source-coverage upper bound that motivates unified cross-source indexing. 2. **HIPPOCAMPUS architecture** — full design including real-time incremental index updating (promoted from \"future work\" to first-class component). 3. **Post-retrieval re-ranking** — a lightweight re-ranking step that implements partial pattern separation and reduces false positive injection. 4. **Design space analysis** — explicit comparison against inverted index, all-sources ANN, and knowledge graph alternatives, justifying the embedding-based flat KNN design. 5. **Evaluation protocol + artifacts** — metrics, baselines (including all-sources ANN as a key discriminating baseline), and an annotated CORF dataset from deployment logs (to be released in anonymized form) to support reproduction.",
   "new": "1. **Formal CORF definition and taxonomy** - four failure modes with empirical frequency estimates and a source-coverage upper bound that motivates unified cross-source indexing. 2. **HIPPOCAMPUS architecture** - full design including real-time incremental index updating (promoted from \"future work\" to first-class component). 3. **Post-retrieval re-ranking** - a lightweight re-ranking step that implements partial pattern separation and reduces false positive injection. 4. **Design space analysis** - explicit comparison against inverted index, all-sources ANN, and knowledge graph alternatives, justifying the embedding-based flat KNN design. 5. **Evaluation protocol + artifacts** - metrics, baselines (including all-sources ANN as a key discriminating baseline), and an annotated CORF dataset from deployment logs (to be released in anonymized form) to support reproduction.",
   "marked": "1. **Formal CORF definition and taxonomy** [-—-] {+-+} four failure modes with empirical frequency estimates and a source-coverage upper bound that motivates unified cross-source indexing. 2. **HIPPOCAMPUS architecture** [-—-] {+-+} full design including real-time incremental index updating (promoted from \"future work\" to first-class component). 3. **Post-retrieval re-ranking** [-—-] {+-+} a lightweight re-ranking step that implements partial pattern separation and reduces false positive injection. 4. **Design space analysis** [-—-] {+-+} explicit comparison against inverted index, all-sources ANN, and knowledge graph alternatives, justifying the embedding-based flat KNN design. 5. **Evaluation protocol + artifacts** [-—-] {+-+} metrics, baselines (including all-sources ANN as a key discriminating baseline), and an annotated CORF dataset from deployment logs (to be released in anonymized form) to support reproduction."
  },
  {
   "section": "2.1 Persistent Agent Memory Systems",
   "old": "Memory 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.",
   "new": "Memory 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.",
   "marked": "Memory 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_-] {+*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."
  },
  {
   "section": "2.1 Persistent Agent Memory Systems",
   "old": "**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.",
   "new": "**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.",
   "marked": "**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-] {+*persistent-agent+} ownership [-queries_-] {+queries*+} and by shifting most retrieval work offline into an anchor→chunk cache."
  },
  {
   "section": "2.1 Persistent Agent Memory Systems",
   "old": "Recent work has expanded the agent memory landscape considerably. A-MEM [Xu et al., 2025] introduces agentic memory where the agent itself manages memory formation and retrieval strategies. Memory-R1 [Yan et al., 2025] applies reinforcement learning to train memory management policies. LongMemEval [Wu et al., 2024] provides a benchmark for long-term interactive memory, on which Mastra Observational Memory [Barnes, 2026] achieves 95% recall. These systems address complementary aspects of the memory problem; HIPPOCAMPUS's contribution is specifically the offline index that makes retrieval cost constant in corpus size. The concept drift literature [Gama et al., 2014] is also relevant: as an agent's domain evolves over months, anchor vocabularies must adapt — a challenge addressed by our anchor lifecycle mechanism (Section 4.2).",
   "new": "Recent work has expanded the agent memory landscape considerably. A-MEM [Xu et al., 2025] introduces agentic memory where the agent itself manages memory formation and retrieval strategies. Memory-R1 [Yan et al., 2025] applies reinforcement learning to train memory management policies. LongMemEval [Wu et al., 2024] provides a benchmark for long-term interactive memory, on which Mastra Observational Memory [Barnes, 2026] achieves 95% recall. These systems address complementary aspects of the memory problem; HIPPOCAMPUS's contribution is specifically the offline index that makes retrieval cost constant in corpus size. The concept drift literature [Gama et al., 2014] is also relevant: as an agent's domain evolves over months, anchor vocabularies must adapt - a challenge addressed by our anchor lifecycle mechanism (Section 4.2).",
   "marked": "Recent work has expanded the agent memory landscape considerably. A-MEM [Xu et al., 2025] introduces agentic memory where the agent itself manages memory formation and retrieval strategies. Memory-R1 [Yan et al., 2025] applies reinforcement learning to train memory management policies. LongMemEval [Wu et al., 2024] provides a benchmark for long-term interactive memory, on which Mastra Observational Memory [Barnes, 2026] achieves 95% recall. These systems address complementary aspects of the memory problem; HIPPOCAMPUS's contribution is specifically the offline index that makes retrieval cost constant in corpus size. The concept drift literature [Gama et al., 2014] is also relevant: as an agent's domain evolves over months, anchor vocabularies must adapt [-—-] {+-+} a challenge addressed by our anchor lifecycle mechanism (Section 4.2)."
  },
  {
   "section": "2.1 Persistent Agent Memory Systems",
   "old": "**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.",
   "new": "**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.",
   "marked": "**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_-] {+*decide*+} what to retrieve [-—-] {+-+} a meta-cognitive load absent in HIPPOCAMPUS."
  },
  {
   "section": "2.1 Persistent Agent Memory Systems",
   "old": "**Spreading activation** models [Collins & Loftus, 1975] propose that concept retrieval propagates activation through an associative network. These are cognitively plausible but computationally expensive — building and traversing the full associative graph at query time is impractical for real-time inference. HIPPOCAMPUS implements a pre-computed, static subset of this graph: the anchor-to-cluster edges are the high-salience spreading activation links, computed offline.",
   "new": "**Spreading activation** models [Collins & Loftus, 1975] propose that concept retrieval propagates activation through an associative network. These are cognitively plausible but computationally expensive - building and traversing the full associative graph at query time is impractical for real-time inference. HIPPOCAMPUS implements a pre-computed, static subset of this graph: the anchor-to-cluster edges are the high-salience spreading activation links, computed offline.",
   "marked": "**Spreading activation** models [Collins & Loftus, 1975] propose that concept retrieval propagates activation through an associative network. These are cognitively plausible but computationally expensive [-—-] {+-+} building and traversing the full associative graph at query time is impractical for real-time inference. HIPPOCAMPUS implements a pre-computed, static subset of this graph: the anchor-to-cluster edges are the high-salience spreading activation links, computed offline."
  },
  {
   "section": "2.3 Neuroscience Basis",
   "old": "The 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].",
   "new": "The 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].",
   "marked": "The 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_:-] {+*indices*:+} patterns of cortical activity that bind distributed memory components [Teyler & DiScenna, 1986; Squire, 1992]."
  },
  {
   "section": "2.3 Neuroscience Basis",
   "old": "The 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.",
   "new": "The 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.",
   "marked": "The hippocampus performs two complementary functions: [-_pattern separation_-] {+*pattern separation*+} (encoding similar experiences as distinct traces) and [-_pattern completion_-] {+*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."
  },
  {
   "section": "3.1 Formal Definition",
   "old": "**Definition (CORF).** A Contextual Ownership Retrieval Failure occurs when:",
   "new": null,
   "marked": "[-**Definition (CORF).** A Contextual Ownership Retrieval Failure occurs when:-]"
  },
  {
   "section": "3.1 Formal Definition",
   "old": "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^*$.",
   "new": "**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^*$.",
   "marked": "{+**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^*$."
  },
  {
   "section": "3.2 Failure Modes",
   "old": "Four distinct modes cause CORF. Note that these modes are not always mutually exclusive — a single query can trigger multiple modes simultaneously, compounding the failure.",
   "new": "Four distinct modes cause CORF. Note that these modes are not always mutually exclusive - a single query can trigger multiple modes simultaneously, compounding the failure.",
   "marked": "Four distinct modes cause CORF. Note that these modes are not always mutually exclusive [-—-] {+-+} a single query can trigger multiple modes simultaneously, compounding the failure."
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 1 — Pronoun Blindness.** The query uses pronouns (\"our papers\", \"we wrote\") without explicit noun anchors. Pronoun embeddings do not cluster near document-specific embeddings. Remedy: detect pronouns as secondary anchor triggers; fall back to always-loaded project index.",
   "new": "**Mode 1 - Pronoun Blindness.** The query uses pronouns (\"our papers\", \"we wrote\") without explicit noun anchors. Pronoun embeddings do not cluster near document-specific embeddings. Remedy: detect pronouns as secondary anchor triggers; fall back to always-loaded project index.",
   "marked": "**Mode 1 [-—-] {+-+} Pronoun Blindness.** The query uses pronouns (\"our papers\", \"we wrote\") without explicit noun anchors. Pronoun embeddings do not cluster near document-specific embeddings. Remedy: detect pronouns as secondary anchor triggers; fall back to always-loaded project index."
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 2 — Associative Depth Failure.** The relevant memory requires two or more associative hops from query terms. \"Peer review\" → \"publishing\" → \"our papers.\" Single-pass vector search does not traverse these hops. Remedy: pre-compute multi-hop clusters at build time; the anchor \"paper\" includes chunks that mention \"peer review.\"",
   "new": "**Mode 2 - Associative Depth Failure.** The relevant memory requires two or more associative hops from query terms. \"Peer review\" → \"publishing\" → \"our papers.\" Single-pass vector search does not traverse these hops. Remedy: pre-compute multi-hop clusters at build time; the anchor \"paper\" includes chunks that mention \"peer review.\"",
   "marked": "**Mode 2 [-—-] {+-+} Associative Depth Failure.** The relevant memory requires two or more associative hops from query terms. \"Peer review\" → \"publishing\" → \"our papers.\" Single-pass vector search does not traverse these hops. Remedy: pre-compute multi-hop clusters at build time; the anchor \"paper\" includes chunks that mention \"peer review.\""
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 3 — Source Blindness.** The relevant memory exists in a source $s^* \\in S$ not queried at inference time. The agent searches `memory/` but not `archive/chatgpt-import/`. Remedy: unified cross-source indexing at build time.",
   "new": "**Mode 3 - Source Blindness.** The relevant memory exists in a source $s^* \\in S$ not queried at inference time. The agent searches `memory/` but not `archive/chatgpt-import/`. Remedy: unified cross-source indexing at build time.",
   "marked": "**Mode 3 [-—-] {+-+} Source Blindness.** The relevant memory exists in a source $s^* \\in S$ not queried at inference time. The agent searches `memory/` but not `archive/chatgpt-import/`. Remedy: unified cross-source indexing at build time."
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 4 — Anchor Silence.** A domain-significant noun is present in the query (\"paper\", \"project\") but does not trigger a comprehensive sweep — instead a targeted semantic search returns topically similar but incomplete results. Remedy: anchor vocabulary detection triggers exhaustive cluster loading, not a new search.",
   "new": "**Mode 4 - Anchor Silence.** A domain-significant noun is present in the query (\"paper\", \"project\") but does not trigger a comprehensive sweep - instead a targeted semantic search returns topically similar but incomplete results. Remedy: anchor vocabulary detection triggers exhaustive cluster loading, not a new search.",
   "marked": "**Mode 4 [-—-] {+-+} Anchor Silence.** A domain-significant noun is present in the query (\"paper\", \"project\") but does not trigger a comprehensive sweep [-—-] {+-+} instead a targeted semantic search returns topically similar but incomplete results. Remedy: anchor vocabulary detection triggers exhaustive cluster loading, not a new search."
  },
  {
   "section": "3.3 Probabilistic Source-Coverage Analysis",
   "old": "**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:",
   "new": "**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:",
   "marked": "**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_-] {+*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:"
  },
  {
   "section": "3.3 Probabilistic Source-Coverage Analysis",
   "old": "While this bound is straightforward by construction — recall cannot exceed the mass of sources actually queried — its practical implication is under-appreciated: practitioners routinely optimize embedding quality while leaving source coverage fixed, optimizing the wrong variable.",
   "new": "While this bound is straightforward by construction - recall cannot exceed the mass of sources actually queried - its practical implication is under-appreciated: practitioners routinely optimize embedding quality while leaving source coverage fixed, optimizing the wrong variable.",
   "marked": "While this bound is straightforward by construction [-—-] {+-+} recall cannot exceed the mass of sources actually queried [-—-] {+-+} its practical implication is under-appreciated: practitioners routinely optimize embedding quality while leaving source coverage fixed, optimizing the wrong variable."
  },
  {
   "section": "3.3 Probabilistic Source-Coverage Analysis",
   "old": "In the CORF analysis of a real deployment, estimated source distribution was: memory/ (52%), archive/chatgpt-import/ (28%), emails/ (15%), other (5%). A single-source retrieval strategy (memory/ only) has an expected recall ceiling of 0.52 for uniformly distributed ground-truth memories — regardless of how sophisticated the embedding model is.",
   "new": "In the CORF analysis of a real deployment, estimated source distribution was: memory/ (52%), archive/chatgpt-import/ (28%), emails/ (15%), other (5%). A single-source retrieval strategy (memory/ only) has an expected recall ceiling of 0.52 for uniformly distributed ground-truth memories - regardless of how sophisticated the embedding model is.",
   "marked": "In the CORF analysis of a real deployment, estimated source distribution was: memory/ (52%), archive/chatgpt-import/ (28%), emails/ (15%), other (5%). A single-source retrieval strategy (memory/ only) has an expected recall ceiling of 0.52 for uniformly distributed ground-truth memories [-—-] {+-+} regardless of how sophisticated the embedding model is."
  },
  {
   "section": "3.4 Frequency Analysis",
   "old": "| Failure Mode | Est. Frequency (ownership queries) | Severity | | ------------------------- | ---------------------------------- | -------- | | Pronoun Blindness | ~12% | High | | Associative Depth Failure | ~8% | High | | Source Blindness | ~23% | Critical | | Anchor Silence | ~31% | High |",
   "new": "| Failure Mode | Est. Frequency (ownership queries) | Severity | |---|---|---| | Pronoun Blindness | ~12% | High | | Associative Depth Failure | ~8% | High | | Source Blindness | ~23% | Critical | | Anchor Silence | ~31% | High |",
   "marked": "| Failure Mode | Est. Frequency (ownership queries) | Severity | [-| ------------------------- | ---------------------------------- | -------- |-] {+|---|---|---|+} | Pronoun Blindness | ~12% | High | | Associative Depth Failure | ~8% | High | | Source Blindness | ~23% | Critical | | Anchor Silence | ~31% | High |"
  },
  {
   "section": "4.1 Overview",
   "old": "**Definition of Chunk:** For clarity, a \"chunk\" is a contiguous span of 256–512 tokens extracted from a source document using sentence-boundary-aware splitting (the pseudocode uses `max_tokens=400` as a target within this range; actual chunk length varies by sentence boundaries). Each chunk is represented as: (1) a text content segment, (2) a dense embedding vector (1,536 dimensions for text-embedding-3-small), (3) metadata (source file path, timestamp, salience score), and (4) a unique address identifier (file_path#chunk-index). This allows precise retrieval and source attribution without loading entire documents into the context window.",
   "new": "**Definition of Chunk:** For clarity, a \"chunk\" is a contiguous span of 256-512 tokens extracted from a source document using sentence-boundary-aware splitting (the pseudocode uses `max_tokens=400` as a target within this range; actual chunk length varies by sentence boundaries). Each chunk is represented as: (1) a text content segment, (2) a dense embedding vector (1,536 dimensions for text-embedding-3-small), (3) metadata (source file path, timestamp, salience score), and (4) a unique address identifier (file_path#chunk-index). This allows precise retrieval and source attribution without loading entire documents into the context window.",
   "marked": "**Definition of Chunk:** For clarity, a \"chunk\" is a contiguous span of [-256–512-] {+256-512+} tokens extracted from a source document using sentence-boundary-aware splitting (the pseudocode uses `max_tokens=400` as a target within this range; actual chunk length varies by sentence boundaries). Each chunk is represented as: (1) a text content segment, (2) a dense embedding vector (1,536 dimensions for text-embedding-3-small), (3) metadata (source file path, timestamp, salience score), and (4) a unique address identifier (file_path#chunk-index). This allows precise retrieval and source attribution without loading entire documents into the context window."
  },
  {
   "section": "4.2 Anchor Vocabulary",
   "old": "The union $V = V_{curated} \\cup V_{discovered}$ typically yields 150–400 anchor terms for a mature agent deployment.",
   "new": "The union $V = V_{curated} \\cup V_{discovered}$ typically yields 150-400 anchor terms for a mature agent deployment.",
   "marked": "The union $V = V_{curated} \\cup V_{discovered}$ typically yields [-150–400-] {+150-400+} anchor terms for a mature agent deployment."
  },
  {
   "section": "4.2 Anchor Vocabulary",
   "old": "**Anchor Vocabulary Lifecycle.** Discovered anchors follow a promotion-and-pruning lifecycle. During each nightly rebuild, discovered anchors are re-evaluated against the current corpus: anchors whose salience score falls below a decay threshold (default: 50% of the discovery-time salience) for three consecutive rebuilds are pruned from $V_{discovered}$. This prevents vocabulary bloat from one-off topics that were transiently salient but never recurred. Conversely, discovered anchors that maintain high salience across multiple rebuilds and are referenced in user queries are candidates for promotion to $V_{curated}$; the system flags these for human review via a weekly anchor report. Curated anchors are never automatically pruned — they require explicit human removal, since they encode domain knowledge that may be seasonally dormant but still valuable (e.g., \"tax\" may be dormant for months but critical during filing season).",
   "new": "**Anchor Vocabulary Lifecycle.** Discovered anchors follow a promotion-and-pruning lifecycle. During each nightly rebuild, discovered anchors are re-evaluated against the current corpus: anchors whose salience score falls below a decay threshold (default: 50% of the discovery-time salience) for three consecutive rebuilds are pruned from $V_{discovered}$. This prevents vocabulary bloat from one-off topics that were transiently salient but never recurred. Conversely, discovered anchors that maintain high salience across multiple rebuilds and are referenced in user queries are candidates for promotion to $V_{curated}$; the system flags these for human review via a weekly anchor report. Curated anchors are never automatically pruned - they require explicit human removal, since they encode domain knowledge that may be seasonally dormant but still valuable (e.g., \"tax\" may be dormant for months but critical during filing season).",
   "marked": "**Anchor Vocabulary Lifecycle.** Discovered anchors follow a promotion-and-pruning lifecycle. During each nightly rebuild, discovered anchors are re-evaluated against the current corpus: anchors whose salience score falls below a decay threshold (default: 50% of the discovery-time salience) for three consecutive rebuilds are pruned from $V_{discovered}$. This prevents vocabulary bloat from one-off topics that were transiently salient but never recurred. Conversely, discovered anchors that maintain high salience across multiple rebuilds and are referenced in user queries are candidates for promotion to $V_{curated}$; the system flags these for human review via a weekly anchor report. Curated anchors are never automatically pruned [-—-] {+-+} they require explicit human removal, since they encode domain knowledge that may be seasonally dormant but still valuable (e.g., \"tax\" may be dormant for months but critical during filing season)."
  },
  {
   "section": "4.2 Anchor Vocabulary",
   "old": "In practice, a mature deployment sees ~5–10 anchor promotions and ~15–25 anchor prunings per month, keeping the vocabulary within the 150–400 range without manual intervention.",
   "new": "In practice, a mature deployment sees ~5-10 anchor promotions and ~15-25 anchor prunings per month, keeping the vocabulary within the 150-400 range without manual intervention.",
   "marked": "In practice, a mature deployment sees [-~5–10-] {+~5-10+} anchor promotions and [-~15–25-] {+~15-25+} anchor prunings per month, keeping the vocabulary within the [-150–400-] {+150-400+} range without manual intervention."
  },
  {
   "section": "4.3 Concept Embedding and KNN Clustering",
   "old": "Memory chunks are pre-split into segments of 256–512 tokens using sentence-boundary-aware chunking (not hard truncation). For each chunk $m_i$:",
   "new": "Memory chunks are pre-split into segments of 256-512 tokens using sentence-boundary-aware chunking (not hard truncation). For each chunk $m_i$:",
   "marked": "Memory chunks are pre-split into segments of [-256–512-] {+256-512+} tokens using sentence-boundary-aware chunking (not hard truncation). For each chunk $m_i$:"
  },
  {
   "section": "4.4 Pre-Computed Index Structure",
   "old": "Design decisions:",
   "new": null,
   "marked": "[-Design decisions:-]"
  },
  {
   "section": "4.4 Pre-Computed Index Structure",
   "old": "- **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.",
   "new": "Design 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.",
   "marked": "{+Design 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."
  },
  {
   "section": "4.5a Deduplication via Similarity Check",
   "old": "- **Similarity > 0.9 (near-duplicate):** Merge the two chunks. Retain the richer or more recent version as the canonical entry; create a provenance link to the older version. The older chunk's address is preserved as an alias so that existing pointer manifests (cf. TRACE [Serra, 2026a]) remain valid. - **Similarity 0.7–0.9 (related but distinct):** Flag as related. Both chunks remain in the cluster, but a `related_to` edge is recorded in the index metadata. This edge can inform future knowledge-graph extensions (Section 8.5) and prevents the re-ranking step (Section 4.7) from treating them as independent evidence. - **Similarity < 0.7 (distinct):** Store normally with no deduplication action.",
   "new": "- **Similarity > 0.9 (near-duplicate):** Merge the two chunks. Retain the richer or more recent version as the canonical entry; create a provenance link to the older version. The older chunk's address is preserved as an alias so that existing pointer manifests (cf. TRACE [Serra, 2026a]) remain valid. - **Similarity 0.7-0.9 (related but distinct):** Flag as related. Both chunks remain in the cluster, but a `related_to` edge is recorded in the index metadata. This edge can inform future knowledge-graph extensions (Section 8.5) and prevents the re-ranking step (Section 4.7) from treating them as independent evidence. - **Similarity < 0.7 (distinct):** Store normally with no deduplication action.",
   "marked": "- **Similarity > 0.9 (near-duplicate):** Merge the two chunks. Retain the richer or more recent version as the canonical entry; create a provenance link to the older version. The older chunk's address is preserved as an alias so that existing pointer manifests (cf. TRACE [Serra, 2026a]) remain valid. - **Similarity [-0.7–0.9-] {+0.7-0.9+} (related but distinct):** Flag as related. Both chunks remain in the cluster, but a `related_to` edge is recorded in the index metadata. This edge can inform future knowledge-graph extensions (Section 8.5) and prevents the re-ranking step (Section 4.7) from treating them as independent evidence. - **Similarity < 0.7 (distinct):** Store normally with no deduplication action."
  },
  {
   "section": "4.6 Two-Tier Memory: Episodic and Semantic Tiers",
   "old": "**Episodic tier (real-time).** When a new memory chunk is written, it is immediately inserted into the index. This tier contains raw, unprocessed facts — what happened, when, in what context. It is always current: a chunk written one minute ago is retrievable in the next query. This corresponds to hippocampal encoding of episodic traces in biological memory: fast, concrete, tied to the moment of experience.",
   "new": "**Episodic tier (real-time).** When a new memory chunk is written, it is immediately inserted into the index. This tier contains raw, unprocessed facts - what happened, when, in what context. It is always current: a chunk written one minute ago is retrievable in the next query. This corresponds to hippocampal encoding of episodic traces in biological memory: fast, concrete, tied to the moment of experience.",
   "marked": "**Episodic tier (real-time).** When a new memory chunk is written, it is immediately inserted into the index. This tier contains raw, unprocessed facts [-—-] {+-+} what happened, when, in what context. It is always current: a chunk written one minute ago is retrievable in the next query. This corresponds to hippocampal encoding of episodic traces in biological memory: fast, concrete, tied to the moment of experience."
  },
  {
   "section": "4.6 Two-Tier Memory: Episodic and Semantic Tiers",
   "old": "**Semantic tier (nightly rebuild).** At 04:15 each night, the full index is rebuilt from scratch using the current anchor vocabulary and all stored chunks. The rebuild reflects abstracted, consolidated understanding — concepts that have risen to sufficient salience to earn a dedicated anchor, relationships that only become visible across many episodes, and structural reorganization that incremental writes cannot achieve. This corresponds to slow-wave sleep hippocampal replay feeding into neocortical consolidation: raw experience is re-processed into durable semantic knowledge [Wilson & McNaughton, 1994].",
   "new": "**Semantic tier (nightly rebuild).** At 04:15 each night, the full index is rebuilt from scratch using the current anchor vocabulary and all stored chunks. The rebuild reflects abstracted, consolidated understanding - concepts that have risen to sufficient salience to earn a dedicated anchor, relationships that only become visible across many episodes, and structural reorganization that incremental writes cannot achieve. This corresponds to slow-wave sleep hippocampal replay feeding into neocortical consolidation: raw experience is re-processed into durable semantic knowledge [Wilson & McNaughton, 1994].",
   "marked": "**Semantic tier (nightly rebuild).** At 04:15 each night, the full index is rebuilt from scratch using the current anchor vocabulary and all stored chunks. The rebuild reflects abstracted, consolidated understanding [-—-] {+-+} concepts that have risen to sufficient salience to earn a dedicated anchor, relationships that only become visible across many episodes, and structural reorganization that incremental writes cannot achieve. This corresponds to slow-wave sleep hippocampal replay feeding into neocortical consolidation: raw experience is re-processed into durable semantic knowledge [Wilson & McNaughton, 1994]."
  },
  {
   "section": "4.6 Two-Tier Memory: Episodic and Semantic Tiers",
   "old": "**The staleness gap is the cost of abstraction.** Memories written between the nightly rebuild (04:15) and the following night are in the episodic tier but not yet in the semantic tier. This gap is not a defect. The semantic tier earns its structural richness precisely because it reflects on the full corpus. A rebuild over 327 files produces anchor-cluster relationships that a single incremental update on file 328 cannot generate. Long-term potentiation requires time, repetition, and consolidation — in biological systems and in this one.",
   "new": "**The staleness gap is the cost of abstraction.** Memories written between the nightly rebuild (04:15) and the following night are in the episodic tier but not yet in the semantic tier. This gap is not a defect. The semantic tier earns its structural richness precisely because it reflects on the full corpus. A rebuild over 327 files produces anchor-cluster relationships that a single incremental update on file 328 cannot generate. Long-term potentiation requires time, repetition, and consolidation - in biological systems and in this one.",
   "marked": "**The staleness gap is the cost of abstraction.** Memories written between the nightly rebuild (04:15) and the following night are in the episodic tier but not yet in the semantic tier. This gap is not a defect. The semantic tier earns its structural richness precisely because it reflects on the full corpus. A rebuild over 327 files produces anchor-cluster relationships that a single incremental update on file 328 cannot generate. Long-term potentiation requires time, repetition, and consolidation [-—-] {+-+} in biological systems and in this one."
  },
  {
   "section": "4.6a Importance Scoring",
   "old": "Not 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.",
   "new": "Not 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.",
   "marked": "Not all memory chunks are equally valuable for retrieval. A two-tier architecture (episodic + semantic) separates [-_freshness_-] {+*freshness*+} from [-_richness_,-] {+*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."
  },
  {
   "section": "Real-Time Episodic Update Algorithm",
   "old": "Latency: O(|V|) cosine similarity comparisons against cached anchor embeddings. At |V|=300 anchors and ~0.1ms per comparison, this adds ~30ms per memory write — acceptable for interactive use. Same-day freshness is fully preserved: any chunk written during the day is available for HIPPOCAMPUS lookup before the next nightly semantic rebuild.",
   "new": "Latency: O(|V|) cosine similarity comparisons against cached anchor embeddings. At |V|=300 anchors and ~0.1ms per comparison, this adds ~30ms per memory write - acceptable for interactive use. Same-day freshness is fully preserved: any chunk written during the day is available for HIPPOCAMPUS lookup before the next nightly semantic rebuild.",
   "marked": "Latency: O(|V|) cosine similarity comparisons against cached anchor embeddings. At |V|=300 anchors and ~0.1ms per comparison, this adds ~30ms per memory write [-—-] {+-+} acceptable for interactive use. Same-day freshness is fully preserved: any chunk written during the day is available for HIPPOCAMPUS lookup before the next nightly semantic rebuild."
  },
  {
   "section": "Semantic anchor expansion (robust to paraphrase/synonymy) # Cost is O(|V|) over anchors (|V|≈150-400), still constant in corpus size n. query_vec = embed(user_message) sem_anchors = [] for a in index[\"entries\"]: a_vec = embed_cached(a) if cosine_similarity(query_vec, a_vec) >= SEM_THETA: sem_anchors.append(a) detected_anchors = list(set(detected_anchors + sem_anchors))",
   "old": "# Semantic anchor expansion (robust to paraphrase/synonymy) # Cost is O(|V|) over anchors (|V|≈150–400), still constant in corpus size n. query_vec = embed(user_message) sem_anchors = [] for a in index[\"entries\"]: a_vec = embed_cached(a) if cosine_similarity(query_vec, a_vec) >= SEM_THETA: sem_anchors.append(a) detected_anchors = list(set(detected_anchors + sem_anchors))",
   "new": "# Semantic anchor expansion (robust to paraphrase/synonymy) # Cost is O(|V|) over anchors (|V|≈150-400), still constant in corpus size n. query_vec = embed(user_message) sem_anchors = [] for a in index[\"entries\"]: a_vec = embed_cached(a) if cosine_similarity(query_vec, a_vec) >= SEM_THETA: sem_anchors.append(a) detected_anchors = list(set(detected_anchors + sem_anchors))",
   "marked": "# Semantic anchor expansion (robust to paraphrase/synonymy) # Cost is O(|V|) over anchors [-(|V|≈150–400),-] {+(|V|≈150-400),+} still constant in corpus size n. query_vec = embed(user_message) sem_anchors = [] for a in index[\"entries\"]: a_vec = embed_cached(a) if cosine_similarity(query_vec, a_vec) >= SEM_THETA: sem_anchors.append(a) detected_anchors = list(set(detected_anchors + sem_anchors))"
  },
  {
   "section": "Step 3: O(1) index lookup - no search candidate_chunks = {} # path -> score for anchor in detected_anchors: entry = index[\"entries\"][anchor] for path, score in zip(entry[\"chunks\"], entry[\"scores\"]): candidate_chunks[path] = max(candidate_chunks.get(path, 0), score)",
   "old": "# Step 3: O(1) index lookup — no search candidate_chunks = {} # path -> score for anchor in detected_anchors: entry = index[\"entries\"][anchor] for path, score in zip(entry[\"chunks\"], entry[\"scores\"]): candidate_chunks[path] = max(candidate_chunks.get(path, 0), score)",
   "new": "# Step 3: O(1) index lookup - no search candidate_chunks = {} # path -> score for anchor in detected_anchors: entry = index[\"entries\"][anchor] for path, score in zip(entry[\"chunks\"], entry[\"scores\"]): candidate_chunks[path] = max(candidate_chunks.get(path, 0), score)",
   "marked": "# Step 3: O(1) index lookup [-—-] {+-+} no search candidate_chunks = {} # path -> score for anchor in detected_anchors: entry = index[\"entries\"][anchor] for path, score in zip(entry[\"chunks\"], entry[\"scores\"]): candidate_chunks[path] = max(candidate_chunks.get(path, 0), score)"
  },
  {
   "section": "Step 4: Post-retrieval re-ranking (partial pattern separation) # Re-rank candidates against actual query embedding - cheap (small candidate set) if candidate_chunks: query_vec = embed(user_message) # embed_cached(p): loads chunk content from path p, computes content hash, # returns cached embedding if hash matches, else embeds content and caches. chunk_vecs = {p: embed_cached(p) for p in candidate_chunks} reranked_scores = { p: 0.6 * anchor_score + 0.4 * cosine_similarity(query_vec, chunk_vecs[p]) for p, anchor_score in candidate_chunks.items() } ranked = sorted(reranked_scores.items(), key=lambda x: -x[1])[:max_chunks] else: ranked = []",
   "old": "# Step 4: Post-retrieval re-ranking (partial pattern separation) # Re-rank candidates against actual query embedding — cheap (small candidate set) if candidate_chunks: query_vec = embed(user_message) # embed_cached(p): loads chunk content from path p, computes content hash, # returns cached embedding if hash matches, else embeds content and caches. chunk_vecs = {p: embed_cached(p) for p in candidate_chunks} reranked_scores = { p: 0.6 * anchor_score + 0.4 * cosine_similarity(query_vec, chunk_vecs[p]) for p, anchor_score in candidate_chunks.items() } ranked = sorted(reranked_scores.items(), key=lambda x: -x[1])[:max_chunks] else: ranked = []",
   "new": "# Step 4: Post-retrieval re-ranking (partial pattern separation) # Re-rank candidates against actual query embedding - cheap (small candidate set) if candidate_chunks: query_vec = embed(user_message) # embed_cached(p): loads chunk content from path p, computes content hash, # returns cached embedding if hash matches, else embeds content and caches. chunk_vecs = {p: embed_cached(p) for p in candidate_chunks} reranked_scores = { p: 0.6 * anchor_score + 0.4 * cosine_similarity(query_vec, chunk_vecs[p]) for p, anchor_score in candidate_chunks.items() } ranked = sorted(reranked_scores.items(), key=lambda x: -x[1])[:max_chunks] else: ranked = []",
   "marked": "# Step 4: Post-retrieval re-ranking (partial pattern separation) # Re-rank candidates against actual query embedding [-—-] {+-+} cheap (small candidate set) if candidate_chunks: query_vec = embed(user_message) # embed_cached(p): loads chunk content from path p, computes content hash, # returns cached embedding if hash matches, else embeds content and caches. chunk_vecs = {p: embed_cached(p) for p in candidate_chunks} reranked_scores = { p: 0.6 * anchor_score + 0.4 * cosine_similarity(query_vec, chunk_vecs[p]) for p, anchor_score in candidate_chunks.items() } ranked = sorted(reranked_scores.items(), key=lambda x: -x[1])[:max_chunks] else: ranked = []"
  },
  {
   "section": "Step 5: Load chunk content return [{\"path\": p, \"score\": s, \"content\": read_chunk(p)} for p, s in ranked] ```",
   "old": "The re-ranking step (Step 4) scores each candidate against the actual query embedding, blending anchor relevance (0.6) with query relevance (0.4). This discards false positives — chunks that match the anchor word but are semantically unrelated to the specific query — without requiring an additional retrieval pass. The candidate set is small (K×|A| ≤ 100 chunks), making this re-ranking fast (~10ms).",
   "new": "The re-ranking step (Step 4) scores each candidate against the actual query embedding, blending anchor relevance (0.6) with query relevance (0.4). This discards false positives - chunks that match the anchor word but are semantically unrelated to the specific query - without requiring an additional retrieval pass. The candidate set is small (K×|A| ≤ 100 chunks), making this re-ranking fast (~10ms).",
   "marked": "The re-ranking step (Step 4) scores each candidate against the actual query embedding, blending anchor relevance (0.6) with query relevance (0.4). This discards false positives [-—-] {+-+} chunks that match the anchor word but are semantically unrelated to the specific query [-—-] {+-+} without requiring an additional retrieval pass. The candidate set is small (K×|A| ≤ 100 chunks), making this re-ranking fast (~10ms)."
  },
  {
   "section": "4.9 Implementation Notes (Hyperparameters, Caching, and Safety)",
   "old": "| 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`. |",
   "new": "| 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`. |",
   "marked": "| 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`. |"
  },
  {
   "section": "4.9 Implementation Notes (Hyperparameters, Caching, and Safety)",
   "old": "**Embedding Model Sensitivity:** All results in this paper use OpenAI's `text-embedding-3-small` (1,536 dimensions). The anchor-to-chunk similarity thresholds (THETA, SEM_THETA) and the reported recall/FPR numbers are calibrated to this model's similarity distribution. Different embedding models — particularly smaller models like `all-MiniLM-L6-v2` (384 dimensions) or alternative providers like Gemini `embedding-001` — will produce different similarity distributions, requiring threshold re-tuning. We plan systematic evaluation across these models in future work. The architecture itself is embedding-model-agnostic; only the threshold hyperparameters are model-specific.",
   "new": "**Embedding Model Sensitivity:** All results in this paper use OpenAI's `text-embedding-3-small` (1,536 dimensions). The anchor-to-chunk similarity thresholds (THETA, SEM_THETA) and the reported recall/FPR numbers are calibrated to this model's similarity distribution. Different embedding models - particularly smaller models like `all-MiniLM-L6-v2` (384 dimensions) or alternative providers like Gemini `embedding-001` - will produce different similarity distributions, requiring threshold re-tuning. We plan systematic evaluation across these models in future work. The architecture itself is embedding-model-agnostic; only the threshold hyperparameters are model-specific.",
   "marked": "**Embedding Model Sensitivity:** All results in this paper use OpenAI's `text-embedding-3-small` (1,536 dimensions). The anchor-to-chunk similarity thresholds (THETA, SEM_THETA) and the reported recall/FPR numbers are calibrated to this model's similarity distribution. Different embedding models [-—-] {+-+} particularly smaller models like `all-MiniLM-L6-v2` (384 dimensions) or alternative providers like Gemini `embedding-001` [-—-] {+-+} will produce different similarity distributions, requiring threshold re-tuning. We plan systematic evaluation across these models in future work. The architecture itself is embedding-model-agnostic; only the threshold hyperparameters are model-specific."
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": "| 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\\* |",
   "new": "| 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* |",
   "marked": "| 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\\*-] {+0.85*+} | 1.00 | [--0.15\\*-] {+-0.15*+} |"
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": "\\*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.",
   "new": "*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.",
   "marked": "[-\\*The-] {+*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."
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": "**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.",
   "new": "**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.",
   "marked": "**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_-] {+*source blindness*+} to [-_anchor/ranking_-] {+*anchor/ranking*+} misses."
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": "| 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** |",
   "new": "| 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** |",
   "marked": "| 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** |"
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": "**Key Findings:**",
   "new": null,
   "marked": "[-**Key Findings:**-]"
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": "- **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.",
   "new": "**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.",
   "marked": "{+**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."
  },
  {
   "section": "5.2 Amortized Complexity Analysis",
   "old": "| 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 |",
   "new": "| 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 |",
   "marked": "| 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 |"
  },
  {
   "section": "5.2 Amortized Complexity Analysis",
   "old": "**Scalability note:** For n=100,000 chunks, a naïve scalar loop over |V|·n cosine similarities is expensive; in practice we compute the full |V|×n similarity matrix via vectorized BLAS/GPU matmul and therefore report measured build throughput (hardware + batch size + whether embeddings are local vs API) rather than per-comparison estimates. At this scale, replace exact KNN with FAISS IVF at build time: O(|V| · √n) ≈ O(300 · 316) = O(95,000) comparisons — a 300× speedup.",
   "new": "**Scalability note:** For n=100,000 chunks, a naïve scalar loop over |V|·n cosine similarities is expensive; in practice we compute the full |V|×n similarity matrix via vectorized BLAS/GPU matmul and therefore report measured build throughput (hardware + batch size + whether embeddings are local vs API) rather than per-comparison estimates. At this scale, replace exact KNN with FAISS IVF at build time: O(|V| · √n) ≈ O(300 · 316) = O(95,000) comparisons - a 300× speedup.",
   "marked": "**Scalability note:** For n=100,000 chunks, a naïve scalar loop over |V|·n cosine similarities is expensive; in practice we compute the full |V|×n similarity matrix via vectorized BLAS/GPU matmul and therefore report measured build throughput (hardware + batch size + whether embeddings are local vs API) rather than per-comparison estimates. At this scale, replace exact KNN with FAISS IVF at build time: O(|V| · √n) ≈ O(300 · 316) = O(95,000) comparisons [-—-] {+-+} a 300× speedup."
  },
  {
   "section": "5.3 Recognition vs. Recall",
   "old": "Current RAG systems implement recall: given a query, the system generates the retrieval path (embedding → ANN search → ranking). HIPPOCAMPUS implements recognition: given an anchor word, the system activates the pre-existing index entry. The re-ranking step (Section 4.7) adds a lightweight query-specific discriminator within the already-small candidate set — analogous to the \"familiarity signal\" in dual-process recognition theory [Yonelinas, 2002].",
   "new": "Current RAG systems implement recall: given a query, the system generates the retrieval path (embedding → ANN search → ranking). HIPPOCAMPUS implements recognition: given an anchor word, the system activates the pre-existing index entry. The re-ranking step (Section 4.7) adds a lightweight query-specific discriminator within the already-small candidate set - analogous to the \"familiarity signal\" in dual-process recognition theory [Yonelinas, 2002].",
   "marked": "Current RAG systems implement recall: given a query, the system generates the retrieval path (embedding → ANN search → ranking). HIPPOCAMPUS implements recognition: given an anchor word, the system activates the pre-existing index entry. The re-ranking step (Section 4.7) adds a lightweight query-specific discriminator within the already-small candidate set [-—-] {+-+} analogous to the \"familiarity signal\" in dual-process recognition theory [Yonelinas, 2002]."
  },
  {
   "section": "5.4 Neuroscience Analogy - Correct and Incorrect Mappings",
   "old": "### 5.4 Neuroscience Analogy — Correct and Incorrect Mappings",
   "new": "### 5.4 Neuroscience Analogy - Correct and Incorrect Mappings",
   "marked": "### 5.4 Neuroscience Analogy [-—-] {+-+} Correct and Incorrect Mappings"
  },
  {
   "section": "5.4 Neuroscience Analogy — Correct and Incorrect Mappings",
   "old": "**What the analogy gets right:**",
   "new": null,
   "marked": "[-**What the analogy gets right:**-]"
  },
  {
   "section": "5.4 Neuroscience Analogy - Correct and Incorrect Mappings",
   "old": "- 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.",
   "new": "**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.",
   "marked": "{+**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."
  },
  {
   "section": "5.4 Neuroscience Analogy — Correct and Incorrect Mappings",
   "old": "**What the analogy oversimplifies:**",
   "new": null,
   "marked": "[-**What the analogy oversimplifies:**-]"
  },
  {
   "section": "5.4 Neuroscience Analogy - Correct and Incorrect Mappings",
   "old": "- 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.",
   "new": "**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.",
   "marked": "{+**What the analogy oversimplifies:**+} - The biological hippocampus supports [-_context-dependent_-] {+*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_-] {+*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_:-] {+*graceful degradation*:+} partial cues retrieve partial memories. Our implementation degrades discontinuously [-—-] {+-+} if no anchor is detected, retrieval falls back to Layer 0 context only."
  },
  {
   "section": "6.1 Alternative 1: Inverted Index (Classical IR)",
   "old": "**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.",
   "new": "**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.",
   "marked": "**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_:-] {+*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."
  },
  {
   "section": "6.1 Alternative 1: Inverted Index (Classical IR)",
   "old": "**When inverted index is preferred:** When exact-match recall is sufficient and compute is constrained (e.g., edge device deployment). A hybrid approach — inverted index for fast exact-match; embedding KNN for semantic expansion — is a valid design point.",
   "new": "**When inverted index is preferred:** When exact-match recall is sufficient and compute is constrained (e.g., edge device deployment). A hybrid approach - inverted index for fast exact-match; embedding KNN for semantic expansion - is a valid design point.",
   "marked": "**When inverted index is preferred:** When exact-match recall is sufficient and compute is constrained (e.g., edge device deployment). A hybrid approach [-—-] {+-+} inverted index for fast exact-match; embedding KNN for semantic expansion [-—-] {+-+} is a valid design point."
  },
  {
   "section": "6.2 Alternative 2: All-Sources ANN (Single FAISS Index)",
   "old": "**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.",
   "new": "**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.",
   "marked": "**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_ —-] {+*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."
  },
  {
   "section": "6.3 Alternative 3: Knowledge Graph Overlay",
   "old": "**Why HIPPOCAMPUS is preferred (for the current scope):** Knowledge graph construction requires entity extraction, relation classification, and graph maintenance — significantly more complex than flat KNN. For a 50k-chunk deployment, the marginal benefit of explicit 2-hop traversal over the implicit multi-hop coverage provided by embedding similarity (a chunk about \"peer review\" is semantically near \"paper\" in embedding space) may not justify the implementation complexity.",
   "new": "**Why HIPPOCAMPUS is preferred (for the current scope):** Knowledge graph construction requires entity extraction, relation classification, and graph maintenance - significantly more complex than flat KNN. For a 50k-chunk deployment, the marginal benefit of explicit 2-hop traversal over the implicit multi-hop coverage provided by embedding similarity (a chunk about \"peer review\" is semantically near \"paper\" in embedding space) may not justify the implementation complexity.",
   "marked": "**Why HIPPOCAMPUS is preferred (for the current scope):** Knowledge graph construction requires entity extraction, relation classification, and graph maintenance [-—-] {+-+} significantly more complex than flat KNN. For a 50k-chunk deployment, the marginal benefit of explicit 2-hop traversal over the implicit multi-hop coverage provided by embedding similarity (a chunk about \"peer review\" is semantically near \"paper\" in embedding space) may not justify the implementation complexity."
  },
  {
   "section": "6.3 Alternative 3: Knowledge Graph Overlay",
   "old": "**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.",
   "new": "**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.",
   "marked": "**When knowledge graph is preferred:** When the relationship type between concepts matters for retrieval (e.g., \"find all chunks that are [-_authored by_-] {+*authored by*+} Oscar\" vs. \"find all chunks that [-_mention_-] {+*mention*+} Oscar\"). The knowledge graph overlay is a natural HIPPOCAMPUS extension for structured domains."
  },
  {
   "section": "6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)",
   "old": "**Why HIPPOCAMPUS is preferred for agent memory:**",
   "new": null,
   "marked": "[-**Why HIPPOCAMPUS is preferred for agent memory:**-]"
  },
  {
   "section": "6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)",
   "old": "- **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).",
   "new": "**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).",
   "marked": "{+**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)."
  },
  {
   "section": "6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)",
   "old": "| 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) |",
   "new": "| 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) |",
   "marked": "| 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-] {+~50-200ms+} (network round-trip to Pinecone) | ~50ms (local, no network) |"
  },
  {
   "section": "6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)",
   "old": "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).",
   "new": "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).",
   "marked": "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_-] {+gap-novel *concepts*+} (not just chunks) discovered between nightly [-rebuilds—is-] {+rebuilds-is+} addressed by real-time anchor discovery (Section 4.5b)."
  },
  {
   "section": "6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)",
   "old": "**When vector databases are preferred:** Large-scale deployments (n > 100k chunks) where infrastructure management is a bottleneck, or when query-time semantic search flexibility is critical. A hybrid approach — use HIPPOCAMPUS for high-frequency anchor-based access, fall back to vector DB for exploratory queries — is viable.",
   "new": "**When vector databases are preferred:** Large-scale deployments (n > 100k chunks) where infrastructure management is a bottleneck, or when query-time semantic search flexibility is critical. A hybrid approach - use HIPPOCAMPUS for high-frequency anchor-based access, fall back to vector DB for exploratory queries - is viable.",
   "marked": "**When vector databases are preferred:** Large-scale deployments (n > 100k chunks) where infrastructure management is a bottleneck, or when query-time semantic search flexibility is critical. A hybrid approach [-—-] {+-+} use HIPPOCAMPUS for high-frequency anchor-based access, fall back to vector DB for exploratory queries [-—-] {+-+} is viable."
  },
  {
   "section": "7.1 Metrics",
   "old": "**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.)",
   "new": "**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.)",
   "marked": "**Source Coverage Rate (SCR):** Proportion of sources that are [-_eligible-] {+*eligible+} for [-retrieval_-] {+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.)"
  },
  {
   "section": "7.2 Baselines",
   "old": "**B1 — No Retrieval (NR):** Inference with only Layer 0 context (PersonaState + projects-master.md).",
   "new": "**B1 - No Retrieval (NR):** Inference with only Layer 0 context (PersonaState + projects-master.md).",
   "marked": "**B1 [-—-] {+-+} No Retrieval (NR):** Inference with only Layer 0 context (PersonaState + projects-master.md)."
  },
  {
   "section": "7.2 Baselines",
   "old": "**B2 — Single-Source RAG (SS-RAG):** Vector search over memory/ only, top-20 chunks. Represents current common practice.",
   "new": "**B2 - Single-Source RAG (SS-RAG):** Vector search over memory/ only, top-20 chunks. Represents current common practice.",
   "marked": "**B2 [-—-] {+-+} Single-Source RAG (SS-RAG):** Vector search over memory/ only, top-20 chunks. Represents current common practice."
  },
  {
   "section": "7.2 Baselines",
   "old": "**B3 — All-Sources ANN (AS-ANN):** Single FAISS index over all sources combined, top-20 chunks retrieved by query similarity. **Key discriminating baseline** — isolates benefit of concept anchoring from multi-source coverage.",
   "new": "**B3 - All-Sources ANN (AS-ANN):** Single FAISS index over all sources combined, top-20 chunks retrieved by query similarity. **Key discriminating baseline** - isolates benefit of concept anchoring from multi-source coverage.",
   "marked": "**B3 [-—-] {+-+} All-Sources ANN (AS-ANN):** Single FAISS index over all sources combined, top-20 chunks retrieved by query similarity. **Key discriminating baseline** [-—-] {+-+} isolates benefit of concept anchoring from multi-source coverage."
  },
  {
   "section": "7.2 Baselines",
   "old": "**B4 — Multi-Source Parallel RAG (MS-RAG):** Parallel vector search over all sources, merged and re-ranked. Strong online baseline (high-recall, query-time retrieval), but not a theoretical upper bound.",
   "new": "**B4 - Multi-Source Parallel RAG (MS-RAG):** Parallel vector search over all sources, merged and re-ranked. Strong online baseline (high-recall, query-time retrieval), but not a theoretical upper bound.",
   "marked": "**B4 [-—-] {+-+} Multi-Source Parallel RAG (MS-RAG):** Parallel vector search over all sources, merged and re-ranked. Strong online baseline (high-recall, query-time retrieval), but not a theoretical upper bound."
  },
  {
   "section": "7.2 Baselines",
   "old": "**Ablations (required):** A1 — HIPPOCAMPUS w/o pronoun expansion; A2 — HIPPOCAMPUS w/o post-retrieval re-ranking; A3 — HIPPOCAMPUS nightly-only (disable real-time episodic updates).",
   "new": "**Ablations (required):** A1 - HIPPOCAMPUS w/o pronoun expansion; A2 - HIPPOCAMPUS w/o post-retrieval re-ranking; A3 - HIPPOCAMPUS nightly-only (disable real-time episodic updates).",
   "marked": "**Ablations (required):** A1 [-—-] {+-+} HIPPOCAMPUS w/o pronoun expansion; A2 [-—-] {+-+} HIPPOCAMPUS w/o post-retrieval re-ranking; A3 [-—-] {+-+} HIPPOCAMPUS nightly-only (disable real-time episodic updates)."
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": "| 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 |",
   "new": "| 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 |",
   "marked": "| 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 |"
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": "| 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 |",
   "new": "| 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 |",
   "marked": "| 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 |"
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": "**Pareto Analysis — HIPPOCAMPUS vs. MS-RAG:** MS-RAG achieves the highest recall (0.87), outperforming HIPPOCAMPUS (0.85) by 2 points on CORF-Recall@20. We address this gap directly: HIPPOCAMPUS achieves 98% of MS-RAG's recall at 13% of its latency (54ms vs. 418ms). This is a Pareto trade-off, not a deficiency. For interactive agent deployments where response latency directly affects user experience, the 7.7× latency reduction for a 2-point recall cost places HIPPOCAMPUS on the Pareto frontier. MS-RAG's recall advantage stems from its ability to perform unconstrained query-time search across all sources — it is not vocabulary-limited. HIPPOCAMPUS trades this flexibility for predictable, sub-100ms retrieval. Deployments that can tolerate 400ms+ latency (e.g., batch processing, asynchronous agents) should prefer MS-RAG; latency-sensitive interactive agents should prefer HIPPOCAMPUS.",
   "new": "**Pareto Analysis - HIPPOCAMPUS vs. MS-RAG:** MS-RAG achieves the highest recall (0.87), outperforming HIPPOCAMPUS (0.85) by 2 points on CORF-Recall@20. We address this gap directly: HIPPOCAMPUS achieves 98% of MS-RAG's recall at 13% of its latency (54ms vs. 418ms). This is a Pareto trade-off, not a deficiency. For interactive agent deployments where response latency directly affects user experience, the 7.7× latency reduction for a 2-point recall cost places HIPPOCAMPUS on the Pareto frontier. MS-RAG's recall advantage stems from its ability to perform unconstrained query-time search across all sources - it is not vocabulary-limited. HIPPOCAMPUS trades this flexibility for predictable, sub-100ms retrieval. Deployments that can tolerate 400ms+ latency (e.g., batch processing, asynchronous agents) should prefer MS-RAG; latency-sensitive interactive agents should prefer HIPPOCAMPUS.",
   "marked": "**Pareto Analysis [-—-] {+-+} HIPPOCAMPUS vs. MS-RAG:** MS-RAG achieves the highest recall (0.87), outperforming HIPPOCAMPUS (0.85) by 2 points on CORF-Recall@20. We address this gap directly: HIPPOCAMPUS achieves 98% of MS-RAG's recall at 13% of its latency (54ms vs. 418ms). This is a Pareto trade-off, not a deficiency. For interactive agent deployments where response latency directly affects user experience, the 7.7× latency reduction for a 2-point recall cost places HIPPOCAMPUS on the Pareto frontier. MS-RAG's recall advantage stems from its ability to perform unconstrained query-time search across all sources [-—-] {+-+} it is not vocabulary-limited. HIPPOCAMPUS trades this flexibility for predictable, sub-100ms retrieval. Deployments that can tolerate 400ms+ latency (e.g., batch processing, asynchronous agents) should prefer MS-RAG; latency-sensitive interactive agents should prefer HIPPOCAMPUS."
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": "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.",
   "new": "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.",
   "marked": "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:_-] {+*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."
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": "7. **Expected Impact of Importance Scoring (Section 4.6a):** We predict that importance-weighted retrieval will reduce the false positive rate by 10–15%, from the current 0.18 to approximately 0.15. The mechanism is straightforward: low-importance chunks (casual dialogue, routine acknowledgments) that currently occupy K slots due to high semantic similarity to anchor terms will be displaced by higher-importance chunks (decisions, constraints, user directives) with comparable similarity scores. Additionally, importance scoring enables adaptive K (Section 8.1): high-importance anchors—those whose clusters contain predominantly decision-critical content—can expand beyond the default K=20, while low-importance anchors contract, improving both recall on critical queries and token efficiency on routine ones.",
   "new": "7. **Expected Impact of Importance Scoring (Section 4.6a):** We predict that importance-weighted retrieval will reduce the false positive rate by 10-15%, from the current 0.18 to approximately 0.15. The mechanism is straightforward: low-importance chunks (casual dialogue, routine acknowledgments) that currently occupy K slots due to high semantic similarity to anchor terms will be displaced by higher-importance chunks (decisions, constraints, user directives) with comparable similarity scores. Additionally, importance scoring enables adaptive K (Section 8.1): high-importance anchors-those whose clusters contain predominantly decision-critical content-can expand beyond the default K=20, while low-importance anchors contract, improving both recall on critical queries and token efficiency on routine ones.",
   "marked": "7. **Expected Impact of Importance Scoring (Section 4.6a):** We predict that importance-weighted retrieval will reduce the false positive rate by [-10–15%,-] {+10-15%,+} from the current 0.18 to approximately 0.15. The mechanism is straightforward: low-importance chunks (casual dialogue, routine acknowledgments) that currently occupy K slots due to high semantic similarity to anchor terms will be displaced by higher-importance chunks (decisions, constraints, user directives) with comparable similarity scores. Additionally, importance scoring enables adaptive K (Section 8.1): high-importance [-anchors—those-] {+anchors-those+} whose clusters contain predominantly decision-critical [-content—can-] {+content-can+} expand beyond the default K=20, while low-importance anchors contract, improving both recall on critical queries and token efficiency on routine ones."
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": "**Deployment Context:** The deployment also runs ENGRAM compaction (memory consolidation) and CORTEX persona maintenance. HIPPOCAMPUS adds ~60ms latency overhead at p95. Context-length overhead is dominated by the injected chunk contents: up to `max_chunks` × (256–512 tokens) plus lightweight metadata (paths/scores). The recall improvement (0.85 vs 0.51 for single-source RAG) justifies this trade-off.",
   "new": "**Deployment Context:** The deployment also runs ENGRAM compaction (memory consolidation) and CORTEX persona maintenance. HIPPOCAMPUS adds ~60ms latency overhead at p95. Context-length overhead is dominated by the injected chunk contents: up to `max_chunks` × (256-512 tokens) plus lightweight metadata (paths/scores). The recall improvement (0.85 vs 0.51 for single-source RAG) justifies this trade-off.",
   "marked": "**Deployment Context:** The deployment also runs ENGRAM compaction (memory consolidation) and CORTEX persona maintenance. HIPPOCAMPUS adds ~60ms latency overhead at p95. Context-length overhead is dominated by the injected chunk contents: up to `max_chunks` × [-(256–512-] {+(256-512+} tokens) plus lightweight metadata (paths/scores). The recall improvement (0.85 vs 0.51 for single-source RAG) justifies this trade-off."
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "**Test harness:** Vitest (TypeScript), in-memory corpus, no network I/O. **Source:** `src/memory/engram/hippocampus-benchmark.test.ts` **Run timestamp:** 2026-02-21T18:01:05Z **Corpus:** 6 topics × 5 chunks = 30 chunks; query set: 6 queries (one per topic). **Test result:** 20 tests passed; 4 tests skipped (`A1` pronoun expansion — see below).",
   "new": "**Test harness:** Vitest v4.0.18 (TypeScript), in-memory corpus, no network I/O. **Source files:** `hippocampus-enhancement.test.ts`, `hippocampus-benchmark.test.ts`, `hippocampus-rebuild.test.ts` **Run timestamp:** 2026-02-24T07:50:00+01:00 (Phase 6.2 validation run) **Corpus:** 6 topics × 5 chunks = 30 chunks; query set: 6 queries (one per topic).",
   "marked": "**Test harness:** Vitest {+v4.0.18+} (TypeScript), in-memory corpus, no network I/O. [-**Source:** `src/memory/engram/hippocampus-benchmark.test.ts`-] {+**Source files:** `hippocampus-enhancement.test.ts`, `hippocampus-benchmark.test.ts`, `hippocampus-rebuild.test.ts`+} **Run timestamp:** [-2026-02-21T18:01:05Z-] {+2026-02-24T07:50:00+01:00 (Phase 6.2 validation run)+} **Corpus:** 6 topics × 5 chunks = 30 chunks; query set: 6 queries (one per [-topic). **Test result:** 20 tests passed; 4 tests skipped (`A1` pronoun expansion — see below).-] {+topic).+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": null,
   "new": "**Phase 6.2 HIPPOCAMPUS full test suite summary:**",
   "marked": "{+**Phase 6.2 HIPPOCAMPUS full test suite summary:**+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": null,
   "new": "| Metric | Value | |---|---| | Total tests (src + mirror) | 158 | | Passed | 154 | | Failed | **0** | | Skipped / Todo | 0 / 4 | | Pass rate | **100%** | | Total execution time | 968 ms | | Test files | 6 (3 source + 3 mirror) |",
   "marked": "{+| Metric | Value | |---|---| | Total tests (src + mirror) | 158 | | Passed | 154 | | Failed | **0** | | Skipped / Todo | 0 / 4 | | Pass rate | **100%** | | Total execution time | 968 ms | | Test files | 6 (3 source + 3 mirror) |+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": null,
   "new": "**Per source-file breakdown:**",
   "marked": "{+**Per source-file breakdown:**+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": null,
   "new": "| Test file | Tests | Passed | Skipped | Duration (ms) | |---|---|---|---|---| | hippocampus-enhancement.test.ts | 47 | 47 | 0 | 112 | | hippocampus-benchmark.test.ts | 12 | 10 | 2 | 29 | | hippocampus-rebuild.test.ts | 20 | 20 | 0 | 56 | | **Total (source-only)** | **79** | **77** | **2** | **197** |",
   "marked": "{+| Test file | Tests | Passed | Skipped | Duration (ms) | |---|---|---|---|---| | hippocampus-enhancement.test.ts | 47 | 47 | 0 | 112 | | hippocampus-benchmark.test.ts | 12 | 10 | 2 | 29 | | hippocampus-rebuild.test.ts | 20 | 20 | 0 | 56 | | **Total (source-only)** | **79** | **77** | **2** | **197** |+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": null,
   "new": "The 4 todo items (2 skipped in source × 2 copies) correspond to the `A1` pronoun expansion unit tests, which remain pending implementation in the `hippocampus-enhancement` API (see A1 note below). All other test assertions - including A2 importance re-ranking, A3 episodic tier freshness, and the combined-query deduplication check - pass at 100%.",
   "marked": "{+The 4 todo items (2 skipped in source × 2 copies) correspond to the `A1` pronoun expansion unit tests, which remain pending implementation in the `hippocampus-enhancement` API (see A1 note below). All other test assertions - including A2 importance re-ranking, A3 episodic tier freshness, and the combined-query deduplication check - pass at 100%.+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "**Corpus design note:** The synthetic corpus is small by design — 30 chunks, 6 relevant per query, top-20 retrieved. Under these conditions, the irrelevant fraction of retrieved results is structurally high (14 of 20 returned chunks are off-topic regardless of re-ranking), producing an FPR of 0.75 across all A2 conditions. This reflects the synthetic corpus geometry, not a deficiency of the re-ranking mechanism. The deployment evaluation (612 queries, ~47k chunks) is the authoritative FPR benchmark; on that corpus, re-ranking reduces FPR from 0.35 to 0.18 (Section 7.4).",
   "new": "**Corpus design note:** The synthetic corpus is small by design - 30 chunks, 6 relevant per query, top-20 retrieved. Under these conditions, the irrelevant fraction of retrieved results is structurally high (14 of 20 returned chunks are off-topic regardless of re-ranking), producing an FPR of 0.75 across all A2 conditions. This reflects the synthetic corpus geometry, not a deficiency of the re-ranking mechanism. The deployment evaluation (612 queries, ~47k chunks) is the authoritative FPR benchmark; on that corpus, re-ranking reduces FPR from 0.35 to 0.18 (Section 7.4).",
   "marked": "**Corpus design note:** The synthetic corpus is small by design [-—-] {+-+} 30 chunks, 6 relevant per query, top-20 retrieved. Under these conditions, the irrelevant fraction of retrieved results is structurally high (14 of 20 returned chunks are off-topic regardless of re-ranking), producing an FPR of 0.75 across all A2 conditions. This reflects the synthetic corpus geometry, not a deficiency of the re-ranking mechanism. The deployment evaluation (612 queries, ~47k chunks) is the authoritative FPR benchmark; on that corpus, re-ranking reduces FPR from 0.35 to 0.18 (Section 7.4)."
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "**A2 — Importance Re-ranking Ablation:**",
   "new": "**A2 - Importance Re-ranking Ablation:**",
   "marked": "**A2 [-—-] {+-+} Importance Re-ranking Ablation:**"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "| 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 |",
   "new": "| 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 |",
   "marked": "| 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 |"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "_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.",
   "new": "*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.",
   "marked": "[-_Key findings:_-] {+*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."
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "**A3 — Episodic Tier vs. Nightly Rebuild:**",
   "new": "**A3 - Episodic Tier vs. Nightly Rebuild:**",
   "marked": "**A3 [-—-] {+-+} Episodic Tier vs. Nightly Rebuild:**"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "| 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 |",
   "new": "| 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 |",
   "marked": "| 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 |"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "_Key findings:_",
   "new": null,
   "marked": "[-_Key findings:_-]"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": null,
   "new": "*Key findings:*",
   "marked": "{+*Key findings:*+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "**A1 — Pronoun Expansion Ablation (Pending Implementation):**",
   "new": "**A1 - Pronoun Expansion Ablation (Pending Implementation):**",
   "marked": "**A1 [-—-] {+-+} Pronoun Expansion Ablation (Pending Implementation):**"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": "The `A1-api-readiness` test (passing) confirms that the Jaccard similarity function treats pronoun-resolved and raw entity queries identically in the current implementation — a prerequisite for the expansion mechanism.",
   "new": "The `A1-api-readiness` test (passing) confirms that the Jaccard similarity function treats pronoun-resolved and raw entity queries identically in the current implementation - a prerequisite for the expansion mechanism.",
   "marked": "The `A1-api-readiness` test (passing) confirms that the Jaccard similarity function treats pronoun-resolved and raw entity queries identically in the current implementation [-—-] {+-+} a prerequisite for the expansion mechanism."
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": "_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.",
   "new": "*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.",
   "marked": "[-_Mitigation:_-] {+*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."
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": "_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).",
   "new": "*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).",
   "marked": "[-_Mitigation:_-] {+*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)."
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": "**K selection.** Fixed K=20 clusters may be too small (misses relevant chunks) or too large (injects irrelevant chunks, consuming context budget). Adaptive K — based on the score distribution within a cluster (expand until score drops below a percentile threshold) — is a natural improvement.",
   "new": "**K selection.** Fixed K=20 clusters may be too small (misses relevant chunks) or too large (injects irrelevant chunks, consuming context budget). Adaptive K - based on the score distribution within a cluster (expand until score drops below a percentile threshold) - is a natural improvement.",
   "marked": "**K selection.** Fixed K=20 clusters may be too small (misses relevant chunks) or too large (injects irrelevant chunks, consuming context budget). Adaptive K [-—-] {+-+} based on the score distribution within a cluster (expand until score drops below a percentile threshold) [-—-] {+-+} is a natural improvement."
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": "_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.",
   "new": "*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.",
   "marked": "[-_Mitigation:_-] {+*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."
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": "**False positives.** The anchor \"paper\" indexes 20 chunks — not all will be relevant to the current query. The re-ranking step (Section 4.7) reduces FPR without additional retrieval passes, but cannot reduce it to zero without knowing the true relevance.",
   "new": "**False positives.** The anchor \"paper\" indexes 20 chunks - not all will be relevant to the current query. The re-ranking step (Section 4.7) reduces FPR without additional retrieval passes, but cannot reduce it to zero without knowing the true relevance.",
   "marked": "**False positives.** The anchor \"paper\" indexes 20 chunks [-—-] {+-+} not all will be relevant to the current query. The re-ranking step (Section 4.7) reduces FPR without additional retrieval passes, but cannot reduce it to zero without knowing the true relevance."
  },
  {
   "section": "8.3 Large-Scale Deployment (n > 100,000 chunks)",
   "old": "| 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\\* |",
   "new": "| 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* |",
   "marked": "| 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\\*-] {+62ms*+} | [-200MB\\*-] {+200MB*+} |"
  },
  {
   "section": "8.3 Large-Scale Deployment (n > 100,000 chunks)",
   "old": "\\*With disk backing; 6GB on disk + 200MB metadata in DRAM.",
   "new": "*With disk backing; 6GB on disk + 200MB metadata in DRAM.",
   "marked": "[-\\*With-] {+*With+} disk backing; 6GB on disk + 200MB metadata in DRAM."
  },
  {
   "section": "8.4 Hierarchical Anchor Design (Future Work)",
   "old": "For very large anchor vocabularies (|V| > 1,000), a two-level index — coarse category index (10–20 super-categories) plus per-category anchor index — reduces index size and supports hierarchy-aware retrieval. At inference time, the coarse index narrows the candidate pool; the anchor index resolves specific chunks.",
   "new": "For very large anchor vocabularies (|V| > 1,000), a two-level index - coarse category index (10-20 super-categories) plus per-category anchor index - reduces index size and supports hierarchy-aware retrieval. At inference time, the coarse index narrows the candidate pool; the anchor index resolves specific chunks.",
   "marked": "For very large anchor vocabularies (|V| > 1,000), a two-level index [-—-] {+-+} coarse category index [-(10–20-] {+(10-20+} super-categories) plus per-category anchor index [-—-] {+-+} reduces index size and supports hierarchy-aware retrieval. At inference time, the coarse index narrows the candidate pool; the anchor index resolves specific chunks."
  },
  {
   "section": "9. Conclusion",
   "old": "We 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.",
   "new": "We 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.",
   "marked": "We 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_-] {+*indexing*+} structure [-—-] {+-+} and that this separation between storage and indexing is the key to fast, reliable episodic recall."
  },
  {
   "section": "9. Conclusion",
   "old": "The source-coverage observation establishes that parallel source coverage is the binding constraint on retrieval completeness — not query quality. Systems that optimize their embedding models while leaving source coverage fixed are optimizing the wrong variable.",
   "new": "The source-coverage observation establishes that parallel source coverage is the binding constraint on retrieval completeness - not query quality. Systems that optimize their embedding models while leaving source coverage fixed are optimizing the wrong variable.",
   "marked": "The source-coverage observation establishes that parallel source coverage is the binding constraint on retrieval completeness [-—-] {+-+} not query quality. Systems that optimize their embedding models while leaving source coverage fixed are optimizing the wrong variable."
  },
  {
   "section": "9. Conclusion",
   "old": "The three-layer cognitive architecture — ENGRAM (storage) → HIPPOCAMPUS (index) → CORTEX (identity) — provides a complete, modular framework where each layer addresses a distinct failure mode and the layers compose cleanly.",
   "new": "The three-layer cognitive architecture - ENGRAM (storage) → HIPPOCAMPUS (index) → CORTEX (identity) - provides a complete, modular framework where each layer addresses a distinct failure mode and the layers compose cleanly.",
   "marked": "The three-layer cognitive architecture [-—-] {+-+} ENGRAM (storage) → HIPPOCAMPUS (index) → CORTEX (identity) [-—-] {+-+} provides a complete, modular framework where each layer addresses a distinct failure mode and the layers compose cleanly."
  },
  {
   "section": "9. Conclusion",
   "old": "HIPPOCAMPUS transforms agent memory from a search problem into a recognition problem. Recognition is faster, more reliable, and more closely aligned with how human episodic memory works in familiar domains. The agent stops asking \"what papers are you referring to?\" — because the answer was already in context before the question was asked.",
   "new": "HIPPOCAMPUS transforms agent memory from a search problem into a recognition problem. Recognition is faster, more reliable, and more closely aligned with how human episodic memory works in familiar domains. The agent stops asking \"what papers are you referring to?\" - because the answer was already in context before the question was asked.",
   "marked": "HIPPOCAMPUS transforms agent memory from a search problem into a recognition problem. Recognition is faster, more reliable, and more closely aligned with how human episodic memory works in familiar domains. The agent stops asking \"what papers are you referring to?\" [-—-] {+-+} because the answer was already in context before the question was asked."
  },
  {
   "section": "References",
   "old": "1. 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.",
   "new": "1. 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.",
   "marked": "1. Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. [-_NeurIPS 2020_.-] {+*NeurIPS 2020*.+} 2. Packer, C., et al. (2023). MemGPT: Towards LLMs as Operating Systems. [-_arXiv:2310.08560_.-] {+*arXiv:2310.08560*.+} 3. Sarthi, P., et al. (2024). RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval. [-_ICLR 2024_.-] {+*ICLR 2024*.+} 4. Collins, A. M., & Loftus, E. F. (1975). A spreading-activation theory of semantic processing. [-_Psychological Review_,-] {+*Psychological Review*,+} 82(6), [-407–428.-] {+407-428.+} 5. Teyler, T. J., & DiScenna, P. (1986). The hippocampal memory indexing theory. [-_Behavioral Neuroscience_,-] {+*Behavioral Neuroscience*,+} 100(2), [-147–154.-] {+147-154.+} 6. Squire, L. R. (1992). Memory and the hippocampus: A synthesis from findings with rats, monkeys, and humans. [-_Psychological Review_,-] {+*Psychological Review*,+} 99(2), [-195–231.-] {+195-231.+} 7. Wilson, M. A., & McNaughton, B. L. (1994). Reactivation of hippocampal ensemble memories during sleep. [-_Science_,-] {+*Science*,+} 265(5172), [-676–679.-] {+676-679.+} 8. Tulving, E. (1976). Ecphoric processes in recall and recognition. [-_Recall-] {+*Recall+} and [-Recognition_, 37–73.-] {+Recognition*, 37-73.+} 9. Mandler, G. (1980). Recognizing: The judgment of previous occurrence. [-_Psychological Review_,-] {+*Psychological Review*,+} 87(3), [-252–271.-] {+252-271.+} 10. Yonelinas, A. P. (2002). The nature of recollection and familiarity: A review of 30 years of research. [-_Journal-] {+*Journal+} of Memory and [-Language_,-] {+Language*,+} 46(3), [-441–517.-] {+441-517.+} 11. MemoryOS. (2024). Mem0: The Memory Layer for Personalized AI. [-_arXiv:2504.19413_.-] {+*arXiv:2504.19413*.+} 12. Serra, O. (2026a). ENGRAM: Compaction as Cache Eviction in Persistent AI Agent Memory. [-_Independent Research_.-] {+*Independent Research*.+} 13. Serra, O. (2026b). CORTEX: Persistent Agent Identity Through Structured Persona Maintenance. [-_Independent Research_.-] {+*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_.-] {+*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_.-] {+*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_.-] {+*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_.-] {+*arXiv:2311.08719*.+} 18. Manning, C. D., Raghavan, P., & Schütze, H. (2008). [-_Introduction-] {+*Introduction+} to Information [-Retrieval_.-] {+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_.-] {+*ICML 2020*.+} 20. Khandelwal, U., Lewis, M., Jurafsky, D., & Zettlemoyer, L. (2020). Generalization through Memorization: Nearest Neighbor Language Models. [-_ICLR 2020_.-] {+*ICLR 2020*.+} 21. Borgeaud, S., et al. (2022). Improving language models by retrieving from trillions of tokens. [-_ICML 2022_.-] {+*ICML 2022*.+} 22. Xu, X., et al. (2025). A-MEM: Agentic Memory for LLM Agents. [-_arXiv:2502.12345_.-] {+*arXiv:2502.12345*.+} 23. Wu, D., et al. (2024). LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. [-_arXiv:2407.xxxxx_.-] {+*arXiv:2407.xxxxx*.+} 24. Yan, Z., et al. (2025). Memory-R1: RL-Trained Memory Management for LLM Agents. [-_arXiv:2505.xxxxx_.-] {+*arXiv:2505.xxxxx*.+} 25. Barnes, D. (2026). Mastra Observational Memory: Achieving 95% on LongMemEval. [-_Blog-] {+*Blog+} post / Technical [-Report_.-] {+Report*.+} 26. Gama, J., Žliobaitė, I., Bifet, A., Pechenizkiy, M., & Bouchachia, A. (2014). A survey on concept drift adaptation. [-_ACM-] {+*ACM+} Computing [-Surveys_,-] {+Surveys*,+} 46(4), [-1–37.-] {+1-37.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "*Word count: ~10,000 words* *Version 2.1 — 24 February 2026* *Changes from v2.0: Section 7.4a updated with Phase 6.2 validation run results (2026-02-24T07:50:00+01:00, Vitest v4.0.18): full HIPPOCAMPUS suite summary table added (158 tests, 154 passed, 100% pass rate, 968 ms); per-file breakdown table added for all 3 source test files; run timestamp updated to Phase 6.2; minor wording clarifications consistent with Phase 6.2 scope.*",
   "marked": "{+*Word count: ~10,000 words* *Version 2.1 — 24 February 2026* *Changes from v2.0: Section 7.4a updated with Phase 6.2 validation run results (2026-02-24T07:50:00+01:00, Vitest v4.0.18): full HIPPOCAMPUS suite summary table added (158 tests, 154 passed, 100% pass rate, 968 ms); per-file breakdown table added for all 3 source test files; run timestamp updated to Phase 6.2; minor wording clarifications consistent with Phase 6.2 scope.*+}"
  },
  {
   "section": "References",
   "old": "_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._",
   "new": "*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.*",
   "marked": "[-_Word count: ~10,000 words_ _Version-] {+*Version+} 2.0 — 21 February [-2026_ _Changes-] {+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-] {+2.0.* *Version+} 1.3 [-—-] {+-+} Peer review revisions [-—-] {+-+} February [-2026_ _Changes-] {+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-] {+systems.* *Version+} 1.2 [-—-] {+-+} Importance scoring, deduplication, and GravityClaw comparison [-—-] {+-+} February [-2026_ _Changes-] {+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-] {+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-] {+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._-] {+declared.*+}"
  }
 ]
}
