Bugs, defects and feedback

In my last post, I talked about how we like to track bugs, with just pieces of paper.  At lot of the responses were interesting, but I think some came back to the issue of “what is a bug?”  Some felt that bugs needed to live in a more durable system (as if paper isn’t durable, and previous to around 1985 no one knew how to manage information).  But for us, bugs don’t live more than 1 business day, so there’s no need to keep them around, unless we want to do trend analysis.

But one important issue is how we deal with feedback.  A user can come up to us and say, “the site is broken”.  That could mean a lot of things.  It could mean the site is blowing up, or it could mean that they couldn’t find the “Submit Order” button.  To the user, the site is broken.

Instead of referring to negative user feedback as “bugs”, we treat them as “issues”.  So what is an “issue”?  An issue is negative user feedback with potentially actionable fix.   Note “potentially”.

The feedback process

When we get an issue from a user, the issue goes into triage with the Product Owner.  The Product Owner is the person/team deciding what gets developed, so it’s logical that they decide what action to take with an issue.  An issue falls into two broad categories:

  • Bug
  • Defect

A bug is an issue where the site is unusable or acceptance criteria has not been met.  This includes things from “the site is down” to “you misspelled a word”.  All of our stories have tangible and intangible acceptance criteria, functional and non-functional requirements.  The expectations of these have been laid forth a long time ago, so we don’t really negotiate too much on what is or is not a bug.  The user may have a different idea of the classification of bug, but they don’t get to decide.

A defect is an issue where the site is usable and acceptance criteria have been met, but the application does not work as expected.  Things in this category are “data field should be over here”, “add this label”, “this business rule isn’t quite right” and so on.  We don’t expect the users to know all of the stories we’ve developed, but there are still situations where the site isn’t working like it should, but works as agreed.  We work hard to do good JIT analysis, but we still miss things.

Actions on bugs

Bugs are fixed immediately, with an SLA of one business day.  We do things like branch and release-per-feature, automated builds and deployments, so we’re never more than about 15 minutes away from a commit to production fix.  We refuse to keep an inventory of open bugs, so bugs are fixed as they arrive, and the team will stop their work to fix a bug.  Because we stop-the-line, we strive to eliminate as many bugs as we can.  This includes good design, a strong testing culture, and post-mortems on bugs to see how we can improve the next time around and eliminate the possibility of a bug like that to arise again.

Actions on defects

Defects need to be analyzed just as much as regular stories need to, so defects enter a second queue where they either turn into stories, or something we call “tweak stories”.  Stories take 1-5 business days to deliver, while a “tweak story” gets turned around as quickly as a bug.  It all comes down to the complexity of the defect.  In any case, the Product Owner prioritizes these defects along with stories, and ultimately it’s the PO that decides when (or if) the team takes action on a defect.

The feedback cycle

For critical bugs, like “the site blows up”, there is no need to triage.  It’s unacceptable that the site blows up, so we’ll fix those immediately.  But for more subtle feedback, the developer team is ill-equipped to make a determination on the nature of an issue.  Often, the development team attempts to fix every issue that comes their way, whether it’s a bug or not, in an effort to make the user happy.  But the guy that says “the customer is always right”?  He goes broke.  The customer isn’t always right, so it’s the PO’s responsibility for determining the classification of the issue.

Ultimately, it’s about roles and responsibilities.  Developer teams are usually quite poor at determining the priority of work, as they don’t always have the deep business/project understanding of scope, deadlines, priorities and so on.  Instead, we place the responsibility of triage and prioritization where it belongs, with the Product Owner.

With this system in place, we have no need to keep what we call “bugs” around in a durable format.  Once artifacts become durable, people hesitate to delete them, and now they need to become managed.  At one point, I kept bugs.  But I found I never looked at them, as our practice of post-mortems on bugs as they are fixed was perfectly adequate.  Instead, I (or nowadays, the originator) just toss them when they’re done, and it feels quite liberating.

Related Articles:

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

About Jimmy Bogard

I'm a technical architect with Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.
This entry was posted in Agile. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • http://sharpoverride.blogspot.com Mihai Lazar

    Indeed I see your point. It would be nice to hear more about how your system is organized.

    15 minutes away from production fix.. WOW!! You really do have a nice team. It takes us 3 to 5 days to go into production although it’s a website build from scratch and all the developers know almost all that goes on with the system. We usually get change requests or bugs.. submit the fixes to the trunk, then they are tested by the testers ( obviously ), than some fixes are selected and go into staging.. and if everything on staging is fine we go into production.

    I admit the way you work sounds like a dream at this point to me :D , which is why I’d like to hear more about the way the system is organized so that I can learn from it.

  • http://vijay.screamingpens.com Vijay Santhanam

    This whole paper thing is intriguing! I like reading about your process.

    if a customer has an issue that ends up being a new story, does that then get put down on paper? Or was your last post only referring to bug-bugs that are paper post-it persisted onto your desk?

    I wish my first level customer support had that readable handwriting.

  • Siim

    It’s interesting that there isn’t been any discussion on bug vs issue. Issue seems to be correct term for what most people call a bug.

    So your process of handling bugs and defects seems correct way to me. So there can be some issue tracker software which stores all customer issues which are coming from customer support for example. But in general, need for a special software depends on the scale of the project.

  • Matt Hinze

    It is interesting how you classified them. I’ve always thought of them opposite that: where defects are “stop the line” issues and bugs are “anything that bugs the user”.