Repository navigation
Conversation
code-review-graph reviewOverall risk: 0.40 (MEDIUM) — 8 changed function(s)/class(es), 17 affected flow(s), 1 test gap(s) Risk-scored changes
Affected execution flows
Test gaps
Token savings: this graph-backed report used ~14,880 fewer tokens (~69%) than reading every changed file in full (estimated, chars/4 approximation). Powered by code-review-graph — local-first analysis; no code leaves the CI runner. |
|
Integrated on |
|
Merged into |
…ently of stored paths Port the reviewed token-efficiency implementation with targeted regression coverage. Source-PR: tirth8205#962
Linked issue
Closes #945
What & why
Graphs with legacy Windows path spellings can produce zero embeddings because node enumeration passes stored paths through normalized file lookups. The tool then incorrectly reports that semantic search is active.
Explicit embedding and opted-in refresh now enumerate all non-File nodes directly, including virtual nodes outside the file inventory. The summary reports that semantic search is unavailable when the resulting embedding count is zero; an already-current index still reports active. Stored paths, node identities, and provider/model checks are preserved.
How it was tested
Python 3.13.15 on macOS. Regression tests use real SQLite stores with simulated legacy Windows paths and deterministic embedding providers. They cover initial embedding, explicit refresh, repeat runs, virtual nodes, and empty/File-only graphs.
The coverage run reached 85.06% (65% required), with 2,992 passed, 9 skipped, 2 xpassed, and one failure in the unchanged real filesystem-watcher test
test_recreated_directory_survives_and_is_reindexed. That test passed in isolated reruns on both this branch and clean upstream. An initial Python 3.14 run also hit the existing Windows event-loop test failure, reproduced on the unmodified base; final validation uses CI-supported Python 3.13.Checklist