Answer stability round 1: 0 🔴, 2 🟡 (0 misread); keep the whole typed answer that holds the judge's quote of a reversal, and test a failing rev-parse

This commit is contained in:
2026-11-12 10:25:30 +01:00
parent 67e272d5ef
commit d449c552c6
4 changed files with 40 additions and 17 deletions
+11
View File
@@ -60,6 +60,17 @@ def render(entries: list[Entry], typed_answer: typing.Callable[[str], Typed | No
return "\n\n".join(lines)
def human_answers(entries: list[Entry], typed_answer: typing.Callable[[str], Typed | None]) -> list[str]:
"""Each answer the human typed, whole, as render shows it on a [human] line, latest last."""
found = []
for entry in entries:
if isinstance(entry, HumanTurn):
found.append(entry.text)
elif isinstance(entry, LoopPrompt) and (typed := typed_answer(entry.text)):
found.append(typed.answer)
return found
def assistant_lines(turn: AssistantTurn) -> list[str]:
"""The turn's text and tool calls as the judge reads them."""
return [line for part in turn.parts if (line := part_line(part, JUDGED_TOOL_INPUT))]