Expand description
Memory pack — memory.remember and memory.recall verbs with decay-aware ranking.
Modules§
- config
- Recall configuration types — scoring weights, decay models, and FTS gather options.
- handlers
- Memory verb handlers — split by concern.
- recall_
feedback - Recall-domain posterior updates — direct update functions replacing fold-based replay.
- rerank
- Weighted feature-combination reranking for memory recall candidates.
- scoring
- Composite memory scoring — ported from the archived internal service (v1 archive).
- tunable
- Brain-tunable parameter surface for the memory pack’s recall scoring pipeline.
Structs§
- Memory
Pack - Pack implementation providing
memory.rememberandmemory.recallverbs.
Functions§
- bump_
memory_ ann_ epoch - Bump the durable memory-ANN corpus epoch (#812 review REQUEST CHANGES
HIGH).
kkernel reindexmutates note vectors and deletes the persisted Vamana snapshot directly, out of process from any running khive daemon — its in-memory write-generation counter (ann::bump_generation) is simply unreachable from a separate process. Call this after invalidating the snapshot so a warm daemon sharing the same database file has a durable signal to observe on its next amortized freshness check (ann::maybe_check_durable_epoch, sampled from the recall path) and schedules a rebuild instead of serving pre-reindex vectors indefinitely. - ensure_
ann_ epoch_ schema - Ensure the
memory_ann_epochtable exists onrt(idempotent, #812 review REQUEST CHANGES MEDIUM — pack schema contract). Declared viaMemoryPack::SCHEMA_PLANfor daemon boot (server.rs/serve.rsapply every loaded pack’s schema plan up front), butkkernel reindexruns directly against a rawKhiveRuntimewithout ever booting a pack registry — it calls this explicitly, once, before its firstbump_memory_ann_epoch, so a reindex against a brand-new database (no daemon ever started) doesn’t fail before this table exists.