MemorySeal

MemorySeal is a security protocol for AI agent memory, permissions, and verifiable provenance

MemorySeal

Created At

ETHGlobal Mumbai

Project Description

MemorySeal is a shared memory protocol for multi-agent systems built around one principle: memory is evidence, never permission.

When agents exchange information, an observation can accidentally become authority. A browser agent might read a malicious instruction claiming that a payment was approved, save it as context, and pass it to another agent. MemorySeal separates that remembered information from the permissions the owner actually granted.

Owners register agents, assign collection-specific access, and choose how incoming memories are accepted. Eligible low-risk observations can pass automatically under an owner-defined rule, while suspicious instructions, conflicts, and failed analysis are held for review. Agents can only retrieve memories that satisfy current access and eligibility checks.

Each agent receives a real ENSv2 subname on Sepolia through sponsored backend registration. 0G analyzes ordinary memory content, while Arkiv stores public lifecycle metadata and commitments that users can query independently without exposing the memory text.

The workspace includes an interactive parent–child memory map, readable activity history, organization roles, and a separate client-encrypted vault with recipient-specific key sharing and rotation. Python and TypeScript SDKs let developers integrate these workflows directly into their agents.

How it's Made

The MemorySeal protocol is implemented through a Python FastAPI gateway, a TypeScript SDK, and a Next.js dashboard. Wallet signatures authenticate requests, while the gateway enforces the protocol’s collection permissions, memory acceptance rules, and payment policies.

The protocol integrates ENS for readable agent identities on Sepolia. Agents receive persistent identities, and the demo displays their registration progress. Arkiv provides public provenance records containing content commitments, allowing users to inspect publication history without publishing private memory plaintext.

The demo uses deterministic browser and finance reference agents to reproduce the same memory poisoning attack consistently. The browser worker fetches an invoice page and extracts its injected instruction. In the protected flow, the MemorySeal protocol checks the memory update, quarantines it, publishes provenance to Arkiv, and controls what the finance agent can retrieve.

Sepolia transactions use viem with a dedicated server-side signing wallet. The signer restricts transactions to the configured network and recipient, enforces the protected payment policy, and journals transaction hashes before broadcasting to prevent duplicate sends. Streamed progress and live memory updates make each stage of the protocol visible in the dashboard.

background image mobile

Join the mailing list

Get the latest news and updates