Answer product-owner round 1: 0 🔴, 3 🟡 (0 misread); name the issue to block by in the worker's prompt, and link the issue as Jira creates it

This commit is contained in:
Lilleman
2026-11-19 16:06:42 +01:00
parent b2630b8148
commit 5d9d880f44
8 changed files with 33 additions and 36 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ class EpicStore(typing.Protocol):
"""Each child issue, open or done, in the tracker's rank order, each followed by its sub-tasks in theirs."""
def file(self, parent: str, summary: str, detail: str, labels: tuple[str, ...], blocked_by: str | None = None) -> str | Failure:
"""Files an open issue under parent, marked as filed by the loop, and answers its key: a child issue where parent is the epic, a sub-task where parent is one of its child issues. detail is markdown, and may be empty. Where blocked_by names an issue, a child issue of the epic or a sub-task of one, the new issue is blocked by it; any other issue is refused before anything is filed. Where the issue is filed and cannot be linked, the Failure names its key."""
"""Files an open issue under parent, marked as filed by the loop, and answers its key: a child issue where parent is the epic, a sub-task where parent is one of its child issues. detail is markdown, and may be empty. Where blocked_by names an issue, a child issue of the epic or a sub-task of one, the new issue is blocked by it; any other issue is refused before anything is filed."""
def add_label(self, key: str, label: str) -> None | Failure:
"""Adds label to the epic's child issue named key, leaving its other labels as they are; adding one it already has leaves the labels as they are. A sub-task, or an issue outside the epic, is refused."""
@@ -95,7 +95,7 @@ def no_parent(epic_key: str, parent: str) -> Failure:
def no_blocker(epic_key: str, blocker: str) -> Failure:
"""What every backend says when asked to file an issue blocked by blocker, which is neither a child issue of the epic nor a sub-task of one."""
return Failure(f"{blocker} is neither a child issue of the epic {epic_key} nor a sub-task of one, so nothing can be filed blocked by it")
return Failure(f"{blocker} is neither a child issue of the epic {epic_key} nor a sub-task of one, so it cannot block a new issue")
def no_child(epic_key: str, key: str, done_to_it: str) -> Failure: