Files
hermes-agent/tools
BearHuddleston 21ec322b33 fix(skills): degrade missing get_skill_desc_limit on N-1 upgrades
A v0.23.3 gateway imports agent.skill_utils at boot via tools/skills_tool.py
before agent.curator (60s housekeeping), agent.learn_prompt (/learn), or
tools.skill_linter (skill_manage) are imported lazily. If a restart-pending
N-1 gateway loads any of those three after `hermes update` replaces files on
disk, `from agent.skill_utils import get_skill_desc_limit` raises ImportError
against the cached N-1 agent.skill_utils module.

Resolve get_skill_desc_limit via importlib.import_module("agent.skill_utils")
and getattr, falling back to SKILL_PROMPT_DESC_LIMIT (60) when absent on a
cached N-1 module. A missing or broken agent.skill_utils module still raises
ModuleNotFoundError / ImportError.

Refs #158291
2026-11-21 14:49:36 -08:00
..