Answer the stability pass's second round: say why a misquote is no failure, rewrap --help
This commit is contained in:
@@ -88,7 +88,7 @@ def run_judge(root: str, args: list[str], prompt: str, rendered_transcript: str,
|
|||||||
return Failure(f"{verdict.reason}; it replied: {proc.stdout.strip() or 'nothing'}")
|
return Failure(f"{verdict.reason}; it replied: {proc.stdout.strip() or 'nothing'}")
|
||||||
if not grounded(verdict.evidence, rendered_transcript):
|
if not grounded(verdict.evidence, rendered_transcript):
|
||||||
return Failure(f"the judge quoted {verdict.evidence!r}, which is not in the transcript" + (f", for the question: {verdict.question}" if isinstance(verdict, Interrupt | AnsweredFromRecords) else ""))
|
return Failure(f"the judge quoted {verdict.evidence!r}, which is not in the transcript" + (f", for the question: {verdict.question}" if isinstance(verdict, Interrupt | AnsweredFromRecords) else ""))
|
||||||
# An answer the records do not hold verbatim is dropped, and the question goes to the human.
|
# Not a Failure: a misquote would otherwise exit an unattended loop.
|
||||||
if isinstance(verdict, AnsweredFromRecords) and not grounded(verdict.answer, recorded):
|
if isinstance(verdict, AnsweredFromRecords) and not grounded(verdict.answer, recorded):
|
||||||
return Interrupt(verdict.evidence, verdict.question)
|
return Interrupt(verdict.evidence, verdict.question)
|
||||||
return verdict
|
return verdict
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ Exit 1, saying why, when:
|
|||||||
- the worker or the judge fails three times running, retried a minute apart within the cycle. A
|
- 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;
|
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,
|
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; an answer it
|
interrupts without a question, or quotes a line the transcript does not hold; an answer it quotes
|
||||||
quotes that the premises and the records do not hold is dropped, and the question goes to the
|
that the premises and the records do not hold is dropped, and the question goes to the human. A
|
||||||
human. A usage limit is not a failure, and restarts the count of three: the worker or the judge is retried 2 minutes
|
usage limit is not a failure, and restarts the count of three: the worker or the judge is retried
|
||||||
after the limit resets, or every 10 minutes when the reset time is unknown or more than 2
|
2 minutes after the limit resets, or every 10 minutes when the reset time is unknown or more than
|
||||||
minutes past. The judge's reply gives its reset time only as text, so the judge is always
|
2 minutes past. The judge's reply gives its reset time only as text, so the judge is always
|
||||||
retried every 10 minutes. stderr says when the next try is due.
|
retried every 10 minutes. stderr says when the next try is due.
|
||||||
|
|
||||||
Exit 2, when the human is needed and cannot answer:
|
Exit 2, when the human is needed and cannot answer:
|
||||||
|
|||||||
Reference in New Issue
Block a user