Files
Hermes_rocket.chat_Plugin/plugin
Bernd (Hermes) aefe61fd61 P-041b: DDP-Stabilität + Puls-Cache-Lockerung + PULSE_INTERVAL_S=2.5
DDPFirstSender:
- H1: connected-Check VOR Future — connected=False → sofort REST-Fallback
- H2: DDP_TIMEOUT_S 1.5s → 3.0s (+0.5s Buffer = 3.5s total)
- ddp_healthy State Machine: True nach Erfolg, False nach 3 Fehlern
- E4: Nach 3× 429 trotz DDP → DDP untrusted, REST-only
- H3 Watchdog: is_ddp_healthy() prüft Alter (<60s)

Mediator:
- PULSE_INTERVAL_S 5.0s → 2.5s (Pulsieren sichtbar)
- 3-Schichten-Cache: P3/P4+ddp_healthy→kein Cache, P3/P4+!ddp_healthy→Cache, P1/P2→Cache
- E3: pulse_lock serialisiert Pulse-Ticks (max 3s block)
- E1: DDP-Fail-Mid-Pulse → Reconciliation sendet REST-Call
- E5: Reconciliation-Skip prüft (last_phase, last_status)

Adapter:
- H3 Watchdog: Reader-Liveness, Frame-Timeout >60s, Health-Ping alle 60s

Tests: 27 neue Tests (test_p041b_ddp_stability.py), 111 total grün
2026-08-09 11:40:17 +02:00
..