Skip to content

Overview

Ziggurat is a local TypeScript reference implementation of a write gate for AI memory. It treats durable memory as a privileged write surface.

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.

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.

  • 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.