Overview
Ziggurat is a local TypeScript reference implementation of a write gate for AI memory. It treats durable memory as a privileged write surface.
The boundary in one paragraph
Section titled “The boundary in one paragraph”A model can read authorized content and return a strict version-1 refinement draft with source IDs and line ranges. The refine host derives canonical citations and version-2 Silver, then validates and persists only that artifact. Gold requires a valid receipt from a configured Ed25519 key that operator policy assigns to a reviewer. Ziggurat verifies key control and exact-content authorization, not humanity, attention, semantic support, or factual truth. See Bronze, Silver, and Gold, the human authority boundary, and the enforced boundaries.
What this is for
Section titled “What this is for”Use Ziggurat when you want persistent retrieval context for an AI system and you are not willing to let the AI system decide what enters it. It addresses agent memory and context poisoning, described by OWASP ASI06 - Memory & Context Poisoning, MITRE ATLAS AML.T0080 - AI Agent Context Poisoning, Memory, and Microsoft Learn - AI Memory / Context Poisoning: untrusted content enters a durable store and silently influences later model behaviour.
How it differs from other agent-memory systems
Section titled “How it differs from other agent-memory systems”Mem0’s add pipeline supports automatic memory extraction. Letta agents can edit their memory blocks through tools, and Zep extracts facts into a context graph from conversation messages.
These systems support automatic extraction or agent-managed memory. Ziggurat does not offer hosted, multi-tenant retrieval and instead requires detached configured-key authorization before model-originated content can enter Gold. This is a design trade-off, not a measured superiority claim. Ziggurat does not integrate with these products.
What it is not
Section titled “What it is not”- Not an OS sandbox, and not a multi-tenant authorization service.
- Not a key custody, revocation, or hosted identity service.
See all non-guarantees and residual risks.
Where to go next
Section titled “Where to go next”- Installation builds the CLI from source and verifies it.
- Your first vault creates a vault and captures evidence.
- The garden walkthrough prepares the poisoned-memory fixture vault and explains the separate end-to-end automated test and remaining manual steps.
- The human authority boundary explains why the boundary is a capability rather than a convention.
- Threat model covers assets, actors, assumptions, and residual risk.