All essays

You Can’t Undo a Promise

A rollback can put the software back. The people who made plans around it still need a way out.

In this essay

At 9:05, a software company turns on a new way to schedule reports. By lunch, a customer has set up Monday’s numbers to go straight to six people and retired the calendar reminder to send them by hand. On Friday, the company finds a bug and turns off the feature. The old version is back in five minutes.

On Monday, six people wait for a report. The one person who knows why they’re waiting is on vacation.

The release was reversible. The customer’s week was already arranged around it. Even if somebody can recover every schedule from the database, they still have to work out what should have been sent, who needs it now, and how to reach the person who used to send it. The rollback clock stopped on Friday. Their clock is running on Monday.

When you decide something is safe to try because you can undo it, ask what you can put back and whose help you’ll need to put back the rest.

Find out what somebody stopped doing

A restaurant takes a reservation for Saturday. The person booking it gets a sitter, tells a friend which train to catch, and turns down another invitation. On Saturday afternoon the restaurant cancels. Maybe a pipe burst. Closing was the responsible thing to do. The customer still has several calls to make, and “your reservation was successfully canceled” is a curiously upbeat assessment of the situation.

A promise gives somebody a reason to stop making other arrangements. You don’t have to say “I promise.” A confirmation email can do the job. So can a button called “Schedule every Monday.” You can call the button an experiment in a product meeting, but the customer who clicks it may reasonably believe the next report is taken care of. Look for a changed plan, a purchase, a checklist somebody retired. Those will tell you more about what you committed to than the adjective your team put in front of launch.

There’s a legitimate objection here. People make plans based on things nobody has agreed to maintain forever. A café with a nice table near a plug doesn’t owe me a desk for life. A developer who sees a preview of a new feature can decide to build around it too early. What matters is what you invited people to rely on, what you could reasonably see them relying on, and what it cost them to do so. If your setup guide tells teams to switch off their old reporting jobs, you have a clearer obligation to those teams than you do to someone who saw a screenshot and started guessing.

The customer may also have made a perfectly good trade. In the reporting example, it would be strange to insist they leave an employee manually sending the same report indefinitely. Eliminating that job was part of the reason to use the feature. A business that asks customers to retain every old process has sold them a second process. The question is how to let them make the change without putting all of the cost of a reversal on them.

Bring back the things people can still use

Even software can be harder to put back than the deployment screen suggests. Sandeep Pokkunuri gives a simple example in the AWS Builders’ Library. A new version starts writing compressed data. The old version can still run, but it can’t read data written in that format. In a separate example, his article shows how to change a file format in two steps. First, teach the software to read both formats while it still writes the old one. Then switch what it writes. If that second step has to be rolled back, the prepared version can still make sense of what was written in the meantime. That preserves a particular rollback path, with a particular limit. Returning all the way to the original reader is a different proposition.1

For the reporting feature, turning off new schedules might be the quickest way to stop the bug. Keeping existing schedules visible could let customers recover what they set up. A list of upcoming or missed sends would give support something specific to work from. If the software records which sends actually went out, preserve that information too. A manager who sends a report manually needs to know whether everyone is waiting for it or half of them already have it.

Google Reader offers a case where putting the service back was never the offer. In March 2013, Google announced that it would retire the feed reader on July 1. It gave users roughly three months’ notice and pointed them to Google Takeout for a copy of their data, including subscriptions.2 That gave users something to take to another reader and time to look for one. It still left the work of choosing a replacement and checking what came across. You can distinguish those two facts without deciding whether anyone deserved a lifetime subscription to Google Reader.

Sometimes the thing you owe is a new action. If the faulty scheduler sent the wrong numbers, putting the correct file in the dashboard handles only the part of the problem that lives in the dashboard. Find out who got the first report and what they were meant to do with it. Send the correction where the original went, make the difference clear, and give the recipients time to tell you if they already acted on the bad figures. There may be things you can’t repair. At least the people making the next decision will know what they’re working from. An engineer may reasonably finish the rollback before this work starts. Somebody still has to own it.

It’s worth testing the thing you plan to hand back. An export is more useful if someone can open it before the account closes, understand the fields, and import what they need. A list of report schedules with internal account IDs might please the person who wrote the export. The customer who needs to call six recipients would do better with names they recognize and the next send time. For data that needs protection, give the right person a way to get it and keep the permissions intact. A transition that depends on emailing everyone the entire spreadsheet has its own problems.

A trial can have real terms

Imagine a team tries a different meeting schedule. For a month, they move the Tuesday morning meeting to late afternoon. Someone rearranges child care, somebody else moves a recurring call with a client, and a colleague in another time zone starts having dinner at their desk. A month later, leadership says the trial went well because attendance improved. Fair enough. Now ask the three people who had to make it work what they would have done differently if they’d known the new time might stick.

The people running a trial need room to stop it. The people taking part need enough information to decide how much to change around it. Say how long it will run and when you’ll decide what happens next. Explain which parts people can count on during that time. If you need them to try a behavior they could only do by dropping the old one, say what you’ll do to help restore it if the trial ends. Let them tell you if the restoration you’re offering is something they can actually use.

In software, that might mean inviting a few willing customers to try scheduled reports on a small set of low-stakes jobs. Let them know what happens to schedules they create if the experiment ends. Agree who will handle the first run after a rollback. Someone who actually uses the feature should look at those terms before you send the invite. A builder may think an archive with a month of reports makes a perfectly good fallback. A customer may explain that a report has to appear in an inbox by eight because someone across the company starts work from it at eight-oh-five.

Nor does a good exit plan require keeping two systems alive forever. Supporting both can cost money, create confusion, and make fixes harder. Sometimes you need to turn off a broken service immediately. When advance notice is impossible, communicate what changed as soon as you can, identify the outstanding work, and help with the consequential gaps first. A clear limit on what you can recover is useful. It leaves people time to start making plans around the truth.

Walk through the first day after

Before making a change, pick one person likely to rely on it. Imagine they use it successfully twice. What do they cancel, stop checking, or tell somebody else to expect? Now end the trial the afternoon before they need it again. Follow them through the next morning. Can they see what changed? Can they get to their work? Is there a person who knows which commitments should still be honored?

Give that scenario to someone who didn’t plan the rollout. Have them use the actual notice, export, or support instructions you’ve prepared. As The Instructions Were Clear to the Person Who Wrote Them argues, the places where you have to lean over and explain something are part of the result. If you find yourself saying “support would just know who to contact,” put a name or a lookup in front of support and find out.

With the reports, somebody can probably turn the feature off in five minutes. Before you turn it on, decide who checks what was supposed to go out on Monday. Give that person enough information to do something useful while the customer is on vacation. The six people waiting for their numbers don’t need a history of the deployment. They need the report, or a person who can say when it’s coming.

Footnotes

  1. Sandeep Pokkunuri, “Ensuring Rollback Safety During Deployments”, AWS Builders’ Library (2019), especially “Problems with protocol changes” and “Two-phase deployment technique.” The article uses compression to illustrate the compatibility problem and a change in serialization format to illustrate a staged deployment. ↩

  2. Alan Green, “Powering Down Google Reader”, Official Google Reader Blog, March 13, 2013. The announcement gave July 1 as the retirement date and named Google Takeout as the export option. ↩