feat(P-078): GREEN_PULSE-Fix Steps 1-3 — delegation_tracker als Golden Source, pgrep als Telemetrie, Hook-Symmetrie on_review_fork_close

This commit is contained in:
Bernd (Hermes)
2026-08-18 06:02:08 +02:00
parent f7cbe7dc83
commit 0d9f483d51
4 changed files with 575 additions and 52 deletions
+87 -31
View File
@@ -1,8 +1,8 @@
# Projekt-STATUS — Hermes Rocket.Chat Plugin
> **Stand:** 11. August 2026 — ✅ AKTUELL
> **Stand:** 18. August 2026 — ✅ AKTUELL
> **Aktiver Branch:** `main`
> **Letzter Commit:** `5fc3dbd` — fix: entferne doppelte clear_clarify_modal()-Blöcke (11.08. 19:27)
> **Letzter Commit:** `feat(P-078)` — GREEN_PULSE-Fix Steps 1-3 (delegation_tracker als Golden Source, pgrep als Telemetrie, Hook-Symmetrie on_review_fork_close)
> **Gitea-Remote:** ✅ SSH synchron — `Andreas/Hermes_rocket.chat_Plugin` (git@192.168.180.47:222)
> **Uncommitted:** ✅ 0
> **Deployment-Pfad:** `~/.hermes/plugins/platforms/rocketchat/`
@@ -14,29 +14,50 @@
| Datei | Deployed MD5 | Git MD5 | Status |
|---|---|---|---|
| `adapter.py` | `49b3895...` | `49b3895...` | ✅ identisch |
| `__init__.py` | ✅ | ✅ | ✅ identisch |
| `rc_tools.py` | ✅ | ✅ | ✅ identisch |
| `conftest.py` | ✅ | ✅ | ✅ identisch |
| `adapter.py` | `2f3baac7...` | `2f3baac7...` | ✅ identisch |
| `__init__.py` | `d081804a...` | `d081804a...` | ✅ identisch |
| `rc_tools.py` | `1fd47d1d...` | `1fd47d1d...` | ✅ identisch |
| `conftest.py` | `9753e447...` | `9753e447...` | ✅ identisch |
| `crash_forensics.py` | `42cafee3...` | `42cafee3...` | ✅ identisch |
> Alle 4 Plugin-Dateien auf .101 entsprechen dem aktuellen Git-Stand (`5fc3dbd`).
> Core-Plugin-Dateien auf .101 entsprechen dem aktuellen Git-Stand (`f7cbe7d`).
---
## Aktuelle Commits (Chronologisch, neueste zuerst)
## Aktuelle Commits (Chronologisch, neueste zuerst — seit 11.08.)
| Commit | Beschreibung | Datum |
|---|---|---|
| `feat(P-078)` | GREEN_PULSE-Fix Steps 1-3 — delegation_tracker als Golden Source, pgrep als Telemetrie, Hook-Symmetrie on_review_fork_close | 18.08. |
| `f7cbe7d` | fix(P-075): crash_forensics.py an reales gateway_state.json-Schema anpassen | 15.08. |
| `8af0c03` | fix(P-074c): gateway_state.json updated_at ist ISO-String, nicht Unix-Float | 15.08. |
| `0700f40` | fix(P-074): Crash-Forensik Pfad-Mismatch + SIGKILL-Klassifikation | 15.08. |
| `0deb3a5` | fix(P-073): crash_forensics-Import im Gateway-Kontext — expliziter sys.path-Eintrag | 15.08. |
| `8dc62f1` | fix(P-072): Crash-Forensik Race-Condition — start_time-Vergleich bei PID-Match | 14.08. |
| `bb91300` | fix(crash_forensics): P0-Schema-Fixes + P1-Takeover-Fix + Integrationstest | 14.08. |
| `438d4bc` | plugin: Post-Crash-Forensik + skip_background_review-Integration | 14.08. |
| `10c52cd` | fix(P-067): send_clarify aktiviert Clarify-Modal-Puls | 13.08. |
| `9018683` | fix(P-066-followup): send_clarify nutzt button_builder-Pipeline | 13.08. |
| `2ffb7cb` | fix(P-066): Clarify-Buttons gerendert + deutsche Labels | 13.08. |
| `0ac5031` | tune(P2): adaptive pause factor ×3 → ×6 | 13.08. |
| `4ad0cf5` | feat(B7): Natürliche Sprache als Hilfetrigger | 13.08. |
| `5363405` | fix(P-064+P-065): Hook-Registrierung in connect() + Onboarding ACTIVE-Guard | 13.08. |
| `3471d8e` | fix(P-063): RC-Status-Reset nach Gateway-Neustart + Drift-Korrektur | 13.08. |
| `3fa3b59` | fix: stay_tracker nur bei stay_here (Option 2) | 13.08. |
| `db06190` | fix(P-061): restliche V8.6-Zombie-Referenzen entfernt | 13.08. |
| `379140d` | fix(P-060-followup): V8.6 PresenceEngine Methodenaufrufe entfernt | 13.08. |
| `71ade40` | fix(P-060): ungeschützte _pulse_controller-Referenzen entfernt | 12.08. |
| `da08382` | fix: P-057 Folgefix + P-058 DM-Ausschluss-Korrektion | 12.08. |
| `da9517f` | fix: P-059 — PresenceEngine coalesce_ms/pulse_interval Inkompatibilität | 12.08. |
| `2cb506c` | fix: P-056 + P-057 + P-058 — Themenring, stay_once neutral, Button 4 | 12.08. |
| `400bdd5` | test: P-054 + P-055 — Unit-Tests | 12.08. |
| `fed5656` | fix: P-054 + P-055 — Onboarding-State-Bug und Clarify-Dispatch-Schleife | 12.08. |
| `0d6db77` | test(live_rc): test_08_clarify | 12.08. |
| `cd84fd3` | fix(P-052): Modal-Puls ignoriert Cooldown | 12.08. |
| `328532b` | fix(P-051): action_id in allen Button-Dicts (RC 6.x Rendering-Fix) | 12.08. |
| `338fa14` | feat(P-044): install.sh-Migration pip → offizieller Hermes-Installer | 12.08. |
| `5fc3dbd` | fix: entferne doppelte clear_clarify_modal()-Blöcke | 11.08. |
| `a743914` | feat: P-049 Clarify-Modal busy↔offline 1,5s + P-047 Mobile-Buttons | 11.08. |
| `28714b1` | feat: Clarify-Status-Text 'wartet auf Antwort' (Presence-Engine) | 10.08. |
| `9f80da6` | P-045: CLARIFY — 2 Root-Cause-Fixes | 10.08. |
| `232fde3` | P-044: CLARIFY-Auflösung — 3 Bugfixes (session=?, pending_questions) | 10.08. |
| `f0a7e83` | hotfix: CLARIFY-Button ::-Format — resolve_gateway_clarify() | 10.08. |
| `cc687c7` | send_clarify(): chunk buttons max 3 per row | 10.08. |
| `bd579bd` | fix: Clarify-UX — Emoji-Zahlen + Plain-Digit Text-Intercept | 10.08. |
| `fa9091e` | P-041a: GC-Reset Bug fix — Stufe 1 (Plugin-seitig) | 10.08. |
| `9dbdfd7` | P-041b E6: CancelledError-Fix — Sweep-Threshold 2.0s → 5.0s | 09.08. |
| `a743914` | feat: P-049 Clarify-Modal + P-047 Mobile-Buttons | 11.08. |
---
@@ -44,25 +65,60 @@
| P-ID | Problem | Status |
|---|---|---|
| P-041a | GC-Reset trifft aktive Lang-Turns | ✅ Stufe 1 deployt |
| P-043 | Gateway-Blocker via `_HERMES_GATEWAY=0` | ✅ gelöst |
| P-045 | Clarify-Button-Klick nicht weitergeleitet | ✅ gefixt |
| P-046 | Clarify session=? Mapping | ✅ gefixt |
| P-047 | Mobile: Buttons nicht klickbar | ✅ Workaround (msg_in_chat_window=False) |
| P-048 | Clarify visual Chunking nicht sichtbar | ✅ GELÖST — Screenshot beweist 3-Spalten-Grid |
| P-049 | Clarify-Modal: Status-Änderung als Phase | ✅ implementiert |
| P-050 | 1,5s-Puls triggert RC Sub-Limiter | ✅ Adaptives Backoff — Status quo, wird getestet |
| P-044 | pip deprecated → offizieller Hermes-Installer | ✅ Migration implementiert |
| P-051 | Clarify-Buttons ohne action_id → RC 6.x ignoriert | ✅ gefixt, Mobile bestätigt |
| P-052 | Modal-Puls blockiert durch Cooldown | ✅ gefixt |
| P-053 | Self-Improvement-Loop crasht Gateway während Clarify | ✅ gefixt |
| P-054 | In-Memory Onboarding-State nach Restart leer | ✅ 3-Stage Fallback |
| P-055 | Clarify-Dispatch-Schleife (stay_once + Nachklärungs-Buttons) | ✅ skip_direct_dispatch |
| P-056 | Themenring greift nicht nach stay_here (Room-ID-Mismatch) | ✅ _normalize_room_id |
| P-057 | stay_once lernt falsch (neutral statt negativ) | ✅ feedback_type='neutral' |
| P-058 | Button 4 "Falsch geroutet" (reject feedback_type) | ✅ implementiert + DM-Ausschluss |
| P-059 | PresenceEngine coalesce_ms/pulse_interval Inkompatibilität | ✅ reverted zu away_grace_s |
| P-060 | V9-Refactor: ungeschützte _pulse_controller-Referenzen | ✅ entfernt |
| P-061 | V8.6-Zombie-Methoden in adapter.py | ✅ alle entfernt |
| P-063 | Drift-Korrektur Auto-Inkrement + fehlender RC-Status-Reset | ✅ gefixt |
| P-064 | _register_presence_hooks() nie aufgerufen — Status permanent GRÜN | ✅ in connect() verdrahtet |
| P-065 | _is_onboarding_phase_active() behandelt ACTIVE als laufend | ✅ aufgespalten |
| P-066 | send_clarify baut Buttons manuell — keine Pipeline-Features | ✅ button_builder genutzt |
| P-067 | send_clarify aktiviert Clarify-Modal-Puls nie | ✅ set_clarify_modal verdrahtet |
| P-072 | Crash-Forensik Race-Condition — Core-Heartbeat überschreibt PID vor Plugin-Connect | ✅ start_time-Vergleich bei PID-Match (14.08., .45 deployed) |
| P-073 | crash_forensics-Import schlägt im Gateway-Kontext fehl (sys.path) | ✅ expliziter sys.path-Eintrag (15.08.) |
| P-074 | Crash-Forensik Pfad-Mismatch + SIGKILL-Klassifikation | ✅ gefixt (15.08.) |
| P-074c | gateway_state.json updated_at ist ISO-String, nicht Unix-Float | ✅ gefixt (15.08.) |
| P-075 | crash_forensics.py an reales gateway_state.json-Schema angepasst | ✅ gefixt (15.08.) |
| P-076 | background_review.py ist Core-Code, nicht Plugin-Code | ✅ erkannt — Core-Änderung als eigener Deploy-Schritt (18.08.) |
| P-077 | _review_fork_ran-Flag muss VOR run_conversation gesetzt werden | ✅ gefixt — Flag vor run_conversation, idempotenter Clamp (18.08.) |
---
## GAP-Analyse (13.08. — verifiziert am Code)
| GAP | Stand 13.08. | Aufwand |
|---|---|---|
| B1: V7-2 Sticky thematisch | ✅ Implementiert | Nur Doku |
| B2: V7-3 "Jetzt verblasst" | ⚠️ Teilweise (24h-Verfall, adaptiv fehlt) | Mittel |
| B3: V7-4 Rückbezüge | ⚠️ Teilweise (sentence_markers.py, Verdrahtung fehlt) | Klein-Mittel |
| B4: V7-5 Pause-Definition | ⚠️ Teilweise (24h hard limit, adaptiv fehlt) | Klein |
| B5: Onboarding ohne Neustart | ⚠️ Teilweise (DDP-Events, Trigger fehlt) | Klein |
| B6: FAKT-Speicherort-Dialog | ✅ Implementiert (::setfakt) | Kein GAP |
| B7: Hilfeseite natürliche Sprache | ✅ Implementiert (Commit 4ad0cf5) | Kein GAP |
| B8: Taskliste (Notizzettel) | ⚠️ Teilweise (Counter + ::task, Nachhake-Logik fehlt) | Mittel |
---
## Offene Punkte
1. **P-048** — Visuelle Verifikation Chunking in produktiver UI (5 Buttons in einer Reihe statt 2×3)
2. **P-050** — Rate-Limiting-Telemetrie vor Release prüfen
3. **P-041a Stufe 2** — Core-API `on_session_progress` Hook (langfristig)
4. **Clarify-Test Round 3** — noch nicht durchgeführt
5. **install.sh-Migration** — Rainers X1-X7 Plan, Andreas' 3 Entscheidungen offen
6. **.45 Plugin** — ältere Version (kein manual_task-Counter), Update ausstehend
1. **P-050** — Rate-Limiting-Telemetrie vor Release prüfen
2. **P-041a Stufe 2** — Core-API `on_session_progress` Hook (langfristig)
3. ~~**install.sh-Migration** — Rainers X1-X7 Plan, Andreas' 3 Entscheidungen offen~~ **✅ ERLEDIGT (11.08.)** — A1/A2/A3 im Decision Log als ✅ Angenommen, Feature-Register Eintrag 62 (Commit `338fa14`), Pitfall P-044. Implementiert von Miguel.
4. **.45 Plugin** — ältere Version, Update ausstehend
5. **GAP B2/B4** — Adaptive Verfall-Logik (V7-3/V7-5)
6. **GAP B3** — Rückbezug-Verdrahtung (V7-4)
7. **GAP B5** — Onboarding-Trigger ohne Neustart
8. **GAP B8** — Taskliste-Nachhake-Logik
9. **24h-Rekonvaleszenz-Check** — Listener stabil seit 13.08.?
10. **Alte state.db-Backups** — Aufräumen WV 16.08. (4,6 GB, 5 Dateien)
---