AgentEvalTool/.scratch/intelligent-eval-cron-pool/issues/04-decision-logic-and-e2e.md
sinohqb 1aa453ef0a feat(intelligent-eval): add cron pool data model and task queue API
Implement Ticket 01 of intelligent eval cron pool architecture (ADR-0007):

- Add 4 new tables: task_queue, cron_pool, config_snapshots, decision_logs
- Implement task enqueueing logic with priority calculation
- Implement task assignment and completion APIs
- Add unit tests (9) and integration tests (7)
- Update CONTEXT.md with new vocabulary
- Add ADR-0007 documenting cron pool architecture decision

All 760 tests passing.
2026-08-12 02:13:21 +08:00

20 lines
1.2 KiB
Markdown
Raw 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.

# 04 — 决策逻辑 + 端到端执行
**What to build:** 实现 Worker 的决策逻辑(分析当前情况 → 决定执行会话/等待/开始分析),适配 evaluator 和 analyst skill实现决策日志持久化完成端到端执行流程。
**Blocked by:** 03 — Worker SkillOpenClaw 侧)
**Status:** ready-for-agent
- [ ] 实现 worker 的决策逻辑(分析当前时段、已完成会话数、是否有严重问题)
- [ ] 实现决策类型execute_session / wait / start_analysis
- [ ] 适配 `agenteval-intelligent-evaluator` skill从 worker 调用,传入 session_config
- [ ] 适配 `agenteval-intelligent-analyst` skill从 worker 调用)
- [ ] 实现决策日志持久化(保存到 `intelligent_eval_decision_logs` 表)
- [ ] 实现 cron state 的决策历史记录decisions_history 字段)
- [ ] 实现评估完成检测(所有会话完成 + 报告已提交)
- [ ] 实现任务完成后归还 cron 逻辑
- [ ] 单元测试:决策逻辑、评估完成检测
- [ ] 端到端测试:创建评估 → 批准 → 自动执行 → 完成 → 决策日志完整
- [ ] **可演示**:端到端执行一个智能评估,看到完整的决策日志(每次 cron 唤醒的决策类型和原因)