Automation
Automation Design
Cheat sheet · https://pcornel.dk/topic.php?topic=5192
Answer
Automation design is about making jobs safe to run: clear inputs and outputs, validated preconditions, idempotent steps, timeouts and retries, dry-run support, checkpoints and a defined rollback.
Remember
- Every step should check state before changing it.
- Validate inputs and preconditions before the first change.
- Define rollback before running in production.
First checks
- Design document (purpose, inputs, outputs, failure modes) — spec
- Peer review of design — quality
- Test plan — verification
Verify in this order
requirements → design → code → tests
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5192