Series: the brain - Prediction Error

Series: the brain coming soon

Five parts on one agent memory system, built and measured between July and November 2026. Each part covers one mechanism, the measurement behind it, and the result that went against it.

Architecture: machines and models write one git repo of markdown notes; code-only processes route, judge, consolidate and visualise it.
Fig. 0: the whole system on one page. Details in the parts below.
1

The brain is a git repocoming soon

Why the store is plain markdown in git, one per person, shared by every machine and model, and what broke before it was.

2

Surprise is the write signalcoming soon

Scoring a note by how wrong a model is without it, and the instrument bugs that faked every early result.

3

Every claim says how it is knowncoming soon

Provenance tags, a code-only nightly judge, and what it flags.

4

Retrieval without a vector database firstcoming soon

An IDF router over a one-line-per-note index, then hybrid section recall, with pre-registered benchmark runs.

5

Sleep, and watching the brain firecoming soon

A consolidation pass that failed its first pre-registered run, and an inotify monitor that lights each note as any process opens it.

Notes on building memory for AI agents. Plain files, measured.blog.blakemuir.com