Hold the escalation mark in one module, and carry a ruling's step through the cycle's states

This commit is contained in:
2026-10-23 04:45:03 +02:00
parent 4764d3d522
commit f0e14f3fdf
11 changed files with 159 additions and 92 deletions
+1 -6
View File
@@ -11,7 +11,7 @@ class Interrupt:
# The highest L the judge saw the worker take into the chunk, 0 for none: an escalation steps up from the rung that L picks.
highest_likelihood_taken_in: int = 0
release_ready: bool = False
# How many transcript entries the judge read, which judge_once stamps. An escalation the verdict carries moves the route's mark there. None means judge_once never stamped it, and then its escalation doesn't step the worker.
# How many transcript entries the judge read, which escalation.stamped stamps. An escalation the verdict carries moves the route's mark there. None means it was never stamped, and then its escalation doesn't step the worker.
entries_read: int | None = None
@@ -46,8 +46,3 @@ class Unfinished:
Verdict = Interrupt | QuotedAnswer | Finished | Unfinished
def escalation_mark(verdict: Interrupt | QuotedAnswer | Unfinished) -> int | None:
"""Where the verdict's escalation would move the route's mark, if it steps the worker; None where it carries none."""
return verdict.entries_read if verdict.escalation else None