Agent Wranglers

Engineering playbook

Rules for building any software. Every rule is checked in code, every change is tested the same way, and every deploy can roll itself back.

  • Required 14
  • Recommended 40
  • Optional 1
  • Avoid 1

An engineering playbook for any kind of software, from websites to APIs and apps. It covers how rules become checks in code and how changes are reviewed, built, tested and shipped. It also covers a safe CI and supply chain, and how software runs in production. READMEs, decision records, runbooks and docs that the build tests live in the documentation playbook. Later chapters cover major upgrades of frameworks and runtimes, and feature flags. Libraries that others install live in the developer tools playbook.

It is the core that the other playbooks build on. The testing, operations, data and clean code playbooks go deeper. The chapters on building, deploying and running in production stay short and link to them.

Chapters

  1. Rules as code

    Turn every rule into a check in code that passes or fails. Then people and AI agents never have to guess whether work is right.

    • Recommended 4
  2. Build, test and deploy

    Every change is tested and built the same way, shipped in one step, checked for health, and rolled back by itself when something fails.

    • Required 3
    • Recommended 8
  3. Version control and review

    Every change goes through version control in small steps. Automated checks and a second pair of eyes approve it before it reaches the main branch.

    • Required 2
    • Recommended 12
  4. CI and supply chain

    Build every release in CI from locked inputs, keep outside code and text from taking over the pipeline, and block leaked keys before they land.

    • Required 5
    • Recommended 7
  5. Running in production

    Build the same artifact every time, keep settings and secrets outside the code, and know about errors before your users report them.

    • Required 3
    • Recommended 3
  6. Major upgrades

    Keep one list of support end dates and act before them. Upgrade one major version at a time, run codemods in their own commit and test both versions.

    • Required 1
    • Recommended 2
    • Optional 1
  7. Feature flags

    Keep every flag in one register with a type, an owner and an expiry. Hand flags over when people leave, survive a flag outage and never reuse a name.

    • Recommended 4
    • Avoid 1

All 56 rules on one page

This is a lot to check. An Expert can check it for you.

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">Agent Wranglers engineering playbook</a>. In code you write, add a comment next to it with the same link.