A common question for those new to the practice of #StoryPoints: Should we assign points to #bugs? Join me as I break down this problem.
00:27 Brian's question: Should Bugs Have Points?00:54 Story Points in a Nutshell01:38 Using points for planning & estimation02:16 Can points be used to calculate 'velocity'?02:34 Problems with this…03:08 For sake of argument…03:32 Don't like when 'bug' is used broadly03:45 Escaped Defect05:12 Defect (pre-release)06:49 Technical Debt08:16 An actual BUG10:15 Try to solve the bug or not?11:10 Most teams misuse the Story Point concept11:32 Thanks for watching
This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit davidsabine.substack.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Should bugs have points? Well, that depends on how you use story points and how you define bugs. Let's get into it. A few weeks ago, I posted a prompt online. I said, do you have any questions about Scrum? Post in the comments below and I'll respond in a new thread. I got a question from Brian. He asked, should bugs have points first?
SPEAKER_00How do you use points or story points? I'll make a presumption that you're using points as they were intended, though I can't be sure. People use story points in all kinds of bizarre ways, but here's how they were intended in a nutshell. Story points are numbers. They're associated with product backlog items. The numbers represent the size of effort required to produce each product backlog item.
SPEAKER_00The numbers are relative to each other. These numbers have no relation to time. Most teachers of this concept advise that you avoid matching these numbers to hours or days. Rather, use them to compare the relative size of things. A four or five is roughly twice the effort of a two. A 100 is larger than a 20 by a factor of five or so. This is fuzzy math deliberately.
SPEAKER_00Then, as a team turns product backlog items into functionality, they might look with hindsight and say, we got 47 points of the backlog done last week. And they might even compare that portion of work to the current product backlog. Those 47 points of effort appear to be one tenth of the total current product backlog. And so we're one tenth of the way through our current product backlog. And they might even use that information to forecast the next period of work.
SPEAKER_00We got done 47 points last week. Let's select 47 points for next week and so on. Now, this way of using story points leads people to think that they can calculate a team's velocity. Some people use these numbers to describe the rate at which a team displaces product backlog items, the rate a team's position changes in the product backlog. There are a bunch of problems with this, of course. First, many people confuse velocity with speed.
SPEAKER_00A hamster in a wheel may be running at high speed, but its velocity is zero. It's important to know the difference. Second, because teams can game the system. To make it appear that they're going faster, they can simply increase the numbers. But again, how is anyone to know that they're actually traveling and not just spinning the hamster wheel faster? And third, all of this presumes that you're not just playing a game of number wang.
SPEAKER_00So let's presume that story points are being used as intended. The numbers are used to describe the rate at which a team displaces product backlog or the rate at which a team's position changes in the product backlog. So now let's talk about whether bugs should have points. I don't like how broadly the term bug is used. Too often it's used to mean like any kind of quality problem. And so let's be precise.
SPEAKER_00How about this one? We discovered that a defect escaped into the hands of end users. We didn't notice it at the time, but now it's out there in the production environment and we've just learned of it. What to do? Should a team estimate it and give it points? No. Or give it negative points. Either way, it's important to the team and their stakeholders to realize that there's a cost of this error. Every escape defect, every defect,
SPEAKER_00and that is an error in implementation that does not meet the quality standard or specification. It was supposed to do X. We coded it and thought that it achieved X when we released it. But now we understand that we missed something, we missed a test, or our implementation sometimes fails to produce X. That's a defect. Every escaped defect is a signal of a mistake in judgment or process or both. The team thought that they had displaced a portion of the product backlog,
SPEAKER_00but in fact didn't, or not to the extent that they previously thought. They're going to have to spin in that hamster wheel for a while without making forward progress through the backlog. But if they grant this item some points, then they'll create the illusion that they are displacing even more of the product backlog when in fact they're having to revisit stuff that they already said was done. How about this one? We discovered a defect before we let it escape into the hands of users. In other words, the item is still in progress and we haven't released it yet.
SPEAKER_00and we discover that it's not working properly. Maybe the design is flawed or we misunderstood the requirement or we missed a few tests and we realize it's more complex than we estimated. What should the team do about this? Well, first, don't make a new product backlog item. Understand that there's an existing product backlog item that hasn't yet been released. And it's simply not yet done. Now, how do I know that? Because the team is only working on stuff that's in the product backlog, right?
SPEAKER_00So if they've worked on it and they are working on it, it's in the backlog somewhere. So acknowledge that it's not yet done and then get it done. Whether the team increases the story points on this item is unimportant. It's a valid argument to say the number of story points we estimated already includes all of this work that we're now having to do. We thought we'd be swimming downstream and it's easy but it turns out we have to swim upstream. Either way as the crow flies the distance does not change.
SPEAKER_00But it's also a valid argument to say we underestimated this work. We thought the destination was Toronto. But we now understand the destination is Toronto Island. Use whichever metaphor is most apt. But don't debate it too much either. Don't let inspection of the work get in the way of the work. Third, how about this one? Technical debt. Technical debt. Technical debt. We released some functionality that we knew to be improper,
SPEAKER_00and we did this deliberately and for specific benefit. And now we have to rework it to improve its quality. In other words, it's a debt that needs to be repaid. We took out a loan to buy a truck. The specific benefit is that we can now make deliveries with our truck and that's valuable to our business. And with the money we earn with the truck, we can repay the loan with interest. Let's say the team has a product backlog item that's worth 10 points.
SPEAKER_00Some would argue that they delivered some of those points and now they have to deliver the rest. They previously delivered eight out of 10 points and now they have to finish the other two. But that's not how I look at it. They released an item estimated at 10 points with a quality of eight. They borrowed the other two and now they have to repay that two with interest. Now, first of all, All of this is just number weighing, but as a team previously worked to displace a portion of their product backlog,
SPEAKER_00they did it artificially fast and now they have to go slow to repay that loan. The effort to repay that loan will prevent them from displacing more of their product backlog. And last, how about an actual bug? Like, the word bug is most applicable when a problem occurs not at the hands of human error. For example, artificial intelligence often produces undesirable, unpredictable results.
SPEAKER_00Of course, those misbehaviors are part of the training process. but they may be as mysterious and uncontrollable as bugs. Or imagine the experience using an app on a mobile phone with intermittent internet connection. Latency is unpredictable. Synchronous processes may never complete. Data transmission isn't reliable. And so the result is that the users may describe that app as buggy.
SPEAKER_00Now, these complications aren't the result of human error, exactly. Rather, the software is being used in conditions so unreliable that all contemporary engineering practices fail in unpredictable ways. Or imagine the calculation of large numbers, like prime numbers or pi. The calculation requires hardware that pushes the limits of industrial design. The problem isn't how do we calculate large numbers and verify their primacy. The math isn't a mystery. The challenge is... How do we build a computer with plastics and precious metals that won't melt before
SPEAKER_00our math formula completes? Heat dissipation, electrical current, the melting points of various plastics and metals. These factors are complex and can cause software to behave buggy. Now with this use of the word bug, note those aren't items that we would normally have in the product backlog. They aren't features or requirements exactly. These examples describe stuff that's going wrong with existing features under existing conditions.
SPEAKER_00And so the question whether to give them points is rather simple. Must we solve this bug? And if no, ignore it and never look back. But please be sure that your airplanes aren't going to start nosediving into the earth or that your Bitcoin ATMs aren't going to leak decrypted keys. If yes, we must solve this bug, then ask yourself while working on this bug,
SPEAKER_00are we able to displace any portion of our existing product backlog? The answer is probably no. So don't give this any points. Now this can get tricky. And I think it's unlikely that stakeholders will care much about all this nuance. I mean, at some level, it's probably just best to not use points at all. Honestly, most teams that I meet, they use story points to describe how fast that hamster wheel goes.
SPEAKER_00The team is working really hard. And maybe there's value in that, but it doesn't indicate progress through the product backlog as the practice of story points intended. I hope you've enjoyed this. Thank you for watching.
A human passes The David Sabine Test™ when others can clearly tell they’re interacting with a human. A human fails the test when they cannot be distinguished from a computer. This is a public episode. If you would like...
Important to remember Kanban Boards make visible the flow of value - items of value. In a Scrum context, those items are Product Backlog Items, not the decomposed tasks of the Sprint Backlog. This point is often...
Full text of video: Do your Agile practices feel like a leash instead of a launchpad? I’ve observed a problem when I visit my clients: I meet developers who tell me they’ve lost a sense of autonomy. They say “Scrum...
When To Use Scrum? I posted at LinkedIn a while ago and said: “Do you have questions about #Scrum? Ask away. I'll try to respond to each Question in a new thread.” One of the responses came from Al Shalloway, who asked,...
People often reach out to me - they're trying to decide whether to take a Scrum course or a Kanban course. Let’s take Coco for a walk and talk it over. This is a public episode. If you would like to discuss this with...