Root Cause (verified)
semantic_search_engine.py reads from the symbols table:
SELECT COUNT() FROM symbols → 0 (always empty after scan)
SELECT COUNT() FROM graph_nodes → 652 (data lives here)
scan populates graph_nodes/graph_edges but nothing populates symbols.
semantic-query reads the wrong table → index_size: 0, returned: 0 on every query.
Fix (Option A — recommended)
Change _load_symbols_from_db in semantic_search_engine.py to read from graph_nodes:
node_id → id, name → name, file → file_path, node_type → kind, line → line_start
No schema change needed.
Definition of Done
- semantic-query "google auth session flow" returns index_size > 0 and returned > 0 on a scanned workspace
- Results ranked by TF-IDF relevance
- index_size ≈ number of functions/classes in workspace
Root Cause (verified)
semantic_search_engine.py reads from the symbols table:
SELECT COUNT() FROM symbols → 0 (always empty after scan)
SELECT COUNT() FROM graph_nodes → 652 (data lives here)
scan populates graph_nodes/graph_edges but nothing populates symbols.
semantic-query reads the wrong table → index_size: 0, returned: 0 on every query.
Fix (Option A — recommended)
Change _load_symbols_from_db in semantic_search_engine.py to read from graph_nodes:
node_id → id, name → name, file → file_path, node_type → kind, line → line_start
No schema change needed.
Definition of Done