feat: extract GraphIndexMixin for shared merge/search/index - #145
Merged
yifanfeng97 merged 1 commit intoSep 14, 2026
Merged
Conversation
This was referenced Sep 13, 2026
Co-authored-by: Frankie-Xu <Frankie-Xu@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/graph-index-mixin-bd8a
branch
from
September 13, 2026 20:41
9e1a1ef to
282f90e
Compare
Frankie-Xu
marked this pull request as ready for review
September 13, 2026 20:44
Owner
|
Merged — exactly what #115 called for: |
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.
Summary
merge_batch_data,build_index/build_node_index/build_edge_index, andsearch/search_nodes/search_edgesintoGraphIndexMixinbesideGraphEditMixin.AutoGraphandAutoHypergraphboth mix it in and drop their copies.search()still returns(nodes, edges). SearchHits stays in the CLI/MCP layer.AutoGraph.search is AutoHypergraph.searchso fix: forward source_ids/tags scope in AutoHypergraph.search #90-stylesource_idscopy-drift cannot recur.main@7a4db40. Commit author/committer is Frankie-Xu.Maintainer accepted the local mixin direction on #115 (keep
_node_memory/_edge_memory; do not push this into ontomem;GraphEditMixinstays the provenance/delete surface).Closes #115
Out of scope
search()to return SearchHitssource_ids/tagssemanticsTest plan
uv run pytest tests/types tests/utils tests/cli tests/test_mcp_server.py(493 passed, 7 skipped)AutoGraph.search is AutoHypergraph.search