Repository navigation
feat(#246): relationship graph layer via metadata edges - #302
Merged
Merged
Conversation
Add relationship traversal to recall. Memories can be linked with typed edges (supersedes, contradicts, part_of, references) via --meta flags, and recall --related --depth N follows those edges via BFS. CLI changes: - uteke recall --related --depth N (BFS traversal of relationship edges) - uteke remember --meta 'rel:supersedes:<uuid>' (store typed edges) Core changes: - graph.rs: Relationship types, BFS traversal with score decay (0.8x/level) - remember.rs: parse_meta_pairs handles rel:type:target directives - No new database tables — all via metadata JSON relationships array Relationship types: supersedes, contradicts, part_of, references
Add relationship traversal to recall. Memories can be linked with typed edges (supersedes, contradicts, part_of, references) via --meta flags, and recall --related --depth N follows those edges via BFS. CLI changes: - uteke recall --related --depth N (BFS traversal of relationship edges) - uteke remember --meta 'rel:supersedes:<uuid>' (store typed edges) Core changes: - graph.rs: Relationship types, BFS traversal with score decay (0.8x/level) - Missing targets not marked visited (allows alternate paths) - Result limit applied after traversal (acceptable for small graphs) - remember.rs: parse_meta_pairs handles rel:type:target directives - No new database tables — all via metadata JSON relationships array Relationship types: supersedes, contradicts, part_of, references Cora review: addressed both MAJOR findings (result limit + missing target handling)
| map.insert(pair.clone(), serde_json::Value::Bool(true)); | ||
| } | ||
| } | ||
|
|
| Some(m) => m, | ||
| None => continue, | ||
| }; | ||
|
|
| if let Some(memory) = self.get_by_id(memory_id)? { | ||
| for rel in parse_relationships(&memory) { | ||
| if !seen.contains(&rel.target) { | ||
| if let Some(target) = self.get_by_id(&rel.target)? { |
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (3)
Review powered by cora-cli · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
* feat(#246): relationship graph layer via metadata edges Add relationship traversal to recall. Memories can be linked with typed edges (supersedes, contradicts, part_of, references) via --meta flags, and recall --related --depth N follows those edges via BFS. CLI changes: - uteke recall --related --depth N (BFS traversal of relationship edges) - uteke remember --meta 'rel:supersedes:<uuid>' (store typed edges) Core changes: - graph.rs: Relationship types, BFS traversal with score decay (0.8x/level) - remember.rs: parse_meta_pairs handles rel:type:target directives - No new database tables — all via metadata JSON relationships array Relationship types: supersedes, contradicts, part_of, references * feat(#246): relationship graph layer via metadata edges Add relationship traversal to recall. Memories can be linked with typed edges (supersedes, contradicts, part_of, references) via --meta flags, and recall --related --depth N follows those edges via BFS. CLI changes: - uteke recall --related --depth N (BFS traversal of relationship edges) - uteke remember --meta 'rel:supersedes:<uuid>' (store typed edges) Core changes: - graph.rs: Relationship types, BFS traversal with score decay (0.8x/level) - Missing targets not marked visited (allows alternate paths) - Result limit applied after traversal (acceptable for small graphs) - remember.rs: parse_meta_pairs handles rel:type:target directives - No new database tables — all via metadata JSON relationships array Relationship types: supersedes, contradicts, part_of, references Cora review: addressed both MAJOR findings (result limit + missing target handling)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Typed relationship edges between memories stored in metadata JSON.
Types: supersedes, contradicts, part_of, references. BFS traversal with 0.8x score decay. No new tables.
Closes #246