Answer architecture round 2: 0 🔴, 1 🟡; join prose lists with one markdown_text.listed, and floor the replays at lowest_worker_rung

This commit is contained in:
2026-10-16 12:18:03 +02:00
parent 12909f233d
commit f319a96e7e
11 changed files with 40 additions and 34 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import pathlib
import sys
from failure import Failure
from model_routing.ladder import LADDER, position, project_rung, Rung
from model_routing.ladder import LADDER, lowest_worker_rung, position, project_rung, Rung
from claude_code.reply import Limited
from loop_claude.project.model_choice import read_models_file
from loop_claude.stop import Stop
@@ -28,8 +28,8 @@ def projects_on(model: str, home: pathlib.Path) -> list[str] | Failure:
def down_from(top: Rung) -> list[Rung]:
"""top and each rung below it, down to the ladder's bottom, highest first. A replay stops at the first rung that misses, so a low rung is replayed only where every rung above it passed."""
return list(LADDER[:position(top) + 1])[::-1]
"""top, the project's rung, and each rung below it, highest first, down to the lowest rung a worker routes to: no route uses a rung below it, so a replay there could change no routing."""
return list(LADDER[position(lowest_worker_rung(top)):position(top) + 1])[::-1]
def limited_exit(tool: str, limited: Limited) -> int: