Skip to content

Future Exploration: Advanced Memory

Document ID: FUT-003 File Path: docs/18-roadmap/future/B3-advanced-memory.md Version: 1.0.0 Status: Exploratory — research bet, not committed Owner: Memory Engine Team Last Updated: 2026-07-05


Flesh out the “Advanced Memory” research bet (future.md §2.3, PRD-002 §6.3): knowledge-graph reasoning, multi-modal memory, time-travel queries, cross-agent fusion, and confidence scoring — extending the memory engine without weakening its isolation and encryption guarantees.

Exploratory — graduates only via an ADR.


The memory engine today is strong but flat: hybrid retrieval (vector + keyword fused with RRF), a weighted ranker, MMR diversification, ABAC filtering, and compression, over text content (wovyr-memory). It cannot reason over relationships between memories, store non-text modalities, answer “what did we know at time T,” fuse memory across agents, or express confidence.

The opportunity (memory futures, knowledge-graph — tagged v1-deferred):

  • Knowledge-graph reasoning at scale — entities/edges over the memory corpus.
  • Multi-modal memory — image/audio embeddings alongside text.
  • Time-travel queries — as-of-T retrieval over an append-only history.
  • Cross-agent memory fusion — shared/merged memory within a tenant.
  • Confidence scoring — a per-memory trust signal feeding the ranker.

3. Current Baseline (what this would build on)

Section titled “3. Current Baseline (what this would build on)”
  • Hybrid retrieval + explainable scoring — the score_breakdown contract means any new signal (confidence, graph proximity) can be surfaced, not hidden.
  • Pluggable storesInMemoryStore / FileStore / the capability-gated TieredStore (Postgres system-of-record + Qdrant ANN); a graph/multi-modal store would be another backend behind the same engine.
  • Isolation + encryption already enforced — ABAC required_scopes, tenant:<t> scoping, and the EncryptingMemoryStore wrapper for sensitive records. These are the guarantees new modalities must not break.

4. Direction (design sketch, non-committal)

Section titled “4. Direction (design sketch, non-committal)”
  • Knowledge graph: a graph layer derived from memories (entity/edge extraction) rather than a replacement store — retrieval fuses graph proximity into the existing RRF, keeping one ranking pipeline.
  • Multi-modal: modality-tagged embeddings; the gateway’s embedding path generalizes to non-text encoders. Retrieval stays hybrid.
  • Time-travel: lean on append-only history + a validity timestamp read only at the query boundary (mirroring how the workflow engine keeps time out of the deterministic core).
  • Confidence: a ranker input, surfaced in score_breakdown.

Each is a separate slice; an ADR should sequence them (knowledge graph is the largest and is explicitly the deferred v1 item).


  • Graph/multi-modal/time-travel retrieval returns results through the existing MemoryQuery + score_breakdown surface (no parallel, unexplainable path).
  • Confidence is a first-class, inspectable ranking factor.
  • Tenant isolation & ABAC hold across every new modality/store — a graph edge or an image embedding is scoped and filtered exactly like a text memory.
  • Encryption holdssensitive content stays sealed at rest in any new backend, as it already is across the tiered Postgres backend.
  • Retrieval stays explainable — no black-box relevance.

  • Isolation fragmentation — the biggest risk: a purpose-built graph or multi-modal store re-implementing (and subtly weakening) the isolation model.
  • Scale — graph reasoning “at scale” is unproven against the same NFR targets that Tier A (PRD-002 §5.1) hasn’t yet validated for flat memory.
  • Encryption vs. indexing — a purpose-built index can’t score ciphertext; the existing engine already documents this trade for sensitive records, and a graph/multi-modal store inherits the same tension.

Per-slice; each becomes an ADR + roadmap slot only when it can show:

The new store/modality upholds tenant isolation and encryption end to end (proven by test), returns results through the existing explainable retrieval surface, and has a credible scale story against the NFR targets.




VersionDateDescription
1.0.02026-07-05Initial exploration doc for the advanced-memory research bet