Answer architecture round 2: 2 🔴, 3 🟡; route from the ladder by rung, keep a stepped-up rung across reruns and reloads, test the judge's bundled range, and file item 136 for routing on the item taken

This commit is contained in:
2026-10-14 23:06:54 +02:00
parent c75e576773
commit d6e019444d
20 changed files with 305 additions and 148 deletions
+7
View File
@@ -1,9 +1,16 @@
import hashlib
import pathlib
import typing
from claude_code.transcript import first_timestamped_line
from project_key import project_key
def project_archive(checkout_root: str, home: pathlib.Path, env: typing.Mapping[str, str]) -> pathlib.Path:
archive = pathlib.Path(env["LOOP_CLAUDE_TRANSCRIPTS"]).expanduser() if env.get("LOOP_CLAUDE_TRANSCRIPTS") else home / ".claude" / "loop-claude-transcripts"
return archive / project_key(checkout_root, home)
def chunk_folder(project_archive: pathlib.Path, transcript: bytes) -> pathlib.Path:
# Each chunk's first timestamped line is its own: a finished chunk's session is deleted, so the next chunk's transcript starts afresh.
return project_archive / hashlib.sha256(first_timestamped_line(transcript)).hexdigest()