Answer prose round 1: 0 🔴, 9 🟡 (0 misread); reword split.py's docstrings, prompt and failure messages, and test the repeated comment
CI / tests (pull_request) Failing after 2m56s

This commit is contained in:
2026-11-18 17:33:46 +01:00
parent 2241ec9b37
commit 2d76216a00
5 changed files with 52 additions and 33 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ from failure import Failure
@dataclasses.dataclass
class MemoryEpic:
"""An epic whose issues rank in the order filed. Where fails is set, every read and filing fails with it as the reason. comments holds each issue's comments, by key."""
"""An epic whose issues rank in the order filed. Where fails is set, every read, filing, label and comment fails with it as the reason. comments holds each issue's comments, by key."""
epic_key: str
issues: list[EpicIssue] = dataclasses.field(default_factory=list)
comments: dict[str, list[str]] = dataclasses.field(default_factory=dict)
+2 -2
View File
@@ -47,7 +47,7 @@ class EpicStore(typing.Protocol):
"""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."""
def comment(self, key: str, text: str) -> None | Failure:
"""Posts text, markdown, as a comment on the epic's child issue named key, for the people who work the epic to read. A sub-task, an issue outside the epic, or a text without words is refused."""
"""Posts text, markdown, as a comment on the epic's child issue named key, for the people who work the epic to read. A sub-task, an issue outside the epic, or an empty or blank text is refused."""
def unfit(summary: str, labels: tuple[str, ...]) -> Failure | None:
@@ -70,7 +70,7 @@ def no_parent(epic_key: str, parent: str) -> Failure:
def no_child(epic_key: str, key: str, done_to_it: str) -> Failure:
"""What every backend says when asked to change key, which is not one of the epic's child issues; done_to_it is the past tense of what was asked, such as "labelled"."""
"""What every backend says when asked to change key, which is not one of the epic's child issues; done_to_it is the past participle of what was asked, such as "labelled"."""
return Failure(f"{key} is not one of the child issues of the epic {epic_key}, so it cannot be {done_to_it}")