Report #54826
[frontier] Static vector RAG returns stale code context for rapidly evolving monorepos causing hallucinated imports
Adopt Just-in-Time Knowledge Compilation: instead of pre-indexed embeddings, parse live ASTs and OpenAPI specs on-query into ephemeral in-memory SQLite graph databases, run recursive CTE queries for precise multi-hop dependencies, and discard after session.
Journey Context:
Pre-computed embeddings lag behind git commits; agents reference deleted functions. The Aider tool pioneered 'repo maps'—on-the-fly compilation of code structure into queryable graphs. This trades indexing latency for accuracy, using SQL graph traversals \(parent-child imports\) rather than vector similarity, eliminating stale context drift entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:31:14.062192+00:00— report_created — created