AgentEvalTool/.scratch/v0.5/issues/04-run-records-scenario-version.md
sinohqb 0a47260237 feat(run): snapshot scenario version at run creation (ticket 04)
运行创建时快照场景考纲版本,三种触发来源(手动/AI 助手/CLI)一致;
迁移回填存量运行为其场景当前版本,孤儿运行回填 1。运行列表、
报告头与对比卡片展示 v{n} 版本标签。
2026-07-29 10:59:44 +08:00

14 lines
853 B
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:** 每次评测运行(无论手动 / AI 助手 / CLI 触发)在创建时快照当时的场景版本。运行 API 返回 scenario_version运行列表与报告头以 `v3` 式样展示版本号,让人能识别考纲变更前后的运行分界。数据库迁移为存量运行回填其场景当前版本(场景已删除的回填 1
**Blocked by:** 03 — 场景版本字段与升版逻辑。
**Status:** done
- [x] 新建运行记录 scenario_version = 场景当前版本,三种触发来源一致
- [x] 迁移回填存量运行;孤儿运行(场景已删)回填 1
- [x] 运行列表 API 与报告数据含 scenario_version
- [x] 前端运行列表与报告头展示版本号
- [x] 集成测试覆盖创建快照与迁移回填(先例:现有运行 API 测试、迁移测试)