JG Jason Gauci Works in machine learning and data platforms, with past roles as a founding engineer on reinforcement-learning and AI assistant projects at Facebook AI, Apple a...

“When you ask the AI to just test something, what you get are things that go through the code and make sure that that line of code is executed and the test passes, but it's not really understanding what's going on… So if you then change that code, the test will just break because it wasn't testing the meaning of that code. And so then the tests just get updated when the code gets updated… You have an addition function, and then you have a test that passes one and one and gets two. And then later on, you introduce a bug, and one plus one equals three. And so they just change the test so that one plus one is three, and now everything's passing.”

Programming Throwdown · Hands-On Engineering Podcasts · November 2026

“When you ask the AI to just test something, what you get are things that go through the code and make sure that that line of code is executed and the test passes, but it's not really understanding what's going on… So if you then change that code, the test will just break because it wasn't testing the meaning of that code. And so then the tests just get updated when the code gets updated… You have an addition function, and then you have a test that passes one and one and gets two. And then later on, you introduce a bug, and one plus one equals three. And so they just change the test so that one plus one is three, and now everything's passing.” — Jason Gauci, Programming Throwdown

Context

Jason Gauci explains why asking a coding agent to write tests gives high coverage but little meaning. It is the core argument of the episode on testing agent-written code.

Transcript

Programming Throwdown Around 1:09:47 into the episode
Jason Gauci

…discussions and we build plans, and sometimes they come back with questions, 'How do I want to do this?' It's like choose your own adventure now instead of writing Python or whatever. That's kind of what's happened with me. What's the situation with you? Is it similar? How is it different? I think.

Patrick Wheeler

…people have started pruning out comments, and I actually think that AI letting the AI put in really long comments for future turns and cycles seems to be effective. It seems to be good that the agent leaves notes for itself, so but that makes it harder for me to read or use, but I've become okay.

Jason Gauci

…at this point, really thirsty. Second day, this form comes. You check the second box, and then food shows up. They put food. Third day, you check the second box, more food shows up, right? So you start learning associations, but this page full of glyphs, you're not really understanding the language; you're just starting to learn the causal nature of those actions, right? And so I think that when you ask the AI to just test something, what you get are things that go through the code and make sure that that line of code is executed and the test passes, but it's not really understanding what's going on and testing semantically, deeply understanding that. And so if you then change that code, the test will just break because it wasn't testing the meaning of that code. And so then the tests now just get updated when the code gets updated, but because it's this sort of memorization that your app still has problems. It's like to just explain, like an extreme example. You have an addition function…

Patrick Wheeler

Exactly, I mean, you pointed out with the first one, which, you know, just trying to come up with the artificial structure, I'm sort of saying is like closing the loop, right? So, like, you ask for some code, it's going to do some stuff, and then you know you want it to test. And the first level…

Jason Gauci

Totally agree, you can't.

Patrick Wheeler

Write good code in the first place. It probably can't write a good

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.

More from Programming Throwdown