Answer stability round 1: 0 🔴, 6 🟡 (0 misread); test each failure path the review added, and return a Failure from prepare-scoring's reads
CI / tests (pull_request) Successful in 2m59s

This commit is contained in:
2026-11-13 03:40:18 +01:00
parent 45ecf0798e
commit ade48c57b5
7 changed files with 86 additions and 39 deletions
-6
View File
@@ -51,12 +51,6 @@ def ranked_goals(goals_text: str, decisions: str) -> list[tuple[str, Mark]] | Fa
return [(CODE_HEALTH, "Achieve"), *goals]
def numbered_goals(goals_text: str) -> list[tuple[str, Mark]] | Failure:
"""The goals file's goals in reading order: each one's number, a sub-goal as 4.1, and its mark, Maintain, Achieve or None."""
body = goals_section(goals_text)
return body if isinstance(body, Failure) else numbered(body)
def goals_section(goals_text: str) -> str | Failure:
body = section(goals_text, "Goals")
return Failure(f"the goals file {body.reason}") if isinstance(body, Failure) else body