Every engineer has uttered the phrase, "But it works on my machine."

I hit a wall that perfectly encapsulates why that phrase is a trap. The application ran flawlessly in my local development environment but immediately crashed upon deployment to the cloud.

Here is a post-mortem of the two major blockers I faced during deployment, how I diagnosed them, and the pragmatic resolutions that got the agent into production.

Challenge 1: The KeyError: '_type' Mystery

The Symptom