Answer architecture round 1: 2 🔴, 13 🟡; test the replay's main and report, share one judge run and the archive format, pin the reference judge, route only replayed models, and say why the judge climbs

This commit is contained in:
2026-10-15 08:39:10 +02:00
parent 069b3814b9
commit 16aba4cd98
18 changed files with 309 additions and 139 deletions
+14 -1
View File
@@ -22,12 +22,25 @@ def finished_chunks(project_archive: pathlib.Path) -> list[FinishedChunk] | Fail
copies = sorted((stamps[-1], outcomes) for outcomes in folder.glob("*.outcomes.md") if (stamps := FINISHED_AT.findall(outcomes.read_text(encoding="utf-8"))))
if copies:
finished, outcomes = copies[-1]
found.append(FinishedChunk(folder.name, finished, outcomes.with_name(outcomes.name.removesuffix(".outcomes.md") + ".jsonl"), sorted(folder.glob("session/*/subagents/*.jsonl"))))
found.append(FinishedChunk(folder.name, finished, transcript_of(outcomes), sorted(folder.glob("session/*/subagents/*.jsonl"))))
except (OSError, UnicodeDecodeError) as failure:
return Failure(f"could not read the archive {project_archive}: {failure}")
return sorted(found, key=lambda chunk: (chunk.finished, chunk.folder))
def archived_outcomes(root: pathlib.Path) -> list[tuple[str, pathlib.Path]] | Failure:
"""Each outcomes file in the archive at root, with the key of the project it belongs to, sorted."""
try:
return sorted((str(path.parent.parent.relative_to(root)), path) for path in root.rglob("*.outcomes.md"))
except OSError as failure:
return Failure(f"could not read the archive {root}: {failure}")
def transcript_of(outcomes: pathlib.Path) -> pathlib.Path:
"""The transcript copy an outcomes file sits beside."""
return outcomes.with_name(outcomes.name.removesuffix(".outcomes.md") + ".jsonl")
def read_threads(chunk: FinishedChunk) -> list[bytes] | Failure:
"""The worker's transcript, then each subagent's."""
try: