Answer architecture round 1: 2 🔴, 13 🟡; test the replay's main and report, share one judge run and the archive format, pin the reference judge, route only replayed models, and say why the judge climbs
This commit is contained in:
@@ -7,6 +7,8 @@ from todo_table import Item, items
|
||||
from model_routing.route import Route
|
||||
|
||||
UNFINISHED_PER_STEP = 2
|
||||
# The models `judge-replay` found returning every verdict on their cheapest rung: docs/decisions.md → `routing:`.
|
||||
JUDGE_REPLAYED = ("claude-opus-5-5",)
|
||||
|
||||
|
||||
def routed_item(todo: str) -> Item | Failure | None:
|
||||
@@ -28,7 +30,12 @@ def first_route(anchor: Rung, item: Item | None) -> Route:
|
||||
|
||||
def kept(route: Route, anchor: Rung) -> bool:
|
||||
"""Whether a chunk keeps route: its rung is on the ladder at or above the rung its item's R + C picks from anchor, the project's rung, or anchor itself when no item routed it."""
|
||||
return highest(route.rung, picked(anchor, route.risk_and_complexity) if route.item else anchor) == route.rung
|
||||
return highest(route.rung, item_rung(anchor, route)) == route.rung
|
||||
|
||||
|
||||
def item_rung(anchor: Rung, route: Route) -> Rung:
|
||||
"""The rung the route's item's R + C picks from anchor, the project's rung, or anchor itself when no item routed it."""
|
||||
return picked(anchor, route.risk_and_complexity) if route.item else anchor
|
||||
|
||||
|
||||
def stepped(anchor: Rung, route: Route, bundled: int) -> Route:
|
||||
@@ -42,9 +49,12 @@ def stepped(anchor: Rung, route: Route, bundled: int) -> Route:
|
||||
|
||||
|
||||
def judge_rung(judge_model: str, route: Route) -> Rung:
|
||||
"""The rung the chunk's item picks from the judge model's cheapest rung, never below that rung, whatever rung the worker stepped to; the model alone, at its settings' effort, off the ladder."""
|
||||
# judge-replay found every rung below Opus 5.5's cheapest one missing verdicts it returns.
|
||||
"""The rung the route's item picks from the judge model's cheapest rung, never below that rung, whatever rung the worker stepped to.
|
||||
|
||||
A model judge-replay has not replayed runs alone, at its settings' effort, as does one off the ladder.
|
||||
"""
|
||||
# The archive records no judge rung: each verdict's worker line names the item and R + C that pick it, and judge-replay holds rungs to its own reference judge.
|
||||
anchor = project_rung(judge_model)
|
||||
if anchor is None:
|
||||
if anchor is None or judge_model not in JUDGE_REPLAYED:
|
||||
return Rung(judge_model)
|
||||
return highest(anchor, picked(anchor, route.risk_and_complexity)) if route.item else anchor
|
||||
return highest(anchor, item_rung(anchor, route))
|
||||
|
||||
Reference in New Issue
Block a user