AgentEvalTool/tests/integration
sinohqb 7eae6de52d refactor(evaluation/storage): 结算统一与 repository 拆分(Phase 2 + 3)
合并两个不可分割的深化:

Phase 2 — 智能作业结算统一(ADR-0012)
- intelligence_jobs.execute(job_kind, campaign_id, ...) 作为结算的
  唯一实现:建行 → 认领 → 校验 → generating → 落账,一处编排、
  一处截断(500 字符)。两个 executor 退化为 ensure_queued /
  validate / work_fn 三个小 adapter。
- analysis.validate_analysis_request() 共享校验入口(活动终态 →
  模型),路由捕获映射 400、executor 捕获落 failed 行,与
  validate_comparison_request 先例同构。
- campaign_runner._auto_start_analysis 的跳过守卫收敛至
  auto_intelligence_eligible 单一判断点。
- comparison.py 删除零调用的 build_comparison_payload;
  load_comparison_view 投影归位至 campaign_read_model。
- 新增 characterization 测试(认领竞争、重复触发、截断、恢复上限)。

Phase 3 — storage/repository.py 拆分
- AsyncJobRepository 及两个子类迁至
  storage/async_job_repository.py(Phase 2 的 intelligence_jobs
  与 comparison 必须 import 自该路径,故与 Phase 2 同 commit)。
- ExplorationSession / ExplorationMessage 迁至
  storage/exploration_repository.py;repository.py 由 1180 行降至
  约 814 行,grep 确认无残留符号。
- exploration 子模块与路由 import 全部更新;测试 import 跟随。

刻意不做:CAS 共享原语、app.py 五 registry 关停顺序归一
(ADR-0006 精神,等真实需求出现再议)。
2026-08-24 05:50:27 +08:00
..
__init__.py v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
conftest.py refactor(intelligent-eval): 可见性接缝收敛(Phase 1) 2026-08-24 05:47:00 +08:00
test_auth_api.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_campaign_analysis_api.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_analysis_auto_trigger.py refactor(evaluation/storage): 结算统一与 repository 拆分(Phase 2 + 3) 2026-08-24 05:50:27 +08:00
test_campaign_comparison_api.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_comparison_auto_trigger.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_runner.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaign_scheduler_loop.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_campaigns_api.py refactor(evaluation/storage): 结算统一与 repository 拆分(Phase 2 + 3) 2026-08-24 05:50:27 +08:00
test_config_snapshot_api.py feat(intelligent-eval): implement config snapshot management (ticket 05) 2026-08-12 10:19:07 +08:00
test_decision_log_immutability.py refactor(intelligent-eval): extract scheduler runtime + internalize decision-log dedup 2026-08-21 03:20:14 +08:00
test_exploration_api.py refactor(evaluation/storage): 结算统一与 repository 拆分(Phase 2 + 3) 2026-08-24 05:50:27 +08:00
test_exploration_patrol_api.py refactor(evaluation/storage): 结算统一与 repository 拆分(Phase 2 + 3) 2026-08-24 05:50:27 +08:00
test_exploration_settlement.py refactor(evaluation/storage): 结算统一与 repository 拆分(Phase 2 + 3) 2026-08-24 05:50:27 +08:00
test_files_api.py feat(files): improve category and location layout 2026-07-17 18:13:43 +08:00
test_intelligent_eval_e2e.py feat(intelligent-eval): implement decision logic and e2e flow (ticket 04) 2026-08-12 10:10:42 +08:00
test_intelligent_eval_scan_scheduler.py refactor(intelligent-eval): 消除 lifecycle.py 和 scheduler.py 中的重复延迟导入 2026-08-24 01:47:47 +08:00
test_intelligent_eval_task_queue_api.py refactor(intelligent-eval): 可见性接缝收敛(Phase 1) 2026-08-24 05:47:00 +08:00
test_intelligent_eval_visibility_characterization.py refactor(intelligent-eval): 可见性接缝收敛(Phase 1) 2026-08-24 05:47:00 +08:00
test_intelligent_evals_api.py feat(intelligent-eval): logical delete for terminal evals 2026-08-21 14:34:04 +08:00
test_migration_roundtrip.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
test_model_config_migration.py feat(models): add centralized model configuration 2026-07-17 20:02:43 +08:00
test_model_configs_api.py feat(models): add analysis-default flag for campaign intelligence 2026-08-03 01:46:51 +08:00
test_reports_api.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_router_orm_guards.py feat(intelligent-eval): terminal-state discipline watchdogs (ADR-0011) 2026-08-20 14:34:17 +08:00
test_runs_api.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_scenario_version_migration.py feat(run): snapshot scenario version at run creation (ticket 04) 2026-07-29 10:59:44 +08:00
test_scenarios_api.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_stats_api.py style(tests): ruff 全量清理 — 49 项修复,backend 与 tests 全绿 2026-08-03 15:13:24 +08:00
test_worker_skill_api.py feat(intelligent-eval): terminal-state discipline watchdogs (ADR-0011) 2026-08-20 14:34:17 +08:00
test_worker_task_resilience.py feat(intelligent-eval): terminal-state discipline watchdogs (ADR-0011) 2026-08-20 14:34:17 +08:00