Answer prose round 1: 0 🔴, 6 🟡; state where seats and the security pass run above the project's rung, and clarify the routing decision, help and changelog
This commit is contained in:
@@ -24,7 +24,7 @@ def routed_by(route: Route, anchor: Rung | None) -> str:
|
||||
said = f"loop-claude runs you on {route.rung}, routed by item {route.item}'s R + C of {route.risk_and_complexity}. Name each todo.md item this chunk takes, with its R + C, whether or not it is item {route.item}."
|
||||
if anchor is None or highest(route.rung, anchor) == route.rung:
|
||||
return said
|
||||
# The Agent tool takes a model's family name, such as opus, and runs that family's latest model, which each ladder rung names.
|
||||
# The Agent tool takes a family name, such as opus, and runs that family's latest model; each rung names its family's latest, so the two match.
|
||||
return f"{said} Your rung is below the project's, {anchor}: launch each reviewer, each comprehension seat and the security pass's subagent with the Agent tool's model `{anchor.model.split('-')[1]}` and effort `{anchor.effort}`, and run a full scan only from such a subagent, since the scan's agents run on the model that starts them."
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@ the transcript, are copied into <chunk>/session/. A file there is replaced only
|
||||
grew from it. A file Claude Code rewrote lands beside its copy as <name>.<hash of its content>.
|
||||
|
||||
Every claude loop-claude starts runs the project's model, saved per <key> in
|
||||
~/.claude/loop-claude-models.json and read each cycle; a project without an entry, as on its first
|
||||
~/.claude/loop-claude-models.json and read each cycle, unless routing, below, puts the worker and
|
||||
the interrupt on another rung; a project without an entry, as on its first
|
||||
run, is asked for one. LOOP_CLAUDE_JUDGE_MODEL overrides it for the judge, LOOP_CLAUDE_WORKER_MODEL
|
||||
for the worker and the interrupt; with both set, nothing is asked.
|
||||
|
||||
@@ -46,15 +47,15 @@ todo.md's top item in the next release, skipping an item marked question, picks
|
||||
counts from the model's cheapest rung, and an R + C of 8 or less picks a rung below it; without
|
||||
such an item, or with a C missing, the chunk runs on the model's cheapest rung. The worker's first
|
||||
prompt names the rung and the item, and asks the worker to name each item the chunk takes, with its
|
||||
R + C. Below the model's cheapest rung, it also has the worker run each reviewer, each
|
||||
comprehension seat and the security passes in subagents on that cheapest rung. The judge reports
|
||||
the highest R + C the worker states, and the next cycle steps up to the rung that R + C picks,
|
||||
never down. Every second unfinished verdict on a chunk steps it up one rung. Each finished or
|
||||
unfinished verdict, stop and step-up in the archive names the worker's rung, with the item and
|
||||
R + C that routed the chunk; a rerun resumes an open chunk on the latest rung named there, and
|
||||
counts its unfinished verdicts afresh. A rung no longer on the ladder, or
|
||||
below the one its item's R + C picks, is dropped, and the chunk is routed afresh from todo.md. A todo.md or
|
||||
an archive that cannot be read or parsed is said on stderr, and the chunk is routed without it.
|
||||
R + C. When that rung is below the model's cheapest, the prompt also has the worker launch each
|
||||
reviewer, each comprehension seat and the security pass in subagents on the cheapest rung. The
|
||||
judge reports the highest R + C the worker states, and the next cycle steps up to the rung that
|
||||
R + C picks, never down. Every second unfinished verdict on a chunk steps it up one rung. Each
|
||||
finished or unfinished verdict, stop and step-up in the archive names the worker's rung, with the
|
||||
item and R + C that routed the chunk; a rerun resumes an open chunk on the latest rung named there,
|
||||
and counts its unfinished verdicts afresh. A rung no longer on the ladder, or below the one its
|
||||
item's R + C picks, is dropped, and the chunk is routed afresh from todo.md. A todo.md or an
|
||||
archive that cannot be read or parsed is said on stderr, and the chunk is routed without it.
|
||||
|
||||
A change to bin/loop-claude or any bin/**/*.py takes effect at the next cycle boundary, once
|
||||
loop-claude --help succeeds: the loop reloads into the edited script.
|
||||
@@ -164,7 +165,7 @@ def run_loop(argv: list[str], env: typing.Mapping[str, str], paths: Paths, launc
|
||||
|
||||
|
||||
def routed(loop_run: LoopRun, anchor: Rung | None, archived: typing.Callable[[], Route | None], item: typing.Callable[[], Item | None]) -> LoopRun:
|
||||
"""The loop run with its chunk's route, none off the ladder. A chunk keeps its route, or on a rerun the one its archive last names,
|
||||
"""The loop run with its chunk's route, or None when the project's model is off the ladder. A chunk keeps its route, or on a rerun the one its archive last names,
|
||||
while that is at or above the rung its item's R + C picks from anchor, the project's rung; else the plan item routes it afresh."""
|
||||
if anchor is None:
|
||||
return dataclasses.replace(loop_run, route=None)
|
||||
|
||||
@@ -52,13 +52,13 @@ def first_route(anchor: Rung, item: Item | None) -> Route:
|
||||
|
||||
|
||||
def kept(route: Route, anchor: Rung) -> bool:
|
||||
"""Whether a route carries on from anchor, the project's rung: its rung is on the ladder at or above the one its item's R + C picks from anchor."""
|
||||
"""Whether a chunk keeps route: its rung is on the ladder at or above the rung its item's R + C picks from anchor, the project's rung, or anchor itself when no item routed it."""
|
||||
return highest(route.rung, picked(anchor, route.risk_and_complexity) if route.item else anchor) == route.rung
|
||||
|
||||
|
||||
def stepped(anchor: Rung, route: Route, bundled: int) -> Route:
|
||||
"""The route after one more unfinished verdict; bundled is the highest R + C the judge saw the worker take into the chunk, 0 for none."""
|
||||
# A rung an edit took off the ladder counts as the project's.
|
||||
# An archived rung since removed from LADDER restarts from the project's rung.
|
||||
rung = route.rung if route.rung in LADDER else anchor
|
||||
rung = highest(rung, picked(anchor, bundled)) if bundled else rung
|
||||
if route.unfinished + 1 >= UNFINISHED_PER_STEP:
|
||||
|
||||
Reference in New Issue
Block a user