OPS-69Recommended
Keep manual operations work under half the time
Tag every ticket for manual, repeated operations work, such as restarts, hand deploys and data fixes, and record the time it took. Keep it under 50% of the team's time, and automate the largest item each quarter.
How to do it
Google's SRE book calls this work toil. It is manual, repeated, could be automated and grows with the service. Left alone it fills the week and no time remains to fix causes. Record the time on the ticket itself, not in a separate timesheet, and sum the hours each month. Turn the largest item into code or a check, as in keep runbooks next to the code and check every rule in code. Pages that need the same manual fix each time count as toil too, as in make every alert actionable. Turn hand data fixes into scripts, as run one-off tasks as reviewed scripts says.
How to check
The time on tickets tagged as toil in the last quarter is under 50% of the team's working hours. The largest toil item of the previous quarter has a merged automation or an open ticket with an owner and a date.
Sources
Related rules
- DOC-44 Keep runbooks next to the code they run in Documentation
- ENG-1 Check every rule in code in Engineering
- OPS-19 Make every alert actionable in Operations and observability
- ENG-43 Run one-off tasks as reviewed scripts in Engineering
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/operations/running-the-service/limit-toil">Agent Wranglers operations and observability playbook</a>. In code you write, add a comment next to it with the same link.