jarvis memory index -b hybrid fails and the hybrid backend's dense half never persists
Component: src/openjarvis/cli/memory_cmd.py::_get_backend, tools/storage/hybrid.py, tools/storage/dense.py
_get_backend passes db_path only for sqlite; every other key goes through MemoryRegistry.create(key) with no arguments, so jarvis memory index <path> -b hybrid raises HybridMemory.__init__() missing 2 required keyword-only arguments: 'sparse' and 'dense'. Also DenseMemory documents "No persistence", so even when built by hand the dense index is lost between processes (jarvis memory index followed by jarvis serve).
Proposal (already implemented and tested on a branch): a sqlite_hybrid backend that keeps documents in the SQLite file and syncs a dense index from it on retrieval, with an on-disk embedding cache and an FTS5-only fallback when the embedder is down. On a 60-document Portuguese corpus (28 labelled queries) it reaches hit@1 27/28 vs 22/28 for FTS5 alone. Would you prefer a new backend key, or making hybrid itself persistent?
Generated with Claude Code
Source: open-jarvis/OpenJarvis