DEV Community

Cover image for Auditing Long-Horizon Agent Memory: 92.4% on LongMemEval-M (~1.5M Tokens) with Zero Write-Time LLMs
Fidwell Engineering
Fidwell Engineering

Posted on

Auditing Long-Horizon Agent Memory: 92.4% on LongMemEval-M (~1.5M Tokens) with Zero Write-Time LLMs

Most agent memory frameworks rely on write-time LLM summarization and vector re-indexing. That works fine for 10-turn demos, but once an agent accumulates ~1.5M tokens across ~500 sessions, lossy summaries and embedding drift quietly erode accuracy—and leave you with no cryptographic way to audit why an agent produced a specific answer.

Here is how LongMemOS (deterministic memory OS) and ZeroOS (deterministic orchestration & RBAC control plane) approach the problem, backed by per-question SHA-256 audit logs.

Architecture: 0 Write/Retrieval LLMs & Verbatim Stage-A

  • Zero write-time or retrieval-time generative LLMs: No background summarization loop burning tokens or rewriting numbers.
  • Zero embedding drift: Deterministic indexing without opaque vector shifts.
  • Stage-A Verbatim Passthrough: Original conversation text is preserved intact and anchored to a SHA-256 evidence ledger.
  • Low-cost reader + strict judge: Evaluated with deepseek-v4.1-flash-1017 and judged by unmodified gpt-4o-2024-08-06.

Audited Benchmark Results

Benchmark LongMemOS (Audited) Mem0 / Zep / EverOS / Memobase
LongMemEval-S (500 Qs) 477 / 500 (95.4%) Different eval scopes
LongMemEval-M (~1.5M tokens / ~500 sessions, full 500 Qs E2E) 462 / 500 (92.4%) N/A (no comparable full-M 500-Q E2E logs published)
LoCoMo Zero-Shot (0 core code changes, full 1,986 Qs) Cat 1–4: 92.86% / All 5 Cats: 86.61% (conv-26 Cat 1–4: 144/152 = 94.74%) N/A

LongMemOS SHA-256 Evidence Ledger

Deterministic RBAC & Instant 401 Revocation with ZeroOS

In production multi-tenant setups, memory isolation matters as much as recall accuracy. ZeroOS enforces role-based memory partitions and instant HTTP 401 revocation the moment a credential or role is removed, preventing stale-cache leakage across agent sessions.

ZeroOS RBAC Control Plane

Verify Locally in 10 Seconds

git clone https://github.com/LongmemOS/longmemos-benchmarks
cd longmemos-benchmarks/public-audit-kit
python3 -I verify_public_kit.py
Enter fullscreen mode Exit fullscreen mode

Full dataset and logs are also mirrored on Hugging Face (LongmemOS/longmemos-benchmarks). For enterprise architecture reviews or air-gapped PoC discussions, use the technical inquiry form at https://longmemos.com/#inquiryForm.

Top comments (2)

Collapse
 
userxnom profile image
Abdullah Naseer •

92.4% on the full 500-question LongMemEval-M run across ~1.5M tokens is the number that matters here — most memory benchmarks quietly shrink the problem, and you ran the whole thing end to end with zero write-time LLMs. The detail I liked most is the per-question SHA-256 evidence ledger: it turns 'the agent remembered' from a vibe into something auditable. If verbatim passthrough is doing the heavy lifting, where does the remaining 7.6% go — retrieval picking the wrong session, or the reader misreading the right one?

Collapse
 
derek_f66a6ae2c4ca30bf7db profile image
Fidwell Engineering •

Great question—the remaining 38 misses (7.6%) split across both failure modes rather than a single bottleneck:

  1. Retrieval misses at ~500-session scale: mostly implicit or loosely paraphrased multi-session cues where exact lexical/structural anchors are sparse across 1.5M tokens.
  2. Reader misses on the right verbatim context: even when Stage-A hands over the exact source turns, a lightweight Flash reader (deepseek-v4.1-flash-1017) can still trip on subtle temporal overrides, multi-hop counting, or abstention edge cases under the strict gpt-4o-2024-08-06 judge.

Because the full per-question retrieved context and judge verdicts are in public-audit-kit, you can filter straight for the 38 misses after running python3 -I verify_public_kit.py to see each retrieval vs. reader case firsthand.