Answer prose round 1: 0 🔴, 11 🟡; reword the preflight's help and its next-release bullet, give loop-claude's help a preflight paragraph and a plainer routing sentence, put the changelog entry's action first, correct two false claims in CLAUDE.md and a docstring, ease five comments and the unknown line, and file item 176 to split loop-claude's help

This commit is contained in:
2026-10-17 02:59:13 +02:00
parent 33f9960c1e
commit f566d1ccd5
10 changed files with 57 additions and 49 deletions
+5 -5
View File
@@ -23,7 +23,7 @@ class Ran:
@dataclasses.dataclass(frozen=True)
class Plan:
"""The default branch's todo.md items, and first, the item the next chunk takes first."""
"""The default branch's todo.md items, and `first`: the item the next chunk takes first."""
items: list[Item]
first: Item
# first's tagline and detail.
@@ -82,7 +82,7 @@ class Gathered:
def planned(todo: str | Failure, cut: LastCut, default: str) -> Plan | NoItem:
"""The plan in todo, the default branch's todo.md, with the item the next chunk takes first, todo_table.chunk_item's pick, which routing makes too; else why there is none."""
"""The plan in todo, the default branch's todo.md, with the item the next chunk takes first, todo_table.chunk_item's pick; else why there is none."""
where = f"{default}'s todo.md"
if isinstance(todo, Failure):
return NoItem(f"{where} cannot be read: {todo.reason}.")
@@ -94,14 +94,14 @@ def planned(todo: str | Failure, cut: LastCut, default: str) -> Plan | NoItem:
earliest = min((item.release for item in found), default=None)
stands, first = chunk_item(found, cut)
if earliest is not None and stands == "cut":
return NoItem(f"{where} files items under release {version(earliest)}, which is not after the last cut, {cut.tag}.")
return NoItem(f"{where} files items under release {version(earliest)}, which is not after the last cut, {cut.tag}; ask the human which release they belong to.")
gap = f"{where} holds no item for the next release after the last cut, {cut.tag}, and"
if stands == "finished":
return NoItem(f"{gap} work has landed since, so that release is finished and ready to cut, and the working loop stops here.")
if stands == "unplanned":
return NoItem(f"{gap} no work has landed since, so that release is to be planned first.")
if stands == "unknown":
return NoItem(f"{where} may hold no item for the next release after the last cut, {cut.tag}: what todo.md named, or the work landed, since then cannot be read. Find the next release yourself.")
return NoItem(f"{where} may hold no item for the next release after the last cut, {cut.tag}: todo.md's texts since then, or the count of work landed since then, cannot be read. Find the next release yourself.")
if first is None:
return NoItem(f"every item of release {version(earliest)} in {where} waits." if earliest is not None else f"{where}'s items table holds no item.")
details = item_details(todo)
@@ -137,7 +137,7 @@ def forge_of(origin_url: str) -> Forge:
def pulls_command(forge: Forge, branch: str) -> list[str]:
"""The command that lists open pull requests, by number, head and URL. gh lists only branch's; tea lists every one, for facts.open_pulls to pick branch's."""
"""The command that lists open pull requests: gh only branch's, by number and URL; tea every one, by index, head and URL, for facts.open_pulls to pick branch's."""
if forge == "gh":
return [*PULLS_LIST["gh"], "--head", branch, "--json", "number,url", "--template", "{{range .}}{{.number}}\t{{.url}}\n{{end}}"]
return [*PULLS_LIST["tea"], "--fields", "index,head,url", "--output", "tsv"]