Answer stability round 1: 0 🔴, 5 🟡; tell the resumed worker its stepped rung, rename the step for rulings, build NAMES_A_WORKER from the verdict constants, and test the capped answer and a failed interrupt archive

This commit is contained in:
2026-10-17 22:37:11 +02:00
parent fc24e9bae2
commit 5b536afdf9
8 changed files with 73 additions and 28 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ def stepped(anchor: Rung, route: Route, bundled: int, escalated: bool) -> Route:
return dataclasses.replace(route, rung=rung, unfinished=unfinished)
def stepped_by_interrupt(anchor: Rung, route: Route, bundled: int) -> Route:
"""The route after the judge's interrupt carried an escalation: taken_in's rung, one rung up while that is below escalation_cap. An interrupt is no unfinished verdict, so the count of those restarts only with a step."""
def stepped_by_ruling(anchor: Rung, route: Route, bundled: int) -> Route:
"""The route after the judge's interrupt or quoted answer carried an escalation: taken_in's rung, one rung up while that is below escalation_cap. Neither is an unfinished verdict, so the count of those restarts only with a step."""
rung = taken_in(anchor, route, bundled)
return stepped_from(route, rung) if below_cap(anchor, route, rung) else dataclasses.replace(route, rung=rung)