Self Healing Error Recovery
When to Use
- User says heal this error or task matches this capability
- User says self recover or task matches this capability
- User says fix failure automatically or task matches this capability
- User says retry smart or task matches this capability
Workflow
- Capture error message, command, and environment context.
- Classify: transient / config / permission / logic / dependency.
- Try up to 3 recovery strategies (retry, alternate path, dependency fix).
- If recovered, summarize fix. If not, escalate with diagnosis.
- Record lesson: error pattern -> successful fix.
Integrations
knowledge-graph-buildersemantic-memory-managerbottleneck-resolver
Error Handling
| Failure | Response |
|---|---|
| Destructive command failed | Do not auto-retry deletes; require HITL. |
| Same error 3x | Stop retrying; report root cause. |
| Permission denied | Never escalate privileges; ask user. |
Gotchas
- Read-only diagnosis first; mutate only after classification.
Example
Input: User request matching triggers above. Output: Structured result per workflow with integrations invoked as needed.