PCP · pcp
PCP Recovery — Health Monitoring & Auto-Degradation
PCP v4.2 Recovery Runtime — per-app health monitoring, crash recovery, and automatic Tier degradation (Tier 1 → Tier 2 → Tier 3).
pcp-recoveryv0.1.0pcp
640
Lines of Code
26
Tests
8
Files
Architecture
Implements CrashRecoveryManager with transaction journaling and tier degradation logic.
Overview
pcp-recovery monitors the health of registered PCP apps. When an app crashes or becomes unresponsive, the recovery runtime automatically degrades its tier (Tier 1 native → Tier 2 AT-SPI2 → Tier 3 input simulation), replays journaled state, and notifies subscribers. It manages transaction records for crash-safe capability invocations.
Data Flow
App crash detected → recovery runtime activates → replays journaled state → degrades tier → notifies subscribers
Dependencies
Internal (1)
External (5)
serde workspaceserde_json workspacetracing workspaceasync-trait workspacechrono workspace
Depends on pcp-core. Part of PCP v4.2 §17.