Answer prose round 1: 0 🔴, 7 🟡; give the judge its own help paragraph and decision entry, record that the replay tried each judge once, reword item 90's question, and file item 140 to split the rest of routing

This commit is contained in:
2026-10-15 09:31:04 +02:00
parent d3221648a6
commit 6cc3deda76
9 changed files with 52 additions and 34 deletions
+10 -9
View File
@@ -1,4 +1,4 @@
"""Replay loop-claude's judge on archived verdicts, to find the cheapest rung that returns them: docs/decisions.md → `routing:`.
"""Replay loop-claude's judge on archived verdicts, to find the cheapest rung that returns them: docs/decisions.md → `routing: on a model judge-replay covered`.
usage: judge-replay <model>
@@ -8,14 +8,15 @@ verdicts archived for the projects that ~/.claude/loop-claude-models.json runs o
archive is what the judge read for the verdict beside it, so the replay hands the judge that copy,
with the task, premises and records each project holds now.
It first replays every verdict on the reference judge: the model at xhigh effort, where the judge
ran before it was routed. A verdict the reference judge returns another kind on rests on the
records and judge rules of its day, so no rung is held to it. It then replays the rest on each rung
from the one the lowest R + C picks up to the model's cheapest rung, cheapest first, and stops at
the first rung that returns all of them. It prints each verdict a rung missed, and the cheapest
It first replays every verdict on the reference judge: the model at xhigh effort, the rung the
judge ran on before loop-claude routed it. A verdict the reference judge returns another kind on
may rest on records or judge rules that have changed since; either way no rung is held to it. It
then replays the rest on each candidate rung, cheapest first: from the rung the lowest R + C picks
up to the model's cheapest rung. It stops at the first rung that returns all of them. It prints
each verdict the reference judge did not reproduce, each verdict a rung missed, and the cheapest
rung that missed none. A rung it names is the evidence to add the model to JUDGE_REPLAYED in
bin/loop_claude/routing.py, which routes that model's judge, and to record the run in
docs/decisions.md → `routing:`.
docs/decisions.md → `routing: on a model judge-replay covered`.
Like the loop, it tries a judge three times running before it counts the reply as failed. A
verdict whose project or transcript cannot be read replays as failed too. Exit 1, saying why, on
@@ -45,7 +46,7 @@ from loop_claude.stop import Stop
PER_KIND = 15
# The effort settings.json gave every judge before loop-claude routed it; the archived verdicts came from it.
REFERENCE_EFFORT = "xhigh"
# claude runs at a time; each judge reads up to JUDGE_PROMPT_CHARS.
# Judges replayed at once.
AT_ONCE = 4
LOWEST_R_PLUS_C = 2
USAGE = "usage: judge-replay <model>, a model on the routing ladder"
@@ -64,7 +65,7 @@ def main(argv: list[str], env: typing.Mapping[str, str], home: pathlib.Path, eff
print(f"judge-replay: {cases.reason}", file=sys.stderr)
return 1
if not cases:
print(f"judge-replay: no archived verdicts of projects on {argv[0]} in {archive_root(home, env)}; run loop-claude on one first", file=sys.stderr)
print(f"judge-replay: no archived verdicts of projects on {argv[0]} in {archive_root(home, env)}; run loop-claude on a project on that model first", file=sys.stderr)
return 1
cases = sample(cases, PER_KIND)
reference = Rung(argv[0], REFERENCE_EFFORT)