Answer principles round 1: 0 🔴, 2 🟡; block item 218 on item 170, name record_fields and RECORD_FIELDS, say an unreadable Worker line on stderr
This commit is contained in:
@@ -67,7 +67,7 @@ def escalation_cap(anchor: Rung, route: Route) -> Rung:
|
||||
def after_unfinished(anchor: Rung, route: Route, verdict: Unfinished) -> Route:
|
||||
"""The route the next cycle runs on after an unfinished verdict.
|
||||
|
||||
Its rung rises to the one the highest L the worker took in picks, and never falls. From there it steps one rung up on every second unfinished verdict, or on an escalation while below escalation_cap; where both fall on one verdict, it steps once. A step on an escalation moves the route's mark, Route.escalated_at, to where the judge stopped reading, so the trigger it quoted buys no second step; a step on the count of unfinished verdicts alone keeps the mark. The highest E + I taken in moves to the route where Route.taking_in keeps it.
|
||||
Its rung never falls. It first rises to the rung that the verdict's highest L taken in picks, where that is higher. From there it steps one rung up on every second unfinished verdict, or on an escalation while below escalation_cap; where both fall on one verdict, it steps once. A step on an escalation moves the route's mark, Route.escalated_at, to where the judge stopped reading, so the trigger it quoted buys no second step; a step on the count of unfinished verdicts alone keeps the mark. Last, the route takes in the verdict's highest E + I, as Route.taking_in does.
|
||||
"""
|
||||
rung = raised(anchor, route, verdict.highest_likelihood_taken_in)
|
||||
mark = escalation_mark(verdict)
|
||||
@@ -98,7 +98,7 @@ def below_cap(anchor: Rung, route: Route, rung: Rung) -> bool:
|
||||
|
||||
|
||||
def raised(anchor: Rung, route: Route, likelihood_taken_in: int) -> Rung:
|
||||
"""kept_rung, raised to the rung likelihood_taken_in, the highest L the worker took into the chunk, picks from anchor; 0 for none."""
|
||||
"""kept_rung, raised to the rung that likelihood_taken_in picks from anchor. likelihood_taken_in is the highest L the worker took into the chunk, or 0 for none."""
|
||||
return highest(kept_rung(anchor, route), worker_rung(anchor, likelihood_taken_in)) if likelihood_taken_in else kept_rung(anchor, route)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user