AgentEvalTool/.scratch/intelligent-eval-cron-pool/issues/03-worker-skill.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.1 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.

# 03 — Worker SkillOpenClaw 侧)
**What to build:** 创建 OpenClaw Worker Skill实现从平台取任务、上报心跳、上报任务完成、上报决策日志的功能。
**Blocked by:** 01 — 数据模型 + 任务入队 API
**Status:** ready-for-agent
- [ ] 创建 `agenteval-intelligent-worker` skill 文件SKILL.md
- [ ] 实现取任务逻辑(调 `GET /api/intelligent-evals/tasks/next`
- [ ] 实现心跳上报(调 `POST /api/openclaw/crons/{id}/heartbeat`
- [ ] 实现任务完成上报(调 `POST /api/intelligent-evals/tasks/{id}/complete`
- [ ] 实现决策日志上报(调 `POST /api/intelligent-evals/{id}/decision-logs`
- [ ] 实现 cron state 的读写(使用 OpenClaw 的 state 机制)
- [ ] 实现 idle/busy 状态切换逻辑
- [ ] 编写 skill 文档(如何使用、如何调试)
- [ ] 部署脚本:将 skill 同步到 OpenClaw workspace
- [ ] 端到端测试:部署一个 cron → 每分钟唤醒 → 从平台取任务 → 上报心跳
- [ ] **可演示**:部署一个 cron每分钟唤醒从平台取任务即使任务是空的+ 上报决策日志