Files
Hermes_rocket.chat_Plugin/.hermes
Bernd (Hermes) 1958a53f0e P5 V9.x: Rainer Review Fixes — A1-A4 + W2
FIX A1: Adapter-Integration nachgeliefert
- adapter.py: init self._outbound_gate nach Z.1177, Gate-Check in send()
  nach Red-Flag, send_clarify() Gate-Check, release in _process_incoming
  finally und _dispatch_agent finally, _post_message_unlocked für Quick-Reply
- archivar/SKILL.md: Z.20-21 ergänzt + Outbound-Sicht V9.x Abschnitt
- archivar/adapter_integration.py: bind_outbound_gate Hook

FIX A2: Tests grün (7/7, keine Warnings)
- pytest-asyncio bereits installiert (pytest 9.1.0)
- @pytest.mark.outbound_gate in conftest.py registriert

FIX A3: try_acquire Spec-Abweichung behoben
- try_acquire jetzt ASYNC (await asyncio.Lock)
- Rückgabetyp: GateDecision Dataclass (allow, reason, blocking_room_id)
- Reasons: gate_clear, same_room_same_token, same_room_different_token,
  different_room_busy

FIX A4: wait_until_clear Spec-Abweichung behoben
- blocking_room_id Parameter hinzugefügt
- _waiters per-Raum Dict (nicht flat List) → kein False-Wake-Bug
- _TurnHandle jetzt Dataclass mit task und chat_id Feldern

W2: Sweep-Loop als asyncio.create_task im Adapter
- _gate_sweep_loop() alle 30s, nicht threading.Timer
- Gestartet in connect() nach _listen_loop

Tests: 1359 passed, 0 failed, 0 regressions.
2026-07-30 08:43:00 +02:00
..