mesh-health-check — Composite service health aggregator for Mesh Protocol
mesh healthcheck [args]
# mesh-health-check
Composite service health aggregator for Mesh Protocol. Combines SLA endpoint monitoring, circuit breaker states, scheduler queue health, ledger integrity, and disk usage into a single scored verdict (0-100, A-F grade).
## Layer
Infrastructure (cross-cutting)
## CLI
`mesh healthcheck|hc <command>`
## Commands
- `run` — Full health check across all subsystems
- `quick` — Quick check (skip slow probes)
- `status` — Show last check result
- `history [N]` — Last N results
- `watch [sec]` — Continuous monitoring
- `report` — Generate markdown report
- `trend` — Score trend with sparkline
## Subsystems Checked
- SLA endpoints (API :7337, relay :7338)
- Circuit breakers (open/half-open detection)
- Scheduler (dead/stuck tasks)
- Ledger integrity (empty ledger detection)
- Disk usage (mesh-state, tools, memory)
## Data
- State: `mesh-state/health-check/`
- Reports: `mesh-state/health-check/reports/`
- Ledger: `mesh-state/health-check/checks.jsonl` (via ledger-write.sh)
## Integration
- Uses ledger-write.sh for standardized event logging
- Reads from mesh-sla, mesh-circuit-breaker, mesh-scheduler
- Wired into mesh CLI as `mesh healthcheck|hc`