fix: V8.1.2 — numpy requirements + R1 integration test + topic normalization

- requirements.txt: numpy>=1.24.0 + faiss-cpu>=1.7.4 (P0 blocker fix)
- multiroom_context.py: move_gc topic.lower().strip() für case-insensitive Vergleich
- test_r1_integration.py: 7 neue R1-Integrationstests (catch_all guard, preferences, archivar path)
- Tests: 408 passed, 1 pre-existing fail (test_no_env_vars — env vars gesetzt)
This commit is contained in:
Bernd (Hermes)
2026-07-14 19:49:39 +02:00
parent 0e39e7076a
commit 74f8b14a49
3 changed files with 220 additions and 2 deletions
+5 -2
View File
@@ -160,17 +160,20 @@ class MultiRoomContextRing:
return
async with self._lock:
# V8.1.2: Topic-Normalisierung — lower().strip() für
# case-insensitive Vergleich (z.B. "Docker" == "docker")
topic_normalized = topic.strip().lower()
# Prüfe ob das Thema schon im Ring existiert (aus Ursprungsraum)
existing = [
e for e in self._entries
if e.room_id == origin_room_id and e.topic == topic.strip()
if e.room_id == origin_room_id and e.topic.strip().lower() == topic_normalized
]
if existing:
# Alte Einträge aus Ursprungsraum für dieses Thema entfernen
self._entries = deque(
(
e for e in self._entries
if not (e.room_id == origin_room_id and e.topic == topic.strip())
if not (e.room_id == origin_room_id and e.topic.strip().lower() == topic_normalized)
),
maxlen=self._max_entries,
)