Runbook Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5168
Answer
Runbook Automation encodes an operational procedure so common diagnostics or remediations can execute consistently while preserving prerequisites, decision points, evidence and escalation boundaries.
Remember
- Runbook exists ≠ runbook works in the current environment.
- Automated step success ≠ incident resolved.
- Runbook automation ≠ remove judgment; ambiguous or high-risk branches can intentionally escalate to humans.
- Known fix ≠ safe first action if evidence needed for diagnosis would be destroyed.
First checks
- Runbook catalogue — automated procedures
- Execution logs — who ran what
- Manual fallback steps — resilience
Commands
git status --short --branch- Read-only/validation observation for current branch, working-tree changes and divergence indicators.
Verify in this order
incident/request → runbook → automated steps → result
Where it usually breaks
Runbook completion proves encoded steps ran; it does not prove the underlying incident or service problem is resolved without original-test verification.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Runbook Automation automation boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / inputs | Owner, scope and authoritative inputs are explicit and versioned where applicable | Hidden defaults, stale inventory or competing sources of truth |
| Decision / execution | Plan or decision is explainable and actions are bounded per target | Blind fan-out, implicit assumptions or success based only on executor status |
| State / verification | Target is re-observed and acceptance criteria prove the intended outcome | No read-back, perpetual drift, partial side effects or unresolved exceptions |
| Recovery / evidence | Retry, rollback or escalation behavior is defined and auditable | Unknown partial completion, unsafe retry or evidence lost during remediation |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5168