diff --git a/todo.md b/todo.md index 624463da..82c076a1 100644 --- a/todo.md +++ b/todo.md @@ -6,14 +6,16 @@ `Bar = 0.1` -`Next ID = 244` +`Next ID = 246` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 239 | 0.4.0 | | owner | **Block a Read, `cat`, `sed` or `head` of a file range already in the session's context, with a note saying so, and let it through once a compaction dropped the range or the file changed.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 3 | 2.0 | -| 243 | 0.4.0 | | owner | **Show every loop-claude on the machine that waits for the human in one terminal app, and let the human answer each one there, `/talk` included.** | 4 | 2 | 3 | 7 | 6 | 1.5 by 4 | 0.9 | +| 245 | 0.4.0 | | owner | **Run the test suite once, on the latest stable Python alone, with its test files spread across the machine's CPUs, so a full run takes under a minute instead of about 3.3.** | 3 | 1 | 2 | 4 | 4 | 1.5 by 5 | 3.2 | +| 239 | 0.4.0 | 245 | owner | **Block a Read, `cat`, `sed` or `head` of a file range already in the session's context, with a note saying so, and let it through once a compaction dropped the range or the file changed.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 3 | 2.0 | +| 244 | 0.4.0 | 245 | owner | **Open every line loop-claude prints to its terminal with the machine's local time, as in `2026-10-28 11:46:01`.** | 2 | 2 | 1 | 3 | 3 | 1.5 by 2 | 1.9 | +| 243 | 0.4.0 | 245 | owner | **Show every loop-claude on the machine that waits for the human in one terminal app, and let the human answer each one there, `/talk` included.** | 4 | 2 | 3 | 7 | 6 | 1.5 by 4 | 0.9 | | 226 | 0.5.0 | | question | **Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording.** | 2 | 2 | 3 | 5 | 3 | 1.2 by 2, 1.5 by 2 | 4.0 | | 235 | 0.5.0 | | decision | **Compare the first 20 chunks whose worker ran under the 200k compaction window with the 20 before them, on review rounds past each pass's first, unfinished verdicts, 🔴, 🟡 and misread findings, dollars and hours per chunk, and file an item where any rose.** | 1 | 2 | 1 | 2 | 2 | 1.1 by 2, 1.4 by 3 | 6.8 | | 167 | 0.5.0 | | | **Refuse a `/security-review` or `/claude-security` Skill call below the project's rung, as rule-hook refuses such an Agent call.** | 3 | 2 | 3 | 6 | 2 | 1.1 by 4 | 5.6 | @@ -77,10 +79,24 @@ ## Details +### 245. Run the test suite once, on the latest stable Python alone, with its test files spread across the machine's CPUs, so a full run takes under a minute instead of about 3.3. + +lilleman's call, 2026-10-28: support only the latest stable Python, today 3.14, and drop every older one. It blocks the other 0.4.0 items so their chunks get the faster runs. Measured on 2026-10-28, on a 16-CPU machine: 765 tests in 198 s at 68% of one CPU. 102 s of that is `repo_checks/test_python_floor.py` rerunning the whole suite on 3.11. About 50 s is `loop_claude/test_black_box.py`, whose tests start loop-claude, a fake claude and git repos, 1 to 8 s each. About 30 s is the other tests that start the tools. mypy takes 3 s with its cache off. + +- Drop the floor rerun, `test_python_floor.py` and `readme_floor`, and make README Install ask for the latest stable Python as `python3`. Run mypy for that version. +- Replace `docs/decisions.md` → `bin/: the tests rerun themselves on a uv-fetched Python at README Install's floor` with the new rule, and update its title in `AGENTS.md`. Check that `bin/: the tools and their tests run on the host's Python` still holds. +- Spread the test files across the CPUs, with a small runner or pytest-xdist through `uvx`, and give README's Test line the one command that does it. Keep plain `python3 -m unittest` working. +- In `run_on_terminal` in `test_black_box.py`, check for the prompt every 50 ms instead of every second. +- Then, if the run is still over a minute, have the black-box tests copy one prepared git repo per class instead of building one per test. + ### 239. Block a Read, `cat`, `sed` or `head` of a file range already in the session's context, with a note saying so, and let it through once a compaction dropped the range or the file changed. lilleman's call, 2026-10-27, filed from PR #376's measurement of loop-claude's archive since 2026-10-21: a read of a file the agent read earlier in the thread, more than three messages before and without editing it in between, is 13% of the worker's reading, about $6 of the $45 its reads cost, and 1 to 2% of a reviewer's. How many of those repeat a range exactly is unmeasured, so the figures are a ceiling. A hook on `Read` and on the Bash reads `cat`, `sed` and `head` blocks such a read with a short note that the content is already in context and unchanged. It lets the read through after a compaction, when the content has left the context, or when the file changed since the read. A PreToolUse hook gets a `transcript_path`, which holds the earlier reads and each `compact_boundary`, so it may need no state of its own; check whether a hook inside a subagent gets the subagent's own transcript. +### 244. Open every line loop-claude prints to its terminal with the machine's local time, as in `2026-10-28 11:46:01`. + +lilleman's call, 2026-10-28, who also chose the spelling: `YYYY-MM-DD HH:MM:SS` in the machine's local time, never UTC, so the human sees when each line happened, such as how long a question has waited. Today about 27 `print` calls across `bin/loop_claude/` write bare lines to stderr. Route them through one function that adds the stamp, taking the time from `Effects.now` so tests can fix it. A line of a multi-line message, such as a question, gets the stamp only on its first line. + ### 243. Show every loop-claude on the machine that waits for the human in one terminal app, and let the human answer each one there, `/talk` included. lilleman's call, 2026-10-28: with several loops running, each asks on its own terminal, so the human jumps between terminals to find which wait. On 2026-10-28 three of five loops waited on round-cap questions at once. Today `put_question` in `bin/loop_claude/cycle/interrupt.py` reads the answer with `input()`, and nothing outside that terminal sees a question.