Answer prose round 2: 0 🔴, 5 🟡 (0 misread); say what else writes the clone, drop the backup comment, give item 584 a recommendation this release can take, and name the third stop in the help

This commit is contained in:
2026-12-04 03:44:14 +01:00
parent 5083d345f2
commit 38d3e4e328
9 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ class StartChunks(unittest.TestCase):
self.assertEqual(self.starts(fake), [("new-session", "item-1", [str(self.LAUNCHER), "--chunk", "item-1", "ship it"]), ("new-window", "item-3", [str(self.LAUNCHER), "--chunk", "item-3", "ship it"])])
first = next(call for call in fake.tmux_calls if call[0] == "new-session")
self.assertEqual((first[first.index("-s") + 1], first[first.index("-c") + 1]), (self.session, str(self.root)))
# Only build-release's own variables and the two XDG ones are handed on, since a window gets the tmux server's environment.
# Only build-release's own variables and the three XDG ones are handed on, since a window gets the tmux server's environment.
self.assertEqual([word for word in first if "=" in word], ["BUILD_RELEASE_WORKER_MODEL=m", "XDG_CONFIG_HOME=", "XDG_STATE_HOME=", "XDG_DATA_HOME="])
self.assertEqual(fake.tmux_calls[0], ["list-windows", "-t", f"={self.session}", "-F", "#{window_name}\t#{pane_dead}\t#{window_id}"])
# The session names the checkout whose chunks it runs.
+1 -1
View File
@@ -56,7 +56,7 @@ class ExitContract(unittest.TestCase):
("agent_cycle/run.py", "close", "1", "failure.reason", read),
("agent_cycle/run.py", "close", "1", "failure.reason", "a finished chunk's session cannot be deleted"),
("build_release/loop/checkout.py", "checkout_root", "1", "found.reason", git),
("build_release/loop/main.py", "run_loop", "1", "'\\n'.join(needs)", "tmux is missing or older than 3.2, the loop's Claude home cannot be built, or nobody is signed in there"),
("build_release/loop/main.py", "run_loop", "1", "'\\n'.join(needs)", "tmux is missing or older than 3.2, the loop's Claude home cannot be built, claude cannot say who is signed in there, or nobody is"),
("build_release/loop/main.py", "run_loop", "1", "f'{CHUNK_FLAG} is how build-release starts itself", "--chunk is given outside a tmux window"),
("build_release/loop/main.py", "windows_opened", "1", "started.reason", "a chunk's window cannot be started"),
("build_release/loop/main.py", "windows_opened", "1", "f\"`tmux {' '.join(shown)}` failed", "the tmux session cannot be put on the terminal"),
+16 -15
View File
@@ -32,19 +32,19 @@ which it builds from the clone it ships in before it starts anything. Until some
there, it stops and prints the command to sign in with. README.md → Install says what the
home holds.
build-release needs tmux 3.2 or later, and checks that first as well. Each chunk runs in
its own window of one tmux session per project, named loop-<key>, such as loop-claude-config. <key>
is the checkout's path relative to ~/code, or to / outside it, with a dash for each character other
than a letter, a digit, _ or -. The tmux session's @loop-root option names its checkout, and a
checkout whose key maps to a tmux session another checkout runs is refused. build-release <task>
starts the chunks that may start now, then attaches to the tmux session, or switches to it inside
tmux; detaching leaves the chunks running. Off a terminal it prints the command that attaches. Where
no chunk may start, it says so, and the task starts in no new window. At most parallel-chunks chunks
run at once, a whole number the project's config sets, 1 by default. The first starts from the
plan's next item, and each other from an item whose `Touches:` prediction overlaps neither one
before it nor an item another chunk holds (touch-predictions --help). A window is named for the item
its chunk starts from, as item-372; a chunk without a plan item, such as planning a release or its
release review, runs alone in the window no-item.
build-release needs tmux 3.2 or later, and checks that too before it starts anything. Each chunk
runs in its own window of one tmux session per project, named loop-<key>, such as
loop-claude-config. <key> is the checkout's path relative to ~/code, or to / outside it, with a dash
for each character other than a letter, a digit, _ or -. The tmux session's @loop-root option names
its checkout, and a checkout whose key maps to a tmux session another checkout runs is refused.
build-release <task> starts the chunks that may start now, then attaches to the tmux session, or
switches to it inside tmux; detaching leaves the chunks running. Off a terminal it prints the
command that attaches. Where no chunk may start, it says so, and the task starts in no new window.
At most parallel-chunks chunks run at once, a whole number the project's config sets, 1 by default.
The first starts from the plan's next item, and each other from an item whose `Touches:` prediction
overlaps neither one before it nor an item another chunk holds (touch-predictions --help). A window
is named for the item its chunk starts from, as item-372; a chunk without a plan item, such as
planning a release or its release review, runs alone in the window no-item.
Each window runs a build-release for that one chunk, started with --chunk <window>, which nobody
types. As a chunk finishes, its loop starts each chunk that may start then, with the task it ran
@@ -174,8 +174,9 @@ window closes, so the next build-release <task> reads the plan again.
Exit 1, saying why, when:
- no task is given
- git cannot start or finds no checkout
- tmux is missing or older than 3.2, the loop's Claude home cannot be built, or nobody is signed
in there; a chunk's window checks the home three times, a minute apart, before it stops
- tmux is missing or older than 3.2, the loop's Claude home cannot be built, claude cannot say who
is signed in there, or nobody is; a chunk's window checks the home three times, a minute apart,
before it stops
- --chunk is given outside a tmux window
- a chunk's window cannot be started, as when the project's config cannot be read, or the tmux
session runs another checkout's chunks