Answer prose round 1: 0 🔴, 8 🟡; say whom the worker asks, give the rung-request rule its own sentence, cite where the triggers are listed, reorder the changelog

This commit is contained in:
2026-10-15 22:26:43 +02:00
parent 62eba5f513
commit 798bf505b2
9 changed files with 30 additions and 30 deletions
+4 -5
View File
@@ -7,7 +7,7 @@ from todo_table import Item, items
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 applies it.
# How many rungs above item_rung an escalation trigger takes the worker or a task without the human's yes,.
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`.
JUDGE_REPLAYED = ("claude-opus-5-5",)
@@ -36,7 +36,7 @@ def kept(route: Route, anchor: Rung) -> bool:
def kept_rung(anchor: Rung, route: Route) -> Rung:
"""The route's rung, raised to item_rung where it is lower or off the ladder; kept and stepped both hold a route to it."""
"""The route's rung, raised to item_rung where it is lower or off the ladder."""
return highest(route.rung, item_rung(anchor, route))
@@ -61,15 +61,14 @@ def escalation_cap(anchor: Rung, route: Route) -> Rung:
def stepped(anchor: Rung, route: Route, bundled: int, escalated: bool) -> Route:
"""The route after one more unfinished verdict, never on a lower rung: from taken_in's rung, one rung up when counted_out or escalates, else there.
"""The route after one more unfinished verdict, never on a lower rung.
bundled and escalated are the verdict's fields, not the verdict, since loop_claude.cycle.judge imports this module through prompts.
"""
rung = taken_in(anchor, route, bundled)
unfinished = route.unfinished + 1
# Every UNFINISHED_PER_STEP unfinished verdicts.
counted_out = unfinished >= UNFINISHED_PER_STEP
# The judge found the escalation trigger the worker cited in asking for a higher rung, and escalation_cap leaves room.
# The judge found the escalation trigger the worker cited in asking for a higher rung.
escalates = escalated and position(rung) < position(escalation_cap(anchor, route))
if counted_out or escalates:
return dataclasses.replace(route, rung=stepped_up(rung), unfinished=0)