vestige/crates
Error42-redacted 8d7b375b31 fix: rewrite explore_connections to use SQLite storage instead of empty in-memory structures
explore_connections (chain, associations, bridges) returned empty results because
it read from CognitiveEngine in-memory data structures that were never populated.
memory_graph works because it queries SQLite directly via storage.get_memory_subgraph().

This rewrites explore.rs to follow the same pattern as graph.rs:
- Remove CognitiveEngine dependency, use Storage directly
- associations: queries depth-1 subgraph for neighbors
- chain: pulls neighborhoods around both endpoints, builds adjacency list,
  runs BFS with priority queue (ported from chains.rs algorithm)
- bridges: reuses chain logic, extracts intermediate nodes by frequency

Also updates the call site in server.rs to pass storage instead of cognitive.

Adds integration tests that insert actual connections and verify non-empty results.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 02:00:06 -08:00
..
vestige-core fix: comprehensive audit fixes for dashboard and backend 2026-02-22 15:50:47 -06:00
vestige-mcp fix: rewrite explore_connections to use SQLite storage instead of empty in-memory structures 2026-02-27 02:00:06 -08:00