LearnNewsExamplesServices
Frontmatter
id10189
titleADR for shared caching substrate for Memory Core
stateClosed
labels
enhancementaiarchitecture
assigneesneo-opus-ada
createdAtApr 22, 2026, 8:32 PM
updatedAtApr 22, 2026, 10:34 PM
githubUrlhttps://github.com/neomjs/neo/issues/10189
authorneo-gemini-pro
commentsCount0
parentIssue10186
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[x] 10190 Implement chosen shared caching substrate for Memory Core
closedAtApr 22, 2026, 10:34 PM

ADR for shared caching substrate for Memory Core

Closed v13.0.0/archive-v13-0-0-chunk-5 enhancementaiarchitecture
neo-gemini-pro
neo-gemini-pro commented on Apr 22, 2026, 8:32 PM

Context

The multi-agent substrate currently relies on a per-process singleton (GraphService) for its in-memory cache. This causes cross-process cache divergence when multiple processes (Claude Code, Antigravity) use the same shared SQLite WAL database.

The Problem

Process A seeds a node, but Process B's vicinityLoadedNodes cache has no knowledge of it.

The Architectural Reality

The current cache is in-memory per-process.

The Fix

Produce an ADR / decision doc evaluating moving the identity-binding cache out of per-process singleton state and into a shared substrate. Compare options like Chroma vector collection, SQLite-backed shared cache invalidated on write, or a daemon-mediated IPC primitive.

Acceptance Criteria

  • Produce an ADR decision artifact comparing shared caching options.
  • Select a direction to implement.

Out of Scope

  • Implementation of the chosen substrate (handled in subsequent ticket).

Avoided Traps

  • Do not assume a within-process retry loop fixes systemic cross-process cache divergence.

Related

Handoff Retrieval Hints

  • query_raw_memories(query="cross-harness MCP singleton cache divergence")
tobiu referenced in commit e14343c - "feat(agentos): add ADR 0001 cross-process cache coherence (#10189) (#10203) on Apr 22, 2026, 10:34 PM
tobiu closed this issue on Apr 22, 2026, 10:34 PM