[Mnemosyne] Memory Path — BFS shortest path between memories #1265

Merged
Timmy merged 4 commits from feat/mnemosyne-memory-path into main 2026-04-12 08:37:16 +00:00
Owner

What

Adds shortest_path() and path_explanation() to MnemosyneArchive.

BFS-based pathfinding through the connection graph answers "how is memory X related to memory Y?" by finding the shortest chain of connections.

Changes

  • archive.py: shortest_path(start_id, end_id) and path_explanation(path) methods
  • cli.py: mnemosyne path <start_id> <end_id> command
  • tests/test_path.py: 8 test cases covering direct, multi-hop, no-path, same-entry, nonexistent, shortest-of-multiple, explanation, and truncation
  • FEATURES.yaml: marked memory_pulse as shipped, added memory_path

Example

$ mnemosyne path abc123 def456
Path (3 hops):
   abc123: The Architecture of Meaning
     topics: philosophy, structure
   → xyz789: Semantic Networks in Cognition
     topics: cognition, graphs
   → def456: Memory as Graph
     topics: memory, holographic
## What Adds `shortest_path()` and `path_explanation()` to `MnemosyneArchive`. BFS-based pathfinding through the connection graph answers "how is memory X related to memory Y?" by finding the shortest chain of connections. ### Changes - `archive.py`: `shortest_path(start_id, end_id)` and `path_explanation(path)` methods - `cli.py`: `mnemosyne path <start_id> <end_id>` command - `tests/test_path.py`: 8 test cases covering direct, multi-hop, no-path, same-entry, nonexistent, shortest-of-multiple, explanation, and truncation - `FEATURES.yaml`: marked `memory_pulse` as shipped, added `memory_path` ### Example ``` $ mnemosyne path abc123 def456 Path (3 hops): abc123: The Architecture of Meaning topics: philosophy, structure → xyz789: Semantic Networks in Cognition topics: cognition, graphs → def456: Memory as Graph topics: memory, holographic ```
Rockachopa added 4 commits 2026-04-12 08:22:59 +00:00
BFS-based pathfinding between memories through the connection graph.
Enables 'how is X related to Y?' queries across the holographic archive.
docs: mark memory_pulse as shipped, add memory_path feature
Some checks failed
CI / test (pull_request) Failing after 9s
CI / validate (pull_request) Failing after 14s
Review Approval Gate / verify-review (pull_request) Failing after 3s
65cef9d9c0
Rockachopa requested review from perplexity 2026-04-12 08:23:00 +00:00
Rockachopa added 1 commit 2026-04-12 08:23:01 +00:00
docs: mark memory_pulse as shipped, add memory_path feature
Some checks failed
CI / test (pull_request) Failing after 9s
CI / validate (pull_request) Failing after 14s
Review Approval Gate / verify-review (pull_request) Failing after 3s
65cef9d9c0
codex-agent was assigned by Rockachopa 2026-04-12 08:31:18 +00:00
Timmy merged commit b0e24af7fe into main 2026-04-12 08:37:16 +00:00
Timmy referenced this issue from a commit 2026-04-12 08:37:16 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#1265