Rename loop-claude to build-release, with no alias
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Which of an epic's issues run as chunks now, each in its own window of the epic's tmux session (docs/decisions.md → `do-epic: drives one Jira epic …`).
|
||||
|
||||
Three limits hold a chunk back: the epic's cap of chunks at once, its repo's `parallel-chunks`, counted across every epic, and a loop-claude that runs chunks in its repo. A parked chunk (`parked`) counts toward none of them: its window only polls the forge, and `resume` gives it a running slot under the same limits once its worker has something to do. do-epic checks a repo and starts a chunk in it while holding the lock loop-claude holds when it starts one (`chunk_driver.claims.starting`), so the two never start chunks in one checkout together."""
|
||||
Three limits hold a chunk back: the epic's cap of chunks at once, its repo's `parallel-chunks`, counted across every epic, and a build-release that runs chunks in its repo. A parked chunk (`parked`) counts toward none of them: its window only polls the forge, and `resume` gives it a running slot under the same limits once its worker has something to do. do-epic checks a repo and starts a chunk in it while holding the lock build-release holds when it starts one (`chunk_driver.claims.starting`), so the two never start chunks in one checkout together."""
|
||||
import dataclasses
|
||||
import pathlib
|
||||
import typing
|
||||
@@ -57,8 +57,8 @@ class RepoRoom:
|
||||
limit: int
|
||||
# How many chunks of any epic run there.
|
||||
running: int
|
||||
# Whether a loop-claude runs chunks there.
|
||||
loop_claude: bool
|
||||
# Whether a build-release runs chunks there.
|
||||
build_release: bool
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
@@ -163,8 +163,8 @@ def turn_of(issue: EpicIssue, pick: Pick | None | Failure, blocking: list[str],
|
||||
|
||||
def refusal(repo: str, room: RepoRoom) -> str | None:
|
||||
"""Why the repo takes no further chunk; None where it takes one."""
|
||||
if room.loop_claude:
|
||||
return f"loop-claude runs chunks in {repo}"
|
||||
if room.build_release:
|
||||
return f"build-release runs chunks in {repo}"
|
||||
if room.running >= room.limit:
|
||||
return f"{repo} runs as many chunks as its `{PARALLEL_CHUNKS}` allows: {room.limit}"
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user