Answer prose round 1: 0 🔴, 8 🟡 (0 misread); the help texts say where the runs go, the decision gets its own dated paragraph, and the comments reread

This commit is contained in:
2026-11-17 02:33:40 +01:00
parent 48e69063b8
commit b8a1a13ad0
6 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class Limited:
said: str
# --no-session-persistence keeps the runs out of the session picker, and Claude Code then writes no transcript; stream-json prints one, so a caller may keep it, and claude_reply reads the reply from its last line. -p needs --verbose with stream-json. No permission prompt, as no one answers it.
# No persistence, so these runs stay out of the session picker; Claude Code then writes no transcript, so stream-json, which prints one, lets a caller keep it. claude_reply reads the reply from the stream's last line. -p needs --verbose with stream-json. No permission prompt, as no one answers it.
HEADLESS = ["--no-session-persistence", "--output-format", "stream-json", "--verbose", "--permission-mode", "bypassPermissions"]
+4 -1
View File
@@ -27,7 +27,10 @@ JUDGE_REPLAYED in bin/loop_claude/routing.py, which routes that model's judge. j
keeps the judge to its own model's rungs; a rung above them that misses no interrupt is the
evidence to let the judge climb onto it.
Each run is kept with the report it ended in: `replays/<tool>-<arguments>-<UTC stamp>/` in loop-claude's archive holds a `.jsonl` file per run, its prompt then claude's stream, and `result.md`, the printed report.
It keeps each run and the report it prints in loop-claude's archive, in
replays/judge-replay-<model>-<UTC stamp>/ under ~/.claude/loop-claude-transcripts or $LOOP_CLAUDE_TRANSCRIPTS.
A run's .jsonl file starts with a line holding claude's arguments, working directory, prompt, exit code and
stderr, then holds claude's stream-json output; result.md holds the report.
Like the loop, it tries a judge three times running before it counts the reply as failed. A
verdict whose project, transcript or archived judge run cannot be read replays as failed too. Exit 1, saying why, on
+4 -1
View File
@@ -45,7 +45,10 @@ replay, and runs no SubagentStart hook there. So the replay without CLAUDE.md tu
instruction files off in its settings and opens the prompt with what the hook hands a reviewer, and
closes it with the header's line on the project principles.
Each run, the reviewer's tool calls included, is kept with the report it ended in: `replays/<tool>-<arguments>-<UTC stamp>/` in loop-claude's archive holds a `.jsonl` file per run, its prompt then claude's stream, and `result.md`, the printed report.
It keeps each run, a reviewer's tool calls included, and the report it prints in loop-claude's archive, in
replays/review-replay-<pass>-<model>[-omit-claude-md]-<UTC stamp>/ under ~/.claude/loop-claude-transcripts
or $LOOP_CLAUDE_TRANSCRIPTS. A run's .jsonl file starts with a line holding claude's arguments, working
directory, prompt, exit code and stderr, then holds claude's stream-json output; result.md holds the report.
Like the loop, it tries claude three times running before it counts a reply as failed. A failed
review or match leaves its round out, except on a rung below the project's, where it finds
+3 -3
View File
@@ -1,4 +1,4 @@
"""Keeps what judge-replay and review-replay ran beside what they printed, so a replay that decided a rung can be read again, re-priced or re-scored once the decision is questioned: docs/decisions.md → `loop-claude: the archive keeps the raw transcript and each judge run, …`."""
"""Keeps each run of judge-replay and review-replay, and the report each prints, in loop-claude's archive: docs/decisions.md → `loop-claude: the archive keeps the raw transcript and each judge run, …`."""
import dataclasses
import hashlib
import json
@@ -10,7 +10,7 @@ import time
from loop_effects.effects import Effects
# The run's file starts with this line: what claude read and where, none of which its stream carries. Its type is none claude writes.
# The type of the first line of a run's file, which holds what the stream lacks: claude's arguments, working directory, prompt, exit code and stderr. No event claude writes has this type.
HEADER = "replay_run"
RESULT = "result.md"
@@ -22,7 +22,7 @@ def replay_folder(root: pathlib.Path, tool: str, argv: list[str], now: float) ->
def archiving(effects: Effects, folder: pathlib.Path) -> Effects:
"""effects whose claude also writes each run into folder: a line with the arguments, the working directory and the prompt, then the stream claude printed. A run is kept whether it failed or not, and once where it repeats a run; a folder that cannot be written is said on stderr and costs the replay nothing."""
"""effects whose claude also writes each run into folder: a header line, then the stream claude printed. A run is kept whether it failed or not, and a run that repeats another word for word is kept once. A folder that can't be written is reported on stderr, and the replay goes on."""
claude = effects.claude
def run(args: list[str], cwd: str, prompt: str) -> subprocess.CompletedProcess[str]: