Beyond Ephemeral Memory: Non-Monotonic Epistemic Context Layers for Long-Horizon Language Agents
Long-horizon language agents must maintain coherent representations of people, projects, decisions, and constraints as they evolve across extended interactions. However, conventional vector retrieval and append-only memory systems provide limited mechanisms for explicitly resolving contradictions, tracking temporal validity, or retracting conclusions when their supporting assumptions change. We propose a new type of framework, a model-agnostic Epistemic Context Layer that maintains agent context as an attributed, non-monotonic multigraph. It separates memory management into an asynchronous write path, which extracts user-authored claims, tracks supersession, and applies code-enforced causal verification gates, and a deterministic read path, which compiles bounded context through relational retrieval and token-budgeted selection without LLM generation calls. The framework is evaluated across LongMemEval-S, full-haystack temporal reasoning tasks, controlled ablations, and EpiBench, an author-designed suite targeting multi-hop dependencies, changing constraints, and cascading invalidation. Results show improvements over vector retrieval on several targeted tasks, including 100% recall on evaluated three-hop dependency and zero-overlap constraint probes. LongMemEval results are positive but not statistically significant on the primary comparison, while full-haystack results are promising on a small sample. We release reference implementations, database schemas, evaluation suites, and longitudinal world-model corpora to support further investigation of non-monotonic memory architectures for language agents.
Authors
- Harun Yahya Gokay
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24522332
- Primary Topic
- AI-based Problem Solving and Planning
- Type
- preprint