{
 "paper": "instant-recall",
 "a": "4.0",
 "b": "5.0",
 "summary": "From v4.0 (24 Feb) to v5.0 (9 Mar): 4,520 words to 9,101 words, 4,602 words in new or rewritten paragraphs and 21 taken out, 124 paragraphs changed.",
 "note": {
  "title": "A fifth failure: the agent contradicts its own notes",
  "kind": "revision",
  "body": "## Summary\n\nThe paper doubles in length to add a fifth failure: the agent wrote something correct in its own notes and then acts against it. The footer says a real case on 9 March 2026 prompted it: the agent missed a same-day note that a meeting had been postponed.\n\n- New failure mode, Self-Contradiction Failure, with an estimate of how often it hits actions that write (calendar, mail, tasks).\n- Three new parts to prevent it: today's notes always loaded into the turn; searches built from the people and things named in the request; and a check before any write action that looks for notes contradicting it.\n- A related-work section on self-contradiction in AI systems.\n- Expected results for the new parts are given as projections and marked theoretical.\n- A note added in April says the main retrieval code has since moved into the companion paper J14's system.",
  "source": "change note"
 },
 "paragraphs_changed": 124,
 "changes": [
  {
   "section": "HIPPOCAMPUS: A Pre-Computed Concept Index for O(1) Memory Retrieval in Persistent AI Agents",
   "old": "**Oscar Serra¹** ¹Independent Research *Version 4.0 - 24 February 2026*",
   "new": "**Oscar Serra¹** ¹Independent Research *Version 5.0 - 9 March 2026*",
   "marked": "**Oscar Serra¹** ¹Independent Research *Version [-4.0-] {+5.0+} - [-24 February-] {+9 March+} 2026*"
  },
  {
   "section": "Abstract",
   "old": "Persistent AI agents accumulate long-term memory across sessions, but current retrieval architectures fail to leverage this history at inference time. We identify and formally define **Contextual Ownership Retrieval Failure (CORF)**: the agent cannot retrieve memories it demonstrably owns, because the retrieval mechanism is query-constrained, source-limited, and executed at inference cost. We characterize four failure modes and provide empirical frequency estimates from eighteen months of real deployment logs.",
   "new": "Persistent AI agents accumulate long-term memory across sessions, but current retrieval architectures fail to leverage this history at inference time. We identify and formally define **Contextual Ownership Retrieval Failure (CORF)**: the agent cannot retrieve memories it demonstrably owns, because the retrieval mechanism is query-constrained, source-limited, and executed at inference cost. We characterize **five failure modes** and provide empirical frequency estimates from eighteen months of real deployment logs. A newly discovered fifth mode — **Self-Contradiction Failure (SCF)** — is reported here for the first time: the agent has *written* correct information in its own daily logs or memory files but fails to retrieve it before taking an action that contradicts its own notes. SCF is distinct from Modes 1–4 in that the missing memory is not someone else's content but the agent's own recent self-written state.",
   "marked": "Persistent AI agents accumulate long-term memory across sessions, but current retrieval architectures fail to leverage this history at inference time. We identify and formally define **Contextual Ownership Retrieval Failure (CORF)**: the agent cannot retrieve memories it demonstrably owns, because the retrieval mechanism is query-constrained, source-limited, and executed at inference cost. We characterize [-four-] {+**five+} failure [-modes-] {+modes**+} and provide empirical frequency estimates from eighteen months of real deployment [-logs.-] {+logs. A newly discovered fifth mode — **Self-Contradiction Failure (SCF)** — is reported here for the first time: the agent has *written* correct information in its own daily logs or memory files but fails to retrieve it before taking an action that contradicts its own notes. SCF is distinct from Modes 1–4 in that the missing memory is not someone else's content but the agent's own recent self-written state.+}"
  },
  {
   "section": "Abstract",
   "old": null,
   "new": "Version 5.0 introduces three architectural components to address SCF: (1) a **Daily Log Hot Cache (Tier 0)** that unconditionally injects today's self-written log into every turn's context, eliminating SCF for current-day notes; (2) **Structured Query Extraction** that replaces generic FTS queries with entity-aware extraction, generating per-entity FTS queries merged with MMR deduplication; and (3) a **Pre-Action Contradiction Gate** that, before any write-class action (calendar, email, task management), performs a targeted memory search for the entities being acted upon and surfaces any state contradictions before execution — analogous to a pre-commit hook in version control.",
   "marked": "{+Version 5.0 introduces three architectural components to address SCF: (1) a **Daily Log Hot Cache (Tier 0)** that unconditionally injects today's self-written log into every turn's context, eliminating SCF for current-day notes; (2) **Structured Query Extraction** that replaces generic FTS queries with entity-aware extraction, generating per-entity FTS queries merged with MMR deduplication; and (3) a **Pre-Action Contradiction Gate** that, before any write-class action (calendar, email, task management), performs a targeted memory search for the entities being acted upon and surfaces any state contradictions before execution — analogous to a pre-commit hook in version control.+}"
  },
  {
   "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) importance scoring with weighted retrieval, deduplication via similarity check, and an episodic tier for same-day freshness; (4) a design-space comparison against inverted index, all-sources ANN, and knowledge-graph overlays; (5) an annotated CORF benchmark derived from deployment logs and an all-sources ANN baseline that isolates the value of concept anchoring. The Phase 6.2 validation suite confirms implementation correctness: 158 tests (154 passed, 4 todo), 0 failures, 968 ms across 6 test files. The production TypeScript implementation spans 6 source files and 2,286 LOC (§8a).",
   "new": "Key contributions: (1) a CORF taxonomy (now five modes) 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) importance scoring with weighted retrieval, deduplication via similarity check, and an episodic tier for same-day freshness; (4) a design-space comparison against inverted index, all-sources ANN, and knowledge-graph overlays; (5) an annotated CORF benchmark derived from deployment logs and an all-sources ANN baseline that isolates the value of concept anchoring; (6) three new SCF-mitigation components (Tier 0 Hot Cache, Structured Query Extraction, Pre-Action Contradiction Gate) with projected theoretical results. The Phase 6.2 validation suite confirms implementation correctness: 158 tests (154 passed, 4 todo), 0 failures, 968 ms across 6 test files. The production TypeScript implementation spans 6 source files and 2,286 LOC, with three additional planned source files (§8a).",
   "marked": "Key contributions: (1) a CORF taxonomy {+(now five modes)+} 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) importance scoring with weighted retrieval, deduplication via similarity check, and an episodic tier for same-day freshness; (4) a design-space comparison against inverted index, all-sources ANN, and knowledge-graph overlays; (5) an annotated CORF benchmark derived from deployment logs and an all-sources ANN baseline that isolates the value of concept [-anchoring.-] {+anchoring; (6) three new SCF-mitigation components (Tier 0 Hot Cache, Structured Query Extraction, Pre-Action Contradiction Gate) with projected theoretical results.+} The Phase 6.2 validation suite confirms implementation correctness: 158 tests (154 passed, 4 todo), 0 failures, 968 ms across 6 test files. The production TypeScript implementation spans 6 source files and 2,286 [-LOC-] {+LOC, with three additional planned source files+} (§8a)."
  },
  {
   "section": "Abstract",
   "old": "**Keywords:** AI agent memory, episodic retrieval, cognitive architectures, RAG, hippocampal indexing, context management, sleep consolidation, CORF",
   "new": "**Keywords:** AI agent memory, episodic retrieval, cognitive architectures, RAG, hippocampal indexing, context management, sleep consolidation, CORF, self-contradiction failure, entity extraction, contradiction detection",
   "marked": "**Keywords:** AI agent memory, episodic retrieval, cognitive architectures, RAG, hippocampal indexing, context management, sleep consolidation, [-CORF-] {+CORF, self-contradiction failure, entity extraction, contradiction detection+}"
  },
  {
   "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 two concrete scenarios. The first is the canonical CORF 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?\"* 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": "Consider [-a-] {+two+} concrete [-scenario. An-] {+scenarios. The first is the canonical CORF 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?\"*-] {+to?\"* 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.+}"
  },
  {
   "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": null,
   "marked": "[-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.-]"
  },
  {
   "section": "1. Introduction",
   "old": null,
   "new": "The second scenario was discovered in production on 2026-03-09. The HIPPOCAMPUS system was live with a retrieval pack injecting ~16K characters per turn from an 878K-event FTS5 corpus. Despite this substantial retrieval budget, the agent flagged a calendar conflict for a meeting it had **already noted as postponed** in its own daily log earlier that same day. The agent contradicted itself. It wrote the correct state; it failed to retrieve it. The retrieval pack had searched on a generic \"recent conversation\" query rather than extracting the specific named entities from the user message — the meeting name, the date, the people involved. None of those entities surfaced the daily log entry that contained the postponement note.",
   "marked": "{+The second scenario was discovered in production on 2026-03-09. The HIPPOCAMPUS system was live with a retrieval pack injecting ~16K characters per turn from an 878K-event FTS5 corpus. Despite this substantial retrieval budget, the agent flagged a calendar conflict for a meeting it had **already noted as postponed** in its own daily log earlier that same day. The agent contradicted itself. It wrote the correct state; it failed to retrieve it. The retrieval pack had searched on a generic \"recent conversation\" query rather than extracting the specific named entities from the user message — the meeting name, the date, the people involved. None of those entities surfaced the daily log entry that contained the postponement note.+}"
  },
  {
   "section": "1. Introduction",
   "old": null,
   "new": "We call this second failure **Self-Contradiction Failure (SCF)**, and designate it CORF Mode 5. It is qualitatively distinct from Modes 1–4: SCF occurs when the agent's own *self-written* recent notes are not retrieved, causing the agent to act against state it explicitly recorded. A retrieval system that saturates source coverage (Mode 3), handles pronouns (Mode 1), traverses associative chains (Mode 2), and covers all anchor terms (Mode 4) can still exhibit SCF if it uses generic rather than entity-specific queries.",
   "marked": "{+We call this second failure **Self-Contradiction Failure (SCF)**, and designate it CORF Mode 5. It is qualitatively distinct from Modes 1–4: SCF occurs when the agent's own *self-written* recent notes are not retrieved, causing the agent to act against state it explicitly recorded. A retrieval system that saturates source coverage (Mode 3), handles pronouns (Mode 1), traverses associative chains (Mode 2), and covers all anchor terms (Mode 4) can still exhibit SCF if it uses generic rather than entity-specific queries.+}"
  },
  {
   "section": "1. Introduction",
   "old": "We call this failure mode **Contextual Ownership Retrieval Failure (CORF)**. 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)**. We argue CORF is endemic to current agent memory architectures and propose a solution that addresses all five of its underlying failure modes.",
   "marked": "We call this failure mode **Contextual Ownership Retrieval Failure (CORF)**. We argue CORF is endemic to current agent memory architectures and propose a solution that addresses all [-four-] {+five+} of its underlying failure modes."
  },
  {
   "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. **Importance scoring** — weighted retrieval prioritizing decisions, entities, and user-engaged content. 4. **Deduplication via similarity check** — prevents index bloat from recurring logs. 5. **Post-retrieval re-ranking** — reduces false positive injection. 6. **Design space analysis** — explicit comparison against inverted index, all-sources ANN, and knowledge graph alternatives. 7. **Evaluation protocol + artifacts** — metrics, baselines, and an annotated CORF dataset from deployment logs.",
   "new": "1. **Formal CORF definition and taxonomy** — five 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. **Importance scoring** — weighted retrieval prioritizing decisions, entities, and user-engaged content. 4. **Deduplication via similarity check** — prevents index bloat from recurring logs. 5. **Post-retrieval re-ranking** — reduces false positive injection. 6. **Design space analysis** — explicit comparison against inverted index, all-sources ANN, and knowledge graph alternatives. 7. **Evaluation protocol + artifacts** — metrics, baselines, and an annotated CORF dataset from deployment logs. 8. **SCF mitigation architecture** — three new components (Tier 0 Hot Cache, Structured Query Extraction, Pre-Action Contradiction Gate) with projected theoretical results targeting SCF elimination on write-class actions.",
   "marked": "1. **Formal CORF definition and taxonomy** — [-four-] {+five+} 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. **Importance scoring** — weighted retrieval prioritizing decisions, entities, and user-engaged content. 4. **Deduplication via similarity check** — prevents index bloat from recurring logs. 5. **Post-retrieval re-ranking** — reduces false positive injection. 6. **Design space analysis** — explicit comparison against inverted index, all-sources ANN, and knowledge graph alternatives. 7. **Evaluation protocol + artifacts** — metrics, baselines, and an annotated CORF dataset from deployment [-logs.-] {+logs. 8. **SCF mitigation architecture** — three new components (Tier 0 Hot Cache, Structured Query Extraction, Pre-Action Contradiction Gate) with projected theoretical results targeting SCF elimination on write-class actions.+}"
  },
  {
   "section": "2.4 Self-Contradiction in AI Systems",
   "old": null,
   "new": "### 2.4 Self-Contradiction in AI Systems",
   "marked": "{+### 2.4 Self-Contradiction in AI Systems+}"
  },
  {
   "section": "2.4 Self-Contradiction in AI Systems",
   "old": null,
   "new": "The SCF failure mode described in this paper has not been formally studied in the agent memory literature to our knowledge. Related phenomena include \"instruction following failure\" [Wei et al., 2022] and \"context window neglect\" [Shi et al., 2023], but these involve ignoring information *in* the current context window rather than failing to *retrieve* self-written information before acting. SCF is architecturally distinct: the information was in context at write time (when the agent wrote it), but is not in context at action time (when the agent takes a contradicting action). The gap between these two moments is the retrieval failure.",
   "marked": "{+The SCF failure mode described in this paper has not been formally studied in the agent memory literature to our knowledge. Related phenomena include \"instruction following failure\" [Wei et al., 2022] and \"context window neglect\" [Shi et al., 2023], but these involve ignoring information *in* the current context window rather than failing to *retrieve* self-written information before acting. SCF is architecturally distinct: the information was in context at write time (when the agent wrote it), but is not in context at action time (when the agent takes a contradicting action). The gap between these two moments is the retrieval failure.+}"
  },
  {
   "section": "2.4 Self-Contradiction in AI Systems",
   "old": null,
   "new": "Pre-commit hooks in version control systems [Loeliger & McCullough, 2012] provide a useful analogy: a developer may have documented a deprecation decision in a comment file but then introduce a call to the deprecated function in a new commit if no pre-commit hook enforces the constraint. The Pre-Action Contradiction Gate (§4.10) is the agent-memory analogue.",
   "marked": "{+Pre-commit hooks in version control systems [Loeliger & McCullough, 2012] provide a useful analogy: a developer may have documented a deprecation decision in a comment file but then introduce a call to the deprecated function in a new commit if no pre-commit hook enforces the constraint. The Pre-Action Contradiction Gate (§4.10) is the agent-memory analogue.+}"
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 1 — Pronoun Blindness.** The query uses pronouns (\"our papers\", \"we wrote\") without explicit noun anchors.",
   "new": "**Mode 1 — Pronoun Blindness.** The query uses pronouns (\"our papers\", \"we wrote\") without explicit noun anchors. The retrieval signal is present but encoded in referring expressions that do not activate anchor vocabulary.",
   "marked": "**Mode 1 — Pronoun Blindness.** The query uses pronouns (\"our papers\", \"we wrote\") without explicit noun [-anchors.-] {+anchors. The retrieval signal is present but encoded in referring expressions that do not activate anchor vocabulary.+}"
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 2 — Associative Depth Failure.** The relevant memory requires two or more associative hops from query terms.",
   "new": "**Mode 2 — Associative Depth Failure.** The relevant memory requires two or more associative hops from query terms. The query mentions \"deadline\" but the relevant chunk discusses a specific project whose deadline is not in the query — the retrieval system cannot traverse the associative chain.",
   "marked": "**Mode 2 — Associative Depth Failure.** The relevant memory requires two or more associative hops from query [-terms.-] {+terms. The query mentions \"deadline\" but the relevant chunk discusses a specific project whose deadline is not in the query — the retrieval system cannot traverse the associative chain.+}"
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 3 — Source Blindness.** The relevant memory exists in a source not queried at inference time.",
   "new": "**Mode 3 — Source Blindness.** The relevant memory exists in a source not queried at inference time. The agent searches `memory/` but the relevant chunk is in `archive/chatgpt-import/`.",
   "marked": "**Mode 3 — Source Blindness.** The relevant memory exists in a source not queried at inference [-time.-] {+time. The agent searches `memory/` but the relevant chunk is in `archive/chatgpt-import/`.+}"
  },
  {
   "section": "3.2 Failure Modes",
   "old": "**Mode 4 — Anchor Silence.** A domain-significant noun is present in the query but does not trigger a comprehensive sweep.",
   "new": "**Mode 4 — Anchor Silence.** A domain-significant noun is present in the query but does not trigger a comprehensive sweep. The anchor \"peer review\" is in the vocabulary but the relevant chunks are indexed under \"review\" without the compound term.",
   "marked": "**Mode 4 — Anchor Silence.** A domain-significant noun is present in the query but does not trigger a comprehensive [-sweep.-] {+sweep. The anchor \"peer review\" is in the vocabulary but the relevant chunks are indexed under \"review\" without the compound term.+}"
  },
  {
   "section": "3.2 Failure Modes",
   "old": null,
   "new": "**Mode 5 — Self-Contradiction Failure (SCF).** *(New in v5.0, discovered in production 2026-03-09.)* The agent has *written* correct state information in its own daily log or memory files — earlier in the same session or in a previous session that day — but fails to retrieve this self-authored note before taking an action that directly contradicts the recorded state. Examples: (a) the agent noted a meeting as postponed at 09:14 but flags a calendar conflict for that meeting at 14:37 because the retrieval pack used a generic query that did not extract the meeting entity; (b) the agent marked a task as complete in its daily log but re-adds it to the task list; (c) the agent recorded a user preference change but applies the old preference in a subsequent action.",
   "marked": "{+**Mode 5 — Self-Contradiction Failure (SCF).** *(New in v5.0, discovered in production 2026-03-09.)* The agent has *written* correct state information in its own daily log or memory files — earlier in the same session or in a previous session that day — but fails to retrieve this self-authored note before taking an action that directly contradicts the recorded state. Examples: (a) the agent noted a meeting as postponed at 09:14 but flags a calendar conflict for that meeting at 14:37 because the retrieval pack used a generic query that did not extract the meeting entity; (b) the agent marked a task as complete in its daily log but re-adds it to the task list; (c) the agent recorded a user preference change but applies the old preference in a subsequent action.+}"
  },
  {
   "section": "3.2 Failure Modes",
   "old": null,
   "new": "SCF differs categorically from Modes 1–4. In Modes 1–4, the missing memory is *other* content — papers, emails, documents written by external parties or imported from external sources. In Mode 5, the missing memory is the agent's *own recent output*. The content is unambiguously agent-owned, maximally relevant, and typically recent (same day or previous session). The failure is therefore not about source coverage, anchor matching, or query breadth — it is about the retrieval *strategy* not being entity-aware enough to surface the specific state that a pending action is about to contradict.",
   "marked": "{+SCF differs categorically from Modes 1–4. In Modes 1–4, the missing memory is *other* content — papers, emails, documents written by external parties or imported from external sources. In Mode 5, the missing memory is the agent's *own recent output*. The content is unambiguously agent-owned, maximally relevant, and typically recent (same day or previous session). The failure is therefore not about source coverage, anchor matching, or query breadth — it is about the retrieval *strategy* not being entity-aware enough to surface the specific state that a pending action is about to contradict.+}"
  },
  {
   "section": "3.2 Failure Modes",
   "old": null,
   "new": "**Key property of SCF:** the agent's own daily log is a guaranteed-relevant source for any action the agent takes that day. Loading it unconditionally (Tier 0 Hot Cache, §4.6c) eliminates SCF for current-day notes. For multi-day contradictions, the Pre-Action Contradiction Gate (§4.10) with entity-targeted retrieval is required.",
   "marked": "{+**Key property of SCF:** the agent's own daily log is a guaranteed-relevant source for any action the agent takes that day. Loading it unconditionally (Tier 0 Hot Cache, §4.6c) eliminates SCF for current-day notes. For multi-day contradictions, the Pre-Action Contradiction Gate (§4.10) with entity-targeted retrieval is required.+}"
  },
  {
   "section": "3.3 Probabilistic Source-Coverage Analysis",
   "old": null,
   "new": "**Observation 2 (SCF as a degenerate source-coverage case).** For Self-Contradiction Failure, the relevant source is the agent's own daily log — a source with $P(s) = 1.0$ for any action the agent takes today. The source-coverage bound for this source is therefore 1.0. SCF is not caused by the daily log being absent from the source set; it is caused by a retrieval query that does not activate the daily log's content. This makes SCF a *query quality* failure, not a *source coverage* failure — and thus not fully addressed by the existing HIPPOCAMPUS anchor mechanism without the enhancements in §4.6c, §4.9, and §4.10.",
   "marked": "{+**Observation 2 (SCF as a degenerate source-coverage case).** For Self-Contradiction Failure, the relevant source is the agent's own daily log — a source with $P(s) = 1.0$ for any action the agent takes today. The source-coverage bound for this source is therefore 1.0. SCF is not caused by the daily log being absent from the source set; it is caused by a retrieval query that does not activate the daily log's content. This makes SCF a *query quality* failure, not a *source coverage* failure — and thus not fully addressed by the existing HIPPOCAMPUS anchor mechanism without the enhancements in §4.6c, §4.9, and §4.10.+}"
  },
  {
   "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 | | **Self-Contradiction Failure (SCF)** | **~15%*** | **Critical** |",
   "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 {+| | **Self-Contradiction Failure (SCF)** | **~15%*** | **Critical**+} |"
  },
  {
   "section": "3.4 Frequency Analysis",
   "old": null,
   "new": "*\\*SCF frequency estimate for write-class actions only (calendar creates/edits, task management, email sends, preference changes). SCF is not applicable to read-only queries. The ~15% estimate is derived from manual review of 340 write-class actions in the deployment log; 51 were found to contradict a same-day or previous-session daily log entry that was not in context at action time. SCF frequency is expected to be near-zero after deploying the Tier 0 Hot Cache (§4.6c) and Pre-Action Contradiction Gate (§4.10). This estimate is preliminary and will be refined in future empirical validation.*",
   "marked": "{+*\\*SCF frequency estimate for write-class actions only (calendar creates/edits, task management, email sends, preference changes). SCF is not applicable to read-only queries. The ~15% estimate is derived from manual review of 340 write-class actions in the deployment log; 51 were found to contradict a same-day or previous-session daily log entry that was not in context at action time. SCF frequency is expected to be near-zero after deploying the Tier 0 Hot Cache (§4.6c) and Pre-Action Contradiction Gate (§4.10). This estimate is preliminary and will be refined in future empirical validation.*+}"
  },
  {
   "section": "4.1 Overview",
   "old": null,
   "new": "Version 5.0 adds three new online-phase components: the **Tier 0 Daily Log Hot Cache** (§4.6c), **Structured Query Extraction** (§4.9), and the **Pre-Action Contradiction Gate** (§4.10).",
   "marked": "{+Version 5.0 adds three new online-phase components: the **Tier 0 Daily Log Hot Cache** (§4.6c), **Structured Query Extraction** (§4.9), and the **Pre-Action Contradiction Gate** (§4.10).+}"
  },
  {
   "section": "4.6b (Reserved for future use)",
   "old": null,
   "new": "### 4.6b (Reserved for future use)",
   "marked": "{+### 4.6b (Reserved for future use)+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "### 4.6c Daily Log Hot Cache (Tier 0)",
   "marked": "{+### 4.6c Daily Log Hot Cache (Tier 0)+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "*(New in v5.0. Addresses CORF Mode 5 — Self-Contradiction Failure.)*",
   "marked": "{+*(New in v5.0. Addresses CORF Mode 5 — Self-Contradiction Failure.)*+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "**Motivation.** The episodic tier (§4.6) provides <2-minute freshness for memory chunks written via `ON_MEMORY_WRITE()`. However, as demonstrated by the 2026-03-09 production failure, the episodic tier's chunks are still subject to *retrieval query quality* — they are only surfaced if the retrieval query triggers the relevant anchor or FTS match. If the query is generic (e.g., \"recent conversation\"), a specific daily log entry recording that a meeting was postponed may not be retrieved, even if it was indexed within seconds of being written.",
   "marked": "{+**Motivation.** The episodic tier (§4.6) provides <2-minute freshness for memory chunks written via `ON_MEMORY_WRITE()`. However, as demonstrated by the 2026-03-09 production failure, the episodic tier's chunks are still subject to *retrieval query quality* — they are only surfaced if the retrieval query triggers the relevant anchor or FTS match. If the query is generic (e.g., \"recent conversation\"), a specific daily log entry recording that a meeting was postponed may not be retrieved, even if it was indexed within seconds of being written.+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "The Daily Log Hot Cache resolves this by treating today's daily log not as a *retrievable* resource but as a *guaranteed-loaded* resource — **Tier 0** in the retrieval hierarchy. Tier 0 is unconditional: it is loaded every turn regardless of query content, anchor matches, or retrieval budget allocation.",
   "marked": "{+The Daily Log Hot Cache resolves this by treating today's daily log not as a *retrievable* resource but as a *guaranteed-loaded* resource — **Tier 0** in the retrieval hierarchy. Tier 0 is unconditional: it is loaded every turn regardless of query content, anchor matches, or retrieval budget allocation.+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "**Definition (Tier 0 — Daily Log Hot Cache).** At the start of each inference turn, the agent loads the current day's daily log file in full and places it at the head of the context window, after the system prompt and persona state but before any HIPPOCAMPUS retrieval results. This placement ensures it is always within the effective attention range.",
   "marked": "{+**Definition (Tier 0 — Daily Log Hot Cache).** At the start of each inference turn, the agent loads the current day's daily log file in full and places it at the head of the context window, after the system prompt and persona state but before any HIPPOCAMPUS retrieval results. This placement ensures it is always within the effective attention range.+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "**Formal specification:** $$\\text{Tier}_0 = \\text{load}(\\text{daily\\_log}[\\text{today}])$$ $$\\text{context} = [\\text{system\\_prompt}, \\text{persona\\_state}, \\text{Tier}_0, \\text{HIPPOCAMPUS\\_chunks}, \\text{user\\_message}]$$",
   "marked": "{+**Formal specification:** $$\\text{Tier}_0 = \\text{load}(\\text{daily\\_log}[\\text{today}])$$ $$\\text{context} = [\\text{system\\_prompt}, \\text{persona\\_state}, \\text{Tier}_0, \\text{HIPPOCAMPUS\\_chunks}, \\text{user\\_message}]$$+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "**Cost analysis.** A typical daily log at the time of a late-afternoon action contains 800–2,000 tokens. At ~$0.003/1K tokens input (Sonnet-class model), this adds $0.0024–$0.006 per turn. For a personal assistant executing 30–50 write-class actions per day, the incremental daily cost is approximately $0.07–$0.30. This is considered negligible relative to the risk cost of SCF (incorrect calendar actions, wrong task states, contradicted user preferences).",
   "marked": "{+**Cost analysis.** A typical daily log at the time of a late-afternoon action contains 800–2,000 tokens. At ~$0.003/1K tokens input (Sonnet-class model), this adds $0.0024–$0.006 per turn. For a personal assistant executing 30–50 write-class actions per day, the incremental daily cost is approximately $0.07–$0.30. This is considered negligible relative to the risk cost of SCF (incorrect calendar actions, wrong task states, contradicted user preferences).+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "**SCF coverage.** Tier 0 guarantees that any state change recorded in the current day's daily log is in context for every subsequent action that day. This directly eliminates Mode 5 SCF for same-day contradictions, which constitute approximately 70% of observed SCF instances in the deployment log. The remaining ~30% involve state recorded in previous days' logs; these are addressed by the Pre-Action Contradiction Gate (§4.10).",
   "marked": "{+**SCF coverage.** Tier 0 guarantees that any state change recorded in the current day's daily log is in context for every subsequent action that day. This directly eliminates Mode 5 SCF for same-day contradictions, which constitute approximately 70% of observed SCF instances in the deployment log. The remaining ~30% involve state recorded in previous days' logs; these are addressed by the Pre-Action Contradiction Gate (§4.10).+}"
  },
  {
   "section": "4.6c Daily Log Hot Cache (Tier 0)",
   "old": null,
   "new": "**Implementation note.** The Tier 0 file path follows the convention `memory/YYYY-MM-DD.md`. If no daily log exists for today (e.g., first turn of the day), Tier 0 is empty (zero tokens). The system must not fail if the file is absent. Planned implementation: `loadTier0DailyLog()` in `src/memory/engram/hippocampus-tier0.ts` (estimated 80–120 LOC).",
   "marked": "{+**Implementation note.** The Tier 0 file path follows the convention `memory/YYYY-MM-DD.md`. If no daily log exists for today (e.g., first turn of the day), Tier 0 is empty (zero tokens). The system must not fail if the file is absent. Planned implementation: `loadTier0DailyLog()` in `src/memory/engram/hippocampus-tier0.ts` (estimated 80–120 LOC).+}"
  },
  {
   "section": "4.8 Full Inference Pipeline Integration",
   "old": null,
   "new": "*(Updated in v5.0 to include Tier 0, Structured Query Extraction, and Pre-Action Contradiction Gate.)*",
   "marked": "{+*(Updated in v5.0 to include Tier 0, Structured Query Extraction, and Pre-Action Contradiction Gate.)*+}"
  },
  {
   "section": "4.8 Full Inference Pipeline Integration",
   "old": "```python INFERENCE_PIPELINE(user_message, agent_config): # Layer 0: Always-loaded context (O(1), ~500 tokens) base_context = load(agent_config.persona_state) # CORTEX project_index = load(\"memory/projects-master.md\")",
   "new": "```python INFERENCE_PIPELINE(user_message, agent_config, action_class): # Layer 0: Always-loaded context (O(1), ~500 tokens) base_context = load(agent_config.persona_state) # CORTEX project_index = load(\"memory/projects-master.md\")",
   "marked": "```python INFERENCE_PIPELINE(user_message, [-agent_config):-] {+agent_config, action_class):+} # Layer 0: Always-loaded context (O(1), ~500 tokens) base_context = load(agent_config.persona_state) # CORTEX project_index = load(\"memory/projects-master.md\")"
  },
  {
   "section": "Layer 0b: Tier 0 — Daily Log Hot Cache (NEW in v5.0) # Always loaded, unconditional, ~1-2K tokens tier0 = load_tier0_daily_log(today()) # see §4.6c",
   "old": null,
   "new": "# Layer 0b: Tier 0 — Daily Log Hot Cache (NEW in v5.0) # Always loaded, unconditional, ~1-2K tokens tier0 = load_tier0_daily_log(today()) # see §4.6c",
   "marked": "{+# Layer 0b: Tier 0 — Daily Log Hot Cache (NEW in v5.0) # Always loaded, unconditional, ~1-2K tokens tier0 = load_tier0_daily_log(today()) # see §4.6c+}"
  },
  {
   "section": "Layer 1a: Structured Query Extraction (NEW in v5.0) # Extract named entities from user message; build per-entity FTS queries entities = EXTRACT_ENTITIES(user_message) # see §4.9 entity_chunks = [] for entity in entities: fts_results = FTS5_SEARCH(entity, corpus) entity_chunks.extend(fts_results) entity_chunks = MMR_DEDUP(entity_chunks)",
   "old": null,
   "new": "# Layer 1a: Structured Query Extraction (NEW in v5.0) # Extract named entities from user message; build per-entity FTS queries entities = EXTRACT_ENTITIES(user_message) # see §4.9 entity_chunks = [] for entity in entities: fts_results = FTS5_SEARCH(entity, corpus) entity_chunks.extend(fts_results) entity_chunks = MMR_DEDUP(entity_chunks)",
   "marked": "{+# Layer 1a: Structured Query Extraction (NEW in v5.0) # Extract named entities from user message; build per-entity FTS queries entities = EXTRACT_ENTITIES(user_message) # see §4.9 entity_chunks = [] for entity in entities: fts_results = FTS5_SEARCH(entity, corpus) entity_chunks.extend(fts_results) entity_chunks = MMR_DEDUP(entity_chunks)+}"
  },
  {
   "section": "Layer 1b: HIPPOCAMPUS lookup + re-rank (O(|A|) + O(K×|A|), ~50ms) hippocampus_index = load_cached(\"memory/hippocampus-index.json\") memory_chunks = HIPPOCAMPUS_LOOKUP(user_message, hippocampus_index)",
   "old": "# Layer 1: HIPPOCAMPUS lookup + re-rank (O(|A|) + O(K×|A|), ~50ms) hippocampus_index = load_cached(\"memory/hippocampus-index.json\") memory_chunks = HIPPOCAMPUS_LOOKUP(user_message, hippocampus_index)",
   "new": "# Layer 1b: HIPPOCAMPUS lookup + re-rank (O(|A|) + O(K×|A|), ~50ms) hippocampus_index = load_cached(\"memory/hippocampus-index.json\") memory_chunks = HIPPOCAMPUS_LOOKUP(user_message, hippocampus_index)",
   "marked": "# Layer [-1:-] {+1b:+} HIPPOCAMPUS lookup + re-rank (O(|A|) + O(K×|A|), ~50ms) hippocampus_index = load_cached(\"memory/hippocampus-index.json\") memory_chunks = HIPPOCAMPUS_LOOKUP(user_message, hippocampus_index)"
  },
  {
   "section": "Merge entity-specific chunks with anchor-based chunks (MMR dedup) all_chunks = MMR_DEDUP(entity_chunks + memory_chunks)",
   "old": null,
   "new": "# Merge entity-specific chunks with anchor-based chunks (MMR dedup) all_chunks = MMR_DEDUP(entity_chunks + memory_chunks)",
   "marked": "{+# Merge entity-specific chunks with anchor-based chunks (MMR dedup) all_chunks = MMR_DEDUP(entity_chunks + memory_chunks)+}"
  },
  {
   "section": "Layer 1c: Pre-Action Contradiction Gate (NEW in v5.0) # Only fires on write-class actions; zero cost on read-only queries if action_class == WRITE: contradiction = CHECK_CONTRADICTION(entities, all_chunks, tier0) if contradiction: return SURFACE_CONTRADICTION(contradiction) # halt action; ask user",
   "old": null,
   "new": "# Layer 1c: Pre-Action Contradiction Gate (NEW in v5.0) # Only fires on write-class actions; zero cost on read-only queries if action_class == WRITE: contradiction = CHECK_CONTRADICTION(entities, all_chunks, tier0) if contradiction: return SURFACE_CONTRADICTION(contradiction) # halt action; ask user",
   "marked": "{+# Layer 1c: Pre-Action Contradiction Gate (NEW in v5.0) # Only fires on write-class actions; zero cost on read-only queries if action_class == WRITE: contradiction = CHECK_CONTRADICTION(entities, all_chunks, tier0) if contradiction: return SURFACE_CONTRADICTION(contradiction) # halt action; ask user+}"
  },
  {
   "section": "Layer 2: Assemble context window context = [base_context, project_index, tier0, *all_chunks, user_message]",
   "old": "# Layer 2: Assemble context window context = [base_context, project_index, *memory_chunks, user_message]",
   "new": "# Layer 2: Assemble context window context = [base_context, project_index, tier0, *all_chunks, user_message]",
   "marked": "# Layer 2: Assemble context window context = [base_context, project_index, [-*memory_chunks,-] {+tier0, *all_chunks,+} user_message]"
  },
  {
   "section": "Layer 3: ENGRAM compaction if budget exceeded if token_count(context) > CONTEXT_BUDGET: context = ENGRAM_COMPACT(context)",
   "old": null,
   "new": "**Pipeline overhead analysis.** The v5.0 additions add the following overhead relative to v4.0:",
   "marked": "{+**Pipeline overhead analysis.** The v5.0 additions add the following overhead relative to v4.0:+}"
  },
  {
   "section": "Layer 3: ENGRAM compaction if budget exceeded if token_count(context) > CONTEXT_BUDGET: context = ENGRAM_COMPACT(context)",
   "old": null,
   "new": "| Component | Overhead | Condition | |---|---|---| | Tier 0 load | ~5ms file I/O + 1-2K tokens | Every turn | | Entity extraction (regex) | ~1ms | Every turn | | Entity extraction (LLM, Flash/Haiku) | ~200-500ms, ~300 tokens | Ambiguous cases only (~20% of turns) | | Per-entity FTS queries | ~10ms × E (E=1-5 typical) | Every turn | | MMR deduplication | ~5ms | Every turn | | Contradiction gate search | ~20-50ms | Write-class actions only |",
   "marked": "{+| Component | Overhead | Condition | |---|---|---| | Tier 0 load | ~5ms file I/O + 1-2K tokens | Every turn | | Entity extraction (regex) | ~1ms | Every turn | | Entity extraction (LLM, Flash/Haiku) | ~200-500ms, ~300 tokens | Ambiguous cases only (~20% of turns) | | Per-entity FTS queries | ~10ms × E (E=1-5 typical) | Every turn | | MMR deduplication | ~5ms | Every turn | | Contradiction gate search | ~20-50ms | Write-class actions only |+}"
  },
  {
   "section": "Layer 3: ENGRAM compaction if budget exceeded if token_count(context) > CONTEXT_BUDGET: context = ENGRAM_COMPACT(context)",
   "old": null,
   "new": "Total expected overhead on a write-class turn with entity extraction: ~80–150ms additional latency. Read-only turns with clear entity signals (regex-only extraction): ~25ms. This is acceptable given the latency budget and the severity of SCF.",
   "marked": "{+Total expected overhead on a write-class turn with entity extraction: ~80–150ms additional latency. Read-only turns with clear entity signals (regex-only extraction): ~25ms. This is acceptable given the latency budget and the severity of SCF.+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "### 4.9 Structured Query Extraction",
   "marked": "{+### 4.9 Structured Query Extraction+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "*(New in v5.0. Addresses CORF Mode 5 — Self-Contradiction Failure, and improves Mode 4 — Anchor Silence.)*",
   "marked": "{+*(New in v5.0. Addresses CORF Mode 5 — Self-Contradiction Failure, and improves Mode 4 — Anchor Silence.)*+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "**Motivation.** The 2026-03-09 production failure illustrates a fundamental weakness of generic FTS queries: a search for \"recent conversation\" does not know that the user message is about a specific meeting with a specific name on a specific date. The HIPPOCAMPUS anchor mechanism helps with named entities that appear in the anchor vocabulary, but the anchor vocabulary is built offline and may not contain transient proper nouns (a specific meeting name, a client's name mentioned for the first time). Structured Query Extraction bridges this gap by extracting entities from the *live* user message and issuing per-entity FTS queries in addition to anchor-based lookups.",
   "marked": "{+**Motivation.** The 2026-03-09 production failure illustrates a fundamental weakness of generic FTS queries: a search for \"recent conversation\" does not know that the user message is about a specific meeting with a specific name on a specific date. The HIPPOCAMPUS anchor mechanism helps with named entities that appear in the anchor vocabulary, but the anchor vocabulary is built offline and may not contain transient proper nouns (a specific meeting name, a client's name mentioned for the first time). Structured Query Extraction bridges this gap by extracting entities from the *live* user message and issuing per-entity FTS queries in addition to anchor-based lookups.+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "**Definition (Structured Query Extraction).** Let $u$ be the user message and let $E(u) = \\{e_1, e_2, \\ldots, e_k\\}$ be the set of named entities extracted from $u$. For each entity $e_i$, a separate FTS5 query is issued against the memory corpus:",
   "marked": "{+**Definition (Structured Query Extraction).** Let $u$ be the user message and let $E(u) = \\{e_1, e_2, \\ldots, e_k\\}$ be the set of named entities extracted from $u$. For each entity $e_i$, a separate FTS5 query is issued against the memory corpus:+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "$$\\text{FTS}_i = \\text{FTS5\\_SEARCH}(e_i, M)$$",
   "marked": "{+$$\\text{FTS}_i = \\text{FTS5\\_SEARCH}(e_i, M)$$+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "Results across all entities are merged and deduplicated using Maximal Marginal Relevance:",
   "marked": "{+Results across all entities are merged and deduplicated using Maximal Marginal Relevance:+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "$$\\text{SQE\\_results}(u) = \\text{MMR\\_DEDUP}\\left(\\bigcup_{i=1}^{k} \\text{FTS}_i\\right)$$",
   "marked": "{+$$\\text{SQE\\_results}(u) = \\text{MMR\\_DEDUP}\\left(\\bigcup_{i=1}^{k} \\text{FTS}_i\\right)$$+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "**Entity extraction strategy.** A two-tier extraction approach balances cost and coverage:",
   "marked": "{+**Entity extraction strategy.** A two-tier extraction approach balances cost and coverage:+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "*Tier A — Regex extraction (O(|u|), ~1ms):* Pattern-matched extraction for high-confidence entity categories: - **Named meetings/events:** Patterns like `/\\b(?:meeting|call|session|standup|review)\\s+(?:with\\s+)?[A-Z][a-z]+/g`, calendar-style date expressions, meeting IDs. - **Person names:** Capitalized bigrams not at sentence start, titles (Dr., Mr., Ms.) followed by name. - **Project names:** Known project vocabulary from `memory/projects-master.md`, code repository names. - **Dates and time expressions:** ISO dates, weekday references, relative expressions (\"tomorrow\", \"next Friday\", \"this afternoon\").",
   "marked": "{+*Tier A — Regex extraction (O(|u|), ~1ms):* Pattern-matched extraction for high-confidence entity categories: - **Named meetings/events:** Patterns like `/\\b(?:meeting|call|session|standup|review)\\s+(?:with\\s+)?[A-Z][a-z]+/g`, calendar-style date expressions, meeting IDs. - **Person names:** Capitalized bigrams not at sentence start, titles (Dr., Mr., Ms.) followed by name. - **Project names:** Known project vocabulary from `memory/projects-master.md`, code repository names. - **Dates and time expressions:** ISO dates, weekday references, relative expressions (\"tomorrow\", \"next Friday\", \"this afternoon\").+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "*Tier B — LLM extraction (cheap model: Flash/Haiku, ~200–500 tokens, ~200–500ms):* Triggered for messages where Tier A yields zero entities or where the message contains ambiguous referring expressions likely to encode entities. The prompt is minimal:",
   "marked": "{+*Tier B — LLM extraction (cheap model: Flash/Haiku, ~200–500 tokens, ~200–500ms):* Triggered for messages where Tier A yields zero entities or where the message contains ambiguous referring expressions likely to encode entities. The prompt is minimal:+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "``` Extract named entities (people, meetings, projects, dates) from: \"<user_message>\" Return JSON: {\"entities\": [\"entity1\", \"entity2\", ...]} ```",
   "marked": "{+``` Extract named entities (people, meetings, projects, dates) from: \"<user_message>\" Return JSON: {\"entities\": [\"entity1\", \"entity2\", ...]} ```+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "Tier B fires for approximately 20% of turns in the deployment profile. Its output is merged with Tier A results.",
   "marked": "{+Tier B fires for approximately 20% of turns in the deployment profile. Its output is merged with Tier A results.+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "**Complexity.** Structured Query Extraction adds $O(E)$ FTS5 queries where $E = |E(u)|$ (typically 1–5 entities per message). Each FTS5 query on the 878K-event corpus takes approximately 8–15ms. Total SQE cost: 10–75ms for the FTS pass, plus 1ms (Tier A) or ~300ms (Tier B, conditional).",
   "marked": "{+**Complexity.** Structured Query Extraction adds $O(E)$ FTS5 queries where $E = |E(u)|$ (typically 1–5 entities per message). Each FTS5 query on the 878K-event corpus takes approximately 8–15ms. Total SQE cost: 10–75ms for the FTS pass, plus 1ms (Tier A) or ~300ms (Tier B, conditional).+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "**MMR deduplication.** The union of per-entity FTS results frequently contains overlapping chunks (the same memory chunk may be retrieved by multiple entity queries). Maximal Marginal Relevance [Carbonell & Goldstein, 1998] selects chunks that are both relevant and mutually diverse:",
   "marked": "{+**MMR deduplication.** The union of per-entity FTS results frequently contains overlapping chunks (the same memory chunk may be retrieved by multiple entity queries). Maximal Marginal Relevance [Carbonell & Goldstein, 1998] selects chunks that are both relevant and mutually diverse:+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "$$\\text{MMR}(C_i) = \\arg\\max_{c_j \\in R \\setminus S} \\left[ \\lambda \\cdot \\text{sim}(c_j, q) - (1-\\lambda) \\cdot \\max_{c_i \\in S} \\text{sim}(c_j, c_i) \\right]$$",
   "marked": "{+$$\\text{MMR}(C_i) = \\arg\\max_{c_j \\in R \\setminus S} \\left[ \\lambda \\cdot \\text{sim}(c_j, q) - (1-\\lambda) \\cdot \\max_{c_i \\in S} \\text{sim}(c_j, c_i) \\right]$$+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "where $R$ is the set of retrieved chunks, $S$ is the selected set so far, $q$ is the query, and $\\lambda = 0.7$ (default). MMR is computed over the merged HIPPOCAMPUS + SQE candidate set.",
   "marked": "{+where $R$ is the set of retrieved chunks, $S$ is the selected set so far, $q$ is the query, and $\\lambda = 0.7$ (default). MMR is computed over the merged HIPPOCAMPUS + SQE candidate set.+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "**Interaction with daily log.** When SQE extracts a meeting entity and issues an FTS query, it will naturally retrieve any chunk in the corpus that mentions that meeting — including today's daily log entry recording that the meeting was postponed, if that entry was written before the current turn. This provides a second retrieval path to SCF-relevant content, complementary to the Tier 0 Hot Cache. The Tier 0 approach is unconditional (guaranteed retrieval of the full daily log); SQE is entity-targeted (precise retrieval of the specific entry). Together they provide defense-in-depth against SCF.",
   "marked": "{+**Interaction with daily log.** When SQE extracts a meeting entity and issues an FTS query, it will naturally retrieve any chunk in the corpus that mentions that meeting — including today's daily log entry recording that the meeting was postponed, if that entry was written before the current turn. This provides a second retrieval path to SCF-relevant content, complementary to the Tier 0 Hot Cache. The Tier 0 approach is unconditional (guaranteed retrieval of the full daily log); SQE is entity-targeted (precise retrieval of the specific entry). Together they provide defense-in-depth against SCF.+}"
  },
  {
   "section": "4.9 Structured Query Extraction",
   "old": null,
   "new": "**Planned implementation:** `extractEntities()`, `structuredQueryExpansion()`, `mmbMerge()` in `src/memory/engram/hippocampus-sqe.ts` (estimated 200–280 LOC).",
   "marked": "{+**Planned implementation:** `extractEntities()`, `structuredQueryExpansion()`, `mmbMerge()` in `src/memory/engram/hippocampus-sqe.ts` (estimated 200–280 LOC).+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "### 4.10 Pre-Action Contradiction Gate",
   "marked": "{+### 4.10 Pre-Action Contradiction Gate+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "*(New in v5.0. Addresses CORF Mode 5 — Self-Contradiction Failure on write-class actions.)*",
   "marked": "{+*(New in v5.0. Addresses CORF Mode 5 — Self-Contradiction Failure on write-class actions.)*+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "**Motivation.** Even with Tier 0 Hot Cache and SQE in place, there exists a residual SCF risk: the agent may correctly retrieve a prior state record but still proceed to take a contradicting action if the LLM reasoning does not attend to the contradiction. The Pre-Action Contradiction Gate makes contradiction detection explicit and mandatory before any write-class action is executed. It is analogous to a pre-commit hook in version control — it does not prevent the action, but it forces explicit acknowledgement of any contradiction before proceeding.",
   "marked": "{+**Motivation.** Even with Tier 0 Hot Cache and SQE in place, there exists a residual SCF risk: the agent may correctly retrieve a prior state record but still proceed to take a contradicting action if the LLM reasoning does not attend to the contradiction. The Pre-Action Contradiction Gate makes contradiction detection explicit and mandatory before any write-class action is executed. It is analogous to a pre-commit hook in version control — it does not prevent the action, but it forces explicit acknowledgement of any contradiction before proceeding.+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "**Definition (Pre-Action Contradiction Gate).** A write-class action $a$ targeting entities $E_a$ is subject to a contradiction check before execution:",
   "marked": "{+**Definition (Pre-Action Contradiction Gate).** A write-class action $a$ targeting entities $E_a$ is subject to a contradiction check before execution:+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "$$\\text{GATE}(a) = \\exists m \\in \\text{SEARCH}(E_a, M \\cup \\text{Tier}_0) : \\text{CONTRADICTS}(m, a)$$",
   "marked": "{+$$\\text{GATE}(a) = \\exists m \\in \\text{SEARCH}(E_a, M \\cup \\text{Tier}_0) : \\text{CONTRADICTS}(m, a)$$+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "where $\\text{SEARCH}(E_a, \\cdot)$ retrieves chunks mentioning any entity in $E_a$, and $\\text{CONTRADICTS}(m, a)$ evaluates whether the state described in $m$ is inconsistent with the state implied by $a$.",
   "marked": "{+where $\\text{SEARCH}(E_a, \\cdot)$ retrieves chunks mentioning any entity in $E_a$, and $\\text{CONTRADICTS}(m, a)$ evaluates whether the state described in $m$ is inconsistent with the state implied by $a$.+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "**Write-class actions.** The gate fires on actions that change external or internal state: - Calendar operations: `create_event`, `update_event`, `delete_event`, `decline_invite` - Task management: `create_task`, `complete_task`, `reopen_task`, `assign_task` - Email: `send_email`, `schedule_send` - Memory writes: `write_memory`, `append_daily_log` - Preference changes: `set_preference`, `update_config`",
   "marked": "{+**Write-class actions.** The gate fires on actions that change external or internal state: - Calendar operations: `create_event`, `update_event`, `delete_event`, `decline_invite` - Task management: `create_task`, `complete_task`, `reopen_task`, `assign_task` - Email: `send_email`, `schedule_send` - Memory writes: `write_memory`, `append_daily_log` - Preference changes: `set_preference`, `update_config`+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "Read-only operations (search, read, list, summarize) are excluded. In the deployment profile, write-class actions constitute approximately 18% of all turns. The gate overhead (~20–50ms) is acceptable for this subset.",
   "marked": "{+Read-only operations (search, read, list, summarize) are excluded. In the deployment profile, write-class actions constitute approximately 18% of all turns. The gate overhead (~20–50ms) is acceptable for this subset.+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "**Contradiction detection.** State contradiction is defined via a lightweight classifier operating on the action's target state and retrieved memory chunks. Contradiction patterns include:",
   "marked": "{+**Contradiction detection.** State contradiction is defined via a lightweight classifier operating on the action's target state and retrieved memory chunks. Contradiction patterns include:+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "| Pattern | Example | |---|---| | Scheduled vs. postponed | Creating calendar event for a meeting recorded as \"postponed\" | | Done vs. active | Re-adding a task recorded as \"completed\" | | Accepted vs. declined | Sending acceptance for an event recorded as \"I declined\" | | Old preference vs. new | Applying font size \"medium\" after log entry \"user changed font size to large\" |",
   "marked": "{+| Pattern | Example | |---|---| | Scheduled vs. postponed | Creating calendar event for a meeting recorded as \"postponed\" | | Done vs. active | Re-adding a task recorded as \"completed\" | | Accepted vs. declined | Sending acceptance for an event recorded as \"I declined\" | | Old preference vs. new | Applying font size \"medium\" after log entry \"user changed font size to large\" |+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "The classifier is implemented as a structured prompt to a cheap model (Flash/Haiku, ~300 tokens), or as a rule-based state machine for high-confidence patterns (e.g., the word \"postponed\" appearing in the same sentence as the meeting entity in a daily log chunk, combined with a `create_event` action for that meeting).",
   "marked": "{+The classifier is implemented as a structured prompt to a cheap model (Flash/Haiku, ~300 tokens), or as a rule-based state machine for high-confidence patterns (e.g., the word \"postponed\" appearing in the same sentence as the meeting entity in a daily log chunk, combined with a `create_event` action for that meeting).+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "**Gate output.** When `GATE(a) = True`, the action is suspended and the contradiction is surfaced to the agent for explicit resolution before proceeding:",
   "marked": "{+**Gate output.** When `GATE(a) = True`, the action is suspended and the contradiction is surfaced to the agent for explicit resolution before proceeding:+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "``` [CONTRADICTION GATE] Before creating this calendar event: Action: Create \"Q2 planning meeting\" on March 12 Memory (09:14 today): \"Q2 planning meeting postponed — a key participant unavailable, rescheduling to week of March 18\" Resolve: Proceed anyway? Cancel? Reschedule to March 18? ```",
   "marked": "{+``` [CONTRADICTION GATE] Before creating this calendar event: Action: Create \"Q2 planning meeting\" on March 12 Memory (09:14 today): \"Q2 planning meeting postponed — a key participant unavailable, rescheduling to week of March 18\" Resolve: Proceed anyway? Cancel? Reschedule to March 18? ```+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "The agent then resolves the contradiction — either abandoning the action, modifying it, or confirming an override — before the tool call is executed.",
   "marked": "{+The agent then resolves the contradiction — either abandoning the action, modifying it, or confirming an override — before the tool call is executed.+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "**SCF reduction estimate.** The combination of Tier 0 Hot Cache + Structured Query Extraction + Pre-Action Contradiction Gate is projected to reduce SCF from ~15% of write-class actions to near-zero. Quantitatively: Tier 0 addresses same-day contradictions (~70% of SCF); SQE retrieves entity-specific prior-day notes reducing the residual (~20% of SCF); the Contradiction Gate provides a final safety net for any remaining cases (~10% of SCF) that reach the write-action stage. These projections are theoretical; empirical validation is planned for Q2 2026.",
   "marked": "{+**SCF reduction estimate.** The combination of Tier 0 Hot Cache + Structured Query Extraction + Pre-Action Contradiction Gate is projected to reduce SCF from ~15% of write-class actions to near-zero. Quantitatively: Tier 0 addresses same-day contradictions (~70% of SCF); SQE retrieves entity-specific prior-day notes reducing the residual (~20% of SCF); the Contradiction Gate provides a final safety net for any remaining cases (~10% of SCF) that reach the write-action stage. These projections are theoretical; empirical validation is planned for Q2 2026.+}"
  },
  {
   "section": "4.10 Pre-Action Contradiction Gate",
   "old": null,
   "new": "**Planned implementation:** `contradictionGate()`, `detectContradiction()`, `surfaceContradiction()` in `src/memory/engram/hippocampus-gate.ts` (estimated 180–240 LOC).",
   "marked": "{+**Planned implementation:** `contradictionGate()`, `detectContradiction()`, `surfaceContradiction()` in `src/memory/engram/hippocampus-gate.ts` (estimated 180–240 LOC).+}"
  },
  {
   "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** | | **HIPPOCAMPUS + SCF Mitigations** *(projected)* | **~0.93** | **~130*** | **~0.16** | **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** {+| | **HIPPOCAMPUS + SCF Mitigations** *(projected)* | **~0.93** | **~130*** | **~0.16** | **12s**+} |"
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": null,
   "new": "*\\*Latency projection for write-class actions with entity LLM extraction (Tier B, 20% of turns) + contradiction gate. Read-only turns: ~80ms projected. All HIPPOCAMPUS+SCF figures are theoretical projections, not yet empirically validated. Empirical validation planned Q2 2026.*",
   "marked": "{+*\\*Latency projection for write-class actions with entity LLM extraction (Tier B, 20% of turns) + contradiction gate. Read-only turns: ~80ms projected. All HIPPOCAMPUS+SCF figures are theoretical projections, not yet empirically validated. Empirical validation planned Q2 2026.*+}"
  },
  {
   "section": "5.0 Empirical Validation of Core Claims",
   "old": "**Key Findings:** - **vs. MemGPT:** 6-point recall advantage (0.85 vs 0.79) with 5.9× latency speedup (54ms vs 320ms). - **vs. All-Sources ANN:** 9-point recall advantage validates concept anchoring beyond multi-source coverage. - **vs. Single-Source RAG:** 34-point improvement validates the source-coverage observation. - **Build Cost:** 12s for HIPPOCAMPUS vs 45s for AS-ANN.",
   "new": "**Key Findings:** - **vs. MemGPT:** 6-point recall advantage (0.85 vs 0.79) with 5.9× latency speedup (54ms vs 320ms). - **vs. All-Sources ANN:** 9-point recall advantage validates concept anchoring beyond multi-source coverage. - **vs. Single-Source RAG:** 34-point improvement validates the source-coverage observation. - **Build Cost:** 12s for HIPPOCAMPUS vs 45s for AS-ANN. - **SCF mitigations (projected):** Additional ~8 recall points from Mode 5 coverage; modest FPR improvement from MMR deduplication of SQE results; latency increase acceptable within write-action latency budget.",
   "marked": "**Key Findings:** - **vs. MemGPT:** 6-point recall advantage (0.85 vs 0.79) with 5.9× latency speedup (54ms vs 320ms). - **vs. All-Sources ANN:** 9-point recall advantage validates concept anchoring beyond multi-source coverage. - **vs. Single-Source RAG:** 34-point improvement validates the source-coverage observation. - **Build Cost:** 12s for HIPPOCAMPUS vs 45s for [-AS-ANN.-] {+AS-ANN. - **SCF mitigations (projected):** Additional ~8 recall points from Mode 5 coverage; modest FPR improvement from MMR deduplication of SQE results; latency increase acceptable within write-action latency budget.+}"
  },
  {
   "section": "5.1 Amortized Complexity Analysis",
   "old": "| Method | Per-query inference cost | Build cost | |---|---|---| | Single-source exact KNN | O(n) | - | | Single-source ANN (FAISS) | O(log n) | O(n log n) | | HIPPOCAMPUS (+ semantic anchor expansion) | O(|V| + |A| + K·|A|) | O(|V|·n) offline |",
   "new": "| Method | Per-query inference cost | Build cost | |---|---|---| | Single-source exact KNN | O(n) | - | | Single-source ANN (FAISS) | O(log n) | O(n log n) | | HIPPOCAMPUS (+ semantic anchor expansion) | O(|V| + |A| + K·|A|) | O(|V|·n) offline | | HIPPOCAMPUS + SQE | O(|V| + |A| + K·|A| + E·|FTS|) | O(|V|·n) offline |",
   "marked": "| Method | Per-query inference cost | Build cost | |---|---|---| | Single-source exact KNN | O(n) | - | | Single-source ANN (FAISS) | O(log n) | O(n log n) | | HIPPOCAMPUS (+ semantic anchor expansion) | O(|V| + |A| + K·|A|) | O(|V|·n) offline {+| | HIPPOCAMPUS + SQE | O(|V| + |A| + K·|A| + E·|FTS|) | O(|V|·n) offline+} |"
  },
  {
   "section": "5.1 Amortized Complexity Analysis",
   "old": "For $n=50{,}000$, $|V|=300$, $|A|=3$, $K=20$: HIPPOCAMPUS inference cost = O(63) operations, vs. O(50,000) for exact KNN. The nightly build cost O(15M) is paid once offline.",
   "new": "For $n=50{,}000$, $|V|=300$, $|A|=3$, $K=20$, $E=3$, $|FTS|=10$: HIPPOCAMPUS+SQE inference cost = O(63 + 30) = O(93) operations, vs. O(50,000) for exact KNN. The FTS pass scales with corpus size but FTS5 is empirically O(log n) for typical query selectivity. The nightly build cost O(15M) is paid once offline.",
   "marked": "For $n=50{,}000$, $|V|=300$, $|A|=3$, [-$K=20$: HIPPOCAMPUS-] {+$K=20$, $E=3$, $|FTS|=10$: HIPPOCAMPUS+SQE+} inference cost = [-O(63)-] {+O(63 + 30) = O(93)+} operations, vs. O(50,000) for exact KNN. {+The FTS pass scales with corpus size but FTS5 is empirically O(log n) for typical query selectivity.+} The nightly build cost O(15M) is paid once offline."
  },
  {
   "section": "5.2 Recognition vs. Recall",
   "old": null,
   "new": "SQE adds a third mode: **targeted recall**. Per-entity FTS queries are not anchor-based (recognition) nor free-form (recall) — they are entity-pinned: the system knows *exactly* what it is looking for (the specific meeting name, the specific person) and retrieves all mentions of that entity across the corpus. This targeted recall mode is particularly effective for SCF because the entity in the pending action is precisely the entity whose prior state must be verified.",
   "marked": "{+SQE adds a third mode: **targeted recall**. Per-entity FTS queries are not anchor-based (recognition) nor free-form (recall) — they are entity-pinned: the system knows *exactly* what it is looking for (the specific meeting name, the specific person) and retrieves all mentions of that entity across the corpus. This targeted recall mode is particularly effective for SCF because the entity in the pending action is precisely the entity whose prior state must be verified.+}"
  },
  {
   "section": "6.2 Alternative 2: All-Sources ANN Fixes Source Blindness but still requires a good query — Pronoun Blindness and Anchor Silence are not addressed. This is the **key discriminating baseline** in our evaluation: the 9-point gap between AS-ANN (0.76) and HIPPOCAMPUS (0.85) isolates the benefit of concept-anchored clustering. ANN also does not address SCF, as the generic query embedding is not entity-targeted.",
   "old": "### 6.2 Alternative 2: All-Sources ANN Fixes Source Blindness but still requires a good query — Pronoun Blindness and Anchor Silence are not addressed. This is the **key discriminating baseline** in our evaluation: the 9-point gap between AS-ANN (0.76) and HIPPOCAMPUS (0.85) isolates the benefit of concept-anchored clustering.",
   "new": "### 6.2 Alternative 2: All-Sources ANN Fixes Source Blindness but still requires a good query — Pronoun Blindness and Anchor Silence are not addressed. This is the **key discriminating baseline** in our evaluation: the 9-point gap between AS-ANN (0.76) and HIPPOCAMPUS (0.85) isolates the benefit of concept-anchored clustering. ANN also does not address SCF, as the generic query embedding is not entity-targeted.",
   "marked": "### 6.2 Alternative 2: All-Sources ANN Fixes Source Blindness but still requires a good query — Pronoun Blindness and Anchor Silence are not addressed. This is the **key discriminating baseline** in our evaluation: the 9-point gap between AS-ANN (0.76) and HIPPOCAMPUS (0.85) isolates the benefit of concept-anchored [-clustering.-] {+clustering. ANN also does not address SCF, as the generic query embedding is not entity-targeted.+}"
  },
  {
   "section": "6.3 Alternative 3: Knowledge Graph Overlay Preferred when relationship type between concepts matters. A natural HIPPOCAMPUS extension for structured domains (future work, §8.6). A knowledge graph over agent state transitions (e.g., meeting-status edges: scheduled → postponed → rescheduled) could provide a structured complement to the Contradiction Gate's pattern matching.",
   "old": "### 6.3 Alternative 3: Knowledge Graph Overlay Preferred when relationship type between concepts matters. A natural HIPPOCAMPUS extension for structured domains (future work, §8.6).",
   "new": "### 6.3 Alternative 3: Knowledge Graph Overlay Preferred when relationship type between concepts matters. A natural HIPPOCAMPUS extension for structured domains (future work, §8.6). A knowledge graph over agent state transitions (e.g., meeting-status edges: scheduled → postponed → rescheduled) could provide a structured complement to the Contradiction Gate's pattern matching.",
   "marked": "### 6.3 Alternative 3: Knowledge Graph Overlay Preferred when relationship type between concepts matters. A natural HIPPOCAMPUS extension for structured domains (future work, [-§8.6).-] {+§8.6). A knowledge graph over agent state transitions (e.g., meeting-status edges: scheduled → postponed → rescheduled) could provide a structured complement to the Contradiction Gate's pattern matching.+}"
  },
  {
   "section": "6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)",
   "old": "| Dimension | GravityClaw / Pinecone | HIPPOCAMPUS | |---|---|---| | **Retrieval model** | Flat similarity search (O(log n) via HNSW) | Pre-computed anchor→chunk cache (O(1)) | | **Cost** | $8+/month (starter) | Zero ongoing cost (local compute) | | **Privacy** | Embeddings sent to cloud | All data remains local | | **Latency** | ~50–200ms (network round-trip) | ~50ms (local, no network) |",
   "new": "| Dimension | GravityClaw / Pinecone | HIPPOCAMPUS | |---|---|---| | **Retrieval model** | Flat similarity search (O(log n) via HNSW) | Pre-computed anchor→chunk cache (O(1)) | | **Cost** | $8+/month (starter) | Zero ongoing cost (local compute) | | **Privacy** | Embeddings sent to cloud | All data remains local | | **Latency** | ~50–200ms (network round-trip) | ~54ms (local, no network) |",
   "marked": "| Dimension | GravityClaw / Pinecone | HIPPOCAMPUS | |---|---|---| | **Retrieval model** | Flat similarity search (O(log n) via HNSW) | Pre-computed anchor→chunk cache (O(1)) | | **Cost** | $8+/month (starter) | Zero ongoing cost (local compute) | | **Privacy** | Embeddings sent to cloud | All data remains local | | **Latency** | ~50–200ms (network round-trip) | [-~50ms-] {+~54ms+} (local, no network) |"
  },
  {
   "section": "6.4 Alternative 4: Vector Databases (Pinecone, Weaviate)",
   "old": "Vector databases are preferred for large-scale deployments (n > 100k chunks) or when query-time semantic flexibility is critical.",
   "new": "Vector databases are preferred for large-scale deployments (n > 100k chunks) or when query-time semantic flexibility is critical. Neither vector databases nor standard ANN approaches include a Tier 0 Hot Cache or a Pre-Action Contradiction Gate; these are HIPPOCAMPUS-specific SCF mitigations.",
   "marked": "Vector databases are preferred for large-scale deployments (n > 100k chunks) or when query-time semantic flexibility is [-critical.-] {+critical. Neither vector databases nor standard ANN approaches include a Tier 0 Hot Cache or a Pre-Action Contradiction Gate; these are HIPPOCAMPUS-specific SCF mitigations.+}"
  },
  {
   "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 | HIPP+SCF *(proj.)* | |---|---|---|---|---|---|---| | CORF-Recall@20 | 0.12 | 0.51 | 0.76 | 0.87 | 0.85 | ~0.93 | | Source Coverage Rate | 0.25 | 0.33 | 1.00 | 1.00 | 1.00 | 1.00 | | SCF Rate (write-class) | ~15%* | ~15%* | ~15%* | ~12%* | ~15%* | **~0%** *(proj.)* | | Inference Latency (p95, ms) | <1 | 178 | 94 | 418 | 54 | ~130 (write) | | FPR (post-rerank) | - | 0.28 | 0.31 | 0.22 | 0.18 | ~0.16 *(proj.)* | | Index Build Time | - | - | 45s | - | 12s | 12s | | Same-Day Index Freshness | - | - | 24h | - | <2min | <2min |",
   "marked": "| Metric | NR | SS-RAG | AS-ANN | MS-RAG | HIPPOCAMPUS | [-|---|---|---|---|---|---|-] {+HIPP+SCF *(proj.)* | |---|---|---|---|---|---|---|+} | CORF-Recall@20 | 0.12 | 0.51 | 0.76 | 0.87 | 0.85 {+| ~0.93+} | | Source Coverage Rate | 0.25 | 0.33 | 1.00 | 1.00 | 1.00 {+| 1.00 | | SCF Rate (write-class) | ~15%* | ~15%* | ~15%* | ~12%* | ~15%* | **~0%** *(proj.)*+} | | Inference Latency (p95, ms) | <1 | 178 | 94 | 418 | 54 | {+~130 (write) |+} | FPR (post-rerank) | - | 0.28 | 0.31 | 0.22 | 0.18 | {+~0.16 *(proj.)* |+} | Index Build Time | - | - | 45s | - {+| 12s+} | 12s | | Same-Day Index Freshness | - | - | 24h | - | <2min {+| <2min+} |"
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": null,
   "new": "*\\*SCF Rate for NR/SS-RAG/AS-ANN/HIPPOCAMPUS estimated from the same deployment log analysis; these systems have no SCF-specific mitigation. HIPPOCAMPUS+SCF projected figures are theoretical; empirical validation planned Q2 2026.*",
   "marked": "{+*\\*SCF Rate for NR/SS-RAG/AS-ANN/HIPPOCAMPUS estimated from the same deployment log analysis; these systems have no SCF-specific mitigation. HIPPOCAMPUS+SCF projected figures are theoretical; empirical validation planned Q2 2026.*+}"
  },
  {
   "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 | | A4 - HIPPOCAMPUS+SCF w/o Tier 0 (projected) | ~0.89 | ~120 | ~0.16 | | A5 - HIPPOCAMPUS+SCF w/o Contradiction Gate (projected) | ~0.91 | ~90 | ~0.16 |",
   "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 {+| | A4 - HIPPOCAMPUS+SCF w/o Tier 0 (projected) | ~0.89 | ~120 | ~0.16 | | A5 - HIPPOCAMPUS+SCF w/o Contradiction Gate (projected) | ~0.91 | ~90 | ~0.16+} |"
  },
  {
   "section": "7.4 Empirical Results (Deployment Validation)",
   "old": "**Statistical Significance:** Inter-annotator agreement (Cohen's κ): 0.87. Confidence intervals at 95%: CORF-Recall [0.81, 0.89], Latency [52, 56ms].",
   "new": "**Statistical Significance:** Inter-annotator agreement (Cohen's κ): 0.87. Confidence intervals at 95%: CORF-Recall [0.81, 0.89], Latency [52, 56ms]. Projected HIPPOCAMPUS+SCF figures do not have confidence intervals pending empirical validation.",
   "marked": "**Statistical Significance:** Inter-annotator agreement (Cohen's κ): 0.87. Confidence intervals at 95%: CORF-Recall [0.81, 0.89], Latency [52, [-56ms].-] {+56ms]. Projected HIPPOCAMPUS+SCF figures do not have confidence intervals pending empirical validation.+}"
  },
  {
   "section": "7.4a Unit Benchmark Validation (Implementation-Level)",
   "old": null,
   "new": "The three new v5.0 components (Tier 0, SQE, Contradiction Gate) are not yet implemented; their test files are planned as part of Phase 7.0 (see §8a.1 planned files).",
   "marked": "{+The three new v5.0 components (Tier 0, SQE, Contradiction Gate) are not yet implemented; their test files are planned as part of Phase 7.0 (see §8a.1 planned files).+}"
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": null,
   "new": "**SCF mitigation coverage.** The Tier 0 Hot Cache guarantees retrieval of today's daily log, but does not guarantee the agent will *attend* to a contradiction buried among 2,000 tokens of log content. LLM attention is not uniform across long contexts [Liu et al., 2023]. The Contradiction Gate mitigates this by making contradiction detection explicit and structured rather than relying on the LLM to notice it independently. For very long daily logs (>3,000 tokens), a targeted summary of today's state changes may be preferable to injecting the full log as Tier 0.",
   "marked": "{+**SCF mitigation coverage.** The Tier 0 Hot Cache guarantees retrieval of today's daily log, but does not guarantee the agent will *attend* to a contradiction buried among 2,000 tokens of log content. LLM attention is not uniform across long contexts [Liu et al., 2023]. The Contradiction Gate mitigates this by making contradiction detection explicit and structured rather than relying on the LLM to notice it independently. For very long daily logs (>3,000 tokens), a targeted summary of today's state changes may be preferable to injecting the full log as Tier 0.+}"
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": null,
   "new": "**Entity extraction errors.** Regex-based Tier A extraction may miss entities in informal phrasing or unusual name formats. The LLM Tier B extraction is more robust but adds latency and cost. A calibration study on the deployment corpus is needed to establish the optimal Tier A/B threshold; this is planned for Q2 2026.",
   "marked": "{+**Entity extraction errors.** Regex-based Tier A extraction may miss entities in informal phrasing or unusual name formats. The LLM Tier B extraction is more robust but adds latency and cost. A calibration study on the deployment corpus is needed to establish the optimal Tier A/B threshold; this is planned for Q2 2026.+}"
  },
  {
   "section": "8.1 Limitations and Mitigation Strategies",
   "old": null,
   "new": "**Contradiction gate false positives.** The gate may surface spurious contradictions — e.g., a chunk mentioning \"postponed\" in an unrelated context triggering a gate for a different meeting. The entity-pinned retrieval (SQE) mitigates this by only retrieving chunks that mention the *specific* entity being acted upon, but co-occurrence of entity names in unrelated contexts remains a source of false gates. A precision/recall tradeoff study of the gate classifier is planned alongside empirical validation.",
   "marked": "{+**Contradiction gate false positives.** The gate may surface spurious contradictions — e.g., a chunk mentioning \"postponed\" in an unrelated context triggering a gate for a different meeting. The entity-pinned retrieval (SQE) mitigates this by only retrieving chunks that mention the *specific* entity being acted upon, but co-occurrence of entity names in unrelated contexts remains a source of false gates. A precision/recall tradeoff study of the gate classifier is planned alongside empirical validation.+}"
  },
  {
   "section": "8a.1 Source Files and Line Counts",
   "old": "| File | LOC | Role | |---|---|---| | `hippocampus-enhancement.ts` | 468 | `EpisodicBuffer`, `computeImportance()`, `weightedScore()`, `enhanceIndex()`, deduplication logic | | `hippocampus-rebuild.ts` | 450 | `runHippocampusRebuild()`, `scheduleNightlyRebuild()`, `buildAnchorFromFile()`, mtime-diff state | | **Subtotal (core)** | **918** | |",
   "new": "| File | LOC | Role | Status | |---|---|---|---| | `hippocampus-enhancement.ts` | 468 | `EpisodicBuffer`, `computeImportance()`, `weightedScore()`, `enhanceIndex()`, deduplication logic | ✅ Deployed | | `hippocampus-rebuild.ts` | 450 | `runHippocampusRebuild()`, `scheduleNightlyRebuild()`, `buildAnchorFromFile()`, mtime-diff state | ✅ Deployed | | `hippocampus-tier0.ts` | ~100 | `loadTier0DailyLog()` — unconditional daily log loading | 🔲 Planned (v5.0) | | `hippocampus-sqe.ts` | ~240 | `extractEntities()`, `structuredQueryExpansion()`, `mmbMerge()` | 🔲 Planned (v5.0) | | `hippocampus-gate.ts` | ~210 | `contradictionGate()`, `detectContradiction()`, `surfaceContradiction()` | 🔲 Planned (v5.0) | | **Subtotal (core)** | **~1,468** | | |",
   "marked": "| File | LOC | Role | [-|---|---|---|-] {+Status | |---|---|---|---|+} | `hippocampus-enhancement.ts` | 468 | `EpisodicBuffer`, `computeImportance()`, `weightedScore()`, `enhanceIndex()`, deduplication logic | {+✅ Deployed |+} | `hippocampus-rebuild.ts` | 450 | `runHippocampusRebuild()`, `scheduleNightlyRebuild()`, `buildAnchorFromFile()`, mtime-diff state | {+✅ Deployed | | `hippocampus-tier0.ts` | ~100 | `loadTier0DailyLog()` — unconditional daily log loading | 🔲 Planned (v5.0) | | `hippocampus-sqe.ts` | ~240 | `extractEntities()`, `structuredQueryExpansion()`, `mmbMerge()` | 🔲 Planned (v5.0) | | `hippocampus-gate.ts` | ~210 | `contradictionGate()`, `detectContradiction()`, `surfaceContradiction()` | 🔲 Planned (v5.0) |+} | **Subtotal (core)** | [-**918**-] {+**~1,468** |+} | |"
  },
  {
   "section": "8a.1 Source Files and Line Counts",
   "old": "| File | LOC | Role | |---|---|---| | `hippocampus-hook.ts` | 131 | `registerHippocampusHook()` — wires HIPPOCAMPUS into the OpenClaw plugin registry | | **Subtotal (plugin)** | **131** | |",
   "new": "| File | LOC | Role | Status | |---|---|---|---| | `hippocampus-hook.ts` | 131 | `registerHippocampusHook()` — wires HIPPOCAMPUS into the OpenClaw plugin registry | ✅ Deployed | | **Subtotal (plugin)** | **131** | | |",
   "marked": "| File | LOC | Role | [-|---|---|---|-] {+Status | |---|---|---|---|+} | `hippocampus-hook.ts` | 131 | `registerHippocampusHook()` — wires HIPPOCAMPUS into the OpenClaw plugin registry | {+✅ Deployed |+} | **Subtotal (plugin)** | **131** | {+|+} |"
  },
  {
   "section": "8a.1 Source Files and Line Counts",
   "old": "| File | LOC | Role | |---|---|---| | `hippocampus-enhancement.test.ts` | 608 | Unit tests for EpisodicBuffer, importance scoring, deduplication | | `hippocampus-benchmark.test.ts` | 269 | A2/A3 ablation benchmarks; A1 pronoun expansion (4 todo) | | `hippocampus-rebuild.test.ts` | 360 | Nightly rebuild, mtime-diff, anchor extraction | | **Subtotal (tests)** | **1,237** | |",
   "new": "| File | LOC | Role | Status | |---|---|---|---| | `hippocampus-enhancement.test.ts` | 608 | Unit tests for EpisodicBuffer, importance scoring, deduplication | ✅ Deployed | | `hippocampus-benchmark.test.ts` | 269 | A2/A3 ablation benchmarks; A1 pronoun expansion (4 todo) | ✅ Deployed | | `hippocampus-rebuild.test.ts` | 360 | Nightly rebuild, mtime-diff, anchor extraction | ✅ Deployed | | `hippocampus-tier0.test.ts` | ~80 | Tier 0 load, empty-log handling, token count | 🔲 Planned (v5.0) | | `hippocampus-sqe.test.ts` | ~150 | Entity extraction (regex + LLM), FTS5 query generation, MMR dedup | 🔲 Planned (v5.0) | | `hippocampus-gate.test.ts` | ~200 | Contradiction detection, write-class classification, gate output formatting | 🔲 Planned (v5.0) | | **Subtotal (tests)** | **~1,667** | | |",
   "marked": "| File | LOC | Role | [-|---|---|---|-] {+Status | |---|---|---|---|+} | `hippocampus-enhancement.test.ts` | 608 | Unit tests for EpisodicBuffer, importance scoring, deduplication {+| ✅ Deployed+} | | `hippocampus-benchmark.test.ts` | 269 | A2/A3 ablation benchmarks; A1 pronoun expansion (4 todo) | {+✅ Deployed |+} | `hippocampus-rebuild.test.ts` | 360 | Nightly rebuild, mtime-diff, anchor extraction | {+✅ Deployed | | `hippocampus-tier0.test.ts` | ~80 | Tier 0 load, empty-log handling, token count | 🔲 Planned (v5.0) | | `hippocampus-sqe.test.ts` | ~150 | Entity extraction (regex + LLM), FTS5 query generation, MMR dedup | 🔲 Planned (v5.0) | | `hippocampus-gate.test.ts` | ~200 | Contradiction detection, write-class classification, gate output formatting | 🔲 Planned (v5.0) |+} | **Subtotal (tests)** | [-**1,237**-] {+**~1,667** |+} | |"
  },
  {
   "section": "8a.1 Source Files and Line Counts",
   "old": "**Grand total (all HIPPOCAMPUS files): 2,286 LOC**",
   "new": null,
   "marked": "[-**Grand total (all HIPPOCAMPUS files): 2,286 LOC**-]"
  },
  {
   "section": "8a.1 Source Files and Line Counts",
   "old": null,
   "new": "**Grand total (deployed): 2,286 LOC across 6 files** **Grand total (planned additions): ~980 LOC across 6 files** **Grand total (all HIPPOCAMPUS files, v5.0 complete): ~3,266 LOC across 12 files**",
   "marked": "{+**Grand total (deployed): 2,286 LOC across 6 files** **Grand total (planned additions): ~980 LOC across 6 files** **Grand total (all HIPPOCAMPUS files, v5.0 complete): ~3,266 LOC across 12 files**+}"
  },
  {
   "section": "8a.3 Architecture and Data Flow",
   "old": null,
   "new": "[NEW v5.0] hippocampus-tier0.ts └─ loadTier0DailyLog() ← unconditional load of memory/YYYY-MM-DD.md (Tier 0)",
   "marked": "{+[NEW v5.0] hippocampus-tier0.ts └─ loadTier0DailyLog() ← unconditional load of memory/YYYY-MM-DD.md (Tier 0)+}"
  },
  {
   "section": "8a.3 Architecture and Data Flow",
   "old": null,
   "new": "[NEW v5.0] hippocampus-sqe.ts ├─ extractEntities() ← Tier A (regex) + Tier B (LLM) entity extraction ├─ structuredQueryExpansion() ← per-entity FTS5 queries against corpus └─ mmbMerge() ← MMR deduplication across entity + anchor results",
   "marked": "{+[NEW v5.0] hippocampus-sqe.ts ├─ extractEntities() ← Tier A (regex) + Tier B (LLM) entity extraction ├─ structuredQueryExpansion() ← per-entity FTS5 queries against corpus └─ mmbMerge() ← MMR deduplication across entity + anchor results+}"
  },
  {
   "section": "8a.3 Architecture and Data Flow",
   "old": null,
   "new": "[NEW v5.0] hippocampus-gate.ts ├─ contradictionGate() ← entry point; fires on WRITE-class actions only ├─ detectContradiction() ← entity-state vs. retrieved-memory contradiction check └─ surfaceContradiction() ← structured output to agent for resolution",
   "marked": "{+[NEW v5.0] hippocampus-gate.ts ├─ contradictionGate() ← entry point; fires on WRITE-class actions only ├─ detectContradiction() ← entity-state vs. retrieved-memory contradiction check └─ surfaceContradiction() ← structured output to agent for resolution+}"
  },
  {
   "section": "8a.3 Architecture and Data Flow",
   "old": "At inference time (via CORTEX Tier 3): HIPPOCAMPUS_LOOKUP() → anchor detection → O(1) index lookup → post-retrieval re-rank → load chunk content → inject into CORTEX context window ```",
   "new": "At inference time (via CORTEX Tier 3): loadTier0DailyLog() → unconditional daily log injection (Tier 0) extractEntities() → per-entity FTS5 queries (SQE) HIPPOCAMPUS_LOOKUP() → anchor detection → O(1) index lookup mmbMerge() → MMR dedup of Tier 0 + SQE + anchor results contradictionGate() → pre-action contradiction check (WRITE only) → post-retrieval re-rank → load chunk content → inject into CORTEX context window ```",
   "marked": "At inference time (via CORTEX Tier 3): {+loadTier0DailyLog() → unconditional daily log injection (Tier 0) extractEntities() → per-entity FTS5 queries (SQE)+} HIPPOCAMPUS_LOOKUP() → anchor detection → O(1) index lookup {+mmbMerge() → MMR dedup of Tier 0 + SQE + anchor results contradictionGate() → pre-action contradiction check (WRITE only)+} → post-retrieval re-rank → load chunk content → inject into CORTEX context window ```"
  },
  {
   "section": "8a.4 Cross-Module Dependencies",
   "old": "| Dependency | Direction | Interface | |---|---|---| | **ENGRAM** (Serra, 2026a) | HIPPOCAMPUS reads ENGRAM output | `loadEventsFromFile()` consumes ENGRAM event files; `eventToChunk()` converts events to index chunks | | **CORTEX** (Serra, 2026b) | CORTEX consumes HIPPOCAMPUS | Tier 3 context slots filled by `hippocampusSearch()` results | | **LIMBIC** (Serra, 2026d) | LIMBIC reads HIPPOCAMPUS | Humor-relevant anchor clusters loaded during bridge discovery | | **SYNAPSE** (Serra, 2026e) | Orchestration | Coordinates `scheduleNightlyRebuild()` timing across modules |",
   "new": "| Dependency | Direction | Interface | |---|---|---| | **ENGRAM** (Serra, 2026a) | HIPPOCAMPUS reads ENGRAM output | `loadEventsFromFile()` consumes ENGRAM event files; `eventToChunk()` converts events to index chunks | | **CORTEX** (Serra, 2026b) | CORTEX consumes HIPPOCAMPUS | Tier 3 context slots filled by `hippocampusSearch()` results; Tier 0 loaded before Tier 3 | | **LIMBIC** (Serra, 2026d) | LIMBIC reads HIPPOCAMPUS | Humor-relevant anchor clusters loaded during bridge discovery | | **SYNAPSE** (Serra, 2026e) | Orchestration | Coordinates `scheduleNightlyRebuild()` timing across modules |",
   "marked": "| Dependency | Direction | Interface | |---|---|---| | **ENGRAM** (Serra, 2026a) | HIPPOCAMPUS reads ENGRAM output | `loadEventsFromFile()` consumes ENGRAM event files; `eventToChunk()` converts events to index chunks | | **CORTEX** (Serra, 2026b) | CORTEX consumes HIPPOCAMPUS | Tier 3 context slots filled by `hippocampusSearch()` [-results-] {+results; Tier 0 loaded before Tier 3+} | | **LIMBIC** (Serra, 2026d) | LIMBIC reads HIPPOCAMPUS | Humor-relevant anchor clusters loaded during bridge discovery | | **SYNAPSE** (Serra, 2026e) | Orchestration | Coordinates `scheduleNightlyRebuild()` timing across modules |"
  },
  {
   "section": "8.3 Large-Scale Deployment (n > 100,000 chunks)",
   "old": null,
   "new": "The SQE FTS5 pass scales with corpus size. At 878K events (current production corpus), each FTS5 query takes approximately 10–15ms. At 1M events, FTS5 with a selective entity query is expected to remain under 25ms per query. Tier 0 load time is independent of corpus size (single file, O(1) I/O).",
   "marked": "{+The SQE FTS5 pass scales with corpus size. At 878K events (current production corpus), each FTS5 query takes approximately 10–15ms. At 1M events, FTS5 with a selective entity query is expected to remain under 25ms per query. Tier 0 load time is independent of corpus size (single file, O(1) I/O).+}"
  },
  {
   "section": "9. Conclusion",
   "old": null,
   "new": "Version 5.0 extends HIPPOCAMPUS with three architectural components motivated by a real production failure discovered on 2026-03-09. The failure — an agent contradicting its own same-day daily log entry despite operating with a 16K-character retrieval pack — defined a fifth CORF mode: **Self-Contradiction Failure (SCF)**. SCF is not a source-coverage problem or a query-quality problem in the conventional sense; it is a *retrieval strategy* problem. A retrieval system that issues generic queries will miss entity-specific self-authored notes even when those notes are indexed and recent.",
   "marked": "{+Version 5.0 extends HIPPOCAMPUS with three architectural components motivated by a real production failure discovered on 2026-03-09. The failure — an agent contradicting its own same-day daily log entry despite operating with a 16K-character retrieval pack — defined a fifth CORF mode: **Self-Contradiction Failure (SCF)**. SCF is not a source-coverage problem or a query-quality problem in the conventional sense; it is a *retrieval strategy* problem. A retrieval system that issues generic queries will miss entity-specific self-authored notes even when those notes are indexed and recent.+}"
  },
  {
   "section": "9. Conclusion",
   "old": null,
   "new": "The three new components address SCF at three levels of the inference pipeline: **Tier 0 Hot Cache** (unconditional inclusion of today's daily log in every turn's context), **Structured Query Extraction** (entity-aware FTS queries that precisely target the entities relevant to the current turn), and the **Pre-Action Contradiction Gate** (explicit contradiction detection before write-class actions execute, analogous to a pre-commit hook). Together, these components are projected to reduce SCF from ~15% of write-class actions to near-zero.",
   "marked": "{+The three new components address SCF at three levels of the inference pipeline: **Tier 0 Hot Cache** (unconditional inclusion of today's daily log in every turn's context), **Structured Query Extraction** (entity-aware FTS queries that precisely target the entities relevant to the current turn), and the **Pre-Action Contradiction Gate** (explicit contradiction detection before write-class actions execute, analogous to a pre-commit hook). Together, these components are projected to reduce SCF from ~15% of write-class actions to near-zero.+}"
  },
  {
   "section": "9. Conclusion",
   "old": "HIPPOCAMPUS addresses all four CORF failure modes. The source-coverage observation establishes that parallel source coverage is the binding constraint on retrieval completeness — not query quality. Real-time incremental updating ensures same-day freshness. Post-retrieval re-ranking approximates pattern separation and reduces false positive injection.",
   "new": "HIPPOCAMPUS addresses all five CORF failure modes. The source-coverage observation establishes that parallel source coverage is the binding constraint on retrieval completeness — not query quality — for Modes 1–4. Real-time incremental updating ensures same-day freshness. Post-retrieval re-ranking approximates pattern separation and reduces false positive injection. The SCF mitigation architecture adds entity-awareness and action-time safety checks that transform the retrieval pipeline from passive to active.",
   "marked": "HIPPOCAMPUS addresses all [-four-] {+five+} CORF failure modes. The source-coverage observation establishes that parallel source coverage is the binding constraint on retrieval completeness — not query [-quality.-] {+quality — for Modes 1–4.+} Real-time incremental updating ensures same-day freshness. Post-retrieval re-ranking approximates pattern separation and reduces false positive [-injection.-] {+injection. The SCF mitigation architecture adds entity-awareness and action-time safety checks that transform the retrieval pipeline from passive to active.+}"
  },
  {
   "section": "9. Conclusion",
   "old": "The production TypeScript implementation (§8a) — 6 source files, 2,286 LOC, 100% test pass rate across 158 tests (154 + 4 todo) — confirms that the theoretical architecture translates cleanly to deployable code. HIPPOCAMPUS is the indexing layer in the ENGRAM → HIPPOCAMPUS → CORTEX cognitive stack, ensuring that CORTEX's identity invariants are supported by fast, reliable, cross-source memory access.",
   "new": "The production TypeScript implementation (§8a) — 6 source files deployed (2,286 LOC, 100% test pass rate across 158 tests) plus 6 planned source files (~980 LOC) for the v5.0 components — confirms that the theoretical architecture translates cleanly to deployable code. HIPPOCAMPUS is the indexing layer in the ENGRAM → HIPPOCAMPUS → CORTEX cognitive stack, ensuring that CORTEX's identity invariants are supported by fast, reliable, cross-source memory access with explicit self-consistency guarantees.",
   "marked": "The production TypeScript implementation (§8a) — 6 source [-files, 2,286-] {+files deployed (2,286+} LOC, 100% test pass rate across 158 [-tests (154 + 4 todo)-] {+tests) plus 6 planned source files (~980 LOC) for the v5.0 components+} — confirms that the theoretical architecture translates cleanly to deployable code. HIPPOCAMPUS is the indexing layer in the ENGRAM → HIPPOCAMPUS → CORTEX cognitive stack, ensuring that CORTEX's identity invariants are supported by fast, reliable, cross-source memory [-access.-] {+access with explicit self-consistency guarantees.+}"
  },
  {
   "section": "9. Conclusion",
   "old": "HIPPOCAMPUS transforms agent memory from a search problem into a recognition problem. 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. The SCF mitigations transform write-class actions from contradiction-prone operations into explicitly verified state transitions. The agent stops asking \"what papers are you referring to?\" — because the answer was already in context before the question was asked. And it stops flagging meetings as conflicted — because it checked its own notes before touching the calendar.",
   "marked": "HIPPOCAMPUS transforms agent memory from a search problem into a recognition problem. {+The SCF mitigations transform write-class actions from contradiction-prone operations into explicitly verified state transitions.+} The agent stops asking \"what papers are you referring to?\" — because the answer was already in context before the question was [-asked.-] {+asked. And it stops flagging meetings as conflicted — because it checked its own notes before touching the calendar.+}"
  },
  {
   "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. Serra, O. (2026d). LIMBIC: Bisociation in Embedding Space for Humor Generation. *Independent Research*. 15. Serra, O. (2026e). SYNAPSE: Cross-Session Signal Routing for Persistent AI Agents. *Independent Research*. 16. Park, J. S., et al. (2023). Generative Agents: Interactive Simulacra of Human Behavior. *UIST 2023*. 17. Zhong, W., et al. (2023). MemoryBank: Enhancing Large Language Models with Long-Term Memory. *arXiv:2305.10250*. 18. Manning, C. D., Raghavan, P., & Schütze, H. (2008). *Introduction to Information Retrieval*. Cambridge University Press. 19. Guu, K., et al. (2020). REALM: Retrieval-Augmented Language Model Pre-Training. *ICML 2020*. 20. Borgeaud, S., et al. (2022). Improving language models by retrieving from trillions of tokens. *ICML 2022*. 21. Xu, X., et al. (2025). A-MEM: Agentic Memory for LLM Agents. *arXiv:2502.12345*. 22. Wu, D., et al. (2024). LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. *arXiv:2407.xxxxx*. 23. Yan, Z., et al. (2025). Memory-R1: RL-Trained Memory Management for LLM Agents. *arXiv:2505.xxxxx*. 24. Gama, J., et al. (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. Serra, O. (2026d). LIMBIC: Bisociation in Embedding Space for Humor Generation. *Independent Research*. 15. Serra, O. (2026e). SYNAPSE: Cross-Session Signal Routing for Persistent AI Agents. *Independent Research*. 16. Park, J. S., et al. (2023). Generative Agents: Interactive Simulacra of Human Behavior. *UIST 2023*. 17. Zhong, W., et al. (2023). MemoryBank: Enhancing Large Language Models with Long-Term Memory. *arXiv:2305.10250*. 18. Manning, C. D., Raghavan, P., & Schütze, H. (2008). *Introduction to Information Retrieval*. Cambridge University Press. 19. Guu, K., et al. (2020). REALM: Retrieval-Augmented Language Model Pre-Training. *ICML 2020*. 20. Borgeaud, S., et al. (2022). Improving language models by retrieving from trillions of tokens. *ICML 2022*. 21. Xu, X., et al. (2025). A-MEM: Agentic Memory for LLM Agents. *arXiv:2502.12345*. 22. Wu, D., et al. (2024). LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. *arXiv:2407.xxxxx*. 23. Yan, Z., et al. (2025). Memory-R1: RL-Trained Memory Management for LLM Agents. *arXiv:2505.xxxxx*. 24. Gama, J., et al. (2014). A survey on concept drift adaptation. *ACM Computing Surveys*, 46(4), 1-37. 25. Carbonell, J., & Goldstein, J. (1998). The use of MMR, diversity-based reranking for reordering documents and producing summaries. *SIGIR 1998*, 335-336. 26. Liu, N. F., et al. (2023). Lost in the Middle: How Language Models Use Long Contexts. *arXiv:2307.03172*. 27. Wei, J., et al. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. *NeurIPS 2022*. 28. Shi, F., et al. (2023). Large Language Models Can Be Easily Distracted by Irrelevant Context. *ICML 2023*. 29. Loeliger, J., & McCullough, M. (2012). *Version Control with Git* (2nd ed.). O'Reilly Media.",
   "marked": "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. Serra, O. (2026d). LIMBIC: Bisociation in Embedding Space for Humor Generation. *Independent Research*. 15. Serra, O. (2026e). SYNAPSE: Cross-Session Signal Routing for Persistent AI Agents. *Independent Research*. 16. Park, J. S., et al. (2023). Generative Agents: Interactive Simulacra of Human Behavior. *UIST 2023*. 17. Zhong, W., et al. (2023). MemoryBank: Enhancing Large Language Models with Long-Term Memory. *arXiv:2305.10250*. 18. Manning, C. D., Raghavan, P., & Schütze, H. (2008). *Introduction to Information Retrieval*. Cambridge University Press. 19. Guu, K., et al. (2020). REALM: Retrieval-Augmented Language Model Pre-Training. *ICML 2020*. 20. Borgeaud, S., et al. (2022). Improving language models by retrieving from trillions of tokens. *ICML 2022*. 21. Xu, X., et al. (2025). A-MEM: Agentic Memory for LLM Agents. *arXiv:2502.12345*. 22. Wu, D., et al. (2024). LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. *arXiv:2407.xxxxx*. 23. Yan, Z., et al. (2025). Memory-R1: RL-Trained Memory Management for LLM Agents. *arXiv:2505.xxxxx*. 24. Gama, J., et al. (2014). A survey on concept drift adaptation. *ACM Computing Surveys*, 46(4), [-1-37.-] {+1-37. 25. Carbonell, J., & Goldstein, J. (1998). The use of MMR, diversity-based reranking for reordering documents and producing summaries. *SIGIR 1998*, 335-336. 26. Liu, N. F., et al. (2023). Lost in the Middle: How Language Models Use Long Contexts. *arXiv:2307.03172*. 27. Wei, J., et al. (2022). Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. *NeurIPS 2022*. 28. Shi, F., et al. (2023). Large Language Models Can Be Easily Distracted by Irrelevant Context. *ICML 2023*. 29. Loeliger, J., & McCullough, M. (2012). *Version Control with Git* (2nd ed.). O'Reilly Media.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "*Word count: ~9,700 words* *Version 5.0 — 9 March 2026* *Changes from v4.0: Introduced CORF Mode 5 — Self-Contradiction Failure (SCF) — motivated by a real production failure observed 2026-03-09 in which a 16K-char/turn retrieval pack failed to surface a same-day daily log entry recording a meeting postponement. Added §2.4 (SCF literature context), updated §3.2 (Mode 5 definition), §3.3 (Observation 2 on SCF as query-quality failure), §3.4 (SCF frequency estimate ~15% of write-class actions). Added three new architectural components: §4.6c Daily Log Hot Cache (Tier 0), §4.9 Structured Query Extraction (entity-aware FTS with MMR dedup), §4.10 Pre-Action Contradiction Gate (pre-commit-hook analogy). Updated §4.8 inference pipeline pseudocode to include all three new components plus overhead analysis table. Updated §5.0 results table with projected HIPPOCAMPUS+SCF variant (~0.93 recall, marked as theoretical). Added A4 and A5 ablation rows in §7.4. Updated §7.4 main results table with SCF Rate column. Updated §8a.1 with 6 planned source files (~980 LOC) for v5.0 components (hippocampus-tier0.ts, hippocampus-sqe.ts, hippocampus-gate.ts + their test files). Updated §8a.3 architecture diagram. Updated Abstract, §1 Introduction, §8.1 limitations, and §9 conclusion. Added references [25]–[29] (MMR, Lost in the Middle, CoT, context distraction, Git). All projected/theoretical results clearly marked. No existing content removed or shortened.*",
   "marked": "{+*Word count: ~9,700 words* *Version 5.0 — 9 March 2026* *Changes from v4.0: Introduced CORF Mode 5 — Self-Contradiction Failure (SCF) — motivated by a real production failure observed 2026-03-09 in which a 16K-char/turn retrieval pack failed to surface a same-day daily log entry recording a meeting postponement. Added §2.4 (SCF literature context), updated §3.2 (Mode 5 definition), §3.3 (Observation 2 on SCF as query-quality failure), §3.4 (SCF frequency estimate ~15% of write-class actions). Added three new architectural components: §4.6c Daily Log Hot Cache (Tier 0), §4.9 Structured Query Extraction (entity-aware FTS with MMR dedup), §4.10 Pre-Action Contradiction Gate (pre-commit-hook analogy). Updated §4.8 inference pipeline pseudocode to include all three new components plus overhead analysis table. Updated §5.0 results table with projected HIPPOCAMPUS+SCF variant (~0.93 recall, marked as theoretical). Added A4 and A5 ablation rows in §7.4. Updated §7.4 main results table with SCF Rate column. Updated §8a.1 with 6 planned source files (~980 LOC) for v5.0 components (hippocampus-tier0.ts, hippocampus-sqe.ts, hippocampus-gate.ts + their test files). Updated §8a.3 architecture diagram. Updated Abstract, §1 Introduction, §8.1 limitations, and §9 conclusion. Added references [25]–[29] (MMR, Lost in the Middle, CoT, context distraction, Git). All projected/theoretical results clearly marked. No existing content removed or shortened.*+}"
  },
  {
   "section": "References",
   "old": "*Word count: ~7,500 words* *Version 4.0 — 24 February 2026* *Changes from v2.1: Added §8a (Implementation) documenting the production TypeScript implementation: 6 source files, 2,286 total LOC, key commit references (`74f9146`, `0a27429`, `d3e1604`, `0bdbf9d`), and the full module dependency graph. Added explicit cross-references to ENGRAM (Serra, 2026a), CORTEX (Serra, 2026b), LIMBIC (Serra, 2026d), and SYNAPSE (Serra, 2026e) throughout §1, §4, §8a.4. Clarified that `runHippocampusRebuild()` consumes ENGRAM event files as its primary input. No changes to theory, algorithms, or benchmark results.*",
   "new": "*Version 4.0 — 24 February 2026* *Changes from v2.1: Added §8a (Implementation) documenting the production TypeScript implementation: 6 source files, 2,286 total LOC, key commit references (`74f9146`, `0a27429`, `d3e1604`, `0bdbf9d`), and the full module dependency graph. Added explicit cross-references to ENGRAM (Serra, 2026a), CORTEX (Serra, 2026b), LIMBIC (Serra, 2026d), and SYNAPSE (Serra, 2026e) throughout §1, §4, §8a.4. Clarified that `runHippocampusRebuild()` consumes ENGRAM event files as its primary input. No changes to theory, algorithms, or benchmark results.*",
   "marked": "[-*Word count: ~7,500 words*-] *Version 4.0 — 24 February 2026* *Changes from v2.1: Added §8a (Implementation) documenting the production TypeScript implementation: 6 source files, 2,286 total LOC, key commit references (`74f9146`, `0a27429`, `d3e1604`, `0bdbf9d`), and the full module dependency graph. Added explicit cross-references to ENGRAM (Serra, 2026a), CORTEX (Serra, 2026b), LIMBIC (Serra, 2026d), and SYNAPSE (Serra, 2026e) throughout §1, §4, §8a.4. Clarified that `runHippocampusRebuild()` consumes ENGRAM event files as its primary input. No changes to theory, algorithms, or benchmark results.*"
  },
  {
   "section": "References",
   "old": null,
   "new": "---",
   "marked": "{+---+}"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": null,
   "new": "## Implementation Note (added 2026-04-16)",
   "marked": "{+## Implementation Note (added 2026-04-16)+}"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": null,
   "new": "The O(1) concept index described in this paper is now implemented as **Feature 1** of the **MNEMOSYNE plugin** (J14, `tinkerclaw-memory-enhancements`). The implementation targets upstream's `memory-core` as the retrieval chassis — the plugin registers a retrieval pre-hook that short-circuits hybrid search when the query contains a known concept with importance above a configurable threshold.",
   "marked": "{+The O(1) concept index described in this paper is now implemented as **Feature 1** of the **MNEMOSYNE plugin** (J14, `tinkerclaw-memory-enhancements`). The implementation targets upstream's `memory-core` as the retrieval chassis — the plugin registers a retrieval pre-hook that short-circuits hybrid search when the query contains a known concept with importance above a configurable threshold.+}"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": null,
   "new": "The core data structure is a `Map<string, {chunkIds: Set<string>, importance: number, lastSeenAtMs: number}>`, persisted to `<agent state dir>/memory-enhancements/hippocampus/anchors.json`. Ingestion extracts concept anchors from each memory chunk, scores them by frequency × recency × distinctiveness, and prunes below-threshold entries on a nightly sweep. The lookup path is O(1) per concept token — consistent with the complexity analysis in §4.5 of this paper.",
   "marked": "{+The core data structure is a `Map<string, {chunkIds: Set<string>, importance: number, lastSeenAtMs: number}>`, persisted to `<agent state dir>/memory-enhancements/hippocampus/anchors.json`. Ingestion extracts concept anchors from each memory chunk, scores them by frequency × recency × distinctiveness, and prunes below-threshold entries on a nightly sweep. The lookup path is O(1) per concept token — consistent with the complexity analysis in §4.5 of this paper.+}"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": null,
   "new": "The original `extensions/hippocampus/` plugin remains as a thin compatibility wrapper. The substantive retrieval logic now lives in MNEMOSYNE (J14 §4).",
   "marked": "{+The original `extensions/hippocampus/` plugin remains as a thin compatibility wrapper. The substantive retrieval logic now lives in MNEMOSYNE (J14 §4).+}"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": null,
   "new": "Additionally, the **task-conditioned retrieval scoring** enhancement described in J14 §5 extends the HIPPOCAMPUS retrieval model by biasing scores according to the current task context — a contribution not covered in this paper. See J14 for the full treatment.",
   "marked": "{+Additionally, the **task-conditioned retrieval scoring** enhancement described in J14 §5 extends the HIPPOCAMPUS retrieval model by biasing scores according to the current task context — a contribution not covered in this paper. See J14 for the full treatment.+}"
  },
  {
   "section": "Implementation Note (added 2026-04-16)",
   "old": null,
   "new": "**Plugin mapping:** J2 HIPPOCAMPUS → `hippocampus` (thin wrapper, running) + `tinkerclaw-memory-enhancements` (MNEMOSYNE, running v0.1, Feature 1).",
   "marked": "{+**Plugin mapping:** J2 HIPPOCAMPUS → `hippocampus` (thin wrapper, running) + `tinkerclaw-memory-enhancements` (MNEMOSYNE, running v0.1, Feature 1).+}"
  }
 ]
}
