Files
codebase-memory-mcp/tests
Andrew Hundt 8adef05c5d feat(store): add overlay-aware search primitive
Add cbm_store_search_overlay_view() as an opt-in active node read view over canonical nodes minus ready overlay file tombstones plus owned nodes from the latest ready overlay per changed file.

Refactor canonical search to share the SQL execution, allocation, scan, cleanup, and error path with the new overlay search primitive. Default search_graph/search_code/query behavior remains unchanged.

Tests cover canonical fallback with no ready overlay and a full-rebuild oracle comparison where old rows are hidden, stable rows remain visible, latest overlay rows win, non-canonical overlay ids stay zero, and the degree-filter SQL wrapper is exercised.

Validation: CBM_ONLY_SUITE=store_nodes make -f Makefile.cbm -j8 test -> /private/tmp/cbm-pan83-overlay-search-store-suite-20260703T1910.log (92 passed); CBM_ONLY_SUITE=mcp make -f Makefile.cbm -j8 test -> /private/tmp/cbm-pan83-overlay-search-mcp-suite-20260703T1914.log (144 passed); make -f Makefile.cbm -j8 cbm -> /private/tmp/cbm-pan83-overlay-search-product-build-20260703T1915.log; bash scripts/check-source-safety.sh -> /private/tmp/cbm-pan83-overlay-search-source-safety-20260703T1915.log; git diff --check clean; isolated dogfood index/search artifacts under /private/tmp/cbm-pan83-overlay-search-dogfood-*.
Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
2026-07-03 19:04:01 -04:00
..
2026-06-03 02:13:30 +02:00