MemTxn: A Transaction Boundary for Source-Supported Updates and Complete-State Recovery in Agent Memory

Hanshuai Cui, Zhiqing Tang, Zhi Yao, Fanshuai Meng, Qianli Ma +1 more
7/30/2026
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Persistent memory lets long-running large language model agents reuse information across sessions and tasks. Yet errors in writable memory can persist and corrupt future behavior. Existing systems improve storage and retrieval, but they do not provide a transaction boundary for reliable updates and recovery. We therefore propose MemTxn, a governance layer outside the answer model. MemTxn verifies whether an update is supported by its source. It also selects the visible version when facts conflict and restores the application-visible state after a fault. The system uses Ordered PatchTest to validate writes, a Temporal Resolver to select versions, and a durable snapshot journal to recover state. On an item-disjoint audit, MemTxn accepts all 60 supported originals and rejects all 179 hard negatives. Under persistent multi-key faults on LongMemEval-S and LoCoMo states, it restores the complete declared active map without knowing the actual physical write set. On MemoryAgentBench FactConsolidation, MemTxn achieves the highest average F1 across all twelve answer-model configurations. It outperforms Dense by 17.06--24.07 points in five representative settings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cui2026memtxn,
  title  = {MemTxn: A Transaction Boundary for Source-Supported Updates and Complete-State Recovery in Agent Memory},
  author = {Hanshuai Cui and Zhiqing Tang and Zhi Yao and Fanshuai Meng and Qianli Ma and Weijia Jia},
  year   = {2026},
  eprint = {2607.27834},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.27834v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.27834.svg)](https://codeofpaper.com/paper/2607.27834)

Discussion