Rename loop-claude to build-release, with no alias

This commit is contained in:
2026-12-03 15:22:11 +01:00
parent 38102d5aa5
commit 969190064e
139 changed files with 717 additions and 671 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ def run_claude(args: list[str], cwd: str, prompt: str) -> subprocess.CompletedPr
def project_rung(home: pathlib.Path, git: Git) -> Rung | Failure:
"""The cheapest rung for the model loop-claude runs the project on. The routing ladder is that of the project the process runs in."""
"""The cheapest rung for the model build-release runs the project on. The routing ladder is that of the project the process runs in."""
common = git("rev-parse", "--path-format=absolute", "--git-common-dir")
if isinstance(common, Failure):
return common
@@ -73,7 +73,7 @@ def project_rung(home: pathlib.Path, git: Git) -> Rung | Failure:
if isinstance(models, Failure):
return models
if key not in models:
return Failure(f"{saved} names no model for {key}: run loop-claude in the project once, which asks for it.")
return Failure(f"{saved} names no model for {key}: run build-release in the project once, which asks for it.")
ladder = project_ladder(None, home)
if isinstance(ladder, Failure):
return ladder
+1 -1
View File
@@ -99,7 +99,7 @@ class GatherTest(unittest.TestCase):
self.assertEqual(gather(self.env, self.home, self.claude)[0], "The gathering claude didn't say anything.")
def test_refuses_where_the_project_has_no_model_on_its_ladder(self):
for saved, said in (({}, f"{self.models} names no model for calc: run loop-claude in the project once, which asks for it."), ({"calc": "claude-haiku-5-5"}, "calc runs on claude-haiku-5-5, which is not on its routing ladder.")):
for saved, said in (({}, f"{self.models} names no model for calc: run build-release in the project once, which asks for it."), ({"calc": "claude-haiku-5-5"}, "calc runs on claude-haiku-5-5, which is not on its routing ladder.")):
self.models.write_text(json.dumps(saved))
found = gather(self.env, self.home, self.claude)
self.assertEqual((found.reason if isinstance(found, Failure) else found, self.calls), (said, []))
+2 -2
View File
@@ -163,7 +163,7 @@ features the heading reads `task-bench features of <branch>: ...` instead, for o
of <branch>: ...`, and for one of shipped features `task-bench shipped-features of <branch>: ...`. No tool reads the entry as a ruling or a scoring run. The bench's last line says where the entry went. A bench that fails or stops doesn't record anything.
`task-bench gather`, run in the same checkout, turns the digest into plan items. It starts a claude on the project's rung, the
cheapest rung of the model loop-claude runs the project on, with the digest and the prompt in bin/task_bench/figures/gather-prompt.md.
cheapest rung of the model build-release runs the project on, with the digest and the prompt in bin/task_bench/figures/gather-prompt.md.
That claude files an item with `todo-item add` for each place the runs show to be hard, and leaves the plan's file uncommitted.
gather prints that claude's answer and removes the bench's folder. Where claude fails, the folder stays, for another try.
@@ -184,7 +184,7 @@ Where the API refuses a run, the bench stops there and exits 1 too, after the ta
With --record-figures it also exits 1, saying why: before it plants a bug, where no config names the checkout or the history
cannot be read; and after the bench, where the history already holds that branch's bench of those two commits or cannot be
written. The folder then still holds the bench's results.
gather exits 1, saying why, outside a checkout, without a digest, where loop-claude has saved no model for the project or the
gather exits 1, saying why, outside a checkout, without a digest, where build-release has saved no model for the project or the
model is not on its routing ladder, and where its claude fails or hits a usage limit.
"""
import dataclasses