Commit Graph

2 Commits

Author SHA1 Message Date
Bernd (Hermes) 7857bc1aea fix(tests): replace clarify trigger texts with genuinely ambiguous scenarios
The old trigger texts asked the model to 'ask me a question with multiple
choices' — which caused deepseek-v4-flash (.45) to answer the question
directly as text instead of calling the clarify tool. glm-5.2 (.101) only
worked because it knew to call clarify proactively.

New approach: genuinely ambiguous decision scenarios where the model lacks
context to answer directly (e.g. 'short-term results vs long-term
architecture improvements'). The model MUST use the clarify tool because
it genuinely needs more information — not because the text asks for it.

Changes:
- test_clarify_buttons_rendered: 2-option decision without context
- test_clarify_button_click: same 2-option decision
- test_clarify_chunking: 3-option decision (workaround/refactoring/migration)
- test_clarify_modal_status: same 2-option decision

All trigger texts verified against room-map keywords_100 — no false routing.
No changes to test logic, assertions, or button extraction.
2026-08-14 06:05:26 +02:00
Bernd (Hermes) 0d6db77123 test(live_rc): test_08_clarify — Clarify-Buttons, Button-Klick, Chunking, Modal-Status
4 neue Live-Tests fuer den Clarify-Flow des RC-Plugins:

1. test_clarify_buttons_rendered:
   - Verifiziert attachments[].actions[] existieren
   - Prueft action_id-Feld in jedem Button-Dict (P-051)
   - Prueft Emoji-Nummern in Button-Labels (1️⃣ 2️⃣ 3️⃣)

2. test_clarify_button_click:
   - Loest Clarify aus, extrahiert clarify_id
   - Sendet CLARIFY:<id>::1 als Button-Klick-Simulation
   - Verifiziert Bot verarbeitet Antwort (kein pending_questions-Leak)

3. test_clarify_chunking:
   - Loest Clarify mit 4+ Optionen aus
   - Verifiziert >=2 Attachment-Bloecke (max 3/Reihe)
   - Prueft action_id in allen gechunkten Buttons

4. test_clarify_modal_status:
   - Prueft Bot-Status waehrend Clarify (busy/offline, nicht online)
   - Loest Clarify auf, verifiziert Status kehrt zurueck
   - Prueft StatusText enthaelt keine Warte-Indikatoren mehr

Technische Details:
- P6: Keine keywords_100 in Trigger-Texten
- P3: Polling 3s→8s→12s→20s, Timeout 120s
- 429: RateLimitSkip → pytest.skip
- CLARIFY-Payload: CLARIFY:<clarify_id>::<choice_idx> (1-basiert)
- Cleanup: Alle Test-Messages werden nach Test geloescht
2026-08-11 21:47:40 +02:00