counters: add redb-backed persistent counters (skeleton)
First use case: search hit tracking for rename protection. Nodes that memory-search actively finds shouldn't be renamed. The counters module provides increment/read/decay operations backed by redb (pure Rust, ACID, no C deps). Next step: wire into the poc-memory daemon via RPC so the daemon owns the DB exclusively and memory-search sends hits via RPC. Also reverts the JSONL search-hits approach in favor of this.
This commit is contained in:
parent
9fef98b01e
commit
884939b146
3 changed files with 118 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ pub mod query;
|
|||
pub mod migrate;
|
||||
pub mod transcript;
|
||||
pub mod neuro;
|
||||
pub mod counters;
|
||||
|
||||
// Agent layer (LLM-powered operations)
|
||||
pub mod agents;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue