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
+2 -2
View File
@@ -14,7 +14,7 @@ from loop_claude.paths import Paths
from loop_claude.cycle import prompts
from claude_code.transcript import read_transcript, render
from loop_claude.cycle.retry import retried
from loop_claude.loop.routing import Route
from loop_claude.routing import Route
from loop_claude.cycle.worker import run_worker, worker_args
from loop_claude.stop import Stop
@@ -50,7 +50,7 @@ def run_cycle(cycle: Cycle) -> Stop | Finished | Unfinished:
def stopped(cycle: Cycle, stop: Stop, why: str) -> Stop:
path = transcript_file(cycle.session)
failure = archive(cycle.project_archive, path, cycle.task, outcomes.stopped(why), cycle.effects.now()) if path else None
failure = archive(cycle.project_archive, path, cycle.task, outcomes.stopped(str(cycle.route), why), cycle.effects.now()) if path else None
# A failed archive exits 1 whatever the stop; when the stop was this archive failing, its reason is said once.
return Stop(1, f"{failure.reason}\n{stop.reason}".rstrip()) if failure and failure.reason != stop.reason else stop