Answer prose round 1: 0 🔴, 6 🟡; record the rename rule in the decision log, cut false and duplicate clauses, rewrite the help and rules bullets, file the sweep as item 190

This commit is contained in:
2026-10-18 09:56:53 +02:00
parent eae4ee9fb1
commit 63392cea66
11 changed files with 26 additions and 20 deletions
+4 -3
View File
@@ -23,8 +23,9 @@ HEADER_START = "| ID | Release |"
Standing = typing.Literal["next", "cut", "finished", "unplanned", "unknown"]
# todo.md's ## Details section, its body the first group.
DETAILS = re.compile(r"^## Details\n(.*?)(?=^## |\Z)", re.M | re.S)
# One line of todo.md's ## Renamed section, the release it renamed and the one it became.
# A release's version, such as 0.2.1.
RELEASE = r"[0-9]+\.[0-9]+\.[0-9]+"
# One line of todo.md's ## Renamed section: the release it renamed and the one it became.
RENAME = re.compile(rf"- ({RELEASE}) renamed to ({RELEASE})")
# Each goal an item names, in its order, with how far the item moves it; None in OLD_SHAPE, whose Goals cell names no move.
Moves = tuple[tuple[str, int | None], ...]
@@ -206,7 +207,7 @@ def landed(cut: LastCut) -> int | Failure:
def named_releases(todos: list[str] | Failure) -> set[tuple[int, int, int]] | Failure:
"""Each release the todo.md texts, oldest first, file items under, leaving out one that a later text marks renamed, unless a text after that files items under it again. A text whose items do not parse names none; the newest text's marks failing to parse fails the whole, since a release left unmarked would read as finished."""
"""Each release the todo.md texts, oldest first, file items under. A release leaves the set when a text marks it renamed, and returns when a later text files items under it again. A text whose items or marks do not parse names none, except the newest: its marks failing to parse fails the whole, since the release they should have excluded would read as finished."""
if isinstance(todos, Failure):
return todos
if todos and isinstance(newest := renames(todos[-1]), Failure):
@@ -220,7 +221,7 @@ def named_releases(todos: list[str] | Failure) -> set[tuple[int, int, int]] | Fa
def renames(todo: str) -> set[tuple[int, int, int]] | Failure:
"""Each release todo.md's ## Renamed section says was renamed, as `- 0.2.1 renamed to 0.3.0`, so never finished; the new release is for the reader. Without such a line, a release whose items all moved to other releases reads as finished or deferred, and the human cuts it, so a forgotten mark costs one interrupt, never a silent skip. A panel of three readers seated as lilleman picked the spelling 3-0 over `- 0.2.1 → 0.3.0` and a `Renamed 0.2.1 = 0.3.0` line under ## Scoring."""
"""Each release todo.md's ## Renamed section says was renamed, as `- 0.2.1 renamed to 0.3.0`, so never finished; the tools read only the old release. `docs/decisions.md` → `todo.md: one table …` gives the rule and the spelling's pick."""
marked: set[tuple[int, int, int]] = set()
for body in sections(todo).get("Renamed", []):
for line in body.splitlines():