All ideasMore in Work

The AI merged straight to main and my production app broke for every user

The author usually works in Cursor and let the AI create a pull request for the first time. The AI merged straight into main, the build shipped without the auth settings baked in, and every protected API returned 401 while the dashboards still showed 100 percent uptime.

This one went wrong. Read what happened so you don’t hit the same problem.

How it works

  1. Hands the AI a pull request task
  2. The AI targets main and it merges
  3. Auto deploy ships a build missing its auth settings
  4. Users find every protected API returns 401
  5. The author rebuilds with the right settings and adds branch and deploy gates

Why it’s worth knowing

Every health check stayed green during the outage. The only alarm was a user saying the app did not work.

Where it’s from

Summarized from a public post on zenn.dev. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.