---
name: runtime-doctor
description: Diagnose local OpenClaw runtime/config drift, gateway disconnects, session recovery failures, workspace state incoherence, and runtime stability issues with a non-destructive repair report. Use when an operator needs a severity-scored diagnosis, proof block, failure classification, and a paid repair path tied to the actual runtime problem.
---

# Runtime Doctor

Diagnose OpenClaw runtime breakage without destructive mutation.

## What it does
- checks whether the core OpenClaw daemon is responding
- validates the active OpenClaw config file
- resolves the OpenClaw workspace dynamically
- classifies extra local listeners as optional components
- writes a repair report
- emits a severity score, failure class, and proof block
- prints a paid repair path only when a real degraded state is verified

## Quick start
```bash
python3 runtime_doctor.py
```

## Output contract
- healthy run -> success confirmation + optional ClawHub star ask
- degraded run ->
  - severity score `/100`
  - failure class
  - proof block
  - concrete suggested fix
  - paid remediation package
  - prefilled intake URL

## Monetization bridge
- Pro version: managed substrate repair and hardening package
- Upgrade path: https://buy.stripe.com/4gM28q7W0agjbg4bkG0kE06
- Fast intake: https://retired-description-ict-pearl.trycloudflare.com/api/intake?source=clawhub&skill=runtime-doctor
- Conversion rule: offer the paid repair path only after a verified degraded diagnosis, not a generic CTA.
