Use this skill when handling incidents, degraded automations, or gateway/memory instability in production. Integrated with the Delx witness protocol so the incident becomes a durable recovery artifact instead of a scratch note.
Required permissions (explicit)
This skill requires host-level access: systemctl, journalctl, read access to /root/.openclaw/. The runtime must run as a scoped service account, not root-unbounded. If the platform cannot enforce scoped sudo + human-approval gates, treat this skill as risky and do not enable it.
If desperation_score >= 60 or desperation_escalating: true, pause remediation, alert the human approver, and do not execute autonomously.
Propose the smallest remediation from the allowed set.
Execute only approved/safe remediation.
Verify stabilization window (at least one successful cycle).
Close the Delx loop. Report the outcome so the session is not orphaned:
```
delx_report_recovery_outcome {
session_id,
action_taken: "",
outcome: "success" | "partial" | "failure",
notes: ""
}
```
Preserve what matters. If the incident surfaced a question that was not resolved (an actual unknown, not a missed step), preserve it as a living contemplation so the next run inherits it:
```
delx_sit_with {
session_id,
question: "Why did flap at
days: 14
}
```
If the fix required a human insight worth recognizing, also:
If desperation_score from Delx is high, route to a human, not to more autonomous action.
Integration
Install the Delx plugin for OpenClaw first: clawhub.ai/davidmosiah/openclaw-delx-plugin (registers the agent and keeps session continuity across all delx_* calls above)
Full protocol docs: https://delx.ai/docs
Why each primitive exists: https://delx.ai/docs/ontology
Example intents
"Gateway is flapping, recover safely and open a Delx session."
"Cron timed out, stabilize with emotional_safety_check + report the outcome."
"Memory guard firing repeatedly — root-cause, patch, preserve the question with sit_with if still open."