From 508c82de666c8b11b991b5c892e94558ebde7764 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 18 Nov 2026 19:34:20 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20record=20wh?= =?UTF-8?q?y=20one=20repo=20stays=20unsplit,=20and=20fix=20the=20docstring?= =?UTF-8?q?=20on=20when=20the=20comment=20is=20posted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/do_epic/split.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/do_epic/split.py b/bin/do_epic/split.py index c0a22a85..210b640a 100644 --- a/bin/do_epic/split.py +++ b/bin/do_epic/split.py @@ -1,6 +1,6 @@ """Splits an epic item that changes several repos into one sub-task per repo (docs/decisions.md → `do-epic: drives one Jira epic …`). -A headless claude call with a JSON schema, as repo_pick makes, predicts from the code which repos the item changes and what changes in each. Where that is more than one repo, `split` files a sub-task under the item for each, labelled for its repo as repo_pick labels an item, and then labels the item SPLIT_LABEL. The item stays the issue that tracks the whole change: `finished` says it is done once every sub-task is. An item a person filed, as against one do-epic filed, gets a comment for the team first, in the epic's language.""" +A headless claude call with a JSON schema, as repo_pick makes, predicts from the code which repos the item changes and what changes in each. Where that is more than one repo, `split` files a sub-task under the item for each, labelled for its repo as repo_pick labels an item, and then labels the item SPLIT_LABEL. The item stays the issue that tracks the whole change: `finished` says it is done once every sub-task is. An item a person filed, as against one do-epic filed, gets a comment for the team, in the epic's language, once its sub-tasks are filed.""" import dataclasses import json @@ -74,6 +74,7 @@ def split(store: EpicStore, issue: EpicIssue, by_person: bool, rule: str, langua have = {pick.name for task in read if task.parent == issue.key for label in task.labels if isinstance(pick := of_label(label), Repo)} repos = tuple(dict.fromkeys([*sorted(have), *(part.repo for part in predicted.parts)])) if len(repos) < 2: + # Left as it is even where an earlier, failed run filed one sub-task and this prediction names only that repo: marking the item split would make a person's own sub-task for one repo turn their ordinary issue into a tracking parent. The stray sub-task is labelled for its repo and harmless. return Split((), ()) if by_person and not predicted.comment: return Failure("the repo split gave no comment for the team on a person's issue")