fix: wrap diagnosis run_log with StepsJsonRunLog (restore algo #7 traces)
This commit is contained in:
@@ -2168,13 +2168,15 @@ class Runner:
|
||||
self, run_id: str, *, question_ids: list[str] | None = None
|
||||
) -> DiagnosisResult:
|
||||
"""执行两阶段诊断。"""
|
||||
from app.harness.baseline_run_log import StepsJsonRunLog
|
||||
from app.harness.log import RunLogImpl
|
||||
from app.harness.workspace import VersionedSkillStore
|
||||
from app.question_gen import load_benchmark
|
||||
from core.evolution.diagnose import run_diagnosis
|
||||
|
||||
questions = load_benchmark(self._paths.questions_dir)
|
||||
run_log = RunLogImpl(str(self._paths.db_path))
|
||||
# traces 表空时(如训练 rollout 只落 steps_json)从 steps_json 重建轨迹,恢复算法 #7
|
||||
run_log = StepsJsonRunLog(RunLogImpl(str(self._paths.db_path)))
|
||||
skill_store = VersionedSkillStore(self._paths.skills_dir)
|
||||
diagnose_prompts = self._load_diagnose_prompts()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user