Claude
|
f6872101fd
|
feat: add ruvector-agent-memory crate with coherence-weighted compaction
Implements three compaction policies (LRU, LFU, CoherenceWeighted) for
agent memory lifecycle management. CoherenceWeighted scores entries by
α·recency + β·frequency + γ·cos_sim(context_window), retaining memories
semantically aligned with the agent's active reasoning context.
Measured recall@10 after 50% compaction (N=2000, D=64, seed=42):
LRU 71.0%
LFU 86.6%
CoherenceWeighted 100.0% (+29.0 pp over LRU)
12 unit tests + 1 acceptance test pass.
https://claude.ai/code/session_01FphtGmUWK9FvHsjBErYbqx
|
2026-06-14 07:22:08 +00:00 |
|