Answer architecture round 1: 1 🔴, 10 🟡; move FLOOR into comprehension_history, renumber the counter-signal item 198, void code health on a comprehension-check opt-out, add code health to every goal check, fail record-scoring on a failed re-rank, reuse overall_cells, and ease Scoring, parse_item and parse_moves

This commit is contained in:
2026-10-18 20:04:36 +02:00
parent 9e6715e0bf
commit 8e0060be08
18 changed files with 115 additions and 77 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class Shape:
def parse_moves(id_: str, cell: str) -> Moves | Failure:
"""A Moves cell: empty, or each goal the item moves, named once, and how far."""
"""A Moves cell: empty, or each goal the item moves, named once, and how far. rank_todo.py's cited_goals_failure holds the rules that need README.md."""
matches = [re.fullmatch(rf"([0-9]+(?:\.[0-9]+)*|{CODE_HEALTH}) by ([0-9]+)", move) for move in cell.split(", ")] if cell else []
moves = tuple((match.group(1), int(match.group(2))) for match in matches if match)
if len(moves) < len(matches) or any(not 1 <= by <= TOP_SCORE for _, by in moves):