Answer product-owner round 1: 1 🔴, 0 🟡; state in loop-claude's help that a worker may run below the model's cheapest rung, and run the full scan from a subagent on it

This commit is contained in:
2026-10-14 23:54:41 +02:00
parent cc72268f7c
commit 50e9d97616
5 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def routed_by(route: Route, anchor: Rung | None) -> str:
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.
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}`."
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."
def resumed(unfinished_evidence: str) -> str:
+6 -4
View File
@@ -43,15 +43,17 @@ for the worker and the interrupt; with both set, nothing is asked.
Where that model is on the routing ladder (bin/model_routing/ladder.py), the worker and the
interrupt run on one of the ladder's rungs: a model at an effort. As a chunk starts, the R + C of
todo.md's top item in the next release, skipping an item marked question, picks the rung. It
counts from the model's cheapest rung and never goes 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. The judge reports
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 model's cheapest, is dropped, and the chunk is routed afresh from todo.md. A todo.md 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
+1 -1
View File
@@ -540,7 +540,7 @@ class WorkerArgs(unittest.TestCase):
def test_keeps_reviewers_on_the_projects_rung_while_the_worker_runs_below_it(self):
opus = Rung("claude-opus-5-5", "medium")
below = prompts.fresh("Do it.", "## Goals", routing.Route(Rung("claude-sonnet-5-5", "high"), 3, 5), opus)
self.assertIn("whether or not it is item 3. Your rung is below the project's, claude-opus-5-5 at medium effort: launch each reviewer, each comprehension seat and the security pass's subagent with the Agent tool's model `opus` and effort `medium`.\n\n", below)
self.assertIn("whether or not it is item 3. Your rung is below the project's, claude-opus-5-5 at medium effort: launch each reviewer, each comprehension seat and the security pass's subagent with the Agent tool's model `opus` and effort `medium`, and run a full scan only from such a subagent, since the scan's agents run on the model that starts them.\n\n", below)
for route in (routing.Route(opus, 3, 9), routing.Route(Rung("claude-opus-5-5", "high"), 3, 11)):
self.assertNotIn("below the project's", prompts.fresh("Do it.", "## Goals", route, opus))