Archive each review-replay and judge-replay run's transcript beside its result
CI / tests (pull_request) Failing after 2m52s

This commit is contained in:
2026-11-17 01:49:49 +01:00
parent f2a4347d78
commit 5aabbc87bf
11 changed files with 221 additions and 17 deletions
+7 -2
View File
@@ -45,6 +45,8 @@ 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.
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
none. Exit 1, saying why, on bad arguments, an unreadable archive or models file, no archived
@@ -56,6 +58,7 @@ import typing
from transcript_archive.location import archive_root
from review_replay.rounds import archived_rounds, Round, sample
from rung_replay.archive import archiving, print_report, replay_folder
from rung_replay.command import arguments_or_exit, failed, limited_exit
from review_replay.replay import codes_found, findings_replayed
from review_replay.omit_comparison import compared
@@ -89,11 +92,13 @@ def main(argv: list[str], env: typing.Mapping[str, str], home: pathlib.Path, eff
if not codes:
return failed(TOOL, f"no archived {reviewed} round of projects on {project.model} in {archive_root(home, env)} holds a 🔴 or 🟡 on code it can find")
chosen = sample(list(codes), LATEST)
folder = replay_folder(archive_root(home, env), TOOL, argv, effects.now())
effects = archiving(effects, folder)
if without:
report = compared(reviewed, project, chosen, lambda found, bare: findings_replayed(found, codes[found], project, project, home, effects, bare))
if isinstance(report, Limited):
return limited_exit(TOOL, report)
print(report)
print_report(folder, report)
return 0
def replay_one(found: Round, rung: Rung) -> set[int] | Failure | Limited:
@@ -105,7 +110,7 @@ def main(argv: list[str], env: typing.Mapping[str, str], home: pathlib.Path, eff
recall = recalled(chosen, ladder, project, replay_one, f"{reviewed} rounds")
if isinstance(recall, Limited):
return limited_exit(TOOL, recall)
print(recall_report(reviewed, project, recall))
print_report(folder, recall_report(reviewed, project, recall))
return 0