- SQLite 启用 WAL,允许读写并发 - 新增 6 个索引(eval_runs.status/campaign_id、eval_results.run_id、 turns.run_id、intelligent_evals.status、task_queue.assigned_at) - 幂等 Alembic 迁移(列/索引存在性检查) - domain.py 计数改 func.count 聚合,get_attention_reason 单次加载 sessions - scenario list_all 批量加载 bindings(1+N → 2 查询) - mark_orphans_failed 批量加载 campaigns(N → 1 IN 查询) |
||
|---|---|---|
| .. | ||
| lifecycle | ||
| __init__.py | ||
| config_snapshot.py | ||
| decision_logs.py | ||
| decision.py | ||
| domain.py | ||
| models.py | ||
| read_model.py | ||
| report.py | ||
| repository.py | ||
| scheduler.py | ||
| task_queue.py | ||