Answer prose round 1: 0 🔴, 7 🟡 (0 misread); make the entry kinds' docstrings match the code, untangle after_mark and checked, and rename three tests to what they check

This commit was merged in pull request #441.
This commit is contained in:
2026-11-09 00:52:37 +01:00
parent 7a5df16882
commit 09159d7158
6 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class Grounds(typing.NamedTuple):
"""The texts quotes_checked checks the judge's quotes against. A quote must appear in its text as written, since a quote reworded or stitched together can say what its source does not; only the evidence may join passages with an ellipsis, each passage in order."""
# The transcript as the judge saw it.
shown: str
# The worker's own lines after the escalation mark, as escalation_mark.after_mark renders them, however much of the transcript shown holds.
# The worker's own lines after the escalation mark, as escalation_mark.after_mark renders them, including those the tail in shown cuts off.
after_mark: str
# README.md's premises and the records.
quotable: str
+2 -2
View File
@@ -37,12 +37,12 @@ def transcript(entries: list[Entry], at: int, typed_answer: typing.Callable[[str
def after_mark(entries: list[Entry], at: int) -> str:
"""The worker's own lines after the mark, its assistant turns, all of them, however much of the transcript the judge is shown. loop-claude's prompts and the human's lines are left out, since they repeat earlier passages, such as the judge's evidence or the worker's question."""
"""All the text and tool calls of the worker's assistant turns after the mark, even where the judge is shown only the transcript's tail. loop-claude's prompts and the human's lines are left out, since they repeat earlier passages, such as the judge's evidence or the worker's question."""
return "\n\n".join(line for entry in entries[at:] if isinstance(entry, AssistantTurn) for line in assistant_lines(entry))
def checked(verdict: Verdict, *, after: str, shown: str) -> Verdict:
"""The verdict without its escalation unless the escalation quotes both texts: after, the worker's lines after the mark as after_mark renders them, and shown, the transcript the judge was shown. A misquote, or a quote of a passage before the mark, drops the escalation, so the worker's rung holds."""
"""The verdict without its escalation unless the escalation quotes both texts: the argument after, which holds the worker's lines after the mark as after_mark renders them, and the argument shown, the transcript the judge was shown. A misquote, or a quote of a passage before the mark, drops the escalation, so the worker's rung holds."""
if isinstance(verdict, Escalating) and verdict.escalation and not (verbatim(verdict.escalation, after) and verbatim(verdict.escalation, shown)):
return dataclasses.replace(verdict, escalation="")
return verdict