Replay the judge on the Fable 5.2 rungs a review climbs to, and keep it on Opus 5.5 rungs after each missed an interrupt
CI / tests (pull_request) Failing after 2m52s
CI / tests (pull_request) Failing after 2m52s
This commit is contained in:
@@ -20,7 +20,7 @@ from model_routing.route import Route
|
||||
UNFINISHED_PER_STEP = 2
|
||||
# How many rungs above item_rung an escalation trigger takes the worker or a task without the human's yes, as escalation_cap counts them.
|
||||
ESCALATION_CAP = 2
|
||||
# The models `judge-replay` found returning, on their cheapest rung, every verdict the reference judge reproduced: docs/decisions.md → `routing: on a model judge-replay covered`.
|
||||
# The models whose cheapest rung `judge-replay` found missing no interrupt the reference judge reproduced: docs/decisions.md → `routing: on a model judge-replay covered`.
|
||||
JUDGE_REPLAYED = ("claude-opus-5-5",)
|
||||
|
||||
|
||||
@@ -138,11 +138,13 @@ def one_rung_up(route: Route, rung: Rung, escalated_at: int) -> Route:
|
||||
|
||||
|
||||
def judge_rung(judge_model: str, route: Route) -> Rung:
|
||||
"""The rung the route's reviewed_on E + I picks for a review, counted from the judge model's cheapest rung and never below it, whatever rung the worker stepped to.
|
||||
"""The lowest of the judge model's own rungs at or above the rung the route's reviewed_on E + I picks for a review, else the model's highest; counted from the model's cheapest rung, whatever rung the worker stepped to.
|
||||
|
||||
A model off the ladder, or not in JUDGE_REPLAYED, gets no effort flag, so claude runs it at the effort its settings give.
|
||||
The judge keeps to its model's rungs, since every Fable 5.2 rung judge-replay tried missed an interrupt: 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.
|
||||
"""
|
||||
cheapest = project_rung(judge_model)
|
||||
if cheapest is None or judge_model not in JUDGE_REPLAYED:
|
||||
return Rung(judge_model)
|
||||
return review_floor(cheapest, route.reviewed_on())
|
||||
floor = position(review_floor(cheapest, route.reviewed_on()))
|
||||
own = [rung for rung in LADDER if rung.model == judge_model]
|
||||
return next((rung for rung in own if position(rung) >= floor), own[-1])
|
||||
|
||||
Reference in New Issue
Block a user