feat(search): use compression-lineage memo resolver (#62) - #63
Open
Skywind5487 wants to merge 4 commits into
Open
feat(search): use compression-lineage memo resolver (#62)#63Skywind5487 wants to merge 4 commits into
Skywind5487 wants to merge 4 commits into
Conversation
This was referenced Aug 9, 2026
Closed
21 tasks
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
Implements #62 using the decision from #54 / PR #55:
node -> resolved_rootmemo/path-compression resolver;B = 1500;Production lineage predicate
A child continues a compression lineage only when all supported conditions hold:
child.parent_session_id = parent.id;parent.end_reason = 'compression';child.source != 'tool';_branched_fromdoes not point at this parent;_delegate_fromdoes not point at this parent.Foreign/stale markers pointing elsewhere do not disqualify a legitimate continuation.
Implementation
hermes_state_lineage.pyB=1500global successful-row-lookup bound;search_session_winners()override preserving existing unicode61 / CJK LIKE / trigram candidate ranking and source-priority ordering;hermes_state.pySessionDBto the new search mixin.tools/session_search_tool.py_resolve_lineage()through the shared production resolver;Validation
VM validation on the implementation worktree:
The focused mechanism benchmark from #54 / PR #55 was run on the same VM hardware and selected Python memo/path compression over no-memo/TEMP/fixed-depth references. The benchmark receipt used
/usr/bin/python3+ SQLite 3.40.1; this PR does not reopen that algorithm decision. Production Hermes may use a separately patched owner runtime, while this acceptance run exercises the repository code path on the target VM.Evidence / references
Non-goals
Closes #62