Answer stability round 1: 0 🔴, 6 🟡 (0 misread); share the finish settings' checks with the project config, and test the finishing chunk's language, unread issues, cap, lock and backend

This commit is contained in:
2026-11-19 00:44:07 +01:00
parent 9b47b76f52
commit d99345fb8a
14 changed files with 106 additions and 29 deletions
+8 -4
View File
@@ -2,7 +2,7 @@
Once the epic holds issues and none is open, its finishing chunk runs, in a window named for the epic's key. It has no issue: `task` is its task, which follows the epic's state.
1. While a repo the epic changed lacks a release review, the chunk files one issue per such repo, labelled REVIEW_LABEL, and ends. Each runs as any issue's chunk does, and so do the issues it files.
1. While a repo the epic changed lacks a release review, the chunk files one issue per such repo, labelled REVIEW_LABEL, and ends. Each such issue runs as any issue's chunk does, and so does each issue its review files.
2. With each repo reviewed, the human confirms each goal. For a goal they don't confirm, the chunk files the set of items they approve, and ends.
3. With every goal confirmed, `do-epic <EPIC-KEY> --close-epic` posts the summary on the epic and closes it.
@@ -19,7 +19,7 @@ from text_files.markdown_text import listed
from text_files.piped_text import piped
from do_epic.repo_pick import recorded, Repo, REPO_PREFIX, REVIEW_LABEL
# Three readers, seated as the human, as a chunk's worker and as one of the client's team, picked it from four, 2-1 over `--close`, which reads as closing the run or one issue.
# Not `--close`, which reads as closing the run or one issue: three readers, seated as the human, as a chunk's worker and as one of the client's team, picked this one from four, 2-1 over it.
CLOSE = "--close-epic"
USAGE = f"do-epic <EPIC-KEY> {CLOSE} <<'EOF' summary EOF"
HELP = f"""Once every issue is done, the epic's finishing chunk runs, in a window named for the epic.
@@ -58,13 +58,13 @@ def task(epic: str, issues: list[EpicIssue], launcher: pathlib.Path, language: s
return (
f"{opening} Each repo the epic changed takes a release review first, and {listed(lacking, 'and')} {'has' if len(lacking) == 1 else 'have'} none. "
f"File one issue per such repo, with `{launcher} {epic} {findings.FILE} \"<summary>\" {findings.LABEL} {REPO_PREFIX}<name> {findings.LABEL} {REVIEW_LABEL}` and its detail on stdin, both in {language}, the epic's language. "
f"The detail asks for the release review of `~/.claude/skills/larv-review/SKILL.md` → \"Release review\" over the whole repo, as the epic's issues left it, with the epic's key in place of the release: its first commit is empty and titled `Release review of {epic}`. "
f"The detail asks for a release review of the whole repo, as the epic's issues left it: the one `~/.claude/skills/larv-review/SKILL.md` → \"Release review\" describes. The epic's key stands in place of the release there, so the review's branch opens with an empty commit titled `Release review of {epic}`. "
"Where filing fails and says the issue may exist, ask the human to look before you file it again. "
f"The chunk is finished once each issue is filed: {DRIVER} works them, and starts this chunk again once the epic holds no open issue."
)
return (
f"{opening} Each repo it changed has had its release review. Three steps remain, in this order.\n\n"
"1. Ask the human to confirm each goal under the description's ## Goals, one goal per question, each with the evidence of what shipped: that an achieve goal is achieved, and that no defect stands against a maintain goal. "
"1. Ask the human to confirm each goal under the description's ## Goals: that an achieve goal is achieved, and that no defect stands against a maintain goal. Ask one goal per question, each with the evidence of what shipped. "
"A goal is met only where the human confirms it: never take one as met from the evidence alone. Don't ask again about a goal a decision in the description records as confirmed.\n"
"2. For a goal the human doesn't confirm, propose a set of items that would meet it, and ask the human to approve the set. File each item they approve. "
f"Then the chunk is finished: {DRIVER} works the items, and starts this chunk again once the epic holds no open issue.\n"
@@ -77,9 +77,13 @@ def task(epic: str, issues: list[EpicIssue], launcher: pathlib.Path, language: s
def closed(epic: str, store: EpicStore, stdin: typing.TextIO) -> str | Failure:
"""Posts the summary piped in on the epic with the key epic and closes it, and answers the line to print; a Failure, with nothing posted, while the epic isn't ready to close."""
# Whether the human confirmed each goal isn't checked here: a decision that records it is the worker's own text, so only the task and the judge, who reads the human's answers, can hold the worker to it.
issues = store.read()
if isinstance(issues, Failure):
return Failure(f"cannot close the epic {epic}: {issues.reason}")
already = store.closed()
if already:
return Failure(f"cannot close the epic {epic}: {already.reason if isinstance(already, Failure) else 'it is closed already, so its summary is posted'}")
if waiting := still_open(issues):
return Failure(f"cannot close the epic {epic}: {listed(waiting, 'and')} {'is' if len(waiting) == 1 else 'are'} open")
if lacking := unreviewed(issues):