Back to Engineering Blog
AI Development 4 min read

Teaching the Deploy Robot What Not to Touch

When we turned on automatic deployment, a check found 81 old pull requests it wanted to apply. Most had been deployed by hand long before. We gave it a cutoff.

Jason NevillBy , Houston, TX
#AI-Logos#Deployment#Safety#Ansible

Key Architectural Takeaways

  • The first discovery pass flagged 81 old changes as needing deployment.
  • A read-only check verified 40 as already done or not applicable; 41 had real drift and must not be applied unattended.
  • The executor now skips anything merged before the pipeline went live, and fails closed on missing dates.

The risk

Automatic deployment is only safe if it deploys the right things. When we switched it on, its discovery window flagged 81 merged pull requests as needing deployment. Most had been applied by hand earlier, so the pipeline could not tell 'never deployed' from 'deployed manually, not recorded'.

Check before acting

A read-only, check-mode verification went through them first:

  • 40 were verified as already applied or not applicable, and were baselined as deployed, with honest notes on why.
  • 41 remained: 39 configuration changes with unresolved drift or errors, and 2 infrastructure-only changes. Applying these unattended could have changed things nobody had reviewed in months.

The cutoff

The executor now skips any pull request merged before the pipeline's go-live time. If the merge date or the cutoff is missing or invalid, it skips too. It never guesses.

Takeaway

Automation inherits your history. Draw a clear line at 'from now on', verify the past separately, and make the safe default the one that does nothing.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.