Answer stability round 3: 0 🔴, 1 🟡; test that security outranks a higher-scoring defect

This commit is contained in:
2026-10-16 03:29:41 +02:00
parent c2697c6281
commit eee8d534a5
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ def parse_moves(id_: str, cell: str) -> Moves | Failure:
if repeated := [goal for goal in goals if goals.count(goal) > 1]:
return Failure(f"item {id_} cites goal {repeated[0]} twice; name each goal once")
if nested := [(parent, goal) for parent in goals for goal in goals if goal.startswith(parent + ".")]:
return Failure(f"item {id_} names goal {nested[0][0]} beside its sub-goal {nested[0][1]}; name only the most specific goal an item moves, and a parent only for a move none of its sub-goals covers")
return Failure(f"item {id_} names goal {nested[0][0]} and its sub-goal {nested[0][1]}; name one, never both: the sub-goal where the move serves it, else the parent")
return moves