This is a companion proposal to ERC-8264 “AI Agent Memory Access Rights”. ERC-8264 defines a four-function rights interface (readMemory / writeMemory / deleteMemory / exportMemory) but explicitly leaves what exportMemory returns as implementor-defined. This proposal fills that gap.
Three layers, independently usable:
- Capsule — canonical, owner-signed, encrypted-payload bundle that
exportMemoryreturns. JSON manifest with a Merkle root over payload hashes; ciphertext-only on disk. Different implementors can import each other’s capsules for the same subject. - Body Lease — signed, scoped, expiring binding between an ERC-8264 subject and a body (a hardware/runtime substrate). Lets an agent identity persist across hardware while keeping the body revocable. Off-chain, owner-signed; composes with EIP-7702 for joint on-chain delegation when needed.
- Credential Broker — convention requiring capsules carry entitlement descriptors rather than raw credentials. New body presents lease; owner re-mints scoped credentials per body. Compromise of one body cannot propagate credentials to others.
Narrowest viable subset is Capsule alone.
License: CC0. PR: Add ERC: Portable Agent Memory Capsule and Body Lease by clavote-boop · Pull Request #1763 · ethereum/ERCs · GitHub · Reference implementation: GitHub - clavote-boop/rmem-gateway: Reference implementation of ERC-8264 (AI Agent Memory Access Rights) and the companion Portable Agent Memory Capsule + Body Lease draft. Includes CAAP-ROBOTID v1.1 identity module. CC0. · GitHub
How it composes
Additive, not competitive. The Rationale section explicitly addresses adjacent work:
- ERC-8181 Self-Sovereign Agent NFTs (Draft, PR #1579) — semantically closest. An 8181 NFT can be the container/sovereignty layer; 8264 + this Capsule are the rights and wire-format layer. They compose: an 8181 NFT MAY be the controller of an 8264 subject and reference a Capsule by its Merkle root.
- ERC-7857 AI Agent NFT w/ Private Metadata (Final) — NFT-coupled, transfer-bound re-encryption. Different surface.
- EIP-7702 (Final) — Body Lease scope/expiry fields aligned with 7702 authorization-list semantics for joint issuance.
- ERC-8118 Agent Authorization (PR #1450) — on-chain action authz. Credential Broker is the off-chain analogue; explicit disclaimer in Rationale.
- MCP SEP-2072 “Memory Portals” + SEP-2342 MIF — Anthropic’s drafts at the MCP protocol layer. This ERC is the rights and authorization surface on EVM; MCP defines the wire format between an agent and its memory store. Complementary; an implementor MAY use MIF as the payload format inside a Capsule.
Reference implementation
CC0, all selftest-green, live-verified on a Bitcoin chain (mutinynet) 2026-05-22.
Live anchor: 224958929c…969f0a.
Feedback welcome on
- The split into three sections. Is the bundling load-bearing, or would Capsule / Lease / Broker work better as three separate ERCs?
- The canonical JSON serialization rule (sort_keys, no whitespace, UTF-8). Adequate, or should I move to JCS (RFC 8785)?
- The OP_RETURN payload format for the optional anchor — currently 38 bytes (
CAAPmagic + 1B version + 1B type + 32B root). Reasonable? - Any active proposal I missed in the composition map.
Author: @clavote-boop — same author as ERC-8264.