Answer architecture round 1: 0 🔴, 5 🟡; keep a taken-in E + I only where it lifts the reviewers, outside stepped, parse the archived line once, point the help at the code, and name the field one way

This commit is contained in:
2026-10-16 23:45:11 +02:00
parent ba4a00d6b7
commit 6df1833eb7
5 changed files with 42 additions and 38 deletions
+7 -6
View File
@@ -63,10 +63,11 @@ loop-claude hands the worker's claude its own rung, the project's and the review
LOOP_CLAUDE_WORKER_RUNG, LOOP_CLAUDE_PROJECT_RUNG and LOOP_CLAUDE_REVIEWER_RUNG, and rule-hook
refuses a review launched below the rung named for it. The judge reports the highest L and the
highest E + I the worker states for an item it takes in. The next cycle steps the worker up to the
rung that L picks, never down, and the reviewers to the rung the higher of that E + I and the routed
item's picks; a level off its scale counts as none. Every second unfinished
verdict on a chunk steps it up one rung. So does an unfinished verdict on a worker that ended its
run asking for a higher rung, once the judge quotes the transcript showing that the escalation
rung that L picks, never down, and the reviewers to the rung the higher of that E + I and the
routed item's picks (Route.reviewed_on in bin/model_routing/route.py); a level off its scale
counts as none. Every second unfinished verdict on a chunk steps it up one rung (stepped in
bin/loop_claude/routing.py). So does an unfinished verdict on a worker that ended its run asking
for a higher rung, once the judge quotes the transcript showing that the escalation
trigger it named fired (~/.claude/CLAUDE.md → "Working with the codebase" lists them). That step
stops two rungs above the rung the chunk's item picks, and the worker's prompts offer it only while
the worker is below that limit. Each finished or unfinished verdict, stop and step-up in the
@@ -79,7 +80,7 @@ it routed on L. A todo.md or an archive that cannot be read or parsed is said on
without it.
The judge of a model listed in JUDGE_REPLAYED (bin/loop_claude/routing.py) runs on the rung the
reviewers' E + I picks for a review from that model: the routed item's, or a higher one taken in.
reviewers' E + I, Route.reviewed_on, picks for a review from that model: the routed item's, or a higher one taken in.
It never runs below the model's cheapest rung, and runs on it when no item routed the chunk or was
taken in. Its rung stays put when the worker steps up. A model is listed once judge-replay found its cheapest rung returning every
verdict the reference judge reproduced. Any other model's judge runs at the effort its settings
@@ -223,7 +224,7 @@ def routed(loop_run: LoopRun, anchor: Rung | None, archived: typing.Callable[[],
def after_verdict(loop_run: LoopRun, anchor: Rung | None, verdict: Finished | Unfinished) -> LoopRun:
if isinstance(verdict, Finished):
return dataclasses.replace(loop_run, route=None, unfinished_evidence="")
route = stepped(anchor, loop_run.route, verdict.bundled, bool(verdict.escalation), verdict.bundled_escape_and_impact) if anchor and loop_run.route else loop_run.route
route = stepped(anchor, loop_run.route, verdict.bundled, bool(verdict.escalation)).taking_in(verdict.bundled_escape_and_impact) if anchor and loop_run.route else loop_run.route
return dataclasses.replace(loop_run, route=route, unfinished_evidence=verdict.evidence)