memgarden

What MemGarden actually buys — every measurement in one place

Newer: whitepaper.md re-measures all of this on the 2026-11 build (25k nodes, multilingual embeddings, abstain gate).

Assembled 2026-08-27, after v1 closed. Each row links to the evidence it comes from, including the measurements that came out against the system.

The short version. MemGarden is faster than what it replaced and better at retrieval than what it replaced. It surfaces knowledge the disk already has and nobody would think to grep, in about seven milliseconds. It does not save the user tokens — it spends them.

Read the “index, not an archive” line below with its correction. That phrasing came from a corpus census that could not see the thing this system was partly built for: distillation. Consolidation turns facts into observations with provenance and runs daily — 2,770 observations, 2,757 with source links.

Updated 2026-08-30. Both halves of that gap have since been closed, and one of them came back positive: distillation was measured (recall@10 0.291 → 0.370, +27%, result) and CE-10’s mental models now run — four exist, three on @after-consolidation. The tier was not merely unbuilt when this was written; it was 100% failing code with no caller, which is why nobody noticed for two months. What remains open is narrower and stated below.

Measured against the system it replaced

  MemGarden legacy (Python + embedded Postgres)  
recall quality, blind panel, shipping config 13 better / 5 worse / 1 equivalent, 0 unjudgeable — AC-1
recall latency 7.1ms p50 / 7.8ms p95 at 3,000 nodes, all four arms 830ms before its own fixes; ~51ms p50 after performance
hook cost per turn 0.845ms p50 (recall + retain) 33ms on its disabled path — more to do nothing than these cost to work AC-2
processes to run 1 3 (daemon, Postgres, Python hooks) architecture
backup cp memgarden.db pg_dump + archive  

The hook number is the one that changed the experience: an equivalent Python hook measured 24ms cold, so the <10ms budget was never reachable in that language. This is not a tuning win over the old system; it is a win the old system’s architecture could not have.

Measured on its own terms

layer what it is measured
Layer 1 — injection cost tokens spent putting memories in front of the model 1,325 tokens / 18.1 memories per turn against a 1,024-token soft cap. This is a cost, and it is reported as one
Layer 2 — extraction input saving what the ingest caps save the local LLM 139,947 of 243,924 tokens, 57.4%, across 10 sessions in the benefit ledger. Real, but it is Ollama’s input, not the user’s context
Layer 3 — substitution does injected memory replace work it did not, on the sample available: 11–7 worse on a blind panel, +5% tokens, −25% wall clock. MX-3
cost of measuring overhead of the metrics themselves 88ns per request — 0.00025% of the latency budget

The three findings that only make sense together

  1. MX-3 — on questions whose answers are in the repository, the memory arm was worse on quality and faster on the clock.
  2. The corpus census — 0 of 60 sampled memories state anything that is not already on disk; under ~5% at 95% confidence. Result · rules committed first
  3. A live case, 2026-08-26 — a month-old investigation into intermittent SIGSEGVs broke open because recall surfaced a memory that “cargo test dies with SIGSEGV in SQLite’s FTS5 index”. That fact was in book/src/roadmap.md the whole time. Nobody was going to grep for it.

Read together they say the value measured so far is retrieval, not storage.

That is narrower than it sounds, and narrower than it was first written. All three findings are about raw facts — whether a fact is on disk, whether injecting facts substitutes for reading them. None of them touches the consolidated layer, where groups of facts become an observation that exists nowhere else in that form. The corpus census in particular scored observations as “on disk” because their constituent terms are, which is backwards for what they are. So the honest statement is: the value of raw-fact retrieval is measured; the value of distillation is not.

Quality of what gets stored

  before after  
command-log noise in what recall injects 22% of injected memories 0.9% cleanup
command logs from current ingest — 0 of 676 nodes since cutover correction
duplicate fact+observation pairs injected 7.5% deduplicated at recall PR #16

The 22% → 0.9% change came from deleting 158 historical rows, and the investigation that led there was wrong twice before it was right — both corrections are in the record.

Correctness of what stays stored

  measured  
retracted facts hidden from every reader one filter point, search::hydrate schema v11
retraction detected automatically at write time 2 of 3 targets, 22 false positives — ships off detection
gold recall with the filter live and nothing marked 0.370 recall@10 / 0.516 MRR / 0.306 nDCG@10 — identical to baseline parity, not a win

A fact can now be retired rather than only added, which is the first thing in this project that improves what recall says rather than how fast it says it — one of the first four mental models cited 17 nodes to assert a gate was “awaiting signature” ten days after it was signed, and every sentence in it had been true when written.

The honest half: the store learned to record a retraction; the extractor did not learn to notice one. Detection was built, measured against this project’s own recorded retractions, and turned off. Setting it is a manual POST today.

What is not measured, and should be said out loud

Honest summary

If the question is “does this remember raw facts I would otherwise lose?” — on this machine, measurably no, because this operator already writes them down. (If the question is “does what it distils out of them have value?” — nobody has measured that, and it is the half the project was built for.)

If the question is “does it put the right paragraph of the twelve thousand I have written in front of the model before I finish typing?” — yes, in 7ms, and measurably better than the system it replaced.

The second question is the one worth asking of a memory layer sitting on top of a well-documented project. It took a failed measurement, a corpus census and one accidental live case to work out that it was the right question.