This commit is contained in:
@@ -88,7 +88,7 @@ class RoutingCheck(unittest.TestCase):
|
||||
self.assertEqual(args[:6], ["--model", "m", "--effort", "high", "--permission-mode", "bypassPermissions"])
|
||||
self.assertIn(f"don't change anything until they answer:\n- {call}", args[6])
|
||||
self.assertEqual(fake.terminal_environments, [{"CLAUDE_CODE_SANDBOXED": "1"}])
|
||||
self.assertEqual(fake.terminal_folders, [str(self.home / "code" / "claude-config")], "the development clone, since ~/.claude holds only a release")
|
||||
self.assertEqual(fake.terminal_folders, [str(self.home / "code" / "dev-factory")], "the development clone, since a release clone holds only a release")
|
||||
self.assertIn("Record what they decide in this checkout, the development clone", args[6])
|
||||
self.assertIsNone(state.mark_measured(self.root, 0))
|
||||
self.assertEqual(self.check(FakeEffects(git=[UNREAD] * 3))[0], None)
|
||||
@@ -124,7 +124,7 @@ class RoutingCheck(unittest.TestCase):
|
||||
def test_stops_when_claude_cannot_start_for_the_calls(self):
|
||||
self.chunks(5, 4)
|
||||
stop, _ = self.check(FakeEffects(on_terminal_claude=[OSError(2, "No such file or directory")], git=[UNREAD] * 3))
|
||||
self.assertEqual(stop, Stop(1, f"could not start claude for the routing calls in {self.home / 'code' / 'claude-config'}, the setup's development clone: No such file or directory"))
|
||||
self.assertEqual(stop, Stop(1, f"could not start claude for the routing calls in {self.home / 'code' / 'dev-factory'}, the setup's development clone: No such file or directory"))
|
||||
|
||||
def test_says_a_figure_it_cannot_write_and_goes_on(self):
|
||||
assert_not_root(self)
|
||||
|
||||
@@ -35,7 +35,7 @@ home holds.
|
||||
|
||||
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
|
||||
loop-dev-factory. <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
|
||||
@@ -159,7 +159,7 @@ Once 20 cycles have closed across all projects in the archive since the last mea
|
||||
loop to close one measures every finished chunk there, with no model run, and writes
|
||||
routing-figures.md at the archive's root (bin/routing_figures/). Each call the figures make for a
|
||||
routing change, unless raised before, is an interrupt: claude, on the project's model, on the
|
||||
terminal in the setup's development clone, ~/code/claude-config, asked to put the calls to the
|
||||
terminal in the setup's development clone, ~/code/dev-factory, asked to put the calls to the
|
||||
human. Once that claude ends, the calls are listed in
|
||||
routing-calls-raised.md beside the figures, kept in routing-state.json, and not raised again. Off a
|
||||
terminal, the calls are said on stderr, the loop goes on, and they are raised again at the next
|
||||
|
||||
Reference in New Issue
Block a user