GRAFOMEM — the governed memory runtime for agents
Memory your agents can move, merge, and prove they erased.
GRAFOMEM is an open, self-hostable runtime for agentic memory — a two-tier system with governance built into the substrate. Give your agents a fast in-model working state and a durable, auditable fact store, with signed receipts and cryptographic erasure certificates as first-class primitives.
The fastest way to feel it: add governed checkpoints to a LangGraph agent in three lines → LangGraph quickstart.
Two tiers, one system
| Tier | What it is | Governance primitive |
|---|---|---|
| Working memory (CSO) | a fast, fixed-size in-model state M, read y = Mq — bounded, portable, mergeable | signed transition receipts |
| Durable facts (GMP) | a lossless, queryable, model-agnostic fact store (predicate/subject/object, validity, supersede) | cryptographic erasure certificates |
The tiers are complementary — the working tier is fast and lossy (RAM / hippocampus), the durable tier is lossless and auditable (disk / neocortex) — bridged by recall (facts → working state) and consolidation (the interaction stream feeds both). Memory is the implementation; governance is the product.
Start here
pip install grafomem langgraph-checkpoint-grafomem
from langgraph.checkpoint.memory import MemorySaver
from grafomem_checkpoint import GrafomemSerializer, GrafomemCheckpointSaver
saver = GrafomemCheckpointSaver(
MemorySaver(serde=GrafomemSerializer(private_key, key_id, trust, consent))
)
graph = builder.compile(checkpointer=saver)
saver.delete_thread("user-123")
receipt = saver.last_receipt("user-123")
assert receipt.verify(public_key) # signed proof the erasure transition occurred
Every checkpoint is signed and tamper-evident; delete_thread yields a signed state-transition
receipt. Be precise about what it proves: the erasure operation occurred (state overwritten, bound to
a key and time) — not information-theoretic unrecoverability or media sanitization. That precision is
the point.
Package note:
pip install grafomeminstalls the runtime; import asgrafomem. (The legacyamlimport is a deprecated alias and will be removed.)
Who is this for?
- Agent developers — drop governed, portable, erasable memory into LangGraph (and, soon, other frameworks) without changing how you build.
- Enterprise & compliance teams — signed, independently-verifiable evidence of deletion and tenant isolation; the basis for GDPR/CCPA/EU-AI-Act reporting in GRAFOMEM Cloud.
- Memory-system builders — implement the durable-tier protocol (GMP), run the conformance suite, and publish a signed capability report.
Verified, not asserted (how the durable tier earns trust)
A declared capability is not an observed one. GRAFOMEM ships an executable conformance suite: "supports capability X" is defined operationally as passes the two-sided, bootstrap-CI test for X. Conformance doesn't prove correctness — it measures it. This is how the durable tier earns trust and the basis for the signed capability reports in the Cloud tier.
Licensing
- Runtime core (
grafomem.runtime/grafomem.cso): Fair Source (FSL-1.1-Apache-2.0) — self-host, use, and modify freely; only a competing managed service is restricted; converts to Apache-2.0 in 2 years. (Fair Source, not "open source.") - Spec (GMP),
.gfmformat, conformance suite: open (Apache-2.0 / MIT) — freely implementable, so the standard can have independent implementations. - GRAFOMEM Cloud: commercial.
Next
- LangGraph quickstart → Two-tier architecture → Memory model → GMP durable tier → Conformance
- GRAFOMEM Cloud for hosted, multi-tenant governance.