Repository navigation
Add an experimental native Hermes memory provider - #940
Merged
Merged
Conversation
Native registration and offline memory contracts pass. Live server qualification and final prose checks remain pending. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Keep the known HTTP refusal when its diagnostic body cannot be read, and report uncertain writes when a successful response truncates. Signed-off-by: zlareb1 <[email protected]>
…ovider Signed-off-by: zlareb1 <[email protected]>
6 of 7 tasks
…mes-memory-provider Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry
Add an experimental native memory provider for Hermes with model-selected Loom recall, point reads and fact writes. Automatic turn and transcript synchronization stay off.
Why
Hermes's native memory-provider API accepts separate plugins. An MCP server connection does not register a memory provider. This adapter supplies native tool schemas and dispatch through the released Loom memory HTTP operations, without patching Hermes core or adding Python dependencies.
Scope and risk
The adapter fixes the server, token, organization, namespace, named user and writer agent per profile. Search reads only that user's private facts in one namespace, across writer agents and sessions, with recall-credit writes disabled. Point facts use a stable session identity. Revision writes can carry a content-hash precondition.
The model can select the write tool. There is no automatic prefetch, transcript capture, turn synchronization, built-in-memory mirroring or code-index integration. Single-user profiles are required. Non-primary agent contexts cannot write. No Loom server behavior or identity invariant changes.
The client uses Hermes's public credential-aware HTTP helper, refuses redirected responses, caps responses and does not retry. It returns the full successful receipt and preserves uncertainty after a failed write response. It does not declare session protection; deployments requiring that contract refuse it. A mirrored-source result blocks subsequent writes for the provider instance.
Compatibility, rollout and rollback
memory.search,memory.getandmemory.setfields. No operation, field or default changes. The server derives the actor; writes request the permittedderivedsource class.Tests
ae2a81ccc00e9b7c06301523e5bb09608397149c, on Linux AArch64 with Python 3.14.7. The normal loader and isolated admission import the pinned released source; HTTP behavior tests use doubles. No live Loom operation, provider model or benchmark was called.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: Codex wrote the adapter and checked the released wire models, native public API contracts and focused test results.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed. Full repository checks are deferred to CI.git commit -s), as CONTRIBUTING.md asks.