Answer stability round 1: 0 🔴, 1 🟡 (0 misread); mark the routing calls raised only where the DM went out

This commit is contained in:
2026-12-04 10:57:50 +01:00
parent 1048e7a40a
commit 6f2d22dff6
2 changed files with 18 additions and 6 deletions
+10 -1
View File
@@ -125,7 +125,7 @@ class RoutingCheck(unittest.TestCase):
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}, where the routing decision is changed: the calls stay in the figures.", said)
self.assertIn(f"No development clone at {self.paths.config_clone}, where the routing decision is changed: the calls above are all this machine puts to you, and they are not raised again.", 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.assertIn(f"- {utc(NOW)} Explore subagents'", (self.root / "routing-calls-raised.md").read_text())
@@ -134,6 +134,15 @@ class RoutingCheck(unittest.TestCase):
self.assertEqual(self.check(again), (None, ""))
self.assertEqual(again.dms, [])
def test_raises_the_calls_again_where_there_is_no_development_clone_and_the_dm_did_not_go_out(self):
self.chunks(5, 4)
shutil.rmtree(self.paths.config_clone)
stop, said = self.check(FakeEffects(git=[UNREAD] * 3, dm_failures=[Failure("no route")]))
self.assertIsNone(stop)
self.assertIn("could not DM you: no route", said)
self.assertIn("and the DM didn't go out: the calls are raised again at the next measurement.", said)
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):