LongMemOS: Zero-LLM-Write Deterministic Long-Term Memory for Enterprise AI Agents
Long-horizon enterprise AI agents must preserve evolving facts, implicit user preferences, and policy revisions across extended multi-session histories. Many existing agent memory pipelines invoke Large Language Models (LLMs) and dense embedding models during ingestion to extract atomic facts, build graphs, or rewrite summaries. In enterprise settings, write-time model invocation adds per-turn inference charges, couples write availability to model endpoints, and can obscure verbatim provenance when summaries are repeatedly rewritten. We present LongMemOS, a single-executable Rust deterministic memory operating system built around a zero-LLM, zero-learned-embedding write path. Incoming turns are persisted offline into an encrypted, append-only local store partitioned at 32 KiB UTF-8 character boundaries, paired with server-assigned monotonic sequence numbers, SHA-256 digest verification interfaces, and an embedded lightweight graph index. Conflict tracking and multi-path retrieval are decoupled from critical-path writes via explicit supersedes version chains and optional off-path asynchronous consolidation. Using a single frozen engine binary (SHA-256: 6fe5dc92...), we report system-level results across five public benchmarks spanning six evaluation sets and 10,957 dataset-item evaluations (reusing the 500 LongMemEval item IDs across S and M): 95.40% on LongMemEval-S (477/500), 92.40% on LongMemEval-M (462/500), 92.86% on LoCoMo Cat 1-4 (1,430/1,540; Cat 5: 65.02%, 290/446), 71.22% pass rate on BEAM 1M and 10M subsets (641/900; mean rubric score 65.24%), 75.92% mean score (80.36% pass rate, 65.42% scoring >= 0.9) on PersonaMem-v2 128k (5,000 open-ended items), and 75.92% micro-average (66.96% four-capability item-pooled; 64.75% paper subtask-grouped at R@10; 63.67% five-bucket pooled; 63.64% R@5 sensitivity; 91.00% CR-SH; 10.00% CR-MH) on MemoryAgentBench (2,071 items). Historical measurements for frozen engine 6fe5dc92 report a 167 ms cold start, ~75 MB typical resident memory (47.1 MiB observed floor), and ~195 MB peak memory on BEAM-10M, with USD 0 in write-time model charges. Separate v2.1 enterprise release tests measured median cold starts of 40.3 ms on Linux/WSL2 (5.97 MB idle VmRSS, receipt units) and 59.3 ms on Windows NTFS (8.33 MiB working set). Public Audit Kit (10,957 sanitized records & offline verifier): https://github.com/LongmemOS/longmemos-benchmarks/tree/v2.0.5-audit-20261127Hugging Face Dataset: https://huggingface.co/datasets/LongmemOS/longmemos-benchmarksUAMP v0.2.0 Specification & SDKs: https://github.com/LongmemOS/uamp-spec/releases/tag/v0.2.0
Authors
- Yi Wang
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24623204
- Primary Topic
- Advanced Database Systems and Queries
- Type
- preprint