Answer architecture round 1: 1 🔴, 7 🟡; give the planning subagent's rung one owner in subagent-rung --plan, share the floor with the judge in ladder.floored, check each rung's family name, and define the project's rung once

This commit is contained in:
2026-10-15 15:54:28 +02:00
parent 3f26e9f3ea
commit 4d70b7e5a3
12 changed files with 27 additions and 15 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
import dataclasses
from failure import Failure
from model_routing.ladder import highest, LADDER, picked, project_rung, Rung, stepped_up
from model_routing.ladder import floored, highest, LADDER, picked, project_rung, Rung, stepped_up
from todo_table import Item, items
from model_routing.route import Route
@@ -34,7 +34,7 @@ def kept(route: Route, anchor: Rung) -> bool:
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. The worker may run on a rung below anchor; judge_rung lifts the judge's rung to anchor."""
"""The rung the route's item's R + C picks from anchor, the project's rung, or anchor itself when no item routed it. The worker may run on a rung below anchor; judge_rung floors the judge's rung at anchor."""
return picked(anchor, route.risk_and_complexity) if route.item else anchor
@@ -58,4 +58,4 @@ def judge_rung(judge_model: str, route: Route) -> Rung:
anchor = project_rung(judge_model)
if anchor is None or judge_model not in JUDGE_REPLAYED:
return Rung(judge_model)
return highest(anchor, item_rung(anchor, route))
return floored(anchor, route.risk_and_complexity) if route.item else anchor