diff --git a/bin/chunk_preflight/main.py b/bin/chunk_preflight/main.py index 0088f6f6..98019f94 100644 --- a/bin/chunk_preflight/main.py +++ b/bin/chunk_preflight/main.py @@ -13,8 +13,9 @@ holds it, the plan loop-claude routes on. It prints: - the next release and its first item that does not wait, the item loop-claude routes on, with its L and E + I. An item waits while it is marked question, or while an item still in todo.md blocks it. Where the newest tag names a version x.y.z, the next release is the earliest after - x.y.z that todo.md has named at that tag or since, less a release renamed since: one whose items - all moved to other releases with none leaving todo.md. Otherwise it is todo.md's earliest release. + x.y.z that todo.md has named at that tag or since, less a release renamed since: one whose last + items all moved to other releases in one change, none leaving todo.md in that change. Otherwise it + is todo.md's earliest release. Where the next release holds no item, it says so: finished and ready to cut where work landed since the tag (the ## Unreleased entries, or else the commits), and else to be planned first. Where todo.md's earliest release is x.y.z or earlier, it says todo.md files items under a release diff --git a/todo.md b/todo.md index bd97832f..f097ee5b 100644 --- a/todo.md +++ b/todo.md @@ -233,7 +233,8 @@ Item 161 put `chunk-preflight`'s facts into a fresh worker's prompt, so the work Raised by PR #302's paired ruling, where two of four seats read the project as worse at these places. Item 161 put the pick in `bin/todo_table.py` (`Standing`, `LastCut`, `unreleased_entries`, `landed`, `named_releases`, `standing`, `chunk_item`) and its reader in `bin/git_repo.py` (`DefaultPlan`, `default_plan`, `todos_since`), so the git module now imports the plan model and the table parser decides how a release stands. Make each of those places easier to read: - `bin/git_repo.py` → `DefaultPlan`: the git module knows todo.md and CHANGELOG.md. -- `bin/todo_table.py` → `standing`: a five-state literal whose three-line comment must be decoded first. +- `bin/todo_table.py` → `standing`: a five-state literal whose three-line comment must be decoded first, and whose `named` set comes from `named_releases`' fold over `renamed`, read separately. +- `bin/git_repo.py` → `todos_since`: it promises the texts oldest first, an order `named_releases` needs, stated again in `LastCut`'s comment; let the pick's module own that order. - `bin/todo_table.py` → `landed`: it counts ## Unreleased entries first, while `bin/larv_review/git.py` → `landed_since_release` counts commits only, two meanings of "work has landed"; give them one meaning or two names. - `bin/loop_claude/loop/main.py` → `run_loop`: routing reads the plan as chunk-preflight's fetch left it, an order only a comment states. - `bin/chunk_preflight/gathered.py`: the name covers the data, not the pure choices it also holds.