consciousness/src/hippocampus/query
Kent Overstreet ba4e01b6f3 store: add weight to index, index-only key matching
- KEY_TO_UUID now stores weight (30 bytes: uuid+type+ts+deleted+weight)
- UUID_OFFSETS changed to composite key for O(log n) max-offset lookup
- Add NODES_BY_TYPE index for efficient type+date range queries
- Add for_each_key_weight() to StoreView for index-only iteration
- match_seeds uses index-only path when content not needed
- Fix transaction consistency in ops (single txn for related updates)
- rebuild() now records all uuid→offset mappings for version history
- Backwards compatible: old index formats decoded with default weight

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2026-04-15 05:14:04 -04:00
..
engine.rs store: add weight to index, index-only key matching 2026-04-15 05:14:04 -04:00
mod.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
parser.rs fix stale comment and skip unimplemented query tests 2026-04-13 20:20:44 -04:00