Answer architecture round 1: 1 🔴, 21 🟡 (0 misread); skip the routing call where no development clone exists, name the judge's rules the setup's, record two accepted trade-offs, and update stale plan paths
This commit is contained in:
@@ -34,6 +34,7 @@ class RoutingCheck(unittest.TestCase):
|
||||
self.addCleanup(shutil.rmtree, self.home)
|
||||
self.root = self.home / "archive"
|
||||
self.paths = paths.paths_from(self.home, {})
|
||||
self.paths.config_clone.mkdir(parents=True)
|
||||
self.session = session.session_named("A log build-release", self.paths.claude_code_transcripts)
|
||||
|
||||
def loop(self, fake):
|
||||
@@ -116,6 +117,18 @@ class RoutingCheck(unittest.TestCase):
|
||||
self.assertIsNone(state.mark_measured(self.root, 0))
|
||||
self.assertIn("Not on a terminal", self.check(FakeEffects(on_terminal=False, git=[UNREAD] * 3))[1])
|
||||
|
||||
def test_goes_on_where_the_machine_has_no_development_clone_and_raises_the_call_again_next_time(self):
|
||||
"""A release's clone holds only a release, so a machine without `~/code/dev-factory` has nowhere to change the routing decision."""
|
||||
self.chunks(5, 4)
|
||||
shutil.rmtree(self.paths.config_clone)
|
||||
fake = FakeEffects(on_terminal_claude=[0], git=[UNREAD] * 3)
|
||||
stop, said = self.check(fake)
|
||||
self.assertIsNone(stop)
|
||||
self.assertEqual(fake.made("claude_on_terminal"), [])
|
||||
self.assertIn(f"No development clone at {self.paths.config_clone}: the calls are raised again at the next measurement.", said)
|
||||
self.assertIn("Explore subagents' reports took more of the worker's context", (self.root / "routing-figures.md").read_text())
|
||||
self.assertFalse((self.root / "routing-calls-raised.md").exists())
|
||||
|
||||
def test_leaves_the_measuring_to_a_loop_holding_the_lock(self):
|
||||
self.chunks(5, 4)
|
||||
with archive.locked(self.root):
|
||||
|
||||
Reference in New Issue
Block a user