v7.4 → v7.5
What changed from v7.4 to v7.5
From v7.4 (2 Jun) to v7.5 (2 Jun): 6,677 words to 6,702 words, 59 words in new or rewritten paragraphs and 34 taken out, 4 paragraphs changed.
Wording only; one section renamed to task-conditioned retrieval
Wording fixes. Section 4 is renamed "Task-Conditioned Retrieval Priority", and a few sentences in the abstract, the formal derivation and the cost analysis are made plainer.
v7.4 · 2 June 2026v7.5 · 2 June 2026
··· 1 unchanged paragraph folded ···
v7.4 · AbstractPersistent LLM agents must preserve precise strings, causal chains, and decision rationales across sessions that routinely exceed context limits. The industry-standard approach — narrative compaction — replaces this high-resolution state with lossy prose summaries, creating an irrecoverable "only copy" failure. We present **Total Recall**, a lossless, event-sourced memory architecture that treats the context window as a managed cache over a durable store. Instead of summarizing, Total Recall evicts history via **pointer-based compaction** — inserting compact time-range markers with topic hints and retrieval directives — while making all evicted content recoverable through a `recall(query)` tool. Retrieval is **task-conditioned**: injection depends on the active task and expected future needs, not just embedding similarity. To keep total memory bounded along both axes — the in-context cache *and* the long-term store — Total Recall adds a **write-reconciliation** step that classifies each candidate memory as ADD, UPDATE, DELETE, or NONE, so the working set stays bounded while the audit log stays append-only and complete. The **TRACE** production implementation validates these claims: a full automated test suite passes with zero failures; **100% needle-in-haystack recall** under forced compaction versus 0% for truncation; **94% exact-match recall at 2-hop** versus 4% for narrative compaction and 36% for MemGPT-style paging; sub-linear compaction latency on the order of milliseconds; and months of production operation indexing thousands of real emails with zero lossless-invariant violations.
v7.5 · AbstractPersistent LLM agents must preserve precise strings, causal chains, and decision rationales across sessions that routinely exceed context limits. The industry-standard approach — narrative compaction — replaces this high-resolution state with lossy prose summaries, creating an irrecoverable "only copy" failure. We present **Total Recall**, a lossless, event-sourced memory architecture that treats the context window as a managed cache over a durable store. Instead of summarizing, Total Recall evicts history via **pointer-based compaction** — inserting compact time-range markers with topic hints and retrieval directives — while making all evicted content recoverable through a `recall(query)` tool. Retrieval is **task-conditioned**: injection depends on the active task and expected future needs, not just embedding similarity. To keep total memory bounded along both axes — the in-context cache *and* the long-term store — Total Recall adds a **write-reconciliation** step that classifies each candidate memory as ADD, UPDATE, DELETE, or NONE, so the working set stays bounded while the audit log stays append-only and complete. The **TRACE** production implementation validates these claims. Its full automated test suite passes with zero failures, and controlled benchmarks show **100% needle-in-haystack recall** under forced compaction versus 0% for truncation, and **94% exact-match recall at 2-hop** versus 4% for narrative compaction and 36% for MemGPT-style paging. Compaction latency is sub-linear, on the order of milliseconds, and months of production operation indexing thousands of real emails recorded zero lossless-invariant violations.
··· 43 unchanged paragraphs folded ···
v7.4 · 4. Task-Conditioned Retrieval Priority## 4. Task-Aware Retrieval Priority
v7.5 · 4. Task-Conditioned Retrieval Priority## 4. Task-Conditioned Retrieval Priority
··· 3 unchanged paragraphs folded ···
v7.4 · 4.1 Formal DerivationThis objective is combinatorially hard (subset selection under a budget constraint is NP-hard in the general case). We approximate it by assuming marginal contributions are roughly independent — a submodularity assumption. This assumption is violated when events are strongly complementary (for example, a cryptographic key split across two events, or a bug symptom paired with a configuration change). We acknowledge this limitation: in practice, the greedy approximation works well for the common case where most events contribute independently, but complementary-event retrieval remains an open problem for future work.
v7.5 · 4.1 Formal DerivationThis objective is combinatorially hard: subset selection under a budget constraint is NP-hard in the general case. We approximate it by assuming marginal contributions are roughly independent — a submodularity assumption that lets a greedy selector run in near-linear time. The assumption breaks when events are strongly complementary: a cryptographic key split across two events, or a bug symptom paired with the configuration change that caused it. The greedy approximation works well for the common case where most events contribute independently; co-retrieving strongly complementary events remains an open problem (§11).
··· 30 unchanged paragraphs folded ···
v7.4 · 7.2 Cost-Latency AnalysisNarrative compaction fills the context window continuously, incurring per-token inference costs proportional to the full window on every turn. Total Recall's push pack occupies a small fraction of the budget (~2K tokens in typical sessions), with pull requests adding ~10K tokens occasionally. The exact savings depend on model pricing, window size, and session length, but the structural advantage is clear: Total Recall's context footprint is bounded by the push pack size rather than growing monotonically with session length.
v7.5 · 7.2 Cost-Latency AnalysisNarrative compaction fills the context window continuously, incurring per-token inference costs proportional to the full window on every turn. Total Recall's push pack occupies a small, fixed fraction of the budget — roughly 2K tokens in typical sessions — and an occasional pull adds on the order of 10K tokens only on the turns that need evicted detail. The exact savings depend on model pricing, window size, and session length, but the structural advantage is invariant to all three: Total Recall's per-turn footprint is bounded by the push pack, while narrative compaction's grows monotonically with session length.
··· 96 unchanged paragraphs folded ···
Changed paragraphs in the same form, for scripts: JSON · Markdown