Replay the judge on archived verdicts to find the cheapest rung that returns them

This commit is contained in:
2026-10-15 07:37:06 +02:00
parent 8412a48842
commit 2b2ec63608
10 changed files with 327 additions and 9 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ from loop_claude.stop import Stop
@dataclasses.dataclass(frozen=True)
class Cycle:
effects: Effects
judge_model: str
judge_rung: Rung
paths: Paths
premises: str
project_archive: pathlib.Path
@@ -103,7 +103,7 @@ def rule(cycle: Cycle, transcript_path: str) -> Ruled | Stop:
entries = read_transcript(transcript_path)
if isinstance(entries, Failure):
return Stop(1, entries.reason)
verdict = judge(cycle.root, cycle.task, cycle.premises, cycle.records, render(entries), cycle.judge_model, cycle.effects)
verdict = judge(cycle.root, cycle.task, cycle.premises, cycle.records, render(entries), cycle.judge_rung, cycle.effects)
return verdict if isinstance(verdict, Stop) else Ruled(verdict)