Architectural Context
During Epic #9922, the monolithic SQLiteVectorManager was deprecated in favor of a Two-Pillar Hybrid RAG architecture using ChromaDB for semantic storage and SQLite for pure graphical structural topologies via StorageRouter.
However, the offline GraphRAG daemon (DreamService.mjs) was not fully refactored, causing DreamService and its respective Playwright test specs to crash when attempting to dynamically resolve the deleted module.
Core Objectives
- Eliminate all dynamic and static imports coupling
DreamService to SQLiteVectorManager.
- Refactor
synthesizeGoldenPath() to decouple the raw SQL JOIN that mapped structural and semantic spaces. The daemon must now fetch k semantic nodes natively from ChromaDB via StorageRouter, securely project those IDs into a bounded SQLite query to evaluate struct_score, and merge the hybrid priority cleanly in JavaScript.
- Update
DreamService test mocks to accurately emulate the Two-Pillar architecture.
Architectural Context
During Epic #9922, the monolithic
SQLiteVectorManagerwas deprecated in favor of a Two-Pillar Hybrid RAG architecture using ChromaDB for semantic storage and SQLite for pure graphical structural topologies viaStorageRouter.However, the offline GraphRAG daemon (
DreamService.mjs) was not fully refactored, causingDreamServiceand its respective Playwright test specs to crash when attempting to dynamically resolve the deleted module.Core Objectives
DreamServicetoSQLiteVectorManager.synthesizeGoldenPath()to decouple the raw SQL JOIN that mapped structural and semantic spaces. The daemon must now fetchksemantic nodes natively from ChromaDB viaStorageRouter, securely project those IDs into a bounded SQLite query to evaluatestruct_score, and merge the hybridprioritycleanly in JavaScript.DreamServicetest mocks to accurately emulate the Two-Pillar architecture.