Engineering checklist
Every rule in the engineering playbook, by chapter, required rules first. Each links to its own page with how we built it and how to check it. This is a lot to check. An Expert can check it for you.
Rules as code
- Recommended ENG-1 Check every rule in code
- Recommended ENG-2 Run one check of everything before every deploy
- Recommended ENG-3 Fail the build on broken rules
- Recommended ENG-4 Enforce the writing style in code
Build, test and deploy
- Required ENG-8 Deploy in one step and roll back by itself
- Required ENG-9 Give the server a health check
- Required ENG-12 Roll out settings and data files like code
- Recommended ENG-5 Unit test every branch and calculation
- Recommended ENG-6 Run the tests inside the container build
- Recommended ENG-65 Keep build tools out of the runtime image
- Recommended ENG-66 Send only the files the build needs
- Recommended ENG-67 Run the same images locally with Compose
- Recommended ENG-7 Stamp every build with its version
- Recommended ENG-10 Release to a small share of traffic first
- Recommended ENG-54 Track the five delivery measures
Version control and review
- Required ENG-15 Protect the main branch
- Required ENG-20 Protect the accounts that can change the code
- Recommended ENG-13 Keep every change in version control
- Recommended ENG-14 Make small changes on short-lived branches
- Recommended ENG-16 Run the checks on every change
- Recommended ENG-60 Test each change on top of the latest main before merging
- Recommended ENG-17 Fix a broken main branch first
- Recommended ENG-18 Update dependencies in small automatic steps
- Recommended ENG-19 Require an owner's review for sensitive code
- Recommended ENG-29 Change the docs in the same pull request
- Recommended ENG-61 Name the principle and the fix in every finding
- Recommended ENG-62 Report problems beyond the diff
- Recommended ENG-63 Answer every question by number
- Recommended ENG-64 Verify every finding from scratch
CI and supply chain
- Required ENG-55 Lock every CI action and its dependencies to a reviewed commit
- Required ENG-41 Keep untrusted text out of CI scripts
- Required ENG-56 Run outside code only on runners that are wiped after each job
- Required ENG-69 Pass build secrets as mounts instead of layers
- Required ENG-70 Scan every image before it ships
- Recommended ENG-21 Pin every version so builds repeat
- Recommended ENG-68 Pin each base image by digest
- Recommended ENG-11 Build releases only in CI and verify them before deploy
- Recommended ENG-42 Make release tags and files immutable
- Recommended ENG-57 Build releases without a shared cache
- Recommended ENG-58 Block pushes that contain secrets
- Recommended ENG-59 Sign release tags and require verified commits on main
Running in production
- Required ENG-23 Log, track errors and alert
- Required ENG-24 Watch the service from outside
- Required ENG-26 Keep secrets in a secrets store
- Recommended ENG-22 Keep settings outside the code
- Recommended ENG-25 Separate deploying from releasing
- Recommended ENG-43 Run one-off tasks as reviewed scripts
Major upgrades
- Required ENG-71 Keep one list of support end dates
- Recommended ENG-72 Upgrade one major version at a time
- Recommended ENG-73 Run codemods in their own commit
- Optional ENG-74 Test both versions during an upgrade
Feature flags
- Recommended ENG-45 Keep every flag in one register
- Recommended ENG-46 Hand flags to a new owner when people leave
- Recommended ENG-47 Keep serving when the flag service is down
- Recommended ENG-48 Log every flag change in production
- Avoid ENG-49 Reusing an old flag for new behaviour
Related playbooks
Show the badge on your project
When your project passes every Required rule, you can show this badge on your site or in your README. It links to this checklist, so anyone can run the same checks.
<a href="https://agentwranglers.se/playbook/engineering/checklist"><img src="https://agentwranglers.se/badge.svg" alt="Checked against the Agent Wranglers engineering playbook" width="214" height="20"></a>
[](https://agentwranglers.se/playbook/engineering/checklist)
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/engineering/checklist">Agent Wranglers engineering playbook</a>. In code you write, add a comment next to it with the same link.