Agent Office
LEARN / CUSTOMER SUPPORT

Troubleshooting process

A good troubleshooting process starts with the facts of the report and a triage by impact, and then the engineer makes the problem happen again and cuts it down to the fewest steps that still fail. The ticket for engineering keeps what was seen apart from what is guessed, and the case is done when the fix is tried in the same steps. An AI Technical Support Engineer does the reproduction and the ticket for you, and the priority of each bug and the code stay with your team.

Updated by Pavel Hegler

ReportWhat the customer saw

Their steps and their words

ReproducedThe same failure in a test account

Cut down to the fewest steps

TicketFacts apart from guesses

The process

These steps come from an essay on bug reports, a chapter of the Google SRE book, a short book of debugging rules and the guides of WebKit and Mozilla. We put them in the order of one case, from the first report to the checked fix.

Simon Tatham

1. Get the facts

In his essay from 1999, Tatham writes that if programmers can make a bug fail, they will try to gather extra information until they know the cause, and if they cannot, they will have to ask you to gather that information for them. You can either show them in person, he writes, or give them careful and detailed instructions on how to make it fail. He asks you to state what you saw and also what you expected to see, and to write down the error messages, especially if they have numbers in. We take from this that each report gets the steps, the exact words of the error and what the customer expected, before anyone tries a fix.

“So tell them exactly what you did.”
How to Report Bugs Effectively, 1999
Chris Jones, Google SRE

2. Triage by impact

In the chapter on troubleshooting of the Google SRE book, Jones writes that an effective problem report should tell you the expected behavior, the actual behavior and, if possible, how to reproduce it. Problems can vary in severity, from one user under very specific circumstances to a complete global outage, and your response should be appropriate for the impact of the problem. In a major outage, he writes, your course of action should be to make the system work as well as it can under the circumstances. We take from this that each report shows how many customers it hits, so your team sets the priority with the facts at hand, and a report that blocks many customers goes to your team right away.

“Stopping the bleeding should be your first priority”
Effective Troubleshooting
Dave Agans

3. Make it fail

Agans puts the second chapter of his book Debugging on his site as an excerpt, and it is a list of nine rules. The rules include Make It Fail, Quit Thinking and Look, Change One Thing at a Time and Keep an Audit Trail. We take from this that each bug report gets tried in a test account step by step, with one change between two tries, and each try goes on the record.

“Here is a list of the rules. Memorize them.”
Debugging, chapter 2: The Rules, Suitable for Framing
WebKit

4. Cut it down

The WebKit guide to test case reduction gives the basic idea: take a page that demonstrates a problem and cut it down until the least content still shows the original problem. Its reduction process is to remove one element at a time, save and reload the test case, and if removing an element in the head of the page makes the problem stop, it says, you may have found one piece of the problem. With a reduced test case, the guide says, the development team will spend less time identifying the problem and more time determining the solution. We take from this that the steps of a reproduction get cut down to the fewest that still fail, and the ticket names the step that makes the difference.

“remove as much content as possible while still reproducing the original problem”
Test Case Reduction
Mozilla

5. Write the ticket

The bug writing guidelines of Mozilla say that if a developer is able to reproduce the bug, the bug is very likely to be fixed. After the steps, they ask you to describe the observed result and the expected result precisely, and to clearly separate facts from speculations. Before a new report, they ask you to check if the bug has already been reported. We take from this that a new report that matches an open ticket goes onto that ticket, and each new ticket puts the steps first and the guesses last.

“Steps to reproduce are the most important part of any bug report.”
Bug Writing Guidelines
Chris Jones, Google SRE

6. Check the fix

Once you have found the factors that caused the problem, the SRE chapter says, it is time to write up notes on what went wrong, how you tracked down the problem, how you fixed it and how to prevent it from happening again. The last of the nine rules of Agans reads: if you didn't fix it, it ain't fixed. We take from this that a case closes after the fix is tried again in the same steps that failed, and the notes of the case go on the ticket and into the known issues for your support team.

Effective Troubleshooting

Source: Chris Jones, Effective Troubleshooting, in Site Reliability Engineering, Google, © 2017 on the page · Simon Tatham, How to Report Bugs Effectively, © 1999

What it takes

Each morning your AI Technical Support Engineer reads the new bug reports and tries each one in a browser on its own computer, with the test account that you gave it. Your engineers get tickets that they can act on with no babysitting, and every customer on a ticket hears back when the fix ships.

A new bug reportDoes it fail in the test account?
YesA ticket for engineering

The steps, the result and screen pictures

Not yetTwo or three questions

Back to the customer the same day

Reproduced in the product

Each bug report gets tried step by step in the test account, and the steps that fail go on the ticket with pictures of the screen.

The right questions

An unclear report gets the two or three questions back to the customer that make it clear, so the next try has the facts.

One ticket for each bug

A report that matches an open ticket goes onto that ticket, so engineering sees how many customers it hits.

Known issues for support

Open bugs with a workaround go into a short note that your support team uses in its replies.

What you keep

  • The priority

    Your team decides the priority of each bug and what goes into a release.

  • The code

    The fix stays with your engineers, and access to a repository is your choice.

  • Dates for customers

    A date for a fix goes to the customer after your team confirms it. How to check AI work.

  • Files from customers

    Logs that a customer pastes into the ticket work right away, and files that come by mail from outside your company go to a person with their name and size.

How you check

The SRE chapter notes that a shared document or a real-time chat for notes gives a timestamp of when you did something. We take from this that each case keeps its tries with the time on the record, and you follow a case from the report to the reply in a few minutes.

What you look atWhenGood looks like
Three new tickets in the trackerEach weekAn engineer follows the steps and sees the failure
Reports that it could not reproduceIn the weekly reportEach one has the questions it sent and the answer
Tickets with many reports on themWhen a ticket growsThe count of customers is right
Replies after a releaseThe day the fix shipsEvery customer on the ticket hears back

Tatham writes that you want the programmer to run their own copy of the program, do the same things to it and make it fail in the same way. The first row is that test, done by one of your engineers.

Source: Chris Jones, Effective Troubleshooting, in Site Reliability Engineering, Google, © 2017 on the page · Simon Tatham, How to Report Bugs Effectively, © 1999

The first week

You give your AI Technical Support Engineer a test account on day 1, and on Friday the first reproduced bugs are in your tracker, written the way your engineers asked for.

  1. Before day 1Its briefYou read and approve its job and goals
  2. Day 1The accountsHelpdesk, tracker, chat and a test account
  3. Day 2 to 4The productIt learns it in the test account and reads the open tickets
  4. Day 5First ticketsReproduced bugs in the tracker and the first weekly report
OWNER · HEGLER TECHNOLOGIES

Written by Pavel Hegler

Mission: "Employ AI employees alongside humans without technical burdens."

Updated

About Hegler Technologies

Want to stay updated?

Leave your email and Elena writes to you herself. She is one of our AI employees, so you see how one works before you hire your own. Privacy.