memorywire: A Vendor-Neutral Wire Format for Agent Memory Operations
Thamilvendhan Munirathinam · 2026
Read memorywire: A Vendor-Neutral Wire Format for Agent Memory Operations by Thamilvendhan Munirathinam (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2606-01138.txt.
Introduction
Munirathinam proposes a shared wire format for AI agent memory in this 2026 paper. Each memory framework ships its own SDK, storage layout, and words for the same acts. No shared format exists. Every integration is bespoke, and every migration rebuilds memory from scratch. None offers a review gate where a human can vet writes before they settle into long term store.
His format, memorywire, is a JSON Schema for five memory operations: remember, recall, forget, merge, and expire. They span four memory types. A store interface, a fan out router, and an optional human in the loop channel complete the design. The open reference build carries five backend adapters. On a small labeled corpus it posts perfect recall at rank five on the gold queries. A fusion attack test shows one fusion rule holds recall while a rival leaks badly. A conformance suite passes 68 of 80 cells.
Catalog record
| CREATOR | Thamilvendhan Munirathinam |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 66 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2606.01138
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
memorywire: A Vendor-Neutral Wire Format for Agent Memory Operations Thamilvendhan Munirathinam Abstract 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 1 1 1 Originally drafted as “Agent Memory Protocol (AMP)” in May 2026; renamed to memorywire before launch to avoid collision with an unrelated, prior project of the same name ( https://github.com/akshayaggarwal99/amp , created Dec 2025). See docs/PRIOR-WORK.md in the repository for the long version. , 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 N rank-0 injection sweep ( K ∈ { 0 , 5 , … , 50 } K\in\{0,5,\dots,50\} ) where max fusion collapses to 0.500 with 80% leak at K ≥ 5 K\geq 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. 1 Introduction 1.1 The problem: islanded memory frameworks Agent runtimes that maintain memory across sessions are now a category. Open-source frameworks include mem0, Letta (formerly MemGPT), Cognee, Zep/Graphiti, MemoryOS, and MemTensor MemOS; closed commercial offerings include Oracle’s AI Agent Memory and the memory layers shipped inside major hosted-agent platforms. What the category has not produced is a shared wire format. Each framework defines its own SDK surface, JSON shape for memory records, embedding-provider integration, taxonomy (or absence of taxonomy) for memory types, and implicit lifecycle for record creation and deletion. The heterogeneity is non-trivial to bridge: mem0 stores records under a memories[] list keyed by user_id with a heterogeneous created_at representation; Letta stores archival memory keyed by agent_id and exposes a tags list as the only structured-metadata sink; Cognee mints internal data_id UUIDs that are not surfaced through its public add API, making per-record deletion impossible from outside the pipeline; sqlite-vec stores tables keyed by a stable ULID-shaped string; pgvector exposes records through an application-chosen SQL schema. Re-platforming an agent from one framework to another therefore requires a bespoke migrator and field-level losses where the source framework encodes more state than the target’s data model holds. The same heterogeneity means there is no shared governance surface. Each framework provides a write API and a read API; none mediate the write with a “diff against current state, present to a human, commit only on approval” workflow. The Co-memorize human-in-the-loop pattern, formalized in the Governed Memory line of work [ 9 ] , has no production implementation an off-the-shelf agent can drop in. Operators who want auditability over what enters long-term memory must build it themselves and accept that the framework can bypass them. This is the gap memorywire addresses. It is not “we need a better retrieval algorithm” — the algorithms in the category (vector search, hybrid lexical-semantic RRF fusion, graph hop boosts, FSM-encoded procedures, STM/LTM consolidation) are well understood. It is “we need a shared protocol so any client can talk to any backend, any agent can carry its memory across runtimes, and any write can be diffed and approved.” Structurally it is the gap MCP closed for tool use , applied to memory . 1.2 Contributions This paper makes five contributions: • C1. A wire format for five memory operations over four memory types, expressed as JSON Schema 2020-12 [ 3 ] ( docs/spec/v0.md ). The operations are remember , recall , forget , merge , expire ; the types are semantic , episodic , procedural , emotional . The schemas are vendor-neutral, transport-agnostic, and explicitly versioned with a breaking-change policy through v0.5. • C2. A reference implementation in Python 3.11+ with five production-backend adapters (sqlite-vec, mem0, Letta, Cognee, pgvector), all implementing a single MemoryStore Protocol. The reference includes a memory router that fans operations across N stores in parallel and fuses recall results via Reciprocal Rank Fusion ( k=60 ) [ 2 ] with an optional one-hop graph boost, plus a tolerant partial-failure model where a single rogue or unavailable backend cannot crash the operation. • C3. A governance UI implementing the Co-memorize diff-and-approve pattern over remember , forget , and merge . Writes flagged approval_required are staged behind a PENDING_APPROVAL_DELETED_AT = -1 sentinel and remain invisible to recall until a reviewer commits or rejects them through the UI. The same audit log is the single source of truth for all governance and mutation events. • C4. An empirical evaluation comprising (a) a microbenchmark on 100 hand-authored facts \times 50 labelled queries against a real sentence-transformer embedder, (b) an adversarial-fusion experiment that sweeps a 1-of- N rank-0 injection attack across three fusion algorithms (RRF, MAX, weighted), and (c) a cross-adapter conformance suite of 16 protocol-invariant scenarios run against all five shipped adapters (68 PASS / 12 SKIP / 0 FAIL out of 80 cells). • C5. A six-adversary threat model with line-level mitigation citations into the reference implementation, plus an open-data artifact ( docs/adversarial-results.{rrf,max,weighted}.json , the labelled microbench corpus, the conformance scenario list) sufficient to reproduce every empirical claim without re-running paid evaluators. 1.3 Limitations, front-loaded We state up front what this paper is not . It is not a new algorithm: RRF is from Cormack et al. [ 2 ] , the four-type taxonomy is from Tulving [ 10 ] and Squire [ 8 ] , procedural FSMs use pytransitions , and STM/LTM consolidation predates the frameworks we cite — the contribution is composition and standardization, not new substrate. It is not an LLM contribution: we do not train models or propose model-dependent heuristics, and we report only preliminary LongMemEval [ 11 ] and LoCoMo [ 4 ] numbers ( Section 5.5 ); the full 5-seed \times 200-question run and BEAM are v2 replacement deliverables ( Section 8 ). And it is not a stabilization paper: memorywire v0 reserves the right to break wire-format compatibility through v0.5 ( Section 3.7 ); the IETF Internet-Draft and MCP-WG extension paths in Section 2 and Section 8 are intent, not commitment. 1.4 Paper roadmap Section 2 places memorywire against prior work in agent memory frameworks, cross-vendor protocols (particularly MCP), and the Governed Memory line. Section 3 specifies the wire format: operations, types, the MemoryStore Protocol, router semantics, and the governance channel. Section 4 describes the reference implementation including the five backend adapters, the procedural-memory FSM