v7.3 → v7.4
What changed from v7.3 to v7.4
From v7.3 (2 Jun) to v7.4 (2 Jun): 6,658 words to 6,677 words, 348 words in new or rewritten paragraphs and 329 taken out, 21 paragraphs changed.
Overview reframed: storage inside a loop, companion papers no longer namedThe overview and the companion-paper section are rewritten without naming the companion papers. Total Recall is now described as a self-contained storage substrate that sits inside a loop with an index and a nightly tuning process, and the paper states that those two are out of its scope. The improvement notes record that the pending notes went into this version.
v7.3 · 2 June 2026v7.4 · 2 June 2026
··· 3 unchanged paragraphs folded ···
v7.3 · Architecture Overview: The Memory Stack## Architecture Overview: The Memory Stack
removed in v7.4
v7.3 · Architecture Overview: The Memory StackTotal Recall is the storage layer of a three-layer memory architecture for persistent agents. The layers are independently useful, but their composition produces capability none achieves alone.
removed in v7.4
not in v7.3
v7.4 · Architecture Overview: Storage Within a Memory Loop## Architecture Overview: Storage Within a Memory Loop
not in v7.3
v7.4 · Architecture Overview: Storage Within a Memory LoopTotal Recall is a storage and compaction substrate. It is self-contained, but it is designed to sit inside a larger loop, and the loop matters because two adjacent mechanisms — an index built over the stored pointers, and a nightly process that tunes the storage thresholds — turn durable storage into queryable, self-improving memory. We describe those two mechanisms here only to the extent needed to understand the interfaces Total Recall exposes; their full design is external to this paper.
v7.3 · Architecture Overview: Storage Within a Memory Loop
v7.4 · Architecture Overview: Storage Within a Memory Loop
v7.3 · Architecture Overview: Storage Within a Memory Loop- **Storage and compaction (this paper).** A lossless, append-only event store treated as ground truth, with the context window managed as a cache over it. When context fills, history is evicted via topic-hinted pointers rather than summarized, and writes are reconciled so the working set stays bounded. - **Indexing and retrieval (Instant Recall, Serra 2026a).** A navigable index built *over* the compacted pointers — clustering them by topic, scoring them by importance, and serving sub-second lookup. The storage layer's topic-hinted markers are the structured seams this index grips; without them, retrieval degrades to generic full-text search over raw logs. - **Consolidation and self-improvement (Sleep Consolidation, Serra 2026e).** A nightly reflection process that reviews the day's retrieval successes and failures, builds episodic summaries, and feeds corrections back down — adjusting compaction thresholds and running the deferred write-reconciliation sweep (§8.3). It is the only safe moment to decide a fact is stale, because that requires knowing its downstream outcome.
v7.4 · Architecture Overview: Storage Within a Memory Loop- **Storage and compaction.** A lossless, append-only event store treated as ground truth, with the context window managed as a cache over it. When context fills, history is evicted via topic-hinted pointers rather than summarized, and writes are reconciled so the working set stays bounded. This is the subject of the present paper. - **Indexing and retrieval.** A navigable index built *over* the compacted pointers — clustering them by topic, scoring them by importance, and serving sub-second lookup. The storage layer's topic-hinted markers are the structured seams this index grips; without them, retrieval degrades to generic full-text search over raw logs. Total Recall's contribution to this layer is the pointer format; the index itself is out of scope. - **Consolidation and self-improvement.** A nightly reflection process reviews the day's retrieval successes and failures, builds episodic summaries, and feeds corrections back — adjusting compaction thresholds and running the deferred write-reconciliation sweep (§8.3). Nightly is the only safe moment to decide a fact is stale, because that requires knowing its downstream outcome. Total Recall supplies the deferred sweep; the reflection policy that drives it is out of scope.
v7.3 · Architecture Overview: Storage Within a Memory LoopThe emergent property is a closed loop: storage produces structured pointers, indexing makes them queryable, and consolidation observes how well retrieval worked and re-tunes storage. The remainder of this paper specifies the storage layer; the companion papers specify the other two.
v7.4 · Architecture Overview: Storage Within a Memory LoopThe result is a closed loop: storage produces structured pointers, indexing makes them queryable, and consolidation observes how well retrieval worked and re-tunes storage. The rest of this paper specifies storage and compaction; the two adjacent mechanisms appear only where they touch its interfaces.
··· 25 unchanged paragraphs folded ···
v7.3 · 2.4 Companion Papers### 2.4 Companion Papers
removed in v7.4
v7.3 · 2.4 Companion PapersTotal Recall is one layer of a multi-layer memory architecture. It is self-contained, but composes with companion systems whose interfaces are worth stating concretely, because the composition produces capability none of the layers achieves alone.
removed in v7.4
not in v7.3
v7.4 · 2.4 The Mechanisms That Surround Storage### 2.4 The Mechanisms That Surround Storage
not in v7.3
v7.4 · 2.4 The Mechanisms That Surround StorageStorage and compaction are useful on their own, but three adjacent mechanisms determine how much value the stored content yields in practice. We state their interfaces concretely because each one depends on a property Total Recall guarantees, and naming that dependency clarifies what the storage layer must produce. The mechanisms themselves are external to this paper.
v7.3 · 2.4 The Mechanisms That Surround Storage- **Indexing layer (Instant Recall, Serra 2026a).** Pointer-based compaction is not just space-saving; it is what makes downstream retrieval tractable. Each marker carries topic hints and a time range — structured anchors, not prose. A separate retrieval system builds a navigable index over these compacted pointers: clustering them by topic, scoring them by importance, and enabling sub-second lookup across the full corpus. *Without* the topic-hinted pointers, retrieval degrades to generic full-text search over raw, undifferentiated logs. The pointers are the seams the index grips. - **Consolidation layer (Sleep Consolidation, Serra 2026e).** A nightly reflection process reviews the day's retrieval successes and failures, identifies patterns (for example, "medical context is consistently under-retrieved"), and adjusts compaction and importance thresholds — effectively teaching the storage layer which memories deserve preservation. This is also where the deferred reconciliation sweep runs (§8.3): the only safe moment to decide that a fact is now stale is after its downstream outcome is known. - **Identity layer (Identity Persistence, Serra 2026b).** Persona-aware context assembly determines which system-prompt and persona blocks ride alongside the push pack; these blocks are never evicted, anchoring continuity across resets.
v7.4 · 2.4 The Mechanisms That Surround Storage- **The index over pointers.** Pointer-based compaction is not just space-saving; it is what makes downstream retrieval tractable. Each marker carries topic hints and a time range — structured anchors, not prose. A retrieval system can build a navigable index over these compacted pointers: clustering them by topic, scoring them by importance, and enabling sub-second lookup across the full corpus. *Without* the topic-hinted pointers, that index has nothing to grip and retrieval degrades to generic full-text search over raw, undifferentiated logs. The pointers are the seams. - **The nightly reflection process.** A consolidation process running once per day reviews the day's retrieval successes and failures, identifies patterns (for example, "medical context is consistently under-retrieved"), and adjusts compaction and importance thresholds — in effect teaching storage which memories deserve preservation. This is also where the deferred reconciliation sweep runs (§8.3): the only safe moment to decide that a fact is now stale is after its downstream outcome is known. - **Persona-aware assembly.** Continuity across resets requires that certain blocks — the system prompt and persona state — ride alongside the push pack and are never evicted. Total Recall guarantees this by classifying those kinds as non-evictable (§5.1); the policy that selects which persona blocks to include is decided upstream of storage.
v7.3 · 2.4 Companion PapersThe present paper is self-contained; the companion papers provide the broader stack.
removed in v7.4
··· 22 unchanged paragraphs folded ···
v7.3 · 4.3 The Upstream Dependency: Query FormulationThe completeness bound assumes the agent issues a query that actually matches how the knowledge was stored. In production this is the binding constraint, not storage. An agent that formulates a low-similarity query, accepts the weak result, and never escalates will miss content that is physically present and perfectly recoverable. Task-conditioned scoring improves *what is injected once a query is issued*; it does not decide *whether* to query or *whether the result is good enough*. The complementary mechanism — a confidence threshold below which the agent reformulates and retries with expanded queries before accepting failure — belongs in the metacognitive layer (Instant Recall, Serra 2026a; escalation in Fractal Reasoning, Serra 2026f). Total Recall defines the interface: `recall(query)` returns scored results with the similarity scores exposed, so a caller can gate on confidence. We return to this as a limitation in §10.
v7.4 · 4.3 The Upstream Dependency: Query FormulationThe completeness bound assumes the agent issues a query that actually matches how the knowledge was stored. In production this is the binding constraint, not storage. An agent that formulates a low-similarity query, accepts the weak result, and never escalates will miss content that is physically present and perfectly recoverable. Task-conditioned scoring improves *what is injected once a query is issued*; it does not decide *whether* to query or *whether the result is good enough*. The complementary mechanism is a confidence threshold below which the agent reformulates and retries with expanded queries before accepting failure — a metacognitive control loop that sits above storage and is out of scope here. Total Recall defines the interface that makes such a loop possible: `recall(query)` returns scored results with the similarity scores exposed, so a caller can gate on confidence and decide to retry. We return to this as a limitation in §11.
··· 37 unchanged paragraphs folded ···
v7.3 · 8.3 Hot-Path Safety and Deferred ReconciliationUPDATE and DELETE are **deferred to the nightly consolidation sweep** (Layer 3, §3.2), the same pass that detects episodes and builds summaries. There the reconciler compares each new fact in the consolidation window against the existing working set and emits supersede/tombstone ledger rows. This is also the natural home for the cross-layer feedback loop: the nightly reflection process (Sleep Consolidation, Serra 2026e) reviews which memories were retrieved and which were missed, and tunes both compaction thresholds and reconciliation aggressiveness accordingly.
v7.4 · 8.3 Hot-Path Safety and Deferred ReconciliationUPDATE and DELETE are **deferred to the nightly consolidation sweep** (Layer 3, §3.2), the same pass that detects episodes and builds summaries. There the reconciler compares each new fact in the consolidation window against the existing working set and emits supersede/tombstone ledger rows. This is also the natural home for the feedback loop: the nightly reflection process reviews which memories were retrieved and which were missed, and tunes both compaction thresholds and reconciliation aggressiveness accordingly.
··· 32 unchanged paragraphs folded ···
v7.3 · 10.2 Exact-Match Recall Results**Note on Table 1 vs. Table 2 (§10.4).** Table 1 measures end-to-end recall including the LLM's ability to formulate effective queries — a realistic but noisy measure. Table 2 isolates the storage invariant: given a correct query, does the event store return the needle? The 94% vs. 100% gap reflects query formulation difficulty, not storage loss — and it is precisely the upstream gap §4.3 and §10.5 discuss.
v7.4 · 10.2 Exact-Match Recall Results**Note on Table 1 vs. Table 2 (§10.4).** Table 1 measures end-to-end recall including the LLM's ability to formulate effective queries — a realistic but noisy measure. Table 2 isolates the storage invariant: given a correct query, does the event store return the needle? The 94% vs. 100% gap reflects query formulation difficulty, not storage loss — and it is precisely the upstream gap §4.3 and §11 discuss.
··· 16 unchanged paragraphs folded ···
v7.3 · 10.6 Production Deployment EvidenceProduction deployment provides evidence synthetic benchmarks cannot: that the architecture holds under the unpredictable distributions, edge cases, and scale of real-world agent workloads. It also surfaced the failure mode of §10.5 below, which no synthetic needle benchmark would have caught.
v7.4 · 10.6 Production Deployment EvidenceProduction deployment provides evidence synthetic benchmarks cannot: that the architecture holds under the unpredictable distributions, edge cases, and scale of real-world agent workloads. It also surfaced the retrieval-trigger failure mode of §11, which no synthetic needle benchmark would have caught.
··· 2 unchanged paragraphs folded ···
v7.3 · 11. Limitations and Future Work**Retrieval-trigger blindness.** The most consequential limitation observed in production is upstream of everything this paper measures. Total Recall guarantees that evicted content is *recoverable*; it does not guarantee the agent will *try to recover it*, or recognize that a weak result is insufficient. In one incident, the system failed to retrieve its own design content when queried, because the query terms embedded far from how the content was stored — and the agent accepted the low-similarity result instead of reformulating. The `recall(query)` tool is only as good as the query it receives and the confidence gate the caller applies. Task-conditioned scoring (§4) ranks *what is injected once a query is issued*; deciding *whether to query* and *whether the result is good enough* is a metacognitive function that belongs in the companion layers (confidence-gated retry: Instant Recall, Serra 2026a; escalation: Fractal Reasoning, Serra 2026f). Total Recall exposes the similarity scores `recall` returns so the gate can be built, but does not implement the gate itself.
v7.4 · 11. Limitations and Future Work**Retrieval-trigger blindness.** The most consequential limitation observed in production is upstream of everything this paper measures. Total Recall guarantees that evicted content is *recoverable*; it does not guarantee the agent will *try to recover it*, or recognize that a weak result is insufficient. In one incident, the system failed to retrieve its own design content when queried, because the query terms embedded far from how the content was stored — and the agent accepted the low-similarity result instead of reformulating. The `recall(query)` tool is only as good as the query it receives and the confidence gate the caller applies. Task-conditioned scoring (§4) ranks *what is injected once a query is issued*; deciding *whether to query* and *whether the result is good enough* is a metacognitive function that sits above storage. Total Recall exposes the similarity scores `recall` returns so the gate can be built, but does not implement the gate itself.
··· 6 unchanged paragraphs folded ···
v7.3 · 11. Limitations and Future Work**Companion system evaluation.** Future work will measure the combined performance of Total Recall, Instant Recall, and Identity Persistence on tasks requiring cross-session identity continuity and persona-grounded retrieval. See Serra (2026a) and Serra (2026b) for the respective evaluation frameworks.
removed in v7.4
not in v7.3
v7.4 · 11. Limitations and Future Work**End-to-end loop evaluation.** The benchmarks here isolate storage and compaction. Future work will measure the full loop — storage feeding an index, an index feeding a reflection process, and that process re-tuning storage — on tasks requiring cross-session continuity and persona-grounded retrieval, where the payoff of the closed loop should exceed the sum of its parts.
··· 8 unchanged paragraphs folded ···
v7.3 · References1. Ainslie, J., et al. (2020). _Reformer: The Efficient Transformer_. ICLR 2020. 2. Belady, L. A. (1966). _A Study of Replacement Algorithms for a Virtual-Storage Computer_. IBM Systems Journal, 5(2). 3. Bousetouane, F. (2024). _ACC: Adaptive Cognitive Control for Bio-Inspired Bounded Agent State_. arXiv:2401.11653. 4. Chang, Z., et al. (2023). _LangGraph: Composable Memory Graphs for Agents_. arXiv:2312.12423. 5. Chen, S., et al. (2023). _RetMem: Retrieval-Augmented Memory for Long-Horizon LLM Agents_. arXiv:2308.14321. 6. Curme, C. & Daugherty, W. (2024). _Deep Agents: Filesystem Persistence for Long-Running Agent Tasks_. LangChain Engineering Blog. 7. Dai, Z., et al. (2023). _LongAgent: Classroom-scale Evaluation of Context Management_. arXiv:2311.08245. 8. Edge, D., et al. (2024). _From Local to Global: A Graph RAG Approach to Query-Focused Summarization_. arXiv:2404.16130. 9. Jiang, S., & Zhang, X. (2002). _LIRS: An Efficient Low Inter-reference Recency Set Replacement Policy_. SIGMETRICS 2002. 10. O'Neil, E. J., et al. (1993). _The LRU-K Page Replacement Algorithm for Database Disk Buffering_. SIGMOD 1993. 11. Packer, C., et al. (2023). _MemGPT: Towards LLMs as Operating Systems_. arXiv:2310.08560. 12. Park, J. S., et al. (2023). _Generative Agents: Interactive Simulacra of Human Behavior_. arXiv:2304.03442. 13. Sarthi, P., et al. (2024). _RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval_. arXiv:2401.18059. 14. Serra, O. (2026a). _Instant Recall: Short-Term Episodic Memory and Hot-Tail Context Management for Persistent LLM Agents_. OpenClaw. 15. Serra, O. (2026b). _Identity Persistence: Persona-Aware Context Engineering for Persistent AI Identity_. OpenClaw. 16. Serra, O. (2026c). _Humor Embeddings: Affective Tonal Consistency in Persistent Agent Response Generation_. OpenClaw. 17. Serra, O. (2026d). _Round Table: Multi-Model Deliberation with Shared Retrieval Context for Agent Reasoning_. OpenClaw. 18. Serra, O. (2026e). _Sleep Consolidation: Offline Episodic Processing and Semantic Index Building for Persistent LLM Agents_. OpenClaw. 19. Serra, O. (2026f). _Fractal Reasoning: Hierarchical Reasoning Chains Across Context Boundaries_. OpenClaw. 20. Serra, O. (2026g). _Curiosity Motivation: Intrinsic Knowledge-Gap Detection for Proactive Agent Information Gathering_. OpenClaw. 21. Shinn, N., et al. (2023). _Reflexion: Language Agents with Verbal Reinforcement Learning_. arXiv:2303.11366. 22. Verma, A. (2024, pre-print). _Focus: Agent-Managed Context Compression for Long-Horizon Tasks_. arXiv:2401.07190. 23. Wang, G., et al. (2023). _Voyager: An Open-Ended Embodied Agent with Large Language Models_. arXiv:2305.16291. 24. Yao, S., et al. (2023). _ReAct: Synergizing Reasoning and Acting in Language Models_. ICLR 2023. 25. Yu, Y., et al. (2024). _Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management_. arXiv:2401.01885. 26. Zeng, Y., et al. (2024). _LOCA-bench: A Benchmark for Long-Context Agent Evaluation_. arXiv:2402.07962. 27. Zhang, Q., et al. (2024). _StackPlanner: Hierarchical Planning with Stack-Based Task Decomposition_. arXiv:2401.05890.
v7.4 · References1. Ainslie, J., et al. (2020). _Reformer: The Efficient Transformer_. ICLR 2020. 2. Belady, L. A. (1966). _A Study of Replacement Algorithms for a Virtual-Storage Computer_. IBM Systems Journal, 5(2). 3. Bousetouane, F. (2024). _ACC: Adaptive Cognitive Control for Bio-Inspired Bounded Agent State_. arXiv:2401.11653. 4. Chang, Z., et al. (2023). _LangGraph: Composable Memory Graphs for Agents_. arXiv:2312.12423. 5. Chen, S., et al. (2023). _RetMem: Retrieval-Augmented Memory for Long-Horizon LLM Agents_. arXiv:2308.14321. 6. Curme, C. & Daugherty, W. (2024). _Deep Agents: Filesystem Persistence for Long-Running Agent Tasks_. LangChain Engineering Blog. 7. Dai, Z., et al. (2023). _LongAgent: Classroom-scale Evaluation of Context Management_. arXiv:2311.08245. 8. Edge, D., et al. (2024). _From Local to Global: A Graph RAG Approach to Query-Focused Summarization_. arXiv:2404.16130. 9. Jiang, S., & Zhang, X. (2002). _LIRS: An Efficient Low Inter-reference Recency Set Replacement Policy_. SIGMETRICS 2002. 10. O'Neil, E. J., et al. (1993). _The LRU-K Page Replacement Algorithm for Database Disk Buffering_. SIGMOD 1993. 11. Packer, C., et al. (2023). _MemGPT: Towards LLMs as Operating Systems_. arXiv:2310.08560. 12. Park, J. S., et al. (2023). _Generative Agents: Interactive Simulacra of Human Behavior_. arXiv:2304.03442. 13. Sarthi, P., et al. (2024). _RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval_. arXiv:2401.18059. 14. Shinn, N., et al. (2023). _Reflexion: Language Agents with Verbal Reinforcement Learning_. arXiv:2303.11366. 15. Verma, A. (2024, pre-print). _Focus: Agent-Managed Context Compression for Long-Horizon Tasks_. arXiv:2401.07190. 16. Wang, G., et al. (2023). _Voyager: An Open-Ended Embodied Agent with Large Language Models_. arXiv:2305.16291. 17. Yao, S., et al. (2023). _ReAct: Synergizing Reasoning and Acting in Language Models_. ICLR 2023. 18. Yu, Y., et al. (2024). _Mem0: Reconciled Long-Term Memory for LLM Agents (ADD/UPDATE/DELETE)_. arXiv:2401.01885. 19. Zeng, Y., et al. (2024). _LOCA-bench: A Benchmark for Long-Context Agent Evaluation_. arXiv:2402.07962. 20. Zhang, Q., et al. (2024). _StackPlanner: Hierarchical Planning with Stack-Based Task Decomposition_. arXiv:2401.05890.
··· 11 unchanged paragraphs folded ···
Changed paragraphs in the same form, for scripts: JSON
· Markdown