From 8c366a453102d54d2bb8ff00d3204b6dd18d6e50 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 3 Dec 2026 14:29:04 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=202:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=202=20=F0=9F=9F=A1=20(0=20misread);=20name=20task-bench=20gath?= =?UTF-8?q?er=20alone,=20say=20whose=20records=20are=20headed=20by=20a=20p?= =?UTF-8?q?ath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- bin/agent_cycle/judge.py | 2 +- bin/loop_state/paths.py | 4 ++-- bin/task_bench/figures/gather-prompt.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 240256cf..cc8b5642 100644 --- a/README.md +++ b/README.md @@ -334,9 +334,9 @@ Test on the host with `bin/run-tests`, which runs pytest through `uvx`, pinned i `bin/do-epic-e2e` checks `do-epic` against a real Jira site, which `run-tests` never reaches. It makes an epic with issues and sub-tasks in a sandbox project, runs `do-epic --file`, `--record-decision` and `--close-epic` against it in a home folder of its own, and deletes the epic and its issues when it ends. The sandbox project must be team-managed, with a `Done` transition, and its account must be able to create, edit, transition, comment on and delete issues there. Set `DO_EPIC_E2E_JIRA_URL` to the sandbox site's address, `DO_EPIC_E2E_ENV_FILE` to the absolute path of the file holding the account's `ATLASSIAN_EMAIL` and `ATLASSIAN_API_TOKEN`, and `DO_EPIC_E2E_PROJECT` to the project's key. The command fails, naming each setting that is missing. It needs a Docker daemon, as `run-tests` does. -CI runs `ci.sh` on every pull request, and `main` doesn't merge anything until it passes. The script runs the same tests on the committed HEAD in a pinned Python container. Run it under `run-heavy` to reproduce a CI failure, with Docker on `PATH` and its socket at `/var/run/docker.sock`, which the container shares. +The commands in this section name their tools bare, as Tools says. CI runs `ci.sh` on every pull request, and `main` doesn't merge anything until it passes. The script runs the same tests on the committed HEAD in a pinned Python container. Run it under `run-heavy` to reproduce a CI failure, with Docker on `PATH` and its socket at `/var/run/docker.sock`, which the container shares. -The commands below name their tools bare, as Tools says. To mutation-test the lines a branch changes, run `run-heavy mutate-changes --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"'` in its checkout. +To mutation-test the lines a branch changes, run `run-heavy mutate-changes --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"'` in its checkout. To bench how hard the code is to fix a bug in, build the image first, with `run-heavy docker build --quiet --memory 2g --memory-swap 2g -t claude-config-task-bench task-bench-image`. Then run `task-bench --image claude-config-task-bench --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"' --test 'python -m pytest -q -p no:cacheprovider -n 4 bin --ignore=bin/adf_codec --ignore=bin/run_tests --ignore=bin/repo_checks/test_types.py --deselect bin/plan/test_touches.py::PredictedTest --deselect bin/loop_effects/test_effects.py::ChildShells'` in this checkout, under `run-heavy`. A scoring run starts it with `--record-figures` added. The bench runs the tests with no network, so the image holds everything they need. The `--test` leaves out the tests that need docker or `uvx`, and `ChildShells`, which needs `docker run --init` to reap its processes: `bin/run-tests` on the host runs those. diff --git a/bin/agent_cycle/judge.py b/bin/agent_cycle/judge.py index d73b8cc8..aee45ad6 100644 --- a/bin/agent_cycle/judge.py +++ b/bin/agent_cycle/judge.py @@ -55,7 +55,7 @@ QUOTE_RULES = ( "then given that passage in place of the human's reply. An interrupt outranks a quoted answer, and either " "outranks finished." ) -# This names the human's rule files by path, since each record is headed by its path; the judge's other rules name no install folder. +# This names the human's rule files by path, since the judge's records head each of them by its path; the judge's other rules name no install folder. FINISHED_RULES = ( "The chunk is the piece of work the worker is on, shipped as one pull request.\n\n" "finished=true when the chunk is complete: merged, or nothing remains that the worker could do on " diff --git a/bin/loop_state/paths.py b/bin/loop_state/paths.py index 56eaf347..470cb201 100644 --- a/bin/loop_state/paths.py +++ b/bin/loop_state/paths.py @@ -18,9 +18,9 @@ CONFIG_FOLDER = ".claude-projects" STATE_FOLDER = ".local/state" -# Only a claude started through this has the tools on PATH. One a person starts by hand lacks them, as their shell does: short names such as `wait-for` stay out of it, and README.md → Tools says how to call a tool there. +# Only a claude started through this has the tools on PATH. One a person starts by hand lacks them, as their shell does: the plan keeps short names such as `wait-for` out of a person's shell. README.md → Tools says how to call a tool there. def with_release_tools(env: Mapping[str, str]) -> dict[str, str]: - """env with the release's tools first on `PATH`: what every claude the loop or `task-bench` starts runs in, so its Bash tool finds each tool by its bare name, and so does a hook's own script.""" + """env with the release's tools first on `PATH`: what every claude the loop or `task-bench gather` starts runs in, so its Bash tool finds each tool by its bare name, and so does a hook's own script.""" tools = str(RELEASE_ROOT / "bin") rest = env.get("PATH", "") if rest.split(os.pathsep)[0] == tools: diff --git a/bin/task_bench/figures/gather-prompt.md b/bin/task_bench/figures/gather-prompt.md index a42dfab8..34e88dee 100644 --- a/bin/task_bench/figures/gather-prompt.md +++ b/bin/task_bench/figures/gather-prompt.md @@ -20,7 +20,7 @@ What to do: 1. For each bug that some run failed to fix, or that took the passing run a long search, find what misled Haiku: read the decoys and the file the bug is in, which the bug's heading names, and follow the traces. Read them as the run saw them, in `trees/base` or `trees/head` in the bench's folder. This checkout may hold later code. A bug every run fixed quickly doesn't show anything. 2. Name each place where a change to the code would have made the bug easier to fix: a name that says something else than the code does, a rule kept in two places, a comment that points the wrong way, a function that hides where its value comes from. Several bugs may show one place. Leave out a place this checkout no longer holds. A bug that was hard only because the task is hard, in code that reads well, doesn't show a place. -3. `command -v todo-item` prints `/bin/todo-item`. Read `/rules/todo-items.md` and `todo-item --help`, and run `todo-item list`, so that no item is filed twice. +3. Run `command -v todo-item`, which prints `/bin/todo-item`. Read `/rules/todo-items.md` and `todo-item --help`, and run `todo-item list`, so that no item is filed twice. 4. File one item for each place with `todo-item add`. Its tagline states the change to make. Its detail cites the evidence: the bug, the decoys, and the lines of the traces that show the runs going wrong, quoted, since nobody can open the traces later. Name the release that follows the next one in the plan, and score the item as the rules ask. 5. Don't change any file but the plan, and don't commit.