Files
pmp-tool/HEARTBEAT-CHECK.md

29 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# FlowPilot 开发心跳检查配置
> 供OpenClaw cron使用每30分钟检查一次项目进度
## 检查逻辑
1. 读 products/pmp-tool/PROGRESS.md
2. 找到"当前Issue"和"状态"
3. 如果状态是"进行中"
- 检查上次更新时间
- 如果超过30分钟未更新 → 检查Claude Code进程
- 进程已死 → 根据断点信息重新启动
- 进程还活着 → 不干预
4. 如果状态是"已完成"但下一个Issue未启动 → 自动启动下一个
5. 更新检查时间戳
## 恢复规则
- **代码未提交** → 先stash然后从断点重新执行
- **代码已提交但验证未通过** → 重新验证
- **验证通过但未更新PROGRESS** → 更新PROGRESS启动下一个Issue
- **连续3次失败** → 暂停,通知老板
## Cron配置建议
```
openclaw cron add --schedule "*/30 * * * *" --task "读 products/pmp-tool/PROGRESS.md检查项目进度。如果任务卡住超过30分钟根据断点信息恢复。如果一切正常回复 HEARTBEAT_OK。"
```