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
CI / tests (pull_request) Successful in 2m59s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user