Answer stability round 1: 0 🔴, 2 🟡 (0 misread); state the warning as a fact and key the rule on the fact line

This commit is contained in:
2026-11-27 21:24:47 +01:00
parent f89bdd9938
commit 00bf996149
8 changed files with 30 additions and 24 deletions
+3 -2
View File
@@ -15,7 +15,7 @@ import rank_todo
from todo_item.doubles import READABLE_TOUCHES, UNREADABLE_BULLETS
# What --check says of plan.doubles' TODO, none of whose items of the next release, 0.1.0, holds a list. The order is the ranked table's.
UNPREDICTED = "items 4, 3, 2 and 5 of release 0.1.0 have no `Touches:` list; write each as `~/.claude/rules/todo-items.md` says"
UNPREDICTED = "items 4, 3, 2 and 5 of release 0.1.0 have no `Touches:` list"
class Main(unittest.TestCase):
@@ -160,7 +160,8 @@ class Main(unittest.TestCase):
pathlib.Path(temp, "docs").mkdir()
pathlib.Path(temp, "docs", "decisions.md").write_text(DECISIONS)
self.assertEqual(self.run_main(str(todo)), (0, f"{todo}: {ranking.RESHAPE}\n"))
self.assertEqual(self.run_main("--check", str(todo))[0], 0)
# The old shape holds the items TODO does, so the check warns of the same ones, in the order ranking gives them.
self.assertEqual(self.run_main("--check", str(todo)), (0, f"{todo}: warning: {UNPREDICTED}\n"))
def test_shows_a_valid_file_in_help_and_names_arguments_it_cannot_read(self):
self.assertEqual(self.run_main("--help")[0], 0)