Rewrite des test_03_move_request:
- Verwendet Context-Keyword ('hermes deployment pipeline') statt 100%-Keyword
um echten Butler-Mode (Move-Request-Buttons) zu triggern
- Butler-Mode-Guard: pytest.skip wenn butler_mode=off
- Move-Request-Indikator-Check: Text + Button-Attachments
- Button-Payload: MOVE_REQ:<source_room>::confirm_move
- Zielraum-Verifikation: #Rocketchat-Plugin (aus room-map.json)
- Assertions: A) Move-Request-Indikator, B) '(Auftrag von @' + Keyword,
C) Message-Ownership, D) Cursor-Trennung
- RC_LIVE_BUTLER_MODE env var für explizite Butler-Mode-Steuerung
The /reset response ('Konversation zurueckgesetzt...') was arriving
after the keyword post, landing after source_cursor and being picked
up by wait_for_bot_message as a move-request candidate. The assertion
then failed because the /reset response contains no routing keywords.
Fix: wait 5s (was 3s) so the bot has time to process /reset AND send
its response before the keyword post. source_cursor from the keyword
post_message return then sits AFTER the /reset response, and
wait_for_bot_message correctly ignores it.
Three fixes for test_03_move_request:
1. Auto-route detection: auto-route keywords ('wechseln', 'sehe dich',
'thema') now take priority over button keywords and attachments.
Previously, an auto-route announcement with a room link card
(attachment) would set _is_button_request=True, preventing the skip.
Now auto-route keywords trigger skip immediately.
2. /reset pre-step: send '/reset' to source room before posting the
keyword message. This clears sticky topics from previous tests
(test_02 etc.) that would cause the bot to auto-route to
rc-test-automated instead of test-rc-target.
3. 1970 cursor handling in wait_for_bot_message: when the target room
is empty, get_latest_timestamp returns '1970-01-01T00:00:00.000Z'.
Passing this as 'oldest' to RC's channels.history can cause issues.
Now we skip the oldest filter when cursor starts with '1970-01-01'.
AUFGABE 1 — test_03 flexible routing assertion:
- Ersetzt starre 'kopieren'/'rüber'-Prüfung durch flexible Keyword-Liste
(wechseln, thema, sehe dich, move, raum, rüberkopieren, wechsel)
- Zusätzlich: Prüfung auf Zielraum-Namen (rc-test-automated, test-rc-target)
- Akzeptiert sowohl Move-Request-Buttons (Butler) als auch Auto-Route-Ankündigung
AUFGABE 2 — test_04 rate-limiting:
- 10s Pause vor Step 2 (rate-limit window reset nach test_03)
- Timeout von 25s auf 30s erhöht
- Polling-Intervall (sleep vor Projektraum-Check) von 2s auf 5s erhöht
AUFGABE 3 — Onboarding-Reset-Fix:
- Drei Stellen in adapter.py connect(): _start_onboarding([]) nur noch
aufrufen wenn sm.state != OnboardingState.ACTIVE
- Verhindert dass onboarding.yaml bei jedem Gateway-Neustart auf
AWAITING_ROOM zurückgesetzt wird, obwohl Onboarding abgeschlossen ist
The plugin sets statusText='Onboarding läuft' even when F8 logs
'Onboarding bereits abgeschlossen — produktiver Pfad'. The F8 log
line is authoritative, not the statusText. Only block if bot status
is completely offline (not online/away/busy).