Repository navigation
Conversation
This branch has not been deployed
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.
Description
Hermes context-mode recall passes a session ID, but it did not pass OpenViking's cross-turn deduplication window. The generic context endpoint therefore used its
dedup_turns=0default even though the server recall preset uses five turns.This change makes the Hermes plugin use that existing server capability. Context-mode recall now suppresses content-bearing memories served within the last five session turns by default. Users can set
memory.openviking.recall_dedup_turnsfrom 0 through 100, or useOPENVIKING_RECALL_DEDUP_TURNS. A value of 0 disables suppression.Source evidence:
SearchRequest.dedup_turnsdefaults to 0.A source-pinned experiment confirmed that a five-turn window suppresses two recent content-bearing URIs while retaining an expired entry, a URI-only entry, and an entry from before session rotation. No external implementation code was copied.
Human Involvement
Related Issue
External evidence: vectorize-io/hindsight#5925
Type of Change
Changes Made
recall_dedup_turnsHermes plugin setting with a default of 5.Testing
Validation results:
UV_SYSTEM_CERTS=true uvx ruff check examples/hermes-plugin/__init__.py examples/hermes-plugin/tests/test_gateway_recall.py --ignore I001,B018UV_SYSTEM_CERTS=true uvx ruff format --check --range=124:1-196:1 examples/hermes-plugin/tests/test_gateway_recall.pygit diff --check upstream/main...HEADChecklist
Screenshots (if applicable)
Not applicable.
Additional Notes
This affects only recall with
recall_compress: serverorauto. The defaultoffpath is unchanged. The change adds no storage format, migration, or new deduplication mechanism.A whole-file Ruff format check for
examples/hermes-plugin/__init__.pyis not included because that file has pre-existing formatting differences outside this change. The changed test range and lint checks pass. Mypy was not run because the plugin's documented validation path is the external Hermes loader and complete provider suite.