AgentEvalTool/.scratch/v1.0/issues/01-data-model.md
sinohqb 9cdbc41808 docs(intelligent-eval): commit v1.0 spec, tickets, and post-v1.0 improvements
All 8 tickets' acceptance criteria checked off (incl. the real OpenClaw
E2E verified on t480). Trivial import-sort fix from ruff included.
2026-08-05 14:01:24 +08:00

1.2 KiB
Raw Blame History

01 — 智能评估数据模型 + 迁移

What to build: 创建智能评估的三个数据表IntelligentEval、IntelligentEvalSession、IntelligentEvalMessage及对应的 Repository 类,走 Alembic batch mode 迁移。

Blocked by:

Acceptance criteria:

  • IntelligentEvalDB 表定义id, name, target_id, status, goal, seeds(JSON), intent, role_description, plan(JSON), plan_feedback, time_window_hours, report(JSON), created_at, updated_at, started_at, completed_at
  • IntelligentEvalSessionDB 表定义id, eval_id, target_id, persona(JSON), goal, dimension, status, verdict(JSON), turn_count, created_at, closed_at
  • IntelligentEvalMessageDB 表定义id, session_id, role, content, latency_ms, created_at
  • IntelligentEvalStatus 枚举draft, planning, pending_approval, executing, completed, cancelled, failed
  • IntelligentEvalSessionStatus 枚举running, completed, failed, expired
  • IntelligentEvalRepositoryCRUD + list + 状态转换方法
  • IntelligentEvalSessionRepositoryCRUD + list_by_eval
  • IntelligentEvalMessageRepositorycreate + list_by_session
  • Alembic 迁移batch mode通过
  • init_db()create_all() 能建出三张表