LearnNewsExamplesServices
Frontmatter
id9721
title[Memory Core] GraphRAG Storage Synchronization and Index Stabilization
stateClosed
labels
bugaicore
assigneestobiu
createdAtApr 5, 2026, 4:00 PM
updatedAtApr 5, 2026, 4:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/9721
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 5, 2026, 4:03 PM

[Memory Core] GraphRAG Storage Synchronization and Index Stabilization

Closedbugaicore
tobiu
tobiu commented on Apr 5, 2026, 4:00 PM

Description

While investigating Epic #9714 (Hybrid GraphRAG Scoring Algorithm), significant regression bugs were identified within the memory-core SQLite testing environments that destabilized neighbor extraction, specifically affecting GraphService operations.

This ticket formalizes the fixes developed:

  1. Index Eviction Leakage: Fixed RAM cache state leakage by cleanly flushing map structures when Base.collection.Store execution clear() operates across index instances.
  2. Missing storage References for Singleton Connections: Repaired GraphService.mjs initialization. Re-used (Neo.get) singletons failed to hook onto newly declared storage contexts scoped to per-test path variants (leaving them tied down to legacy database bindings).
  3. Implicit Test Crashing Check: Added explicit imports for Neo.manager.Instance missing within our test setups, preventing Neo.getId() exceptions during lazy database operations.
  4. Validation cleanup: Safely eliminated monkey-patched data filtration (!inRAM) from GraphDatabase as the upstream neo.collection.Base#splice efficiently drops bulk inserts implicitly securely evaluating identities mapping checks in O(1).

Verification Status

The entire ai/mcp/server/memory-core/services/GraphService.spec.mjs suite runs correctly executing npm run test-unit against a locally bound test-.db instance with no duplications.

tobiu added the bug label on Apr 5, 2026, 4:00 PM
tobiu added the ai label on Apr 5, 2026, 4:00 PM
tobiu added the core label on Apr 5, 2026, 4:00 PM
tobiu assigned to @tobiu on Apr 5, 2026, 4:00 PM
tobiu referenced in commit 475013f - "fix: Memory Core Graph desynchronization, index leakage, and singleton storage bugs. (#9721)" on Apr 5, 2026, 4:03 PM
tobiu
tobiu Apr 5, 2026, 4:03 PM

Completed fixes via 475013f99. Memory Core SQLite testing and Store indices natively stabilized without duplication.

tobiu closed this issue on Apr 5, 2026, 4:03 PM