v3/docs/adr/ADR-372-dream-cycle-intelligence-cognitive-mode-router.md
Status: Proposed
Authors: claude (dream-cycle agent, 2026-07-22)
Surfaces: intelligence (deep), memory (scan)
Dream Cycle Issue: TBD (filed same night)
The Supra Cognitive Modes (SCM) paper (arXiv 2607.19096, July 21 2026) demonstrates that routing memory queries by type—factoid lookup, multi-hop graph traversal, or long-form synthesis—yields 86.00% on LongMemEval and 84.87% on LoCoMo. The router is a frozen semantic classifier adding minimal latency.
Ruflo's current @claude-flow/memory module sends all queries through a single HNSW path regardless of type. This works for dense semantic search but leaves multi-hop and synthesis queries under-served: multi-hop benefits from graph traversal (ADR-130 adds graph-native backend but no dispatcher), synthesis benefits from stratified chunking not HNSW nearest-neighbor.
Additionally, the "Illusion of Multi-Agent Advantage" paper (arXiv 2606.13003) confirms that under equal token budgets single agents outperform multi-agent systems on multi-hop reasoning, reinforcing that smarter per-query routing at the memory layer is higher ROI than spawning more agents.
Add a Cognitive Mode Router (CMR) as a lightweight pre-retrieval classifier in @claude-flow/memory:
Query classifier: frozen sentence-classification model (or heuristic rule set for MVP) that assigns each incoming query to one of three modes:
FACTOID — direct lookup, route to lexical+dense HNSWMULTI_HOP — multi-step reasoning, route to graph traversal (ADR-087/ADR-130 backend)SYNTHESIS — long-form generation, route to chunked stratified retrieval with re-rankingMode-specific pipelines: each mode gets its own retrieval path; FACTOID keeps the current HNSW path unchanged (no regression).
Fallback: if classifier confidence < 0.6, default to FACTOID path.
Benchmark gate: LongMemEval tracked in CI; target ≥ Zep Graphiti's 63.8% temporal sub-task on first integration.
Positive:
Negative / Risks: