P0 Nachbesserungen + V7-1: Butler antwortet im Zielraum
Auflage 1: Unit-Tests für ConversationHistory (34 Tests)
- test_conversation_history.py: add/get, Ring-Buffer, topic_hint,
cleanup_orphaned_rooms (sync+async), Thread-safety, Edge cases
Auflage 2: Schritt-4.5 Stick-Check im Router
- router.py Zeile ~556: _check_never_route_topic VOR is_100_percent_match
in Schritt 4.5 (Keyword-Match vor LLM) eingefügt
Auflage 3: Topic-Extraktion zentralisieren
- router.py: room_name_to_topic als Module-Level-Alias exportiert
- adapter.py: importiert room_name_to_topic, ersetzt 2× inline
.lstrip('#').lower().replace(' ', '-') durch zentralen Aufruf
V7-1: Butler antwortet im Zielraum + Breadcrumb
- adapter.py _process_incoming: move_request_sent=True → return (kein Agent-Dispatch)
- adapter.py Move-Request-Handler: bei ✅Ja → Breadcrumb im Ursprungsraum,
_CURRENT_ORIGIN_ROOM + _THEMATIC_TARGET_ROOM auf Zielraum gesetzt,
_dispatch_agent() im Zielraum-Kontext
- adapter.py _dispatch_agent(): extrahierte Dispatch-Methode für V7-1-Pfad
Syntax-Check: alle .py bestehen py_compile
Tests: 99/100 passed (1 pre-existing env-var failure)
This commit is contained in:
@@ -14,6 +14,7 @@ from .doc_store import DocumentationStore
|
||||
from .router import BidirectionalRouter, RoutingDecision
|
||||
from .adapter_integration import ArchivarMessageHandler
|
||||
from .archivar_state import ArchivarState
|
||||
from .conversation_history import ConversationHistory, MessageEntry
|
||||
|
||||
__all__ = [
|
||||
"IntentClassifier",
|
||||
@@ -32,4 +33,6 @@ __all__ = [
|
||||
"RoutingDecision",
|
||||
"ArchivarMessageHandler",
|
||||
"ArchivarState",
|
||||
"ConversationHistory",
|
||||
"MessageEntry",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user