This ticket consolidates infrastructural refactoring for the memory-core and knowledge-base MCP servers aimed at stabilizing process concurrency and decoupling LLM embedding providers from storage engines.
Resolutions:
- Introduced a sequential
#chromaLock Mutex Promise Queue inside ChromaManager.mjs to serialize ChromaDB setup, safely encapsulating console.warn suppression to halt global state race conditions.
- Validated the Mutex natively inside an in-RAM
Playwright unit test decoupled from local Ollama instances.
- Refactored
HealthService.mjs to dynamically probe specific instances defined by aiConfig.engine via StorageRouter, fixing structural blockages throwing false positives during local engine: chroma operations.
- Overhauled
TextEmbeddingService usage globally across MCP services, delegating raw array Vector generation fully down to the local Collection abstraction nodes so SQLiteVectorManager correctly outputs ollama 4096d arrays while ChromaManager flawlessly retains gemini 768d generation simultaneously with engine: both.
This ticket consolidates infrastructural refactoring for the memory-core and knowledge-base MCP servers aimed at stabilizing process concurrency and decoupling LLM embedding providers from storage engines.
Resolutions:
#chromaLockMutex Promise Queue insideChromaManager.mjsto serialize ChromaDB setup, safely encapsulatingconsole.warnsuppression to halt global state race conditions.Playwrightunit test decoupled from local Ollama instances.HealthService.mjsto dynamically probe specific instances defined byaiConfig.engineviaStorageRouter, fixing structural blockages throwing false positives during localengine: chromaoperations.TextEmbeddingServiceusage globally across MCP services, delegating raw array Vector generation fully down to the localCollectionabstraction nodes soSQLiteVectorManagercorrectly outputsollama4096d arrays whileChromaManagerflawlessly retainsgemini768d generation simultaneously withengine: both.