Answer stability round 3: 0 🔴, 1 🟡; test that security outranks a higher-scoring defect
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user