feat(F547,F548): DDP-Congestion-Prevention + P-025 Onboarding-Guard Fix

F547 — PresenceEngine DDP-Congestion-Prevention (id=5385):
- Layer 1: DDPFirstSender.send() überspringt DDP-Method-Calls bei
  ddp_healthy=False und nutzt direkt REST (HALF_OPEN-Probe alle 30s).
  Fix gegen 1033 calls/h am 19.09. (23% DDP-Stream-Blockierung).
- Layer 2: Backoff — ddp_healthy erst nach N=3 konsekutiven Erfolgen
  wieder True (1 Erfolg ist kein Gesundungs-Signal, P-090-Muster).
- Layer 3: non-blocking Telemetrie (_telemetry_ddp_pauses/resumes).

F548 — P-025 Onboarding-Guard Fix (id=5386):
- Fix B/D: advance_test()/complete() leeren missing_rooms + current_room_index
  IMMER (Datenintegrität — kein Zombie-State für B9-Reconnect).
- Fix A: _sanitize_missing_rooms_for_trigger() filtert Räume, die inzwischen
  in excluded_rooms sind → kein Onboarding-Neustart.
- Fix C: skipped_rooms-Filter (Räume aus skipped_rooms werden gefiltert).
- B9-Trigger in connect() nutzt Sanitization.

Keine ENV-Vars (config.yaml/AGENTS.md: .env = secrets only).
Keine __init__.py Änderungen (P-294).

Tests: test_f547_ddp_congestion.py (12), test_f548_onboarding_guard.py (9),
test_p041b_ddp_stability.py angepasst. 190 presence-tests + 147 onboarding-tests grün.

@implements: [F-547] [F-548]
This commit is contained in:
Bernd (Hermes)
2026-09-19 11:49:03 +02:00
parent 741e1aba3c
commit a24dc9d6b1
7 changed files with 603 additions and 17 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
# Projekt-STATUS — Hermes Rocket.Chat Plugin
> **Stand:** 18. September 2026 — `32b560d` F072+F544 Welle 3 — Prozess-Isolation POC + Context-Curator. **Drei Wellen (W1-W3):** F069 BG-Review-Switch, F434 venv-Stamp, F172 Pacing, F068 Stabilitäts-Monitor, F070 Contract-Test-Framework, F071 Refactor-Audit, F072 Prozess-Isolation, F544 Context-Curator. @implements [F-069] [F-434] [F-172] [F-068] [F-070] [F-071] [F-072] [F-544]. **Gepusht auf origin/main.**
> **Stand:** 19. September 2026 — F547 DDP-Congestion-Prevention + F548 P-025 Onboarding-Guard Fix. @implements [F-547] [F-548]. **F547:** DDPFirstSender pausiert DDP-Calls bei ddp_healthy=False (Layer 1), Backoff N=3 konsekutive Erfolge (Layer 2), Telemetrie (Layer 3). **F548:** advance_test/complete leeren missing_rooms immer (Fix B/D), B9-Trigger filtert excluded/skipped Räume (Fix A/C). **Nicht deployt** — QG durch Rainer ausstehend.
> **Letzter fachlicher Commit:** `32b560d` — feat(F072,F544): Welle 3 — Prozess-Isolation POC + Context-Curator im multiroom=false @implements: [F-072] [F-544]
> **Gitea-Remote:** ✅ Synchron — `8a00c39` + `f81a510` + `221500e` + `32b560d` + `31ca0f2` + `df8be1c` + `500c28a` + `f165f11` + `4ea711c` + `5027738` + `117b839` + `b8373d3` + `25678c6` + `bb91468` + `a1f4ed0` + `f0f3537` + `ebd057e` + `0d9275d` + `6e8854d` + `b61e19d` + `05531f1` gepusht auf origin/main.
> **Deployment:** ✅ .101 deployed bei `32b560d` (Plugin v10.3) — Alle 3 Wellen aktiv: F069 BG-Review-Switch, F434 venv-Stamp, F172 Pacing, F068 Stabilitäts-Monitor, F070 Contract-Test-Framework, F071 Refactor-Audit, F072 Prozess-Isolation, F544 Context-Curator. MD5 verifiziert. Gateway aktiv. Deployment via `install.sh` (Don via SSH .45→.101). 110 Features GRÜN, 2 verworfen (grau).
@@ -27,6 +27,7 @@
| Commit | Beschreibung | Datum |
|---|---|---|
| `F547+F548` | feat(F547,F548): DDP-Congestion-Prevention + P-025 Onboarding-Guard Fix @implements: [F-547] [F-548] — presence_engine.py (DDPFirstSender: Layer-1-Pause, Layer-2-Backoff N=3, Layer-3-Telemetrie), onboarding_state.py (advance_test/complete leeren missing_rooms), adapter.py (_sanitize_missing_rooms_for_trigger + B9-Verdrahtung), 2 neue Test-Dateien (test_f547_ddp_congestion.py 12 Tests, test_f548_onboarding_guard.py 9 Tests), test_p041b_ddp_stability.py angepasst | 19.09. |
| `8a00c39` | docs: STATUS.md — Deployment .101 ✅, 110 Features GRÜN (Deployment-Vermerk aktualisiert) | 17.09. |
| `f81a510` | docs: Tagesabschluss auto-commit — Handbuch-Updates bereinigt (NUTZER_HANDBUCH.md, SYSTEM_HANDBUCH.md) | 17.09. |
| `221500e` | docs: STATUS.md — 32b560d F072+F544 Welle 1-3 nachgetragen @implements: [F-072] [F-544] | 17.09. |