File item 545: write each missing Touches list before the next chunk
CI / tests (pull_request) Successful in 4m30s

This commit was merged in pull request #733.
This commit is contained in:
2026-11-27 01:08:26 +01:00
parent 11e7f90b01
commit 3a48a91684
+14 -1
View File
@@ -6,7 +6,7 @@
`Bar = 0.1`
`Next ID = 545`
`Next ID = 546`
## Items
@@ -19,6 +19,7 @@
| 537 | 0.17.0 | | | **Flag regexes that use `$` to validate a whole input, since `$` also matches before a final newline.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 |
| 538 | 0.17.0 | | | **Flag validation that checks a value other than the one the code goes on to use, such as before trimming, stripping or converting it.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 |
| 541 | 0.17.0 | | | **Find a Gitea pull request by its branch and head however many pull requests are newer, so `chunk-pr clean`, `chunk-pr merge` and `chunk-preflight` see an older one.** | 2 | 2 | 3 | 5 | 2 | 1 by 2 | 0.8 |
| 545 | 0.17.0 | | | **Have chunk-preflight name each next-release item with no `Touches:` list while others wait, and have loop-claude launch a subagent that writes the lists before it starts the next chunk.** | 3 | 2 | 3 | 6 | 6 | 1.1 by 4 | 0.6 |
| 539 | 0.17.0 | | | **Leave out of a `task-bench` fix a change Haiku makes to a Rust test kept in a file of its own.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 1 | 0.4 |
| 544 | 0.17.0 | | | **Leave out of a `task-bench` fix a change Haiku makes to a PHP or JavaScript test that PHPUnit or `node --test` finds by a name `is_test` does not know.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 1 | 0.4 |
| 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 2.4 |
@@ -165,6 +166,18 @@ Touches:
- `bin/forge/pulls.py`: `pull_at`
- `bin/forge/test_forge.py`
### 545. Have chunk-preflight name each next-release item with no `Touches:` list while others wait, and have loop-claude launch a subagent that writes the lists before it starts the next chunk.
In fejkdata on 2026-11-27 the loop ran one chunk for hours beside seven waiting items, because five items of the next release (one filed by the reading-cost report, four older) had no `Touches:` list, and `chunk-preflight` says only "No item may start a chunk beside item X's: its detail has no `Touches:` list". Nothing makes a session write the lists, and `rank_todo.py --check` refuses only a list it cannot read.
Three changes:
- `chunk-preflight` prints one fact where an item of the next release has no `Touches:` list and at least one other item of that release waits, naming the items. A release with one item left prints nothing.
- `loop-claude` acts on the fact before it starts the next chunk: it launches one subagent, on the rung `CLAUDE.md`'s delegation rule gives a subagent that files or scores items, to read the code and write each missing list with `todo-item edit --detail`. Where the subagent can't name a part, it lists the whole file and says in the detail that the change is not predictable. The plan edit ships as its own pull request with `chunk-pr`, as plan-only changes do. A list is written once per item and not again until the item is edited.
- `rank_todo.py --check` warns, without failing, on an item of the next release with no `Touches:` list.
Test each with a fake plan: all lists present, one missing with other items waiting, one missing alone in its release, and a list the item's edit made stale is left alone.
### 539. Leave out of a `task-bench` fix a change Haiku makes to a Rust test kept in a file of its own.
Rust may keep its unit tests out of line: `#[cfg(test)] mod tests;` in `src/lib.rs`, the tests in `src/tests.rs`. `mutate_changes.changed_lines.is_test` tells a test by a folder named `test`, `tests` or `__tests__`, or by a file name such as `test_*.py` or `*_test.go`, so `src/tests.rs` counts as code, and `checked_tree` in `bin/task_bench/runs.py` takes it as Haiku left it. A fix that edits or deletes the failing test there passes. The help's Check paragraph says so. It holds at the base and at the head alike.