diff --git a/bin/loop_claude/loop/chunk_windows.py b/bin/loop_claude/loop/chunk_windows.py index 1020aa94..0831886f 100644 --- a/bin/loop_claude/loop/chunk_windows.py +++ b/bin/loop_claude/loop/chunk_windows.py @@ -14,7 +14,7 @@ from failure import Failure from project_config.main import located from loop_claude.loop.reload import LoopRun from release_plan.next_chunk import NextChunk, NoItem, planned -from touch_predictions.prediction import overlaps, predicted, Touches +from plan.touches import overlaps, predicted, Touches from loop_state.paths import Paths from transcript_archive.project_key import project_key from release_plan.release_standing import project_plan diff --git a/bin/touch_predictions/prediction.py b/bin/plan/touches.py similarity index 96% rename from bin/touch_predictions/prediction.py rename to bin/plan/touches.py index e8577c64..8dfa9e73 100644 --- a/bin/touch_predictions/prediction.py +++ b/bin/plan/touches.py @@ -1,5 +1,7 @@ """An item's prediction of the files and parts it will touch, as its detail spells it, and where two predictions overlap. +It sits in plan, beside the items whose details it reads, so that plan_store's `rank_todo.py --check` and todo-item can refuse a list it cannot read: touch_predictions imports plan_store, so plan_store cannot import from touch_predictions. + The spelling, which the decision `todo.md: an item of the next release predicts the files and parts it will touch …` gives the reasons for: Touches: diff --git a/bin/plan_store/todo_md.py b/bin/plan_store/todo_md.py index 7263ec1d..5c750b22 100644 --- a/bin/plan_store/todo_md.py +++ b/bin/plan_store/todo_md.py @@ -7,11 +7,11 @@ 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 from plan import ranking from record_store.stores import RecordStore from text_files.file_writes import replace_file from plan_store.scoring import weighing_texts -from touch_predictions.prediction import predicted # What the reader of a missing todo.md is told. MISSING = "every project keeps a todo.md, and rank_todo.py --help shows one" diff --git a/bin/test_rank_todo.py b/bin/test_rank_todo.py index db9f32d6..a6460dda 100644 --- a/bin/test_rank_todo.py +++ b/bin/test_rank_todo.py @@ -11,8 +11,8 @@ from project_config.test_project_config import configured from plan.test_ranking import DECISIONS, OLD_SHAPE, README, TODO from project_config.settings import DEFAULT_FLOOR from plan import goals_file, ranking -from todo_item.test_todo_item import READABLE_TOUCHES, UNREADABLE_BULLETS import rank_todo +from todo_item.test_todo_item import READABLE_TOUCHES, UNREADABLE_BULLETS class Main(unittest.TestCase): diff --git a/bin/todo_item/main.py b/bin/todo_item/main.py index 28115281..d98f88db 100644 --- a/bin/todo_item/main.py +++ b/bin/todo_item/main.py @@ -91,10 +91,10 @@ from project_config.main import located from plan_store.plans import no_item, PlanStore, TAGLINE, Written from plan.release import parsed, Release, version as release_version from plan_store.stores import store as plan_store +from plan.touches import predicted from record_store.stores import RecordStore, store from todo_item.table import shown, table from todo_item.edits import with_bullet -from touch_predictions.prediction import predicted # Each score flag, as --l or --L, and the field it sets. LETTERS = ("L", "E", "I", "S") diff --git a/bin/touch_predictions/beside.py b/bin/touch_predictions/beside.py index 5acae9cd..493932b6 100644 --- a/bin/touch_predictions/beside.py +++ b/bin/touch_predictions/beside.py @@ -3,7 +3,7 @@ import dataclasses from failure import Failure from plan.todo_table import Item, waiting -from touch_predictions.prediction import LABEL, overlaps, predicted, Touches +from plan.touches import LABEL, overlaps, predicted, Touches @dataclasses.dataclass(frozen=True) diff --git a/bin/touch_predictions/diff_parts.py b/bin/touch_predictions/diff_parts.py index cd9d08d0..eef99821 100644 --- a/bin/touch_predictions/diff_parts.py +++ b/bin/touch_predictions/diff_parts.py @@ -3,7 +3,7 @@ import re from failure import Failure from git_cli.git_repo import git, Git -from touch_predictions.prediction import Part, Touches +from plan.touches import Part, Touches from touch_predictions.file_parts import part_names HUNK = re.compile(r"^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@", re.M) diff --git a/bin/touch_predictions/main.py b/bin/touch_predictions/main.py index c24d79c6..2c77b66a 100644 --- a/bin/touch_predictions/main.py +++ b/bin/touch_predictions/main.py @@ -49,7 +49,7 @@ import typing from git_cli.git_repo import default_ref, git, Git from failure import Failure from plan_store.stores import store as plan_store -from touch_predictions.prediction import predicted, together, Touches +from plan.touches import predicted, together, Touches from project_config.main import project from project_config.settings import ProjectConfig, TOUCH_PREDICTIONS from touch_predictions import record diff --git a/bin/touch_predictions/record.py b/bin/touch_predictions/record.py index d0c1f2fc..bf34afeb 100644 --- a/bin/touch_predictions/record.py +++ b/bin/touch_predictions/record.py @@ -3,7 +3,7 @@ import re from failure import Failure from record_store.stores import RecordStore -from touch_predictions.prediction import rendered, Touches +from plan.touches import rendered, Touches from text_files.utc_stamp import STAMPED TITLE = "# Touch predictions" diff --git a/bin/touch_predictions/test_touch_predictions.py b/bin/touch_predictions/test_touch_predictions.py index 6d15f982..3c79fe27 100644 --- a/bin/touch_predictions/test_touch_predictions.py +++ b/bin/touch_predictions/test_touch_predictions.py @@ -16,7 +16,7 @@ from failure import Failure from test_env import isolated_env from project_config.main import located from record_store.fakes import MemoryStore -from touch_predictions.prediction import overlaps, Part, predicted, rendered, together +from plan.touches import overlaps, Part, predicted, rendered, together from plan_store.todo_md import plan_of from project_config.settings import ProjectConfig from project_config.test_project_config import write_config diff --git a/todo.md b/todo.md index fb3a0516..270eadbe 100644 --- a/todo.md +++ b/todo.md @@ -272,7 +272,7 @@ Touches: On 2026-11-18 six items (400, 401, 416, 420, 421 and 422) held `Touches:` lists that touch-predictions cannot read, such as ``- `bin/judge_replay/main.py` (small)`` and ``- `README.md`: loop-claude's section (small)``. chunk-preflight reads the lists first, so loop-claude silently started nothing beside item 401, and slots sat idle for over an hour; the same mistake had been fixed by hand on 2026-11-16 (commit 4b508615). Nothing checked a list when it was written. -Both checks call `predicted` from `bin/touch_predictions/prediction.py`, so they cannot drift from the reader; its spelling stays as it is. `todo-item add` and `edit --detail` refuse such a detail, writing nothing, in main.py before the plan's backend gets it, so a plan in Jira is held to it too. `rank_todo.py --check` fails on any item in todo.md whose list it cannot read, naming the item and the reason. Moves 1.5 (delivery speed): idle chunk slots are what the mistake cost. +Both checks call `predicted`, so they cannot drift from the reader; its spelling stays as it is. The reader moves from `bin/touch_predictions/prediction.py` to `bin/plan/touches.py`, since touch_predictions imports plan_store and plan_store's check needs the reader. `todo-item add` and `edit --detail` refuse such a detail, writing nothing, in main.py before the plan's backend gets it, so a plan in Jira is held to it too. `rank_todo.py --check` fails on any item in todo.md whose list it cannot read, naming the item and the reason. Moves 1.5 (delivery speed): idle chunk slots are what the mistake cost. Touches: @@ -281,6 +281,8 @@ Touches: - `bin/plan_store/todo_md.py`: `FilePlan.check` - `bin/test_rank_todo.py` - `bin/rank_todo.py`: `(module)` (small) +- `bin/plan/touches.py` +- `bin/touch_predictions/prediction.py` - `rules/todo-items.md`: `` # Todo items (`todo.md`) `` (small) ### 316. Launch comprehension seats as an agent type of their own under `agents/`, without `CLAUDE.md` and the skill and agent listings a general-purpose subagent carries.