File a finding and record a decision in a do-epic epic, and give the judge the epic's records beside the repo's
CI / tests (pull_request) Failing after 4m22s

This commit is contained in:
2026-11-18 23:13:43 +01:00
parent 36dbddfa0b
commit d0ecdd6359
19 changed files with 334 additions and 47 deletions
+13
View File
@@ -110,6 +110,19 @@ class EpicRecord:
"""Writes body as the ## name section. approved says the human approved the change in an interrupt, which Goals and Audience need."""
return self.written(lambda text: with_section(text, name, body), frozenset({name}) if approved else frozenset())
def append_decision(self, title: str, entry: str) -> Held | Failure:
"""Adds entry under a ### title heading at the end of ## Decisions, leaving the decisions before it as they are."""
if not title.strip() or "\n" in title:
return Failure("the title must be one line of text")
if not entry.strip():
return Failure("pipe the decision's text in")
def appended(text: str) -> str | Failure:
before = read_section(text, "Decisions")
return before if isinstance(before, Failure) else with_section(text, "Decisions", f"{before}\n\n### {title.strip()}\n\n{entry.strip()}".strip())
return self.written(appended, frozenset())
def write_language(self, language: str) -> Held | Failure:
return self.written(lambda text: with_language(text, language), frozenset())