AgentEvalTool/backend/agenteval/web/routers
sinohqb 3852c6f87d
Some checks failed
CI / test (push) Failing after 4m16s
refactor(intelligent-eval): router logic down to service layer (P3, S2)
P3 deepening (issue #9): remove direct ORM from router handlers.

- decision_logs.py (new): create_decision_log / list_decision_logs service
- cron_pool.heartbeat: encapsulate heartbeat cron lookup + update + commit
- cron_pool.scale_to: encapsulate scale direction decision (if/elif/else)
- task_queue.get_next_task_with_eval: encapsulate eval-loading + dict-building
- Router endpoints now delegate to services, only handling HTTP-level
  validation (status codes, 404 translation via LookupError).

No observable behaviour change — 873 passed + 5 xfailed unchanged.
T3 router ORM contract guards (5/5) continue to pass.
2026-08-13 13:57:34 +08:00
..
__init__.py v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
auth.py feat(backend): v0.4 triggered_by tracking, login gate, compare guard, dashboard stats 2026-07-28 17:40:54 +08:00
campaigns.py refactor(architecture): deepen campaign runtime modules 2026-08-11 13:18:48 +08:00
exploration.py refactor(exploration): move ledger and state machine into domain modules 2026-08-04 03:46:51 +08:00
files.py refactor(files): harden storage and split frontend 2026-07-17 17:41:19 +08:00
intelligent_evals.py refactor(intelligent-eval): router logic down to service layer (P3, S2) 2026-08-13 13:57:34 +08:00
model_configs.py feat(models): add centralized model configuration 2026-07-17 20:02:43 +08:00
openclaw_cron_pool.py refactor(intelligent-eval): router logic down to service layer (P3, S2) 2026-08-13 13:57:34 +08:00
proxy.py v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00
reports.py refactor(report): split report generation from pure rendering 2026-07-31 10:19:04 +08:00
runs.py refactor(case-verdict): extract build_case_evidence as single evidence-construction seam 2026-08-04 11:23:56 +08:00
scenarios.py feat(models): add centralized model configuration 2026-07-17 20:02:43 +08:00
stats.py refactor(metrics): extract dashboard aggregation to compute_dashboard 2026-08-04 11:36:55 +08:00
targets.py v0.2.0-dev: 文件管理 + 页面布局统一 + 6 个 bug 修复 2026-07-16 15:25:22 +08:00