Origin Session ID: af26000d-914a-4eb0-8d28-2c09e9cb4cb5
Parent Epic: #9922
Context
With the shift to a ChromaDB + SQLite Two-Pillar paradigm, the underlying memory-core diagnostics and database routing layers are outdated. DatabaseService.mjs must stop routing all operations exclusively to the neo-sqlite directory, and HealthService.mjs needs to report multi-engine health strings accurately in its Heartbeat.
Technical Requirements
- Health Tracking (
HealthService.mjs): Modify the healthcheck heartbeat payload. It currently merges vector and graph status. It must now evaluate sqliteManager (Graph mapping) and chromaManager (HNSW) independently. If Chroma fails, vector operations enter DEGRADED, but Graph traversals remain OK.
- Database Routing (
DatabaseService.mjs): Rewrite the backend maintenance endpoints. Legacy functions expecting single-file SQLite backups or truncations must explicitly branch: vector truncations ping Chroma REST endpoints, while Graph truncations delete SQLite records.
Definitions of Done
mcp_neo-mjs-memory-core_healthcheck returns distinct properties for chroma and graph engine vitality.
- Database backup/clear logic handles both components securely.
Origin Session ID: af26000d-914a-4eb0-8d28-2c09e9cb4cb5 Parent Epic: #9922
Context
With the shift to a ChromaDB + SQLite Two-Pillar paradigm, the underlying memory-core diagnostics and database routing layers are outdated.
DatabaseService.mjsmust stop routing all operations exclusively to theneo-sqlitedirectory, andHealthService.mjsneeds to report multi-engine health strings accurately in its Heartbeat.Technical Requirements
HealthService.mjs): Modify the healthcheck heartbeat payload. It currently merges vector and graph status. It must now evaluatesqliteManager(Graph mapping) andchromaManager(HNSW) independently. If Chroma fails, vector operations enterDEGRADED, but Graph traversals remainOK.DatabaseService.mjs): Rewrite the backend maintenance endpoints. Legacy functions expecting single-file SQLite backups or truncations must explicitly branch: vector truncations ping Chroma REST endpoints, while Graph truncations delete SQLite records.Definitions of Done
mcp_neo-mjs-memory-core_healthcheckreturns distinct properties forchromaandgraphengine vitality.