Answer stability round 1: 0 🔴, 4 🟡 (0 misread); name each template fault truly and pass the template to split
CI / tests (pull_request) Successful in 2m33s

This commit is contained in:
Lilleman
2026-11-20 10:46:19 +01:00
parent 3e8910f573
commit c39d23a1b3
5 changed files with 54 additions and 44 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ def is_split(item: EpicIssue, issues: list[EpicIssue]) -> bool:
return SPLIT_LABEL in item.labels or any(task.parent == item.key and not task.by_loop for task in issues)
def split(store: EpicStore, issue: EpicIssue, team: LabelRepos, by_person: bool, rule: str, language: str, checkouts: tuple[str, ...], rung: Rung, claude: Claude, cwd: str, summary_template: str | None = None) -> Split | Failure | Limited:
def split(store: EpicStore, issue: EpicIssue, team: LabelRepos, by_person: bool, rule: str, language: str, checkouts: tuple[str, ...], rung: Rung, claude: Claude, cwd: str, summary_template: str | None) -> Split | Failure | Limited:
"""Splits the epic's child issue into a sub-task per repo it changes, where that is more than one. by_person says a person filed the issue, and checkouts are the epic's repos that claude may read. An item that changes one repo or none is left as it is, for repo_pick, and one already split (is_split) is left alone.
A sub-task of the item already labelled for a repo counts as that repo's, so a run that failed after filing some sub-tasks leaves the next run to file only the lacking ones. The comment on a person's issue is posted once its sub-tasks are filed, just before the item is marked. A failure after the comment but before the mark posts it again on the next run."""
@@ -106,7 +106,7 @@ def sub_tasks_filed(keys: list[str]) -> str:
def task_summary(repo: str, summary: str, team: LabelRepos, template: str | None) -> str:
"""A sub-task's summary: the team's template (config.py) with `{label}` the team's label for the repo, else its name, and `{Summary}` the item's summary with a capital first letter. Without a template, `[<repo>] <the item's summary>`: three readers, seated as a client's team, picked that from four candidates, over `<repo>: …`, `… (<repo>)` and `… — <repo> part`, 3-0."""
"""A sub-task's summary from the team's template, where it has one. Without one, `[<repo>] <the item's summary>`: three readers, seated as a client's team, picked that from four candidates, over `<repo>: …`, `… (<repo>)` and `… — <repo> part`, 3-0."""
if template is None:
return f"[{repo}] {summary}"
return template.format(label=team_label(repo, team) or repo, Summary=summary[:1].upper() + summary[1:])