Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions codex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,22 @@ codex plugin marketplace add EverMind-AI/Plugins
codex plugin add everos@everos
```

Then point it at your EverOS if it is not on the default address:
Then open `/hooks` in a Codex session and trust the five EverOS hooks. Codex
installs plugin hooks untrusted and does not run them until you do, so a skipped
step looks like a plugin that installed fine and remembers nothing. Codex 0.167
pins the trust to the plugin's content: after every plugin update the hooks show
as modified and need trusting again.

Point it at your EverOS if it is not on the default address:

```bash
export EVEROS_CODEX_BASE_URL=http://127.0.0.1:8000
```

Verified end to end against Codex 0.149.0: the marketplace resolves, the plugin
installs as `installed, enabled`, and its hooks fire on a real session.
Verified against Codex 0.149.0 and 0.167.2: the marketplace resolves, the plugin
installs as `installed, enabled`, and Codex discovers all five hooks with no errors.
That the hooks fire on a real session was probed with
`--dangerously-bypass-hook-trust` (`scripts/probe-hooks.sh`), not through `/hooks`.

## Two memory systems

Expand Down
2 changes: 1 addition & 1 deletion hermes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Design details: [`docs/DESIGN_DOC.md`](./docs/DESIGN_DOC.md) · build/test/relea
## Install

```bash
hermes plugins install EverMind-AI/plugins/hermes # → ~/.hermes/plugins/memory/everos/
hermes plugins install EverMind-AI/plugins/hermes # → $HERMES_HOME/plugins/everos/
hermes memory setup # pick "everos"; answer the prompts
hermes memory status # verify: provider active, EverOS healthy
```
Expand Down
7 changes: 5 additions & 2 deletions hermes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
from unicodedata import east_asian_width

from .client import ADD_MAX_MESSAGES, EverosClient, EverosError
from .provision import provision, stop_child
# Bound under another name: Hermes >= 2026.9.7 setattr()s every sibling module onto the
# package after this file runs, which would replace a global named `provision`.
from .provision import provision as provision_everos
from .provision import stop_child

try: # the real ABC exists inside a Hermes runtime
from agent.memory_provider import MemoryProvider
Expand Down Expand Up @@ -479,7 +482,7 @@ def initialize(self, session_id: str, **kwargs: Any) -> None:
client, cfg = self._client, self._cfg

def _provision() -> None:
result = provision(client, cfg.start_cmd, cfg.everos_dir)
result = provision_everos(client, cfg.start_cmd, cfg.everos_dir)
# Keep ANY child we spawned — including "readiness timeout (left
# running)" — so shutdown can stop it; an untracked slow starter
# would outlive Hermes holding the OME lock. On a re-init that
Expand Down
2 changes: 1 addition & 1 deletion hermes/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: everos
version: "1.0.0"
version: "1.0.1"
manifest_version: 1
description: "EverOS-backed cross-session memory — markdown source of truth, hybrid recall, user + agent tracks."
hooks:
Expand Down
18 changes: 18 additions & 0 deletions hermes/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,23 @@ def test_profile_basename_sanitized(self):
self.assertEqual(mod.path_safe_project_id(None), "default")


class TestHostLoaderContract(unittest.TestCase):
def test_no_package_global_is_named_after_a_sibling_module(self):
# Hermes >= 2026.9.7 setattr()s every sibling module onto the package after
# __init__ runs; a global sharing a module's name is silently replaced by it
# (this broke EverOS auto-start: `provision` became the provision module).
import types
from pathlib import Path

for path in Path(mod.__file__).parent.glob("*.py"):
if path.stem == "__init__":
continue
value = getattr(mod, path.stem, None)
self.assertTrue(
value is None or isinstance(value, types.ModuleType),
f"package global {path.stem!r} would be replaced by {path.name}",
)


if __name__ == "__main__":
unittest.main()
18 changes: 9 additions & 9 deletions hermes/tests/test_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ def of(self, kind):
def make_provider(tmp_home: str, agent_context: str = "primary"):
"""Provider with inline daemons, provisioning stubbed, and a fake client."""
provider = mod.EverosMemoryProvider()
real_spawn, real_provision = mod._spawn_daemon, mod.provision
real_spawn, real_provision = mod._spawn_daemon, mod.provision_everos
mod._spawn_daemon = lambda fn: fn()
mod.provision = lambda *a, **k: provision_mod.ProvisionResult("failed", "stubbed")
mod.provision_everos = lambda *a, **k: provision_mod.ProvisionResult("failed", "stubbed")
try:
provider.initialize(
"session-1", hermes_home=tmp_home, platform="cli", agent_context=agent_context
)
finally:
mod._spawn_daemon = real_spawn
mod.provision = real_provision
mod.provision_everos = real_provision
fake = FakeClient()
provider._client = fake
# inline daemons for the provider's later background posts
Expand All @@ -90,32 +90,32 @@ def test_is_available_makes_no_network_calls(self):
def test_initialize_stores_and_clips_session_id(self):
provider, _ = make_provider(self.tmp.name)
self.assertEqual(provider._sid, "session-1")
real_provision = mod.provision # keep the re-init from real provisioning
mod.provision = lambda *a, **k: provision_mod.ProvisionResult("failed", "stub")
real_provision = mod.provision_everos # keep the re-init from real provisioning
mod.provision_everos = lambda *a, **k: provision_mod.ProvisionResult("failed", "stub")
try:
provider.initialize("x" * 200, hermes_home=self.tmp.name)
finally:
mod.provision = real_provision
mod.provision_everos = real_provision
self.assertEqual(len(provider._sid), 128)

def test_left_running_child_kept_for_shutdown(self):
provider = mod.EverosMemoryProvider()
real_spawn, real_provision = mod._spawn_daemon, mod.provision
real_spawn, real_provision = mod._spawn_daemon, mod.provision_everos

class DeadChild:
def poll(self):
return 0

child = DeadChild()
mod._spawn_daemon = lambda fn: fn()
mod.provision = lambda *a, **k: provision_mod.ProvisionResult(
mod.provision_everos = lambda *a, **k: provision_mod.ProvisionResult(
"failed", "readiness timeout (left running)", child=child
)
try:
provider.initialize("s", hermes_home=self.tmp.name)
finally:
mod._spawn_daemon = real_spawn
mod.provision = real_provision
mod.provision_everos = real_provision
self.assertIs(provider._child, child)

def test_shutdown_flushes(self):
Expand Down