AgentEvalTool/.scratch/v0.5/issues/05-compare-same-version-guard.md
sinohqb 770d260750
Some checks failed
CI / test (push) Failing after 39s
feat(report): compare requires same scenario version (ticket 05)
对比报告可比性收紧为同场景同考纲版本(ADR-0001):跨版本 API 返回 400
(detail 含双方版本号),报告生成层抛 ValueError;前端对比候选按
同场景 + 同版本过滤,A 变更后自动清空不可比的 B。文档"尚未实现"标注移除。
2026-07-29 11:21:52 +08:00

14 lines
839 B
Markdown
Raw Permalink 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.

# 05 — 对比报告同版本校验
**What to build:** 对比报告的可比性收紧为"同场景且同版本"ADR-0001跨版本对比时 API 返回 400提示中包含双方版本号报告生成层同步拒绝。报告页的对比候选下拉只列出与已选运行同场景同版本的运行用户无需自行核对版本。
**Blocked by:** 04 — 运行记录场景版本。
**Status:** done
- [x] 同场景不同版本的两次运行对比API 400detail 含双方版本号
- [x] 同场景同版本对比正常生成(含动态用例场景——同考纲即可比)
- [x] 报告生成层对跨版本对比抛出明确错误
- [x] 前端对比候选按同场景 + 同版本过滤;跨版本被拒时提示可读
- [x] 集成与单元测试覆盖拒绝与放行两侧(先例:现有对比报告测试)