Answer prose round 1: 0 🔴, 5 🟡; retitle the decision for quoted answers, say what a later trigger does, split the long sentences, and warn the stepped worker that a further request steps nothing
This commit is contained in:
@@ -119,13 +119,13 @@ def resumed(unfinished_evidence: str, route: Route, anchor: Rung | None) -> str:
|
||||
|
||||
|
||||
def rungs_held(route: Route, anchor: Rung | None) -> str:
|
||||
"""The sentences that depend on the worker's rung: where its reviews, its subagents and their reruns run."""
|
||||
"""The sentences that depend on the worker's rung: where its reviews run and rerun, and where its escalated subagents run."""
|
||||
return f"{review_launches(route, anchor)}{escalation(route, anchor)}{reruns(route, anchor)}"
|
||||
|
||||
|
||||
def answered(question: str, answer: str, route: Route, anchor: Rung | None, stepped: bool) -> str:
|
||||
"""stepped is whether the answer's ruling stepped the worker up, so the prompt names its new rung, as resumed does."""
|
||||
on = f" Your request for a higher rung went through: loop-claude runs you on {route.rung}.{rungs_held(route, anchor)}" if stepped else ""
|
||||
on = f" Your request for a higher rung went through: loop-claude runs you on {route.rung}.{rungs_held(route, anchor)} A further request for a higher rung steps you up no more in this cycle." if stepped else ""
|
||||
return f"Your question: {question}\n\n{QUOTE_SOURCES} answers it:\n\n{answer}\n\nContinue the task.{on}"
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class Cycle:
|
||||
# Empty when the previous cycle's verdict was not Unfinished.
|
||||
unfinished_evidence: str
|
||||
# Only an interrupt's or a quoted answer'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 ruling left, for ask and keep_answer to archive; None unless the latest event stepped the route up.
|
||||
# The route before that ruling stepped it up, for ask and keep_answer to archive; None unless the latest event stepped the route up.
|
||||
stepped_from: Route | None = None
|
||||
# Whether an interrupt or a quoted answer of this cycle took an escalation, after which no ruling of the cycle carries one.
|
||||
escalation_spent: bool = False
|
||||
|
||||
Reference in New Issue
Block a user