Module health

Module health 

Source
Expand description

Agent health/liveness monitoring.

Watches subprocess output activity, classifies errors, and emits agenthealth WPS events when health state transitions occur.

Design: docs/specs/agent-health-design.md

Structs§

AgentHealthEvent
WPS event payload for health transitions.
ErrorTracker 🔒
Sliding-window error tracker.
HealthMonitor
Per-block agent health monitor.
HealthMonitorInner 🔒
Per-block health monitor inner state.

Enums§

AgentHealth
Agent health status (orthogonal to shellprocstatus).
ErrorClass
Error severity classification.

Functions§

classify_output_line
Classify a parsed NDJSON line for health monitoring. Returns (is_meaningful, optional_error).