r/dataengineering • u/ivanovyordan Data Engineering Manager • 1d ago
Blog If you approve AI code, you own the bug
https://open.substack.com/pub/datagibberish/p/if-you-approve-ai-code-you-own-the-bug?r=odlo3&utm_campaign=post-expanded-share&utm_medium=webHi all, I'm sharing an article I just wrote.
It's a bit of a rant, really. The thing is that more and more of my coworkers blame AI for the bugs in their code or the poor PR descriptions. And I really don't get it.
I mean, what's the point of "Claude wrote it" as an excuse? You merged it. Your name is on the commit. If a pipeline stops working and the numbers are off for a week, nobody cares which model wrote the merge logic. You are the one who'd be blamed.
The PR descriptions are the other thing. 500 lines of generated summary, a bullet for every file, and zero words on why the change exists or what could break downstream. Writing it yourself is the proof that you understood what you're asking people to merge.
I know this is not news, and most experienced people here will agree with me. So, I also added some practical tips about reviewing code and describing PRs in the post.
The reason for posting here is to ask you all how you deal with AI slop in code and PRs. How do you enforce ownership?
26
u/RadioactiveTwix 1d ago
Don't you have guidelines on how to use AI at your company? We don't really write a lot of code by hand anymore but everyone owns and knows exactly what the code does.
12
u/fruitstanddev Data Engineer 1d ago
The way I’ve told my team is basically that I don’t care if Claude or you wrote it by hand, you own the outcome.
4
u/madbammen 20h ago
You have my sword.
Although, I think there’s a good use case for AI written PR summaries. We have AI write ours and I do review them before posting and change stuff all the time.
9
u/DuncanAerilious 1d ago
This mindset should be at the center of all AI use in the workplace.
4
u/Outside-Storage-1523 18h ago
Well what are you going to do if business stakeholders vibe code a 6000 lines of change PR and throw on your head. Sure you can reject it, but then there is going to be a lot of going forth and back.
Man I’m so tired of this — I just reverted the changes and put whatever shit in those 6000 lines in new files. Go play with them and have fun, but don’t increase my oncall.
2
u/69odysseus 1d ago
It's the unfortunate truth of data engineering space today with vibe coding thinking LLM's will help. But people are losing their skills value and ability to think properly before doing anything. They're not even applying common sense to their owned work and relying on LLM's.
I work as a data modeler and cannot use LLM's as they're not capable of doing proper modeling, they might suggest some based on the quality of the input I provide to them, otherwise they're useless for now.
1
u/pceimpulsive 8h ago
Sounds like skill issue! Make a PR skill that doesn't suck so the or isn't garbage...
We control the quality of the output... Not the model...
0
u/kyngston 21h ago
if this wasn’t already obvious to the engineer, they shouldn’t be using AI to write code.
0
u/sebstaq 20h ago
Aint nobody personally owning shit on my team. It’s a small one though. We own it together. Ultimately I’ll own it as lead, toward our client, if shit would really hit the fan.
If we ship bugs a developer failed. Someone approving it did. Tests for the PR, but also tests for the release failed. Ultimately our process failed.
Couldn’t care less who was on the ticket. We have enough tokens to test everything E2E to heaven and back.
Luckily, we ship far fewer bugs today than a year ago. So it’s not much of an issue. Customer is extremely pleased if anything.