Skip to main content

Module basic

Module basic 

Source
Expand description

BasicMemoryProvider — the v1 backing implementation.

In-process, in-memory, deliberately simple. Real bodies for the methods the embedded agent and NL compiler actually invoke in v1 (retrieve, write, session lifecycle, simple deletes, export, stats); Err(NotImplemented) for summarization and re-embed; no-ops for update_importance and supersede since v1 does not score importance.

Lexical retrieval only — substring + recency. The full Memory & Context Manager replaces this with hybrid (vector + FTS + recency) retrieval per cellar-memory-manager.md §8.

The persistence layer here is Arc<Mutex<State>>. The daemon will eventually back this with a search_knowledge-style SQLite table; in this crate’s tests and during the v1 Phase 0 -> Phase 1 transition the in-memory store is sufficient because no caller depends on durability across daemon restarts.

Structs§

BasicMemoryProvider
The v1 backing implementation. Cheap to construct; Clone is shallow (shares the underlying state). Safe to share across tasks.