Pick the judge's highest rung with highest()
CI / tests (pull_request) Successful in 2m33s

This commit is contained in:
2026-11-12 02:59:50 +01:00
parent c61997f7b7
commit 58517a0c54
+1 -1
View File
@@ -141,4 +141,4 @@ def judge_rung(judge_model: str) -> Rung:
"""The highest of the judge model's own rungs, whatever the chunk's items score: docs/decisions.md → `routing: on a model judge-replay covered`. A model off the ladder, or not in JUDGE_REPLAYED, gets no effort flag, so claude runs it at the effort its settings give."""
if project_rung(judge_model) is None or judge_model not in JUDGE_REPLAYED:
return Rung(judge_model)
return [rung for rung in LADDER if rung.model == judge_model][-1]
return highest(*(rung for rung in LADDER if rung.model == judge_model))