fix: read-only baseline queries skip _runs upsert (register_run flag)

This commit is contained in:
2026-07-16 05:36:47 -04:00
parent 96884dd149
commit 1468a53b7a
4 changed files with 63 additions and 21 deletions
+4 -2
View File
@@ -797,7 +797,9 @@ def build_or_load_pools(
# 增量构建新类别
paths = resolve_paths(config.workspace_dir)
questions = load_benchmark(paths.questions_dir)
with HarnessLog(str(db_path), baseline_run_id) as hlog:
with HarnessLog(
str(db_path), baseline_run_id, register_run=False
) as hlog:
rows = hlog.query(
"SELECT question_id, prediction, answer "
"FROM predictions WHERE run_id=?",
@@ -872,7 +874,7 @@ def build_or_load_pools(
# ── 全新构建 ──
paths = resolve_paths(config.workspace_dir)
questions = load_benchmark(paths.questions_dir)
with HarnessLog(str(db_path), baseline_run_id) as hlog:
with HarnessLog(str(db_path), baseline_run_id, register_run=False) as hlog:
rows = hlog.query(
"SELECT question_id, prediction, answer FROM predictions WHERE run_id=?",
(baseline_run_id,),