feat: TODO迁移到DB + no_agent自愈执行器

- 创建 mofin.db → todos 表(含fix_action/verification_check/retry机制)
- 创建 scripts/self_todo_executor.py(no_agent,纯代码逻辑,无LLM)
- 修改 morning_health_check.py:TODO写入DB而非JSON,新增derive_fix_action()
- cron替换:LLM cron → no_agent脚本,*/10 8-22高频轮询
- 成本:无pending时仅sqlite查询,约0.01s/次

处理链:
  health_check(8:00) → 可修直接自动修 → 不可修写DB(todos表) → 自愈执行器(每10分) → 有fix_action就执行 → 无fix_action标blocked留待人工
This commit is contained in:
知微
2026-06-24 20:44:36 +08:00
parent 26993c1d41
commit a76240b52d
3 changed files with 1007 additions and 951 deletions
+786 -910
View File
File diff suppressed because it is too large Load Diff