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.
1016 B
1016 B
05 — 配置快照管理
What to build: 实现配置快照的自动保存和查询功能,支持快照对比(diff)。
Blocked by: 01 — 数据模型 + 任务入队 API
Status: ready-for-agent
- 实现配置快照自动保存(创建评估时、提交计划时、修改配置时)
- 实现快照类型:created / plan_submitted / config_updated
- 实现
GET /api/intelligent-evals/{id}/config-snapshotsAPI(查询快照列表) - 实现
GET /api/intelligent-evals/{id}/config-snapshots/{snapshot_id}API(查询单个快照) - 实现配置对比功能(两个快照的 diff,返回差异字段)
- 实现
POST /api/intelligent-evals/{id}/config-snapshots/compareAPI(对比两个快照) - 单元测试:快照保存、快照对比
- 集成测试:创建评估 → 修改配置 → 自动生成新快照 → 对比两个快照
- 可演示:修改评估配置,看到新的快照自动生成,可以对比两个版本的差异