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:
ProofOfConcept 2026-03-10 23:59:39 -04:00
parent 9fef98b01e
commit 884939b146
3 changed files with 118 additions and 0 deletions

View file

@ -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;