Answer round eight: a quoted answer without a question fails the judge run, the first rule names the [loop] repeat, prose nits

This commit is contained in:
2026-10-03 14:18:52 +02:00
parent 50e8056f4d
commit d1435684df
5 changed files with 14 additions and 12 deletions
+5 -3
View File
@@ -16,7 +16,7 @@ JUDGE_PROMPT_CHARS = 400000
JUDGE_RULES = (
"Decide whether the human must now be interrupted. interrupt=true when any of these appear:\n"
"- the agent asks the human anything, seeks approval, or says a decision is the human's, and neither "
"README.md nor the project's records settle the matter\n"
"README.md nor the project's records settle the matter, or a [loop] line already answered it\n"
"- it carried on under an assumption that decides the deliverable, that the human could "
"reasonably reject and that neither README.md nor the project's records settle; a caveat about "
"transient state it then handled is not one\n"
@@ -43,7 +43,7 @@ JUDGE_RULES = (
@dataclasses.dataclass(frozen=True)
class Reply:
answer: str = dataclasses.field(metadata={"description": "With interrupt false, the passage of README.md or the project's records that answers the agent's question, quoted verbatim. Empty otherwise."})
evidence: str = dataclasses.field(metadata={"description": "A verbatim quote of the transcript line the verdict rests on: what triggers the interrupt, else what shows the chunk finished or the work remaining."})
evidence: str = dataclasses.field(metadata={"description": "A verbatim quote of the transcript line the verdict rests on: what triggers the interrupt, what the agent asked for a quoted answer, else what shows the chunk finished or the work remaining."})
finished: bool
interrupt: bool
question: str = dataclasses.field(metadata={"description": "With interrupt true, the single question to put to the human. With a quoted answer, the agent's question that the answer field answers. Empty otherwise."})
@@ -118,7 +118,9 @@ def verdict_from(output: object) -> Verdict | Failure:
if not output["question"].strip():
return Failure("the judge interrupted without a question")
return Interrupt(output["evidence"], output["question"])
if output["answer"].strip() and output["question"].strip():
if output["answer"].strip():
if not output["question"].strip():
return Failure("the judge quoted an answer without a question")
return QuotedAnswer(output["evidence"], output["question"], output["answer"])
return Finished(output["evidence"]) if output["finished"] else Unfinished(output["evidence"])
+1 -1
View File
@@ -52,7 +52,7 @@ Exit 1, saying why, when:
- the worker or the judge fails three times running, retried a minute apart within the cycle. A
worker fails when claude cannot start, exits non-zero, is killed, or ends without a result event;
a judge when claude cannot start or exits non-zero, or its reply misses or mistypes a field,
interrupts without a question, or quotes a line the transcript does not hold. A usage limit is not
interrupts or quotes an answer without a question, or quotes a line the transcript does not hold. A usage limit is not
a failure, and restarts the count of three: the worker or the judge is retried 2 minutes after the
limit resets, or every 10 minutes when the reset time is unknown or more than 2 minutes past. The
judge's reply gives its reset time only as text, so the judge is always retried every 10 minutes.