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
+5 -3
View File
@@ -7,7 +7,7 @@ from plan_store.plans import cells, Plan, Written
from failure import Failure
from plan.todo_table import item_details, items, NoItemsTable, renames
from plan_store import markdown_edits
from plan.touches import predicted, unpredicted
from plan.touches import predicted, unpredicted, without_a_list
from plan import ranking
from record_store.stores import RecordStore
from text_files.file_writes import replace_file
@@ -96,12 +96,14 @@ class FilePlan:
return unranked + [f"{self.path}: {line}" for line in ranked.under_bar + unreadable_touches(texts[0])]
def warnings(self) -> list[str]:
"""What `rank_todo.py --check` says of the file without failing on it: which items of its earliest release hold no `Touches:` list."""
"""What `rank_todo.py --check` says of the file without failing on it: which items of its earliest release hold no `Touches:` list.
The line states that and tells the reader to do nothing: `chunk-preflight` quotes it into every chunk's facts, and only the fact of `chunk_preflight.facts.unpredicted_lines` has a subagent write the lists."""
plan = self.read()
if isinstance(plan, Failure):
return []
earliest = sorted({item.release for item in plan.items})[:1]
return [f"{self.path}: warning: {missing}; write each as `~/.claude/rules/todo-items.md` says" for release in earliest if (missing := unpredicted(plan.items, release))]
return [f"{self.path}: warning: {without_a_list(missing, release)}" for release in earliest if (missing := unpredicted(plan.items, release))]
def reported(self, ranked: ranking.Ranked) -> list[str]:
"""Ranking's notes and under-bar lines, each prefixed with the file's path, as a tool prints them on stderr."""