Commit Graph

3 Commits

Author SHA1 Message Date
小唯 A06 4edbd503e5 fix(watchdog): hermes 改用 systemd 检测 + 修正服务名映射 + auto-heal 拒绝旧回滚
1. hermes 从 PROC_PATTERNS 移除,改用 systemctl is-active hermes-gateway.service 检测
   (pgrep 重启瞬间 miss 曾误报宕机;原映射 hermes→hermes.service 也是错的)
2. 重启重检分支: hermes 用 systemd 状态,其他用 pgrep
3. auto-heal 显示文案修正(> 天 → 超过 7 天)
2026-08-01 02:36:53 +08:00
小唯 A06 604495799d chore(config-protector): 防自杀修复——移除运行时噪音跟踪 + stable回滚保护
根因(2026-08-01): gateway 崩溃循环 176 次的真正元凶:
1. git add -A 把 daemon/pid、cron/jobs.json 等运行时噪音纳入版本库 → 仓库永远 dirty
2. stable tag 停在 7-09(23天前) → watchdog auto-heal 触发 git checkout --force stable
   → 整个工作区硬回滚到 23 天前 → 删除新增文件/config 变旧版 → gateway 崩 → 再回滚 → 死循环
3. hermes 在回滚触发列表 → 重启瞬间 pgrep miss 误触发

修复:
1. snapshot 改用 git add 白名单(只加 SOUL/AGENTS/MEMORY/config/scripts/skills/workflows/plugins)
2. rollback 改用 git restore 只还原关键配置 + 拒绝回滚超过7天的旧 stable
3. hermes 从 auto-heal 触发列表移除
4. git rm --cached 清理 20+ 运行时噪音文件
2026-08-01 02:36:05 +08:00
小唯 A06 17c8b8c739 auto-snapshot 2026-07-09 02:10:35 2026-07-09 02:10:35 +08:00