Bernd (Hermes)
31ca0f2533
feat(F071,F068,F070): Welle 2 — Refactor-Audit, Stabilitaets-Monitor, Contract-Test-Framework @implements: [F-071] [F-068] [F-070]
2026-09-17 17:40:10 +02:00
Bernd (Hermes)
f165f110e3
chore(F-542): @implements Batch 2b — 20 Reverse-Engineering-Dateien @implements: [F-542]
2026-09-17 14:40:08 +02:00
Bernd (Hermes)
8853a1d9e3
fix: V8.1 Routing-Engine — 7 Root Causes (Auto-Route, Sticky, Echo, Kontext-Ring, LLM-URL, FAISS, Buttons)
...
P1: 100%-Keyword-Route sendet Antwort in Zielraum (echtes Routing)
- adapter.py:1603-1645: Auto-Route-Block vor _CURRENT_ORIGIN_ROOM
- Bei move_request_sent=False + target_room != room_id → dispatch in Zielraum
- Nachricht wird in Zielraum kopiert, Agent antwortet dort
P2: Temporäres Sticky (30 Min) bei confirm_move
- adapter.py:625: _session_room_preferences Dict
- adapter.py:1414-1428: Sticky bei confirm_move gesetzt
- adapter.py:1557-1597: Session-Sticky-Check vor Archivar (Auto-Route)
- adapter.py:1638-1645: Sticky auch bei Auto-Route gesetzt
P3: Echtes Move (Original löschen) statt Copy+Breadcrumb
- adapter.py:1414-1420: Kein Copy mehr bei confirm_move
- Nur Breadcrumb "Wir sind rübergewechselt → #Zielraum" im Ursprungsraum
P4: MultiRoomContext-Ring — raum-übergreifender Konversations-Kontext
- Neu: archivar/multiroom_context.py (Ring-Buffer, 10 Einträge)
- adapter.py:1293-1299: Ring-Update bei jeder User-Nachricht
- adapter.py:1752-1767: Ring-Summary in System-Prompt injiziert
P5: LLM-Router URL — ARCHIVAR_LLM_BASE_URL statt OLLAMA_BASE_URL
- config.py:150-153: Neue Env-Var ARCHIVAR_LLM_BASE_URL
- OLLAMA_BASE_URL als Legacy-Fallback
P6: FAISS is_stale() — Member-Set-Check zusätzlich zu Version
- room_index.py:540-590: Prüft set(map_rooms) == set(index_rooms)
- Bei Mismatch → rebuild mit Logging
P7: Move-Request-Template auf 3 Buttons
- config.py:209-215: 1️⃣ Rüber, 2️⃣ Generell hier, 3️⃣ Nur diesmal
- stay_once fällt in else-Branch (adapter.py:1447)
Verifikation: 345/346 archivar tests passed (1 pre-existing env fail)
2026-07-14 19:31:55 +02:00
Bernd (Hermes)
97d59f5272
feat(room_index): weave seed_data messages into FAISS embedding text
...
Strategie B: _room_to_text() webt kuratierte seed_data-Messages
in den Embedding-Text ein, um FAISS-Similarity zu schärfen.
Änderungen:
- room_index.py: import SEED_DATA, _room_to_text() erweitert
um Seed-Message-Einwebung (nur für Räume mit SEED_DATA-Eintrag)
- test_room_index.py: MockEmbeddingClient auf Keyword-Zählung
umgestellt (statt binär any()) — verhindert Cross-Contamination
durch längere Embedding-Texte mit Seed-Messages
Tests: 35/35 passed (22 booster + 13 room_index)
2026-06-18 07:27:34 +02:00
Bernd (Hermes)
60665c5fd4
feat(archivar): 200-Wort-Raumbeschreibungen für FAISS Phase-1
...
room-map.json v3:
- Neues 'description'-Feld (~200 Wörter) für alle 4 Nicht-Catch-All-Räume
- BAT-Team: Trading-Plattform, Docker, Next.js, Prisma, Wyckoff
- Rocketchat-Plugin: DDP/WebSocket, Archivar, Gateway, Buttons
- LAN-Dokumentation: Homelab, Proxmox, Subnetze, VLAN, pfSense
- Protonbridge-Plugin: IMAP/SMTP-Proxy, Himalaya, Bridge
room_map.py:
- RoomEntry.description als optionales Feld (default '')
- _from_dict, save, add_or_update_room, Legacy-Migration aktualisiert
room_index.py:
- _room_to_text(): description prioritär, theme als Fallback
- Keywords weiterhin doppelt gewichtet im Embedding-Text
room-map.schema.json:
- description als optional string (minLength 50)
- version minimum auf 3
FAISS-Neubau via is_stale() nach Version-Bump automatisch
2026-06-18 06:31:11 +02:00
Bernd (Hermes)
03d3bb44df
BUGFIX: FAISS Phase-1 TypeError float+str in adapter_integration.py:292
...
Root cause: RoomIndexManager.stats() returns a dict with mixed types
(bool, int, float, str). sum() iterated over all values and crashed
when hitting built_at_iso (str) after built_at (float).
Fix: Replace stats() call with direct .size and .room_ids properties.
Also commit FAISS Phase-1 files (booster.py, room_index.py, seed_data.py)
that were deployed to Gateway but not yet in repo.
Tests: 58 passed (0 failures)
2026-06-16 20:31:57 +02:00