fix(P0-3): is_onboarding-Gate erweitert — FAKT::/REVIEW_*/⏰ Prefix abgefangen

This commit is contained in:
Bernd (Hermes)
2026-07-24 14:28:53 +02:00
parent 0bfa791d79
commit 07ba653b65
2 changed files with 535 additions and 1 deletions
+9 -1
View File
@@ -2183,7 +2183,15 @@ class RocketChatAdapter(BasePlatformAdapter):
# als Freitext an den LLM-Agenten durchgereicht werden.
_review_phases = {"review_room", "review_butler", "review_fakt"}
is_onboarding = (
(is_operator_room and stripped.startswith("ONBOARD:")) # v2 Button-Klick
# P0-3: Prefix-Checks VOR Phase-Inspektion (Defense in Depth)
# Fängt FAKT::/REVIEW_*/⏰ auch bei State-Verlust ab
(is_operator_room and stripped.startswith("FAKT::"))
or (is_operator_room and stripped.startswith("REVIEW_BUTLER::"))
or (is_operator_room and stripped.startswith("REVIEW_FAKT::"))
or (is_operator_room and stripped.startswith("REVIEW_ROOM"))
or (is_operator_room and "⏰" in stripped)
or (is_operator_room and stripped.lower() == "später")
or (is_operator_room and stripped.startswith("ONBOARD:")) # v2 Button-Klick
or (is_operator_room and stripped.startswith("BUTLER:")) # Fix C v7: Butler-Mode Button
or (is_operator_room and self._onboarding_state.get("current_room_index", -1) >= 0) # v2 Interview läuft
or (is_operator_room and self._onboarding_state.get("phase") == "butler_mode") # Fix C v7: Butler-Mode Phase