Files
Hermes_rocket.chat_Plugin/plugin
Bernd (Hermes) 0700f4024e fix(P-074): Crash-Forensik Pfad-Mismatch + SIGKILL-Klassifikation
P-074a (Pfad-Mismatch):
- GATEWAY_STATE_PATH korrigiert: HERMES_HOME/gateway_state.json (Core schreibt
  via status.py _get_pid_path().with_name(), nicht gateway/gateway_state.json)
- _resolve_path() Helper: primärer Pfad + Fallback-Lage, graceful skip wenn
  Datei fehlt (Quelle als 'nicht verfügbar', kein Fehler)
- Quelle 3 (restart_loop.json) + Quelle 4 (gateway_state.json) nutzen jetzt
  dynamische Pfad-Auflösung statt hardcoded

P-074b (SIGKILL-Klassifikation):
- classify_crash_source() erkennt systemd 'status=9/KILL', 'code=killed',
  'signal=KILL', 'SIGKILL' → neue Kategorie 'external (SIGKILL)' wenn kein
  Traceback vorliegt (kill -9 / OOM erzeugt keinen Python-Traceback)
- Core-Pfad-Erkennung erweitert: hermes-agent/ (Bindestrich, realer
  Install-Pfad) zusätzlich zu hermes_agent/ (Unterstrich) — vorher wurde
  'core' nie erkannt
- Test-Mode um SIGKILL-Szenario erweitert

Verifiziert: Test-Mode liefert alle 6 Datenpunkte, Integrationstest S1/S2/S3
ALL_PASS, SIGKILL-Klassifikation liefert 'external (SIGKILL)'
2026-08-15 10:04:51 +02:00
..