Bugs
Show notes
Key Takeaways
- “Bug” is getting fuzzy. With AI, outputs are better or worse rather than right or wrong, so whether something even is a bug becomes subjective.
- The real work is defining “good” — often across multiple dimensions (e.g., an email’s tone, length, and fit for the recipient) — and then the harder question of “good enough.”
- Beware overfitting: patching the prompt for every single complaint (“never use em dashes”) makes the agent brittle and worse at cases it hasn’t seen.
- You fix categories of bugs, not individual ones — collecting enough instances, running error analysis, and reducing error rates, which takes time and patience.
- Building AI products is like steering a chaotic monster: you can guide it onto the path and keep it there, but you’ll never make every error disappear — and you want it to keep some room to maneuver.
- Quality is still controllable — non-deterministic doesn’t mean uncontrollable. You just can’t expect perfect; you aim for good enough.
- This demands more collaboration — not just within the product team, but across sales, support, and the whole org — to share a concept of “good enough” and reset the expectation that every bug gets fixed.
Notable Moments
- “With AI products, what’s a bug is a little more subjective.” — Teresa
- “Good enough is the hardest one.” — Teresa
- “If you change your prompt for every single error that’s reported, you start to create an agent. It’s very brittle.” — Teresa
- “Building AI products is like trying to steer a chaotic monster.” — Teresa
- “We don’t fix them, we only improve. We steer the monster.” — Petra
Resources & Links:
- Follow Teresa Torres: https://ProductTalk.org
- Follow Petra Wille: https://Petra-Wille.com
Mentioned in this episode:
- Vistaly — Teresa’s build partner on AI interview snapshots and AI opportunity solution trees, and the source of these real-world “bug” examples
- Vistaly’s AI is built by the creator of the opportunity solution tree
- Related episodes — the earlier conversations on AI evals and “defining what good looks like,” which this one builds directly on
- Concepts worth a look: overfitting, error analysis, evals, and deterministic vs. non-deterministic (agentic) systems
Show transcript
00:00:03: Hi folks, this is all
00:00:05: things
00:00:06: product with Petra Wille
00:00:07: and Theresa Corks.
00:00:09: And we're so happy you here!
00:00:17: Teresa in a few of the older episodes We already figured that with AI there are new terms coming up or Terms that we have been using for decades obsolete our need to be retired.
00:00:35: We briefly had a conversation around the concept of what is a bug and figured that this one after terms might need an update.
00:00:43: Maybe you can unpack for us in a second?
00:00:47: Yeah, it's something I've been playing with as I develop AI products specifically my partnership with Vistuli where we're building AI interview snapshots and AI opportunity solution trees.
00:01:00: It could be on customer call or share.
00:01:05: the agent did something unexpected.
00:01:08: So it sort of feels like a bug report, right?
00:01:11: It could be someone on The Vistaly team is playing with our opportunity solution tree.
00:01:15: so we're interviewing customers and interviewing are looking at our opportunity solutions tree And if somebody looks off they wouldn't have framed that way.
00:01:24: They would group things differently and file what's essentially a bug reports.
00:01:32: What interesting Well, one for me.
00:01:34: It's interesting being on the developer side of bug reports instead of the product manager side a bug reports.
00:01:41: but also it's interesting because I think with deterministic code when somebody files a bug report we always have to first evaluate is this a bug?
00:01:51: so can we validate?
00:01:55: Is an unintended way?
00:01:58: And sometimes it's not a bug, right?
00:02:00: Sometimes we get bug reports from customers and when you go no the software is working as intended.
00:02:04: You just have an misunderstanding.
00:02:06: But for the most part I think in regular code It's pretty easy For us to agree this is a bug or not.
00:02:14: its more black and white.
00:02:17: Sorry Go ahead
00:02:19: It's more black and white.
00:02:21: Hey, it is not working as we defined in our backlock item for example the specification was different than what you see now with software so everybody can easily agree.
00:02:31: that behavior to software shows isn't how its intended
00:02:36: on the past whereas I think AI products like deterministic code were prescribing exactly this is what the software will do.
00:02:45: whether or not something is a bug, Is that what we prescribed?
00:02:48: It's it's much more black and white.
00:02:50: We might disagree on What should have been prescribed but we know like does the software doing what it was written to do?
00:02:59: I think with AI products its little bit different because agents are You get better in worse answers.
00:03:07: you don't always get right Or wrong Answers.
00:03:09: there of course instances where answer is clearly Wrong.
00:03:13: But i Think There'S A lot Of Gray Like Let's say you have an agent that is writing email for, the tone could be a little off.
00:03:20: It isn't wrong but it can be a conciseness measure and too long or in range.
00:03:31: so what bugs are more subjective?
00:03:35: What I notice both from customers as well people who work on software.
00:03:42: There's still this expectation that like you can file a bug report and the bugs will get fixed.
00:03:48: And I think there are two challenges with this, did you want to jump in?
00:03:53: Yeah i just wanted to say it is increasingly hard to decide how to fix those bugs.
00:04:01: if you agree on that behavior could be optimized because what whatever you're currently building and You cannot fix this particular thing very, very precisely right?
00:04:19: Well I think there's two challenges.
00:04:21: So one is like Are we even agreeing This Is a bug?
00:04:26: yeah what
00:04:27: is the agent misbehaving?
00:04:29: Yeah Like.
00:04:30: What is our definition of A good response?
00:04:33: true And that's where We're gonna get into evals and Defining what Good Looks like.
00:04:38: so That's One Thing.
00:04:39: um and i Think For complex AI products, our definition of good might be complex.
00:04:47: We might have lots a different attributes of good and so there's.
00:04:50: it's not as black-and-white.
00:04:51: we have to first like categorize this thing.
00:04:54: I'm
00:04:55: good enough you need the definition of Good Enough.
00:04:57: Not only exactly.
00:04:59: actually good enough is the hardest one because Like no AI product has given me perfect And we're gonna talk about why that isn't second.
00:05:07: So like You Have To Have This Idea Of Good Enough Because you're not and then good enough on a lot of different dimensions.
00:05:16: So let's stick with this email example like.
00:05:19: maybe I define Good as an email that's concise.
00:05:22: Like it's the appropriate length written, like me in my tone Written appropriately for the recipient.
00:05:29: so like I have three different dimensions I've already started to identify tone length like appropriate for their recipient.
00:05:37: You could imagine if we were really building an email writing product, there'd be a lot more attributes of good.
00:05:42: Yes.
00:05:42: So now somebody reports the issue and we're starting to look at like.
00:05:47: Did it violate one of our definitions?
00:05:50: Of Good?
00:05:51: so someone says this was too long.
00:05:53: Okay Well wasn't too long.
00:05:55: Like We said A threshold for length Does It Violate That Life?
00:05:58: And Then Even If It Doesn't even if it doesn't let's say it fits within Our Norm.
00:06:03: The Person reporting it has a perception that's wrong.
00:06:07: Yes, so now we have to decide like should be change
00:06:10: the threshold Like
00:06:11: what?
00:06:12: why is the perception?
00:06:13: That It's wrong?
00:06:14: even that Is like gray and murky.
00:06:17: yeah indeed.
00:06:19: And then there's this second element of it which is when someone reports A bug in deterministic code We go look at The Code and we fix it.
00:06:28: we can we we Can write better code for the outcome that we want.
00:06:33: its I mean, it's not...I guess you can go change your prompt and hope to get better output.
00:06:38: But its' not really that simple.
00:06:40: And there is this concept in AI of like overfitting.
00:06:44: So i wanna explain what does means?
00:06:46: Yeah please Let say somebody says This email is the wrong tone It's too direct.
00:06:55: Okay great so Somebody reports a bug but it was too direct.
00:06:58: You look at specific e-mail And you go, oh they use this word which is too direct.
00:07:04: I'm going to write in my prompt.
00:07:06: don't ever use the word.
00:07:07: it's... Don't
00:07:07: use M-dashes!
00:07:08: Never use M dashes Theresa.
00:07:11: You can do that right?
00:07:13: Because if like change your prompt for every single error thats reported..you start create an agent.
00:07:23: Addictionary It very brittle.
00:07:27: its designed very specific instances and won't generalize to instances you haven't told it about.
00:07:35: And so there's a little bit of like, cost of the more we correct the agent The less useful that agent becomes for cases?
00:07:45: It hasn't seen.
00:07:46: So with evals We talk about error analysis.
00:07:50: Like were gonna look at a bunch of traces Were going to categorise our errors We're going to look at patterns and then we are gonna try to reduce the error rate in different categories.
00:07:59: So instead of like solving one bug at a time, were working with sets of bugs and reducing rates.
00:08:08: And it occurred to me... And that takes
00:08:10: time right?
00:08:10: so you need first of all have several instances of said bug category that you can put into such a category and then optimize for the outcome.
00:08:21: So it will take a bit more time than having one bug, fix one bug push it to production and then its
00:08:27: done.".
00:08:29: Yeah okay so yes!
00:08:30: It means we see something that we agree might be of problem but we've only seen once.
00:08:37: So we have to wait to collect more instances, which is already uncomfortable.
00:08:41: You like want your product be perfect right?
00:08:43: Especially
00:08:44: as product people?
00:08:45: yes and
00:08:45: yeah.
00:08:46: And then okay now We have enough instances.
00:08:50: Worse still I came up with this analogy of building AI products Is trying to steer a chaotic monster and were happy when it's going in the Right direction.
00:09:01: With time we can refine It.
00:09:02: To stay on path Go In The Right Direction And then with more time, we can get it to walk straight down the path going in the right direction.
00:09:11: But you write some lines of code and its just perfect!
00:09:16: It literally is steering... and iterating, and trial-and-error.
00:09:21: So you
00:09:21: can collect
00:09:22: a lot of instances like... You might be able to reduce the rate but probably will never make them entirely go away.
00:09:29: And do still want the monster to be your monster because otherwise you could start using old coding technologies or hardcord stuff right?
00:09:36: so you still want it is this agent kind thing that has room for maneuvering But need to understand how many guardrails?
00:09:47: Yeah, these kind of things you need to implement.
00:09:50: It's very uncomfortable and it takes a lot of time I bet!
00:09:54: Yeah its fascinating that like...it is not true.
00:10:00: Like some people say..like i've seen some post on LinkedIn how can you ask your customers to trust their product when they get non deterministic responses?
00:10:14: The assumption in this question We can't control quality.
00:10:18: That's not true, we CAN control quality!
00:10:21: We probably can't get the perfect... Yeah right?
00:10:25: It is a good
00:10:26: enough thing and I think what is very fascinating how used will all the users get to these behaviors?
00:10:35: because right now they are very use to software working a particular way.
00:10:40: And the more everybody uses large language model them and agents in all this kind of things, the more folks will understand that there is a bit of vagueness
00:10:51: too
00:10:51: How things operate into future and that results on.
00:10:55: people start learning this.
00:10:57: When they used the LLM like, they were using Google.
00:11:01: They already understood that it's not always a very precise answer That the Llms are bringing back from the interwebs.
00:11:07: So I think people will get use to some extent and maybe Not reporting all the bugs that currently would.
00:11:14: But still so let see how peoples behaviors change Peoples perception changed And how product teams adapted.
00:11:22: Yeah The part is most interesting Is Good or right?
00:11:27: is a moving target.
00:11:29: Yeah,
00:11:30: right like.
00:11:30: yeah I think with regular code it's not.
00:11:34: I mean It isn't moving Target.
00:11:35: and that like we learned from our customers And we decided to change the way this software works but like at a single moment in time We can all collectively agree?
00:11:45: We wrote those software to do X and it does In fact do x mm-hmm.
00:11:50: i think With AI products That's Not True.
00:11:51: We Wrote The.
00:11:52: We Are Steering The Agent To Do X. X is not as black and white.
00:11:58: It's more subjective, And we can approach x so you may not be able to achieve
00:12:05: it Which is another thing that requires More collaboration and communication within the product team.
00:12:11: right because they have To collect more instances.
00:12:16: then I Have to sit down really think about what Is good enough which will Be a conversation.
00:12:23: And I think it's not just within the product team, like imagine a sales rep that are customer support person.
00:12:30: That is on phone with a customer who is highlighting hey i don't this email for me your products broken right?
00:12:39: The whole organization actually has to learn really have shared concept of what good enough.
00:12:46: and then Also, like I know every company.
00:12:51: I've ever worked with had a database of infinite bugs And there's been a lot of debates about whether you should stop and fix every bug.
00:12:58: You find Yeah, and like there's a prioritized
00:13:01: the
00:13:02: bugs yeah Like hot-button issue?
00:13:04: Do have bug prioritization meetings?
00:13:06: How do they get today?
00:13:08: Super team dedicated
00:13:10: to fixing bugs?
00:13:12: Yeah exact worse
00:13:13: even worse.
00:13:15: Yeah this is already like a hot button issue across the board But I think it's gonna get harder, because even what we call a bug has fuzzier lines.
00:13:29: And this is
00:13:29: an interesting aspect!
00:13:31: It wasn't something that i anticipated...I started noticing- I would get a little bit frustrated with what im going to called bug reports and like I want those reports.
00:13:42: i actually Want a report of every time somebody sees something that feels off.
00:13:48: so it's not.
00:13:48: It's, not That i was getting those reports that frustrated me?
00:13:52: It's the fact that they came with an expectation That this fixed yeah right and like it made Me very aware.
00:14:01: we all have to learn That one We had different definitions of good And so there's new work to do To align on what good means.
00:14:10: and then two We can't fix single bugs.
00:14:13: For the most part, we fixed categories of bugs and then that's a new mindset.
00:14:18: And if you don't fix them...we only improve!
00:14:21: We steer the monster.
00:14:23: Yes, we steer the monsters.
00:14:24: That is all we could do.
00:14:26: I loved it Teresa.
00:14:27: There was a lovely talk
00:14:28: to discuss.
00:14:31: Thank-you so much for bringing this
00:14:34: up.
00:14:34: Thanks for humoring my bugs.
New comment