feat: Raum-Kontext-Injection + Butler-Trigger-Logik + Room-Context Skill

- Fix A: Raum-Name/Typ als Text-Prefix in User-Nachricht injiziert
- Fix B: Skill rocketchat-room-context im Plugin-Repo + deploy via install.sh
- Fix C: 100% Keywords → auto-route (kein Butler), Kontext → Butler fragt
- Fix D: FAISS-Auto-Route move_request_sent=False (konsistent mit Fix C)

Rainer-Review: 4/4 freigegeben (2 Iterationen, Fix A Kommentar + Fix B Skill-Ort korrigiert)
This commit is contained in:
Bernd (Hermes)
2026-07-12 18:11:54 +02:00
parent c99cbfd76b
commit 2d4359071b
5 changed files with 209 additions and 24 deletions
+10
View File
@@ -219,6 +219,16 @@ class RoomMap:
return best_room
return None
def is_100_percent_match(self, text: str, room: RoomEntry) -> bool:
"""Check if *text* contains any 100%-evidence keywords for *room*.
Returns True if at least one keywords_100 entry matches (case-insensitive).
Used by the router to distinguish 100% keyword matches (auto-route, no Butler)
from context keyword matches (Butler asks, learning opportunity).
"""
text_lower = text.lower()
return any(kw.lower() in text_lower for kw in room.keywords_100)
def calculate_weighted_score(self, text: str, room: RoomEntry) -> float:
"""
Berechnet einen gewichteten Score für ein Text-Raum-Paar.