From 58517a0c54e3339e97f0078b05e799c472726007 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 12 Nov 2026 02:59:50 +0100 Subject: [PATCH] Pick the judge's highest rung with highest() --- bin/loop_claude/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/loop_claude/routing.py b/bin/loop_claude/routing.py index 9624ea5f..0aa64350 100644 --- a/bin/loop_claude/routing.py +++ b/bin/loop_claude/routing.py @@ -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))