Expand description
AgentMux’s own record of an agent’s memory (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.1, phase M3).
An agent’s memory files follow its provider account and working directory
— $CLAUDE_CONFIG_DIR/projects/<cwd>/memory — so an account switch or a
new working directory used to leave them behind. The record lives in the
global transcript store, keyed by the agent’s UID (db_agents.id), and is
the source of truth the provider folder is reconciled against.
Zone agent-uid:<uid>:memory:
log.jsonl— append-only events: a file version (a body by hash, or a tombstone) or a projection (which version a directory holds);blob/<sha256>— one file per distinct body, written before the log line that names it, in the same transaction;heads.json— per file, the head version; per directory, the version last projected there. Rewritten with every append, so current state is one small read and no tail window has to hold a rarely edited file.
Every write is one zone_txn — a conditional append against the head the
caller expects — so srv processes sharing the store never fork a file’s
chain. Nothing here touches the provider folder; reconciliation does
(phase M3b).