Repository navigation
Conversation
bbec0ee to
e7329dd
Compare
This is a well-designed and unusually thorough PR: it replaces the single-shot Points to verify (non-blocking):
Verdict: LGTM |
dc7c501 to
44acc01
Compare
a1e388d to
32f75a9
Compare
* fix(hermes): mirror native memory replacements and removals Port the provider implementation from NousResearch/hermes-agent#100187 at 32f75a9e6728a9a3d2f50a870dab3715a1f34fd7, which continues #85860. Keep the existing profile and connection-generation fixes, use relative imports and context-preserving workers, and cover the external loader and native-memory bridge. * test(hermes): retain native memory mirror regression coverage * fix(hermes): require committed entry identity and report indexing failures * fix(hermes): clarify asynchronous add indexing status
|
This work is now merged into the OpenViking-owned external Hermes plugin in OpenViking #5281. The adaptation uses the exact committed This covers the feature in |
What does this PR do?
Hermes mirrors successful built-in
memoryadditions to OpenViking, but it does not mirror laterreplaceorremoveoperations. This can leave old native memories searchable in OpenViking after the user updates or deletes them in Hermes.This PR gives each mirrored native memory a stable OpenViking URI. It stores the URI in a profile-scoped registry, then uses the same URI for later replace and remove operations. Events run through one FIFO worker, destructive operations fail closed when the mapping is missing or ambiguous, and failures are visible at warning level.
The registry is isolated by OpenViking connection and identity. It does not own session-extracted memories or explicit
viking_rememberresults. Those paths remain unchanged.This work continues and supersedes #85860. It preserves the useful stable-URI design and adds current-main compatibility, connection isolation, shared-profile serialization, lifecycle race protection, and failure-boundary coverage.
Related Issue
Fixes #31000
Type of Change
Changes Made
add,replace, andremoveoperations in FIFO order.new_textalias to external providers for add and replace operations.How to Test
memorytool, then replace it byold_text. Confirm that OpenViking updates the same URI and no longer returns the old content.old_text. Confirm that the exact URI and its search result are removed.Validation completed after rebasing onto upstream main
4f6ef8806f:new_textbridge test fails on the old forwarding logic and passes with this fix.2251aa136aconfirms the identity, content write, and exact delete API contracts used by the mirror.0.4.18.dev21: server-confirmed user resolution, add, same-URI replace, exact read, exact delete, and empty final registry all passed.ty, Python compilation, and Git whitespace checks passed.Checklist
Code
pytest tests/ -qand all tests pass. The affected suites pass, but the complete repository suite was not rerun locally.Documentation & Housekeeping
cli-config.yaml.exampleis not affected.CONTRIBUTING.mdandAGENTS.mdare not affected.0600on POSIX, and the Windows ACL limitation is documented.Screenshots / Logs
Not applicable.