Repository navigation
fix(hermes): keep EverOS auto-start working on Hermes 2026.9.7+ - #40
Conversation
Since 2026.9.7 Hermes loads memory providers through the shared plugin loader, which setattr()s every sibling module onto the package after __init__ runs. The package global `provision` (the function, imported from provision.py) was replaced by the provision module, so the startup thread raised `TypeError: 'module' object is not callable`: with EverOS down, nothing started it, and recall and capture failed silently. With EverOS already running everything worked, which is why it went unnoticed. Bind the function as `provision_everos` instead. The file keeps its name so re-running the install over an old copy cannot leave a stale module behind. A test pins the invariant: no package global may share a sibling module's name. Verified with the real loader: on v0.23.1 the start command runs again (it did not before the fix), on the 2026-08-07 baseline it still runs, and the full provider probe on v0.23.1 (search, add with tool calls, flush) passes. Also corrects the README install path, which is $HERMES_HOME/plugins/everos. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex installs plugin hooks untrusted and runs none of them until the user trusts them in /hooks, so following the README produced a plugin that installed fine and remembered nothing. Codex 0.167 also pins that trust to the plugin's content hash, so every plugin update needs trusting again. The README's "hooks fire on a real session" came from probe-hooks.sh, which runs with --dangerously-bypass-hook-trust; say so, and record that install and hook discovery were checked on both 0.149.0 and 0.167.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
Reviewed the repository guidance (no AGENTS.md, CLAUDE.md, or CONTEXT*.md is present), the complete origin/main...HEAD diff, both commits and relevant history, the provider call sites, Hermes v2026.9.7's shared loader, backward compatibility with the ordinary package loader, the Codex documentation addition, and the tests for weakening or false-green behavior.
The fix matches the host failure: v2026.9.7 rebinds sibling modules after __init__.py, while provision_everos remains callable. A probe through that exact upstream loader reached the provisioning callable successfully. The alias is also valid under the older/ordinary import path.
Verification: python3 -m unittest discover -s tests -v in hermes passed all 71 tests; npm test in codex passed all 54 tests plus manifest checks; git diff --check passed; all three GitHub checks are green.
A sweep of every plugin against its host's current release (DSH is #39). Two of the remaining hosts drifted in ways that matter to users; this fixes both. OpenClaw, Claude Code, and Dify were checked and work on their latest releases.
Hermes: EverOS auto-start broke on Hermes 2026.9.7+
Since 2026.9.7 (57c35858) Hermes loads memory providers through the shared plugin loader, which
setattr()s every sibling module onto the package after__init__runs. The package globalprovision, the function imported fromprovision.py, became theprovisionmodule, and the startup thread raisedTypeError: 'module' object is not callable.What a user saw: start Hermes while EverOS is down, and nothing starts it. Recall and capture fail silently. With EverOS already running everything worked, which is how it went unnoticed.
The function is now bound as
provision_everos. The file keeps its name, so re-running the install over an old copy cannot leave a staleprovision.pythat shadows it again.test_no_package_global_is_named_after_a_sibling_modulepins the invariant; it fails onmain.Verified with Hermes's real loader, EverOS down,
start_cmdtouching a marker:mainThe full provider probe on v0.23.1 (real loader and
MemoryManager, stub EverOS) passes: 2 searches, an add carrying the tool call and result, flushes. 71 unit tests pass. Also: the README install path was wrong; it is$HERMES_HOME/plugins/everos/. Plugin version 1.0.1.Codex: the README skipped trusting the hooks
Codex installs plugin hooks untrusted and runs none of them until the user trusts them in
/hooks, so following the README gave a plugin that installed fine and remembered nothing. Codex 0.167 pins trust to the plugin's content, so each plugin update needs trusting again. The README now says both.Its "hooks fire on a real session" came from
probe-hooks.sh, which uses--dangerously-bypass-hook-trust; the README now says that, and that install and hook discovery were checked on 0.149.0 and 0.167.2.Known, not changed here
hermes everos statushas never worked: Hermes'sregister_cli_commandis a no-op for memory plugins. Pre-existing on both host versions./api/v1, which EverOS serves as a legacy alias.🤖 Generated with Claude Code