Overview
Thefix-runbook command takes a self-heal diagnostic report and applies AI-generated repair suggestions to your runbook. Each suggestion is presented for review before applying.
Prerequisites
- A self-heal diagnostic report (generated by
--self-heal) - The original runbook that was used during self-heal
Workflow
1
Generate a self-heal report
Run the runbook with The report is saved as
--self-heal to produce a diagnostic report:{runbook-name}-report.md (e.g., login-flow-report.md).2
Run fix-runbook
3
Review each suggestion
For each AI suggestion, the command shows:
- The error and its classification category
- The proposed fix (selector change, step modification, etc.)
- Apply — Generate a patch and preview the diff
- Skip — Move to the next suggestion
- Abort — Stop processing remaining suggestions
4
Verify the fixed runbook
After applying fixes, run a normal execution to verify:
CLI reference
What’s next
Self-heal mode
How to generate diagnostic reports.
Error classification
How failures are categorized.