Answer prose round 1: 0 🔴, 3 🟡; state that a later ruling carries no second escalation, split the long sentences, and say rung
This commit is contained in:
@@ -40,7 +40,7 @@ class Cycle:
|
||||
anchor: Rung | None
|
||||
# Empty when the previous cycle's verdict was not Unfinished.
|
||||
unfinished_evidence: str
|
||||
# The route changes within a cycle only as an interrupt carries an escalation, and no transition reads it or the fields below, so they stay out of the states.
|
||||
# Only an interrupt's escalation changes the route within a cycle. No transition reads the route or the fields below, so they stay out of the states.
|
||||
# The route that interrupt left, for ask to archive; None unless the latest event stepped the route up.
|
||||
stepped_from: Route | None = None
|
||||
# Whether an interrupt of this cycle took an escalation, after which no ruling of the cycle carries one.
|
||||
@@ -144,7 +144,7 @@ def rule(cycle: Cycle, transcript_path: str) -> Ruled | Stop:
|
||||
|
||||
|
||||
def unspent(verdict: Verdict, spent: bool) -> Verdict:
|
||||
"""The verdict without its escalation once an interrupt of the cycle took one. The judge may quote another passage for the trigger that stepped the route, which no comparison of quotes can tell, so one trigger buys one step. It lives here, not in judge.quotes_checked, since it reads the cycle, and judge-replay replays the judge alone."""
|
||||
"""The verdict without its escalation once an interrupt of the cycle took one. The judge may quote a different passage for the trigger that already stepped the route, and no comparison of quotes tells the two apart, so one trigger buys one step. It lives here, not in judge.quotes_checked, since it reads the cycle, and judge-replay replays the judge alone."""
|
||||
if spent and isinstance(verdict, Interrupt | Unfinished) and verdict.escalation:
|
||||
return dataclasses.replace(verdict, escalation="")
|
||||
return verdict
|
||||
@@ -160,7 +160,7 @@ def keep_rejection(cycle: Cycle, transcript_path: str, rejected: Rejected) -> St
|
||||
def ask(cycle: Cycle, transcript_path: str, ruling: Interrupt | QuotedAnswer) -> HumanAnswered | Stop:
|
||||
question = question_for(ruling)
|
||||
# Archived now, so the transcript the question was asked on is kept with it; the human's answer then grows the transcript.
|
||||
# The interrupt names the rung the worker ran on until it, and a step-up then the rung it runs on from it, so the figures charge each stretch to its own rung.
|
||||
# The interrupt names the rung the worker ran on before it; a step-up archived after it names the stepped rung, so the figures charge each stretch to its own rung.
|
||||
interrupted = outcomes.interrupted(question, ruling.evidence, str(judge_of(cycle)), ruling.escalation if isinstance(ruling, Interrupt) else "", str(cycle.stepped_from or cycle.route))
|
||||
for outcome in (interrupted, outcomes.stepped_up(str(cycle.route))) if cycle.stepped_from else (interrupted,):
|
||||
if failure := archive(cycle.project_archive, transcript_path, cycle.task, outcome, cycle.effects.now()):
|
||||
|
||||
Reference in New Issue
Block a user