Answer stability round 1: 0 🔴, 5 🟡; test blockers in score order, Next ID itself, every place text can sit beside the table, an empty table and the bar itself; require the table under ## Items and refuse a repeated column

This commit is contained in:
2026-10-15 23:20:08 +02:00
parent a0d4fc3d15
commit 1956fb45f4
3 changed files with 40 additions and 12 deletions
+2
View File
@@ -72,6 +72,8 @@ def items_table(lines: list[str]) -> Table | None | Failure:
table = table_rows(lines, headers[0])
if isinstance(table, Failure):
return table
if repeated := sorted({column for column in table.columns if table.columns.count(column) > 1}):
return Failure(f"todo.md's items table names the column {', '.join(repeated)} twice; keep one")
if missing := [column for column in NEEDED if column not in table.columns]:
return Failure(f"todo.md's items table has no {', '.join(missing)} column; rank_todo.py --help shows a valid one")
return table