Answer architecture round 2: 0 🔴, 1 🟡; join prose lists with one markdown_text.listed, and floor the replays at lowest_worker_rung

This commit is contained in:
2026-10-16 12:18:03 +02:00
parent 12909f233d
commit f319a96e7e
11 changed files with 40 additions and 34 deletions
+5
View File
@@ -75,6 +75,11 @@ def worker_rung(project: Rung, likelihood: int) -> Rung:
return climbed(project, WORKER_STEPS[likelihood])
def lowest_worker_rung(project: Rung) -> Rung:
"""The lowest rung any L routes a worker to, counted from the project's rung."""
return climbed(project, min(WORKER_STEPS.values()))
def planning_rung(project: Rung, likelihood: int) -> Rung:
"""The rung of a task that files or scores todo.md items: the one its L picks, never below the project's rung."""
return highest(project, worker_rung(project, likelihood))
+4 -1
View File
@@ -4,7 +4,7 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from model_routing.ladder import highest, LADDER, planning_rung, project_rung, review_floor, review_rung, review_rungs, Rung, stepped_up, worker_rung, WORKER_STEPS
from model_routing.ladder import highest, LADDER, lowest_worker_rung, planning_rung, project_rung, review_floor, review_rung, review_rungs, Rung, stepped_up, worker_rung, WORKER_STEPS
from todo_table import LEVELS
OPUS = Rung("claude-opus-5-5", "medium")
@@ -42,6 +42,9 @@ class Ladder(unittest.TestCase):
def test_steps_a_worker_for_every_level_on_ls_scale(self):
self.assertEqual(set(WORKER_STEPS), set(range(1, LEVELS["L"] + 1)))
def test_names_the_lowest_rung_any_l_routes_a_worker_to(self):
self.assertEqual(lowest_worker_rung(OPUS), min((worker_rung(OPUS, likelihood) for likelihood in WORKER_STEPS), key=LADDER.index))
def test_plans_on_the_rung_l_picks_but_never_below_the_projects(self):
self.assertEqual(planning_rung(OPUS, 1), OPUS)
self.assertEqual(planning_rung(OPUS, 4), Rung("claude-opus-5-5", "high"))