diff --git a/todo.md b/todo.md index da588d0a..efc1a076 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 571` +`Next ID = 572` ## Items @@ -19,6 +19,7 @@ | 566 | 0.17.0 | | | **Add to `technical-principles.md` that a test waits for work another goroutine or process does on a signal the code or its fake sends, never on a count read straight after the call.** | 1 | 2 | 1 | 2 | 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 | 1.9 | | 481 | 0.18.0 | 480 | owner | **Put the release's tools on `PATH` for every session the loop starts and every hook it runs, name them bare in the prose in place of `~/.claude/bin/`, and refuse the old spelling in new prose.** | 3 | 2 | 3 | 6 | 6 | 1.4 by 2, 2 by 2, code health by 2 | 1.5 | +| 571 | 0.18.0 | | | **Make `task-bench` run a project's tests that call git, such as `git ls-files` and `git show :settings.json`, when started from a chunk's worktree, or fail before its first run with a message naming the cause.** | 2 | 1 | 1 | 2 | 3 | 1.1 by 3, 1.4 by 2 | 1.4 | | 561 | 0.18.0 | | | **Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window.** | 2 | 2 | 2 | 4 | 3 | 1.5 by 2 | 0.5 | | 482 | 0.19.0 | 481 | owner | **Install the setup with `uv tool install` from a release tag, with `build-release` and `build-epic` on `PATH`, and replace `deploy-release` with `build-release self-update`.** | 3 | 2 | 3 | 6 | 7 | 1.6 by 4, 1.3 by 3, 2 by 6 | 1.6 | | 485 | 0.19.0 | 482 | owner | **Rename `loop-claude` to `build-release`, and keep `loop-claude` as an alias that warns, for one release.** | 2 | 2 | 3 | 5 | 4 | 1.3 by 2, 5 by 2 | 2.5 | @@ -168,6 +169,24 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Today about Part of the standalone-install plan lilleman approved on 2026-11-20. About 70 places in `CLAUDE.md`, `rules/`, `skills/` and `agents/` name a tool by its path in `~/.claude/bin/`. Keeping the tools on `PATH` only inside the loop's sessions keeps short names such as `wait-for` out of the human's shell. And prose that names no install folder works under every harness. +### 571. Make `task-bench` run a project's tests that call git, such as `git ls-files` and `git show :settings.json`, when started from a chunk's worktree, or fail before its first run with a message naming the cause. + +Found while finishing item 565's chunk: `task-bench`, started from the chunk's worktree with `CLAUDE_CODE_OAUTH_TOKEN` exported, failed its baseline. Inside the container, this repo's tests failed with "not a git repository": `git ls-files` exited 128, and `git show :settings.json` failed. The chunk recorded no bench figures. + +The cause is not verified, so the first step is to reproduce it: run the bench once from a worktree and once from the main checkout. Two causes fit: + +- A worktree's `.git` is a file that points at the main checkout's git folder, which the container doesn't mount. +- More likely from the code: `archived` in `bin/task_bench/main.py` builds each side's tree with `git archive`, which leaves out `.git`. `baseline_failure` then tests that tree through `tests_in_copy` before `committed` has given it a repository. So any test that calls git, such as `bin/repo_checks/test_settings.py`, `test_import_order.py` and `test_citations.py`, would fail from the main checkout too. + +Where the second cause holds, give each side's tree a repository with its files staged and committed (`committed` in `bin/task_bench/tasks.py` already does this for a planted tree) before its tests run. Then the copy `tests_in_copy` makes carries it. Either way, write first a test in `bin/task_bench/test_task_bench.py` that fails today. Where no fix fits, fail before the first run, naming the cause. + +`Planner` in `bin/task_bench/main.py:241` is a place the comprehension seats found hard. Leave it alone unless the change touches it; if it does, make it easier to read. + +Touches: +- `bin/task_bench/main.py`: `bench_in`, `archived` (small) +- `bin/task_bench/tasks.py`: `committed`, `tests_in_copy` (small) +- `bin/task_bench/test_task_bench.py` + ### 561. Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window. Today a parked chunk whose pull request is no longer open (`gates.Unopened`, `bin/do_epic/gates.py`) gets news for its worker to remove the worktree (`parking.news_after`). That worker needs a running slot, so behind the epic's `**Max parallel chunks:**` cap or the repo's `parallel-chunks`, the chunk stays parked with "it may be merged or closed already, but the chunk stays parked", and its window lingers for days. On a team epic, the issue of one such chunk was already Done while its window still read "awaits a slot". The person reads that as stuck work, and once a slot frees, a whole worker run goes to `chunk-pr clean`.