bb91300aa8
B1 [P0]: _read_heartbeat() suchte nicht-existierendes 'ts'-Feld.
- Entfernt: 'ts'-Validierung
- Neu: _parse_heartbeat_timestamp() Helper mit 3 Quellen:
1. start_time (Unix-Float) — Prozess-Start
2. updated_at (ISO-String) — letzter Heartbeat
3. mtime der Datei — Fallback
B2 [P0]: restart_loop.json-Parsing suchte nicht-existierendes 'boot_ts'.
- Entfernt: restart_loop.get('boot_ts')
- Neu: _parse_restart_loop_recent() Helper
Liest boots[-1] aus {'boots': [ts1, ts2, ...]}
B3 [P1]: _is_planned_takeover() — False-Positive bei Deployments.
- TTL-Prüfung (60s) wie Core _marker_is_stale()
- ValueError/TypeError beim Parsen → stale (matching Core)
- start_time-Vergleich: Heartbeat neuer als Marker → Takeover
B4 [P1]: Integrationstest run_integration_test().
- Erstellt echte gateway.heartbeat + restart_loop.json
- Ruft check_for_predecessor_crash() auf
- Prüft CRASH-FORENSIK-Report
- Räumt Test-Dateien auf
Reviewed-by: Rainer (Session 20260814_204809_bbe8e6)