Answer architecture round 2: 0 🔴, 2 🟡; archive each verdict's judge rung, list the archive through transcript_archive alone, and say how the replay's retry differs from the loop's

This commit is contained in:
2026-10-15 08:49:22 +02:00
parent 16aba4cd98
commit 16d762a5f3
14 changed files with 84 additions and 64 deletions
+6 -3
View File
@@ -110,12 +110,15 @@ def rule(case: Case, rung: Rung, claude_dir: pathlib.Path, effects: Effects) ->
return verdict_kind(Failure(records.reason))
if isinstance(entries, Failure):
return verdict_kind(entries)
verdict = retried_as_the_loop_does(lambda: judge_once(case.root, case.task, premises, records, render(entries), rung, effects))
verdict = first_reply(lambda: judge_once(case.root, case.task, premises, records, render(entries), rung, effects))
return verdict if isinstance(verdict, Limited) else verdict_kind(verdict)
def retried_as_the_loop_does(attempt: typing.Callable[[], Verdict | Failure | Limited]) -> Verdict | Failure | Limited:
"""The first reply that is no Failure, or the last of FAILURES_RUNNING failures."""
def first_reply(attempt: typing.Callable[[], Verdict | Failure | Limited]) -> Verdict | Failure | Limited:
"""The first reply that is no Failure, or the last of FAILURES_RUNNING failures.
It counts failures as the loop's retried does, but neither waits between attempts nor waits out a usage limit, which ends the replay.
"""
for _ in range(FAILURES_RUNNING - 1):
if not isinstance(verdict := attempt(), Failure):
return verdict