Answer prose round 1: 0 🔴, 1 🟡; state the help's step-up rule as the code holds it, and reword the docstrings and the changelog entry

This commit is contained in:
2026-10-23 03:20:54 +02:00
parent 372cfa7535
commit a4071f59ce
5 changed files with 27 additions and 25 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
"""Which ladder rung a chunk's worker and judge run on: docs/decisions.md → `routing:`.
The worker, and the session /talk opens, run on a Route (model_routing/route.py); a model off the ladder has no route to step, and its worker runs on it.
The worker, and the session /talk opens, run on a Route (model_routing/route.py). A model off the ladder gets a route without an item, and it is never stepped.
- Start. routed_item is the plan item that routes a fresh chunk, none without one; first_route picks the worker's rung from its L, and the project's rung stands where there is no item.
- Start. routed_item finds the plan item that routes a fresh chunk, if there is one with L, E and I scored; first_route picks the worker's rung from its L, or the project's rung without an item.
- Rerun. kept decides whether a rerun resumes the route its archive last names.
- Step-up. after_unfinished raises the route after an unfinished verdict, after_ruling after an interrupt or a quoted answer that carries an escalation; escalation_cap bounds an escalation.
- Judge. judge_rung picks the rung of the judge of a JUDGE_REPLAYED model.
@@ -36,7 +36,7 @@ def routed_item(todo: str, cut: LastCut) -> Item | Failure | None:
def first_route(project: Rung, item: Item | None) -> Route:
"""The route a chunk starts on: the rung its item's L picks from the project's rung."""
"""The route a chunk starts on: the rung its item's L picks from the project's rung, or the project's rung without an item."""
if item is None:
return Route(project)
return Route(worker_rung(project, item.likelihood), item.id, item.likelihood, item.escape_and_impact)
@@ -53,7 +53,7 @@ def kept_rung(project: Rung, route: Route) -> Rung:
def item_rung(project: Rung, route: Route) -> Rung:
"""The rung the route's item's L picks from the project's rung, or the project's rung itself when no item routed it. The worker may run on a rung below it."""
"""The rung the route's item's L picks from the project's rung, or the project's rung itself when no item routed it. The worker may run on a rung below the project's."""
return worker_rung(project, route.likelihood) if route.item else project