Document
Automation edge-case checklist
What to ask before you automate a process, so the workflow handles the unusual day as well as the normal one.
Go through this list for every workflow before it goes live. Each "no" is a failure waiting to happen.
Inputs
- What happens when a field is empty, too long, or in the wrong format?
- What happens when the same record arrives twice?
- Dates and times: whose time zone?
Other systems
- What happens when an app the workflow calls is down or slow?
- Does the workflow respect that app's rate limits?
- If a step fails halfway, can it run again without doing the first half twice?
People
- Who gets told when it fails, and how fast?
- Is there a manual way to finish the job while it is broken?
- Does a person approve anything that is expensive or embarrassing to get wrong?
Records
- Is every run logged, with enough detail to see what went wrong?
- Does it use the least access it needs?
- Is personal data kept only as long as needed?
Before launch
- Every item above has a test.
- Someone other than the builder has run the tests.