Files
hermes-agent/plugins/memory
Teknium 1f0103a89f fix(compat): plugins that import a module the storage refactor removed load again
The storage interface (#149567, db4d50b9e7) folded agent/message_content.py and
agent/context_compressor_retry.py into session_rules/turns.py, and moved
extract_user_instruction_from_skill_message / register_auto_load_scaffold from
agent/skill_commands.py to the same module. Catalog plugins still import the old
paths at module top level, so they never registered: OpenViking 2.1.2 (the pinned
memory provider) and hermes-council fail with "No module named
'agent.message_content'", OpenViking then with "cannot import name
'extract_user_instruction_from_skill_message' from 'agent.skill_commands'", and
Hermes silently ran on built-in memory.

- MOVES gains agent.message_content and agent.context_compressor_retry ->
  session_rules.turns; the target defines every name each published, byte-identical.
  No other module the stack deleted is aliased: the 35 hermes_state_* modules were
  mixins or SQLite-backend helpers whose functions now take a store holder instead of
  a SessionDB (an alias would import and then fail on call), and
  gateway.session_admission's admission_fingerprint has no catalog importer.
- agent.skill_commands re-exports the two skill-scaffolding helpers it published.
- A plugin package whose __init__.py raises now propagates that exception from
  load_plugin_module instead of returning None, so the memory, context-engine,
  cron and computer-use loaders' one WARNING line names the real error rather than
  "loaded but no provider instance found". The bundled delegation fallback and
  import_provider_module keep their contracts (None / ImportError) and carry the text.

Fixes #157438
Part of #157077
2026-11-18 11:31:39 -08:00
..