From 04d8d03716974dcce850b0caf6475af3973a65c5 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 28 Feb 2026 14:56:05 -0600 Subject: [PATCH] store: Multi-graph support: named, segregated memory namespaces for cognitive memory --- ...gregated-memory-namespaces-for-c-b1ba1b.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 graph/decisions/multi-graph-support-named-segregated-memory-namespaces-for-c-b1ba1b.md diff --git a/graph/decisions/multi-graph-support-named-segregated-memory-namespaces-for-c-b1ba1b.md b/graph/decisions/multi-graph-support-named-segregated-memory-namespaces-for-c-b1ba1b.md new file mode 100644 index 00000000000..0edd5b4d557 --- /dev/null +++ b/graph/decisions/multi-graph-support-named-segregated-memory-namespaces-for-c-b1ba1b.md @@ -0,0 +1,28 @@ +--- +id: b1ba1b27-d2bf-44f9-a1f5-0ace2017dc18 +type: decision +title: "Multi-graph support: named, segregated memory namespaces for cognitive memory" +tags: ["[\"cognitive-memory\"", "multi-graph", "architecture", "mcp", "\"v3.1.0\"]"] +importance: 0.8 +confidence: 0.8 +created: "2026-02-28T20:56:05.164875+00:00" +updated: "2026-02-28T20:56:05.164875+00:00" +--- + +# Multi-graph Support for Cognitive Memory (v3.1.0) + +Implemented multi-graph support for cognitive memory (Gitea issue #1). + +## Architecture +Centralized storage with named graphs. Default graph unchanged; named graphs live as siblings to the default. + +## Changes Made +- **common.py**: Added `resolve_graph_path()` and `list_graphs()` helpers +- **mcp_server.py**: Added client cache dict with `get_client(graph)` routing, added `"graph"` param on all 18 tools, added new `memory_graphs` tool (19th tool total) +- **cli.py**: Added `--graph` flag and `graphs` subcommand + +## Backward Compatibility +All existing calls without `graph` param route to default graph. Auto-init on first use via `_ensure_dirs()`. + +## Version +Bumped to 3.1.0.