# The agent deleted 6 lines and we noticed 3 weeks later — retained record

> Retained reddit record from reddit:AI_Agents.

Canonical: https://highsignal.app/data/records/1f4adb0a24d8355d

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:AI_Agents)  published 2026-11-13 15:26 ingested 2026-11-14 02:35

[original source ↗](https://www.reddit.com/r/AI_Agents/comments/1xvarcw/the_agent_deleted_6_lines_and_we_noticed_3_weeks/)

## retained text



```
One of our seniors asked an agent to "clean up and speed up" our nightly billing job. Around 2,000 lines. The PR came back faster and shorter, tests green, he approved it himself because he's the one who usually reviews that job.

Somewhere in there the agent removed 6 lines that skipped customers with a paused subscription. It looked like dead code, an if block with an early return.

3 weeks of paused customers getting charged. Support tickets, refunds, an apology email to about 400 people, and two of us spending days going through logs before anyone looked at that PR again.

The worst part is coderabbit actually left a comment on it asking whether removing that check was intentional. He resolved it without replying. I get it, there were 23 comments on that PR and most were small stuff.

How do you stop the one important comment from getting lost in the other 22? Or do you just not let agents "clean up" anything that touches money?
```



document fetched 2026-11-14 00:19 · canonical https://reddit.com/r/AI_Agents/comments/1xvarcw/the_agent_deleted_6_lines_and_we_noticed_3_weeks
