Architecture

How Mneme works, precisely

Technical deep dives into the pipeline — retrieval mechanics, scoring, decision memory, and the deliberate architectural choices behind deterministic governance. No embeddings, no ML, no approximations in the enforcement path.


Five-stage pipeline
MemoryStore
DecisionRetriever
ContextBuilder
LLMAdapter
Evaluator

Loads project_memory.json → scores decisions by field weights → injects top-K=3 into prompt → checks model output → emits PASS / FAIL / WEAK_RETRIEVAL. Same query, same corpus, same result every time.

Read the source

DecisionRetriever, MemoryStore, ContextBuilder, and the benchmark harness are all open source under MIT.

View on GitHub →