Answer stability round 1: 1 🔴, 6 🟡 (2 misread); read the scoring rule from the clone, hand windows XDG_DATA_HOME, retry the home check where nobody watches, tell an unreadable sign-in status and settings file apart, and bound the claude commands that build the home
CI / tests (pull_request) Successful in 4m35s

This commit is contained in:
2026-12-04 02:45:02 +01:00
parent 71865e0479
commit 3519922f01
19 changed files with 153 additions and 69 deletions
+4 -1
View File
@@ -27,6 +27,7 @@ from build_epic.backend.protocol import EpicIssue, EpicStore
from build_epic.epic_record import EpicRecord
from failure import Failure
from agent_cycle.verdicts import Finished, TakenIn
from agent_cycle.retry import home_unready
from atlassian.jira import ISSUE_KEY
from build_epic.backend.jira import JiraEpic
from claude_code.reply import Limited
@@ -51,6 +52,8 @@ HELP = f"""usage: build-epic <EPIC-KEY> [--status | --dry-run]
{finish.USAGE}
Runs the chunks of one Jira epic, such as ABC-12, each in its own window of the tmux session epic-<EPIC-KEY>.
It runs every claude in the loop's Claude home, ~/.local/share/build-release/claude-home, which it builds first, under --dry-run too.
Until someone has signed in there, it stops and prints the command to sign in with. README.md → Install says what the home holds.
Before it starts chunks, build-epic <EPIC-KEY> plans each open issue that has none of these labels:
`repo:<name>` for its repo, `build-epic-claude` for work of Claude's that changes no repo, `build-epic-human` for a task of yours.
A label that `[label-repos]` in config.toml maps to a repo counts as that repo's.
@@ -123,7 +126,7 @@ def run(argv: list[str], env: typing.Mapping[str, str], paths: Paths, launcher:
if writes or closes:
return epic_written(words[0], writes, paths, env, backend, stdin)
# Before anything starts: a clone, a claude session or a tmux window. One stop names everything that is the person's to do. A dry run opens no window, but its planning runs claude.
if needs := [reason for reason in (None if dry_run_asked else tmux.unusable(effects.tmux, chunk_prompt.DRIVER), effects.claude_home()) if reason]:
if needs := [reason for reason in (None if dry_run_asked else tmux.unusable(effects.tmux, chunk_prompt.DRIVER), home_unready(effects, watched=chunk is None)) if reason]:
return Stop(1, "\n".join(needs))
config = load(paths.home, env)
if isinstance(config, Failure):