memory is the platform's remembering faculty - BRAIN when you speak about it, memory in code. It is two layers with one truth: an append-only, audit-chained Layer-1 store on local disk, and a Layer-2 service that derives searchable structure from it.

Layer 1 - the protocol store

The normative protocol is AGENTS.md (vendored to every initialised repo). Key facts:

Layer 2 - the brain service

services/memory (Rust) reads Layer 1 and derives: per-event embeddings (pgvector), rolling summaries, and hot/warm/cold tiering keyed on each interaction's occurred-at time. Recall answers over the hot index with provenance back to the exact Layer-1 rows; access is consent-gated and tenant-scoped (fail-closed RLS). The DB-backed suite runs via scripts/local_verify.sh.

Day-to-day

Changelog

History (protocol amendments, the store relocation, Layer-2 hardening) lives in the changelog; this page describes only the current state.


Generated from modules/memory/docs/index.md — edit the markdown source, not this file (TASK-DOCS-002).