P0 Fixes (Rainer 2. Analyse): RC-1 never_route/always Unterscheidung, RC-2 _version in add_or_update_room, RC-3 stay_here Action-Token
RC-1: archivar_state.py:264-287 + router.py:307-323 should_stay_in_room() gab 'origin_first'/'sticky' zurück, aber beide wurden identisch behandelt (stay_in_room=True). never_route sollte bedeuten: NIE wieder routen, KEIN Move-Request. always: immer hier bleiben. Jetzt klare Unterscheidung: 'always' vs 'never_route'. RC-2: room_map.py:356-393 add_or_update_room() erhöhte self._version NICHT nach Änderungen. is_stale() im FAISS-Index vergleicht Versionen → dachte Index aktuell → lud veralteten Index von Disk. Fix: self._version += 1 nach jeder Änderung. RC-3: adapter.py:1241 stay_here Action-Token aus MOVE_REQUEST_TEMPLATE (v4 Button 'Hier') war nicht im Handler-Mapping. Fiel in else-Zweig (one-time stay) statt never_route (permanent). Fix: 'stay_here' zu Option-2-Mapping hinzugefügt.
This commit is contained in:
@@ -305,7 +305,7 @@ class BidirectionalRouter:
|
||||
|
||||
# ── Schritt 1: Raum-Zustand prüfen ───────────────────────────
|
||||
room_state_decision = self._state.should_stay_in_room(origin_room_id)
|
||||
if room_state_decision == "origin_first":
|
||||
if room_state_decision == "always":
|
||||
# Origin-First Guard: Stay, kein Move-Request nötig — same room
|
||||
return RoutingDecision(
|
||||
category="direct_question",
|
||||
@@ -313,8 +313,9 @@ class BidirectionalRouter:
|
||||
confidence=1.0,
|
||||
stay_in_room=True,
|
||||
)
|
||||
elif room_state_decision == "sticky":
|
||||
# Sticky: Move-Request bereits beantwortet — kein neuer Move-Request
|
||||
elif room_state_decision == "never_route":
|
||||
# Sticky: User hat 'Generell hier bleiben' gewählt —
|
||||
# KEIN Move-Request, KEIN Archivar-Aufruf, KEIN Routing
|
||||
return RoutingDecision(
|
||||
category="direct_question",
|
||||
target_room="",
|
||||
|
||||
Reference in New Issue
Block a user