Pcornel
Automation · Automation Fundamentals

Runbook Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5168

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Intent / inputsOwner, scope and authoritative inputs are explicit and versioned where applicableHidden defaults, stale inventory or competing sources of truth
Decision / executionPlan or decision is explainable and actions are bounded per targetBlind fan-out, implicit assumptions or success based only on executor status
State / verificationTarget is re-observed and acceptance criteria prove the intended outcomeNo read-back, perpetual drift, partial side effects or unresolved exceptions
Recovery / evidenceRetry, rollback or escalation behavior is defined and auditableUnknown 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

Confirmation

Confirm action

Continue?