Bernd (Hermes)
|
74f8b14a49
|
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)
|
2026-07-14 19:49:39 +02:00 |
|
Bernd (Hermes)
|
0e39e7076a
|
fix: V8.1.1 — 3 Blocker (Catch-All-Guard, Ring-GC, Tests)
R1 (P0): Catch-All-Sticky-Vergiftung behoben
- Session-Sticky-Block (adapter.py:1581) prüft jetzt is_catch_all
und should_stay_in_room VOR dem Auto-Route
- Catch-All-Zielraum → Sticky wird gelöscht, Fall-Through zu Archivar
- stay_in_room=always/never_route → Sticky wird gelöscht, Fall-Through
R2 (P1): MultiRoomContextRing.move_gc() implementiert
- Neue Methode entfernt stale Topics aus Ursprungsraum bei Move
- Fügt neuen Ring-Eintrag für Zielraum hinzu
- Aufruf bei confirm_move (Button 1) und Auto-Route (100%-Match)
R3 (P1): 4 neue Test-Suites (56 Tests)
- test_multiroom_context.py: Ring-Buffer, move_gc, System-Prompt
- test_sticky_session.py: temporäres Sticky, 30 Min TTL, Guards
- test_auto_route.py: 100%-Match, self-match, Catch-All
- test_edge_cases.py: leerer Ring, Catch-All+Auto-Route, Move-Ketten
R4 (P2): Doc-Kommentar für _CURRENT_ORIGIN_ROOM ContextVar-Reset
Verifikation: 401 passed, 1 pre-existing fail (test_no_env_vars)
|
2026-07-14 19:40:44 +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 |
|