LearnNewsExamplesServices
Frontmatter
id9727
titleSemantic Refactoring of Memory Core Configuration
stateClosed
labels
enhancementairefactoringarchitecture
assigneestobiu
createdAtApr 6, 2026, 1:13 AM
updatedAtApr 6, 2026, 1:57 AM
githubUrlhttps://github.com/neomjs/neo/issues/9727
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 6, 2026, 1:48 AM

Semantic Refactoring of Memory Core Configuration

Closedenhancementairefactoringarchitecture
tobiu
tobiu commented on Apr 6, 2026, 1:13 AM

Problem

The current memory core configuration (config.mjs) relies on misleading naming conventions: memoryDb and sessionDb are structurally defined as databases, when logically they are just collections/tables that live inside a physical database engine. Furthermore, ChromaManager uses eager initialization, meaning a simple file import triggers a background daemon run command—causing crash issues for unit tests where a server start is a fatal side behavior.

Proposed Solution

  1. Semantic Separation: Decouple physical Engine routing from logical Collection schemas. We will introduce engines.neo and engines.chroma for directory and port routing, alongside a standalone collections block for table naming configurations.
  2. Unified Backup Topology: Stick strictly to .jsonl data backups, creating a top-level backupPath across engines to prevent raw Chroma database folder copying/bloat.
  3. Service Migration: Reconcile 8 existing framework files and build scripts to cleanly route to the semantic API paths.
tobiu added the enhancement label on Apr 6, 2026, 1:13 AM
tobiu added the ai label on Apr 6, 2026, 1:13 AM
tobiu added the refactoring label on Apr 6, 2026, 1:13 AM
tobiu added the architecture label on Apr 6, 2026, 1:13 AM
tobiu assigned to @tobiu on Apr 6, 2026, 1:13 AM
tobiu cross-referenced by #9728 on Apr 6, 2026, 1:23 AM
tobiu referenced in commit e12ee23 - "refactor: Semantic Refactoring of Memory Core Configuration (#9727)" on Apr 6, 2026, 1:47 AM
tobiu
tobiu Apr 6, 2026, 1:48 AM

Architecture definition decoupled successfully and backwards compatibility for base sdk verified via SQLite Vector native.

tobiu closed this issue on Apr 6, 2026, 1:48 AM