fix: V8.5 — DM-Bypass differenziert: 100%-Keywords in DMs erkannt + Butler Move-Request (R8)

This commit is contained in:
Bernd (Hermes)
2026-07-19 16:12:46 +02:00
parent 65939b3208
commit 7ba62bd7e4
4 changed files with 424 additions and 15 deletions
+6 -5
View File
@@ -705,9 +705,10 @@ class TestV843RegressionGate(unittest.TestCase):
"Agent should be dispatched in target room (sticky route)")
def test_dm_bypass_still_works(self):
"""DM-Nachrichten bypassen Archivar weiterhin.
"""V8.5: DM-Nachrichten rufen Archivar auf (100%-Keyword-Check).
Regression-Gate: DM-Bypass darf NICHT durch den Fix gebrochen werden.
Regression-Gate: DM ruft classify_and_route auf, aber
ohne 100%-Keyword → Catch-All (stay_in_room).
"""
msg_obj = {
"_id": "msg_dm_001",
@@ -731,9 +732,9 @@ class TestV843RegressionGate(unittest.TestCase):
asyncio.run(self.adapter._process_incoming(msg_obj))
# DM should bypass Archivar → NO classify_and_route
self.assertEqual(call_count[0], 0,
"classify_and_route should NOT be called for DM messages")
# V8.5: DM ruft classify_and_route auf (100%-Keyword-Check)
self.assertEqual(call_count[0], 1,
"classify_and_route SHOULD be called for DM messages (V8.5)")
def test_pending_questions_bypass_still_works(self):
"""Pending-Questions-Bypass funktioniert weiterhin.