Status: Draft v1 Release: v0.6.3.1 Encodings: JSON + TOON Round-trip: guaranteed
The Memory Portability Spec defines a stable export envelope so any
ai-memory deployment can produce data that any other deployment can
consume without loss. This page is a summary; the
normative document
is in the repo at docs/spec/v1.md.
Read the full spec → Browse the canonical schema →
ai-memory export | ai-memory import produces a byte-equivalent store under --preserve-timestamps.{
"schema_version": "v1",
"source": "ai-memory-v0.6.3.1",
"exported_at": "2026-04-29T12:00:00.000Z",
"db_schema_version": 17,
"namespaces": [...],
"memories": [...],
"links": [...],
"archived": [...],
"agents": [...],
"entities": [...],
"subscriptions": [...] // secrets stripped
}
Embeddings are base64(magic_byte || raw_LE_f32_bytes). The
magic byte (introduced in migration v17) declares the byte order:
| Magic | Meaning | Reader behaviour |
|---|---|---|
0x01 | Little-endian f32 | Accept |
0x02 | Big-endian f32 | Reject (until v0.7) |
| (no header) | Legacy LE-f32 | Accept (one major version) |
| any other | Unknown | Reject with EmbeddingFormatError |
--preserve-timestamps.ai-memory v0.6.3.1 is producer- and consumer-conformant. Round-trip is demonstrated by the test plan in spec §10.
Companion artifact: the LongMemEval variant disclosure (4 rows: keyword baseline + semantic-rerank-on/off + autonomous-curator-on) landed alongside this spec in v0.6.3.1 P8.