Answer stability round 1: 0 🔴, 5 🟡 (0 misread); order issues whose keys share a number, and test the goals that fail, a malformed held score and the scoring call's folder
CI / tests (pull_request) Successful in 5m10s

This commit is contained in:
Lilleman
2026-11-20 16:09:06 +01:00
parent abe7226baa
commit 27b6433f7d
6 changed files with 54 additions and 11 deletions
+2 -2
View File
@@ -160,8 +160,8 @@ def goals_named(epic_goals: str, repo: str | None, own: RepoRanking | None) -> s
return goals
names = ", ".join(f"`{goal}`" for goal, mark in goals if mark == "Achieve")
theirs = goals_section(own.goals_text) if own else ""
if isinstance(theirs, Failure):
return Failure(f"{repo}: {theirs.reason}")
# chain has read the same text's ## Goals above.
assert not isinstance(theirs, Failure), theirs
health = f"\n\n`{CODE_HEALTH}` is the goal that the code of {repo} stays easy to read, change safely and debug." if CODE_HEALTH in dict(goals) else ""
own_goals = f"\n\nThe goals of the repo {repo}, each named `{REPO_GOAL}<its number>`:\n\n{theirs.strip()}" if own else ""
return f"The epic's goals, each named `{EPIC_GOAL}<its number>`:\n\n{epic_goals.strip()}{health}{own_goals}\n\nAn item moves only these: {names or 'none, so leave the moves empty'}."