Skip to content

fix(hermes): keep EverOS auto-start working on Hermes 2026.9.7+ - #40

Merged
gloryfromca merged 2 commits into
mainfrom
fix/hermes-provision-shadowing
Nov 13, 2026
Merged

gloryfromca merged 2 commits into
mainfrom
fix/hermes-provision-shadowing

Conversation

@gloryfromca

Copy link
Copy Markdown
Member

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 global provision, the function imported from provision.py, became the provision module, and the startup thread raised TypeError: '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 stale provision.py that shadows it again. test_no_package_global_is_named_after_a_sibling_module pins the invariant; it fails on main.

Verified with Hermes's real loader, EverOS down, start_cmd touching a marker:

Hermes main this branch
v0.23.1 (latest) TypeError, start command not run start command runs
2026-08-07 baseline runs runs

The 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 has no CI workflow; its tests run only locally.
  • hermes everos status has never worked: Hermes's register_cli_command is a no-op for memory plugins. Pre-existing on both host versions.
  • Hermes still calls EverOS /api/v1, which EverOS serves as a legacy alias.

🤖 Generated with Claude Code

zhanghui and others added 2 commits November 13, 2026 13:44
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 gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gloryfromca
gloryfromca merged commit b0d21c0 into main Nov 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant