Answer prose round 1: 0 🔴, 6 🟡 (0 misread); the comments, the presentation and the routing decision state the new steps
CI / tests (pull_request) Failing after 3m51s
CI / tests (pull_request) Failing after 3m51s
This commit is contained in:
@@ -43,7 +43,7 @@ class Cycle:
|
||||
# The rung routing.judge_rung picks for the project's judge model.
|
||||
judge: Rung
|
||||
premises: str
|
||||
# The project's rung on the ladder model_routing/ladder_file.py read as the cycle started; None for a model off the ladder.
|
||||
# The project's rung on the ladder that model_routing/ladder_file.py read as the cycle started; None for a model off the ladder.
|
||||
project: ProjectRung | None
|
||||
project_archive: pathlib.Path
|
||||
records: str
|
||||
|
||||
@@ -9,7 +9,7 @@ The worker, and the session /talk opens, run on a Route (model_routing/route.py)
|
||||
|
||||
A step-up weighs five rungs:
|
||||
|
||||
- the project's rung, a ProjectRung (model_routing/ladder.py) that also holds the ladder: the cheapest rung of the project's model, which each L's rung is counted from, up or down;
|
||||
- the project's rung: the cheapest rung of the project's model, which each L's rung is counted from, up or down;
|
||||
- item_rung: the rung the chunk started on, which the routed item's L picked;
|
||||
- the route's rung: where the worker runs now, at or above item_rung;
|
||||
- floor_rung: the lowest rung the worker may run on next, which is the route's rung, raised where an item the worker took in has an L that picks a higher one;
|
||||
|
||||
@@ -150,7 +150,7 @@ if os.path.basename(sys.argv[0]) == "loop-claude":
|
||||
"""
|
||||
|
||||
PREMISES = "# Project\n\n## Goals\n\n1. Work.\n\n## Audience\n\nMe.\n"
|
||||
# Item 4's L of 4 steps one rung up from the project's.
|
||||
# Item 4's L of 4 steps two rungs up from the project's.
|
||||
TODO = "## Items\n\n| ID | Release | Exempt | Item | L | E | I | R | S | Moves | Score |\n|---|---|---|---|---|---|---|---|---|---|---|\n| 4 | 0.1.0 | | **Do it.** | 4 | 2 | 3 | 7 | 2 | 1 by 9 | 25 |\n"
|
||||
# Item 4's L of 2 steps one rung down.
|
||||
CHEAP = TODO.replace("| 4 | 2 | 3 | 7 |", "| 2 | 1 | 2 | 3 |")
|
||||
|
||||
@@ -60,7 +60,7 @@ class Ladder:
|
||||
return Rung(family.model, effort) if effort else family
|
||||
|
||||
def project_rung(self, model: str) -> "ProjectRung | None":
|
||||
"""The model's cheapest rung, which for Opus 5.5 is its default effort, on this ladder; None for a model off the ladder."""
|
||||
"""The model's cheapest rung on this ladder, which for Opus 5.5 is its default effort; None for a model off the ladder."""
|
||||
rung = next((rung for rung in self.rungs if rung.model == model), None)
|
||||
return ProjectRung(self, rung) if rung else None
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ def hands_rungs(environ: typing.Mapping[str, str]) -> bool:
|
||||
|
||||
|
||||
def handed(environ: typing.Mapping[str, str], ladder: Ladder) -> tuple[ProjectRung | None, Rung | None, int]:
|
||||
"""The project's rung, on ladder, and the worker's rung, each None when unset or not on ladder, and the reviews' E + I, 0 when unset or not a whole number. ladder is the project's. An older loop-claude hands no E + I, and 0 steps no review up."""
|
||||
"""The project's rung and the worker's rung, each None when unset or not on ladder, and the reviews' E + I, 0 when unset or not a whole number. ladder is the project's. An older loop-claude hands no E + I, and 0 steps no review up."""
|
||||
escape_and_impact = environ.get(ESCAPE_AND_IMPACT, "")
|
||||
project = on_the_ladder(environ.get(PROJECT_RUNG), ladder)
|
||||
return ProjectRung(ladder, project) if project else None, on_the_ladder(environ.get(WORKER_RUNG), ladder), int(escape_and_impact) if escape_and_impact.isdecimal() else 0
|
||||
|
||||
@@ -36,7 +36,7 @@ class SubagentRung(unittest.TestCase):
|
||||
def test_picks_the_rung_on_the_ladder_of_the_project_it_runs_in(self):
|
||||
checkout = self.project('[{"model": "claude-fable-5-2", "effort": "low"}, {"model": "claude-fable-5-2", "effort": "max"}]')
|
||||
(checkout / "nested").mkdir()
|
||||
# On the shipped ladder an L of 1 steps Fable 5.2 down to Opus 5.5, and an L of 4 up to its medium effort.
|
||||
# On the shipped ladder an L of 1 steps Fable 5.2 down to Opus 5.5, and an L of 4 up to Opus 5.5 at xhigh.
|
||||
self.assertEqual([self.run_tool("claude-fable-5-2", level, cwd=checkout / "nested").stdout for level in ("1", "4")], ["model fable, effort low\n", "model fable, effort max\n"])
|
||||
off = self.run_tool("claude-opus-5-5", "3", cwd=checkout)
|
||||
own = self.home / ".claude-projects" / "acme" / "routing-ladder.json"
|
||||
|
||||
Reference in New Issue
Block a user