arXiv:2606.01138cs.CRcs.AI2026-06

统一智能体记忆操作标准,让不同系统间记忆互通无阻。

memorywire: A Vendor-Neutral Wire Format for Agent Memory Operations

论文配图:memorywire: A Vendor-Neutral Wire Format for Agent Memory Operations
图 1 · 摘自论文原文
  • 定义通用记忆格式,支持五类操作与四类记忆类型
  • 实测召回率1.000,插入与查询延迟均低于41毫秒
  • 内置人工审核通道,助力记忆安全与可追溯性

当前智能体记忆框架(mem0、Letta/MemGPT、Cognee、Zep/Graphiti、MemoryOS、MemTensor)各自使用独立SDK、存储结构和操作协议,缺乏统一的通信格式。导致每次集成都需定制开发,迁移时需重建记忆,且无机制供人类审查写入长期存储的内容。本文提出memorywire,一种基于JSON-Schema 2020-12的通用记忆操作格式,涵盖五种操作(remember、recall、forget、merge、expire)和四种记忆类型(语义、事件、程序、情感),包含MemoryStore接口、扇出路由及可选的人工介入治理通道。我们提供开源参考实现,支持五个后端适配器(sqlite-vec、mem0、Letta、Cognee、pgvector);在100条事实/50个查询的标注数据集上,42个带真实ID的查询召回@5达到1.000,摄入中位数37.8毫秒,召回中位数40.6毫秒;对抗融合实验表明,互惠排名融合(RRF)在1对N的零秩注入攻击下仍保持召回@5=1.000(K∈{0,5,...,50}),而最大融合则因80%泄露降至0.500;跨适配器一致性测试通过68/80项,无失败。贡献非新算法,而是将现有组件(RRF、有限状态机、短期/长期记忆整合、差分审批流程)封装为与厂商无关的协议,并验证其与模型上下文协议兼容。此外,通过配套的PurgeBench基准测试,证明provenance字段是恢复受污染记忆库最强手段。

原文摘要 · Abstract (English)

Agent-memory frameworks -- mem0, Letta/MemGPT, Cognee, Zep/Graphiti, MemoryOS, MemTensor -- each ship their own SDK, storage layout, and operational vocabulary. There is no shared wire format: every integration is bespoke, every migration rebuilds memory from scratch, and no framework ships a governance surface that lets a human review writes before they enter long-term storage. We present memorywire, a JSON-Schema 2020-12 wire format for five memory operations (remember, recall, forget, merge, expire) over four memory types (semantic, episodic, procedural, emotional), with a MemoryStore interface, a fan-out router, and an optional HITL governance channel. We describe an open-source reference implementation with five backend adapters (sqlite-vec, mem0, Letta, Cognee, pgvector); a microbenchmark on a 100-fact / 50-query labelled corpus (42 with non-empty gold ids + 8 no-match probes) achieving recall@5 = 1.000 on the 42 gold-id queries with ingest p50 = 37.8 ms and recall p50 = 40.6 ms; an adversarial-fusion experiment showing Reciprocal Rank Fusion holds recall@5 = 1.000 across a 1-of-N rank-0 injection sweep (K in {0, 5, ..., 50}) where max fusion collapses to 0.500 with 80% leak at K >= 5; and a 16-scenario cross-adapter conformance suite passing 68 of 80 cells with zero failures. The contribution is not a new algorithm; it is a packaging of established components (RRF, FSMs, STM/LTM consolidation, diff-and-approve workflows) into a venue-neutral protocol with an empirically validated reference, positioned to compose with the Model Context Protocol rather than compete with it. We further show that memorywire's provenance field is the strongest lever for recovering a poisoned store, evaluated with an companion benchmark (PurgeBench).

记忆系统协议设计可审计性互操作

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。