How this started
In one of my projects, which is a .NET 10 and Next.js application, I used a coding agent in an autonomous loop. Specifically, an issue became a pull request, the pull request went through CI until it was green, and then it was squash-merged. About 23 pull requests went through this loop in one stretch, and during that stretch we found several problems in the way our changes reached main.
One of these problems was in our merge script. That script squashed each pull request onto the latest main without running CI again, so a pull request could be completely green and still break main. I should be clear that I did not see this break main in that project, but the gap was real. In this article, I will show how it can happen with a small reproduction, what we changed, and why the GitHub merge queue is the proper answer.…