Put the release's tools on PATH of every claude the loop starts, and name them bare in the prose
CI / tests (pull_request) Successful in 4m36s

This commit is contained in:
2026-12-03 12:49:56 +01:00
parent fb1dd763e2
commit 0653c2744e
64 changed files with 306 additions and 169 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ 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. Read `~/.claude/rules/todo-items.md` and `~/.claude/bin/todo-item --help`, and run `~/.claude/bin/todo-item list`, so that no item is filed twice.
4. File one item for each place with `~/.claude/bin/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.
3. Read the setup's `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.
End with one line for each item you filed, as `<ID>: <tagline>`, or with one sentence saying why the bench shows no place to make easier.
+2 -2
View File
@@ -13,7 +13,7 @@ from git_cli.git_repo import Git, top
from git_cli import git_repo
from task_bench.bench_folder import held
from review_rules.review_folder import made_review_folder
from loop_state.paths import paths_from
from loop_state.paths import paths_from, with_release_tools
from transcript_archive.project_key import project_key
from model_routing.ladder_file import project_ladder
from chunk_driver.project.model_choice import read_models_file
@@ -58,7 +58,7 @@ def gather(env: typing.Mapping[str, str], home: pathlib.Path, claude: Claude) ->
def run_claude(args: list[str], cwd: str, prompt: str) -> subprocess.CompletedProcess[str]:
return subprocess.run(["claude", *args], capture_output=True, cwd=cwd, input=prompt, text=True)
return subprocess.run(["claude", *args], capture_output=True, cwd=cwd, env=with_release_tools(os.environ), input=prompt, text=True)
def project_rung(home: pathlib.Path, git: Git) -> Rung | Failure:
+1 -1
View File
@@ -54,7 +54,7 @@ class GatherTest(unittest.TestCase):
self.assertFalse(self.bench.exists())
def test_the_prompt_asks_for_plan_items_filed_with_todo_item(self):
self.assertIn("~/.claude/bin/todo-item add", PROMPT.read_text())
self.assertIn("todo-item add", PROMPT.read_text())
def test_a_worktrees_project_is_its_main_checkouts(self):
worktree = self.home / "code/calc-item-7"
+1 -1
View File
@@ -8,7 +8,7 @@ usage: task-bench --image <image> --test <shell text> [--base <ref>] [--head <re
task-bench --tasks shipped-features --image <image> --test <shell text> [--base <ref>] [--head <ref>] [--shipped <n>] [--runs <n>] [--record-figures]
task-bench gather
Run it in a checkout, under ~/.claude/bin/run-heavy, with a long-lived token in CLAUDE_CODE_OAUTH_TOKEN, which `claude setup-token`
Run it in a checkout, under run-heavy, with a long-lived token in CLAUDE_CODE_OAUTH_TOKEN, which `claude setup-token`
prints. The head is --head, by default HEAD. The base is the merge base of the head and --base, by default the default branch:
origin's as last fetched, else main or master. Where --base names the head's own commit, the bench runs the head against itself.
No model judges anything: the bench runs programs, and reads Haiku's own stream.