Answer principles round 1: 1 🔴, 6 🟡 (0 misread); end the AGENTS.md decision with item 585, send the routing calls once where no development clone exists, and file five principle findings as items 591 to 595

This commit is contained in:
2026-12-04 10:34:22 +01:00
parent 6bc91f700a
commit 1048e7a40a
5 changed files with 131 additions and 14 deletions
+10 -5
View File
@@ -117,17 +117,22 @@ 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."""
def test_sends_the_calls_once_where_the_machine_has_no_development_clone_even_off_a_terminal(self):
"""A release's clone holds only a release, so a machine without `~/code/dev-factory` has nowhere to change the routing decision: the DM is how the human sees the calls, and they are not sent again at each measurement."""
self.chunks(5, 4)
shutil.rmtree(self.paths.config_clone)
fake = FakeEffects(on_terminal_claude=[0], git=[UNREAD] * 3)
fake = FakeEffects(on_terminal=False, 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(f"No development clone at {self.paths.config_clone}, where the routing decision is changed: the calls stay in the figures.", said)
self.assertEqual(len(fake.dms), 1)
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())
self.assertIn(f"- {utc(NOW)} Explore subagents'", (self.root / "routing-calls-raised.md").read_text())
self.assertIsNone(state.mark_measured(self.root, 0))
again = FakeEffects(on_terminal=False, git=[UNREAD] * 3)
self.assertEqual(self.check(again), (None, ""))
self.assertEqual(again.dms, [])
def test_leaves_the_measuring_to_a_loop_holding_the_lock(self):
self.chunks(5, 4)