Answer architecture round 1: 1 🔴, 12 🟡 (0 misread); route every verdict through next_route with one step-up writer, give a release one home in release.py and rename chunk_pick to release_standing, split loop/main.py, delete the unreachable lowered-pass code, render agent-followed Markdown from one list, refuse a round title naming no pass, and rename the clashing names
This commit is contained in:
@@ -6,8 +6,8 @@ import typing
|
||||
from failure import Failure
|
||||
from model_routing.ladder import LADDER, position, Rung
|
||||
from claude_code.reply import Limited
|
||||
from loop_claude.paths import paths_from
|
||||
from loop_claude.project.model_choice import read_models_file
|
||||
from loop_claude.stop import Stop
|
||||
|
||||
# What a tool reads from its arguments, such as the project's rung of the model they name.
|
||||
Parsed = typing.TypeVar("Parsed")
|
||||
@@ -25,10 +25,10 @@ def arguments_or_exit(tool: str, argv: list[str], help_text: str, usage: str, re
|
||||
|
||||
|
||||
def projects_on(model: str, home: pathlib.Path) -> list[str] | Failure:
|
||||
"""The keys of the projects ~/.claude/loop-claude-models.json runs on model, sorted."""
|
||||
models = read_models_file(home / ".claude" / "loop-claude-models.json")
|
||||
if isinstance(models, Stop):
|
||||
return Failure(models.reason)
|
||||
"""The keys of the projects loop-claude's models file, under home, runs on model, sorted."""
|
||||
models = read_models_file(paths_from(home).models_file)
|
||||
if isinstance(models, Failure):
|
||||
return models
|
||||
return sorted(key for key, on in models.items() if on == model)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user