Memory Lifecycle
When raw data enters Memuron it isn’t chunked and dumped. It runs a nine-stage evolutionary pipeline that decides what to keep, merge, and connect.
The Guardian pipeline
Nine stages
- 1
Ingest queueing
The raw payload is written to the Postgres
memuron_ingest_jobstable asqueued. Zero data loss; you get a job ID. - 2
Worker claiming
A background worker locks the row, flips it to
processing, and begins. - 3
Space contextualization
The worker resolves the target
Spaceand loads itsguardian_prompt— the rules for the LLM. - 4
Candidate retrieval (hybrid)
A pgvector/HNSW cosine leg is fused with a Postgres full-text/BM25 leg via Reciprocal Rank Fusion to find existing candidates.
- 5
Guardian evaluation
The Guardian decides
action: createorupdateand emits a strictGuardianWritePlan. - 6
Graph evolution
On
update, the target node is patched in place (same ID, new vector). Oncreate, a new MemoryValue is generated. - 7
Semantic linking
Guided by the plan’s
connections, Memuron drawsmemory_linkedges stamped with natural-language relationships. - 8
Commit & completion
Typed events (
memory.created,memory.updated, …) flush to the append-only ledger with actor/tenant/scope metadata. The job is markedcompleted. - 9
Projection updates
Four read models —
memuron_memories,memuron_links,memuron_placements,memuron_fs— plus the vector and FTS indices refresh. All are rebuildable from the ledger.