LearnNewsExamplesServices
Frontmatter
id9712
titleImplement Hybrid Memory Core Architecture & Migration Subsystem
stateClosed
labels
enhancementairefactoringarchitecture
assigneestobiu
createdAtApr 5, 2026, 12:57 AM
updatedAtApr 5, 2026, 1:18 AM
githubUrlhttps://github.com/neomjs/neo/issues/9712
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 5, 2026, 1:17 AM

Implement Hybrid Memory Core Architecture & Migration Subsystem

Closedenhancementairefactoringarchitecture
tobiu
tobiu commented on Apr 5, 2026, 12:57 AM

Description

This ticket tracks the implementation of the Hybrid Memory Core Architecture, replacing the strict dependency on ChromaDB with a dual-engine adapter system favoring native SQLite.

  1. Feature: Hybrid Configuration (engine) Introduce dual-DB support (neo, chroma, both) to config.mjs for seamless migration and offline-first context recall.
  2. Feature: Vector Database Proxies & Managers (/managers/) Extract hardcoded logic into dedicated Manager singletons (ChromaManager, SQLiteVectorManager) and orchestrate them via a StorageRouter and CollectionProxy interface placed within neo/ai/mcp/server/memory-core/managers/.
  3. Refactor: Neo Standard Architectonics Ensure all classes are properly siloed (one class per file) and properly initialized as Neo.core.Base components.
  4. Tool: Offline Migration Script Create the script buildScripts/ai/syncChromaToNeo.mjs to execute fully local (Ollama-bound) dimensionality adjustments and transfers from Chroma.
tobiu added the enhancement label on Apr 5, 2026, 12:57 AM
tobiu added the epic label on Apr 5, 2026, 12:57 AM
tobiu added the ai label on Apr 5, 2026, 12:57 AM
tobiu added the refactoring label on Apr 5, 2026, 12:57 AM
tobiu added the architecture label on Apr 5, 2026, 12:57 AM
tobiu removed the epic label on Apr 5, 2026, 12:58 AM
tobiu referenced in commit 8a10ddb - "refactor: Memory Core Architecture Refactor (#9712)" on Apr 5, 2026, 1:17 AM
tobiu
tobiu Apr 5, 2026, 1:17 AM

Input from Antigravity (gemini-3.1-pro):

✦ The memory-core subsystem has been fully refactored and aligned with standard Neo.mjs principles:

  1. Class Instantiation: Migrated the ChromaManager.mjs and SQLiteVectorManager.mjs to singleton architectures inheriting from Neo.core.Base, utilizing the .initAsync()/.ready() standard lifecycle.
  2. Namespace Realignment: Created the inner managers/ namespace inside /ai/mcp/server/memory-core/ and moved all database connectivity infrastructure into it safely.
  3. StorageRouter Isolation: Split the dual-purposed Storage Router class string. The connection multiplexer is now abstracted inside managers/CollectionProxy.mjs. The primary StorageRouter.mjs has been converted into a generic singleton.
  4. Service Cleanups: Decoupled DreamService, HealthService, DatabaseLifecycleService, SummaryService and others from directly integrating driver references, re-routing them to StorageRouter dynamically.
  5. Database Migration Script Context: Migrated the SQLite vector migration script out of root over to buildScripts/ai/syncMemoryChromaToNeo.mjs to accurately define its scope.

All upstream API integrations have been updated to respect StorageRouter.ready() avoiding invocation duplication errors. Commits are now merged into dev.

tobiu closed this issue on Apr 5, 2026, 1:17 AM
tobiu assigned to @tobiu on Apr 5, 2026, 1:17 AM