
Persistent memory is a central capability for AI agents, yet the mathematical foundations of memory retrieval, lifecycle management, and consistency remain unexplored. Current systems employ cosine similarity for retrieval, heuristic decay for salience, and provide no formal contradiction detection. We establish information-geometric foundations through three contributions. First, a retrieval metric derived from the Fisher information structure of diagonal Gaussian families, satisfying Riemannian metric axioms, invariant under sufficient statistics, and computable in O(d) time. Second, memory lifecycle formulated as Riemannian Langevin dynamics with proven existence and uniqueness of the stationary distribution via the Fokker-Planck equation, replacing hand-tuned decay with principled convergence guarantees. Third, a cellular sheaf model where non-trivial first cohomology classes correspond precisely to irreconcilable contradictions across memory contexts. On the LoCoMo benchmark, the mathematical layers yield +12.7 percentage points over engineering baselines across six conversations, reaching +19.9 pp on the most challenging dialogues. A four-channel retrieval architecture achieves 75% accuracy without cloud dependency. Cloud-augmented results reach 87.7%. A zero-LLM configuration satisfies EU AI Act data sovereignty requirements by architectural design. To our knowledge, this is the first work establishing information-geometric, sheaf-theoretic, and stochastic-dynamical foundations for AI agent memory systems.
43 pages, 5 figures, 9 tables, 3 appendices. Code: https://github.com/qualixar/superlocalmemory. Zenodo DOI: 10.5281/zenodo.19038659
FOS: Computer and information sciences, information geometry, zero-LLM, Zero-LLM-AI-Memory, retrieval-augmented generation, AI Memory, Fisher-Rao metric, sheaf cohomology, I.2.6; H.3.3, Langevin dynamics, EU AI Act, Machine Learning (cs.LG), Machine Learning, Local First AI Memory, Artificial Intelligence (cs.AI), Artificial Intelligence, Information Retrieval, agent memory, Information Retrieval (cs.IR)
FOS: Computer and information sciences, information geometry, zero-LLM, Zero-LLM-AI-Memory, retrieval-augmented generation, AI Memory, Fisher-Rao metric, sheaf cohomology, I.2.6; H.3.3, Langevin dynamics, EU AI Act, Machine Learning (cs.LG), Machine Learning, Local First AI Memory, Artificial Intelligence (cs.AI), Artificial Intelligence, Information Retrieval, agent memory, Information Retrieval (cs.IR)
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
