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
+3 -1
View File
@@ -920,7 +920,9 @@ class Runner:
self._gate_units_by_id: dict[str, QuestionUnit] = {
u.unit_id: u for u in build_units(questions)
}
with HarnessLog(str(self._paths.db_path), pools.baseline_run_id) as log:
with HarnessLog(
str(self._paths.db_path), pools.baseline_run_id, register_run=False
) as log:
rows = log.query(
"SELECT question_id, prediction, answer FROM predictions WHERE run_id=?",
(pools.baseline_run_id,),