Analysis updated 2026-05-18
Add an audit trail and admission checks in front of an existing agent memory store.
Block AI-generated or contaminated content from entering a factual memory database.
Verify the integrity of a memory ledger after the fact using cryptographic digests.
Govern memory writes across Mem0, Graphiti, LangMem, or LangGraph without rewriting the underlying system.
| kadubon/certified-memory-governance-layer | 0xhassaan/nn-from-scratch | 3ks/embedoc | |
|---|---|---|---|
| Stars | 0 | 0 | — |
| Language | Python | Python | Python |
| Last pushed | — | — | 2023-06-08 |
| Maintenance | — | — | Dormant |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 4/5 | 4/5 | 1/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Runs fully offline with no API keys, but requires structured authority bundles to write memory.
CMGL, short for Certified Memory Governance Layer, is a Python library designed to act as a gatekeeper for AI agents that need to store and retrieve memories over long-running sessions. Think of it as a strict checkpoint that sits between an AI agent and whatever database it uses to remember things. Before any piece of information is written to memory, CMGL checks whether it is allowed, records evidence of that decision, and issues a typed receipt explaining why it was admitted or blocked. The core idea is procedural admissibility. CMGL does not judge whether a remembered fact is true, but it does enforce rules about the process of writing it. It can block stale, contradicted, unauthorized, or contaminated memory items, for example keeping AI-generated summaries out of the factual memory store, or requiring that writes carry a structured authority bundle proving they were permitted. Every decision is logged in an append-only ledger, a file where records are added but never changed, and each entry gets a cryptographic digest so the ledger can be audited later. CMGL runs entirely offline. It requires no API keys, no cloud services, and makes no LLM calls for its core checks. It connects to several popular agent memory frameworks, including Mem0, Graphiti, LangMem, and LangGraph, through adapter shims that the library provides, so you can add governance to an existing system without rewriting it. Installation is available through PyPI with a package manager called uv, and a command-line tool lets you initialize a local ledger, create authority bundles, and write governed memory entries in about ten minutes. The tool is aimed at developers building production AI agents where auditability and memory integrity matter. The full README is longer than what was shown.
A Python library that checks and logs every write to an AI agent's memory before allowing it, so nothing gets stored without a trace.
Mainly Python. The stack also includes Python, uv, Mem0.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.