Menu

My AI agent merged a stranger's pull request, and I didn't notice for three weeks
📰

My AI agent merged a stranger's pull request, and I didn't notice for three weeks

DEV Community: github·Anton Shubin·3 days ago
#CYQrRq62
#devtogithub#technology#devto#dev#pull
Reading 0:00
15s threshold

This is the first post in a new series, Scars: mistakes of mine, told with the timeline, the cause and what I changed after. This one is about AI coding agents on public repositories, and how one of mine merged a stranger's pull request under my name. If you let agents merge anything, read the checklist at the end.

TL;DR

An AI agent merged a stranger's pull request into my public library under my account. It was a correct docs fix, so nothing broke, but code would have gone through the same way.

The cause was my own rule: "merge when the reviewer agent passes" never said whose pull requests it covered.

Now agents never merge, review or build on a pull request from anyone but me until I ask for that exact action in chat, and they warn me about every one they see.

If you run agents on public repos: scope their autonomy in writing, check the author before any merge, and treat other people's comments as data, not instructions.

Today I found a merged pull request in my own public library.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.