Hermes 架构整改报告

已按建议顺序完成整改:Provider 漂移、SearXNG 环境、News/Health 报告任务、历史状态快照权限、systemd unit 和基线文档均已处理。

完成项

项目状态说明
Health provider 漂移完成Worker/Network/News/Health/Stock 辅助 provider 固定到本地 CLIProxy gpt-5.4-mini,避免 auto 选到不可用直连 provider。
SearXNG 同步完成5 个 profile 的 .env 均加入 SEARXNG_URL=http://127.0.0.1:8088
News/Health cron prompt完成统一为 Report Center 发布链路,使用 REPORT_HTML_STYLE.md,Telegram 只输出标题、摘要和链接。
历史状态快照权限完成/root/.hermes/state-snapshots/*/{state.db,gateway_state.json,manifest.json} 已收紧到 600。
systemd unit完成News unit 已标准化;Health/Stock TimeoutStopSec 已匹配 drain window。
基线文档完成config-baseline.mdSTARTUP_CONTEXT.md、长期记忆和系统手册已同步。

验证

检查结果
systemctl --failed0 failed units
Hermes profile listMaster、Worker、Network、News、Health、Stock 均 running
Profile config check5 个 profile 均为 config version 23,且识别到 SEARXNG_URL
近期日志整改后未见 403、empty_stream、Traceback 或 stale systemd warning

备份与路径

类型路径
备份目录/root/backups/hermes-architecture-fix-20260512-145124
Restart context/root/.hermes/restart-context/hermes-architecture-fix-20260512-145124.md
主要配置/root/.hermes/profiles/{worker,network,news,health,stock}/config.yaml
环境变量/root/.hermes/profiles/{worker,network,news,health,stock}/.env
定时任务/root/.hermes/profiles/{news,health}/cron/jobs.json