Rename loop-claude to build-release, with no alias
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Keeps each run of judge-replay and review-replay, and the report each prints, in loop-claude's archive: docs/decisions.md → `loop-claude: the archive keeps the raw transcript and each judge run, …`."""
|
||||
"""Keeps each run of judge-replay and review-replay, and the report each prints, in build-release's archive: docs/decisions.md → `build-release: the archive keeps the raw transcript and each judge run, …`."""
|
||||
import dataclasses
|
||||
import hashlib
|
||||
import json
|
||||
@@ -17,7 +17,7 @@ RESULT = "result.md"
|
||||
|
||||
|
||||
def replay_folder(root: pathlib.Path, tool: str, argv: list[str], now: float) -> pathlib.Path:
|
||||
"""The folder a replay of tool, run with argv at now, keeps its runs and its result in, under the archive at root. It holds no outcomes file, so no reader of loop-claude's archive takes it for a chunk's."""
|
||||
"""The folder a replay of tool, run with argv at now, keeps its runs and its result in, under the archive at root. It holds no outcomes file, so no reader of build-release's archive takes it for a chunk's."""
|
||||
name = "-".join([tool, *(arg.lstrip("-") for arg in argv), time.strftime("%Y%m%dT%H%M%SZ", time.gmtime(now))])
|
||||
return root / "replays" / re.sub(r"[^A-Za-z0-9._-]", "_", name)
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ 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 loop-claude's models file, under home, runs on model, sorted."""
|
||||
"""The keys of the projects build-release's models file, under home, runs on model, sorted."""
|
||||
models = read_models_file(paths_from(home).models_file)
|
||||
if isinstance(models, Failure):
|
||||
return models
|
||||
|
||||
@@ -122,7 +122,7 @@ def replayed_on(cases: list[Case], rung: Rung, replay_one: typing.Callable[[Case
|
||||
def first_reply(attempt: typing.Callable[[], T | Failure | Limited]) -> T | Failure | Limited:
|
||||
"""The first reply that is no Failure, or the last of FAILURES_RUNNING failures.
|
||||
|
||||
It counts failures as loop-claude's retried does, but neither waits between attempts nor waits out a usage limit, which ends a replay.
|
||||
It counts failures as build-release's retried does, but neither waits between attempts nor waits out a usage limit, which ends a replay.
|
||||
"""
|
||||
for _ in range(FAILURES_RUNNING - 1):
|
||||
if not isinstance(reply := attempt(), Failure):
|
||||
|
||||
Reference in New Issue
Block a user