Answer architecture round 1: 0 🔴, 2 🟡; finish "record", record the three meanings as a decision, name rule-hook's check once

This commit is contained in:
2026-10-23 10:54:24 +02:00
parent 8d2a1cf9fd
commit 387a5ce506
23 changed files with 113 additions and 102 deletions
+4 -4
View File
@@ -59,7 +59,7 @@ the judge finds in the transcript an escalation trigger that fired and the worke
rung. The rules are in bin/loop_claude/routing.py and bin/model_routing/ladder.py, the choice of
each review's rung in bin/model_routing/review_choice.py, and the prompts' wording in
bin/loop_claude/cycle/prompts.py. Each verdict, interrupt, quoted answer, stop and
step-up in the archive ends with a Worker: line, the route's JSON record (Route.record in
step-up in the archive ends with a Worker: line, the route as JSON (Route.worker_line in
bin/model_routing/route.py); a rerun resumes an open chunk on the latest route named there. A
todo.md or an archive that cannot be read or parsed is said on stderr, and the chunk is routed
without it.
@@ -214,11 +214,11 @@ def stepped_route(project: Rung | None, ended_on: Route, verdict: Unfinished) ->
def archive_step(archive_folder: pathlib.Path, session: Session, task: str, before: Route, after: Route | None, effects: Effects) -> Stop | None:
"""Archives the route after an unfinished verdict as a step-up, where its record differs from the route before it: a higher rung, or a higher E + I taken in. The verdict itself names the route before, which its cycle ran on."""
if after is None or after.record() == before.record():
"""Archives the route after an unfinished verdict as a step-up, where its worker line differs from the one before it: a higher rung, or a higher E + I taken in. The verdict itself names the route before, which its cycle ran on."""
if after is None or after.worker_line() == before.worker_line():
return None
path = transcript_file(session)
failure = archive(archive_folder, path, task, outcomes.stepped_up(after.record()), effects.now()) if path else None
failure = archive(archive_folder, path, task, outcomes.stepped_up(after.worker_line()), effects.now()) if path else None
return Stop(1, failure.reason) if failure else None