Repository navigation
fix(core): edges to deprecated memories no longer count in graph rerank or edge BFS - #1373
Merged
Merged
Conversation
…nk or edge BFS soft_delete_only is the default, so forget/deprecate leaves memory_edges rows behind. compute_graph_signals (strategy graph, recall_explain) and edge_bfs (related_via_edges, recall --related) now only consider live endpoints; the audit view (edges_for) and the supersession ledger still show the history. Fixes #1367 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Oct 8, 2026
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.
What
compute_graph_signals(graph rerank,recall_explain) andedge_bfs(related_via_edges,recall --related) joinmemoriesand only consider edges whose endpoints are live (deprecated = 0); BFS neither returns nor traverses through a deprecated memory.edges_for(GET /edges) and the supersession ledger are untouched, so history stays visible.Why
soft_delete_onlyis the default, soforget/deprecate leavesmemory_edgesrows pointing at retired memories and nothing removes them. They inflated rerank boosts and let traversal return or pass through retired memories (#1367, graph audit, epic #1345).Behaviour change
Only the non-default
graphrecall strategy and--relatedtraversal change; defaultfusionrecall does not read edges. No schema/wire change.Testing
edges_forstill lists the edge (fails on the old code).graph_reranknow creates amemoriestable for its fake ids.cargo fmt --check,cargo clippy --workspace --all-targetsclean;cargo test --workspacegreen; vecq-only core build green.graphstrategy (measured separately in bench: measure recall --strategy graph (LongMemEval) and decide keep/calibrate/retire graph rerank #1369).Fixes #1367
🤖 Generated with Claude Code