Joe Stanley

Module 7

Change Safely

How good does it have to be, and how do we change it quickly when mistakes are expensive?

Takes about an hour, plus about 20 minutes for this page.

If you only do one thing: Propose your next rollout on one page, with the level where you’d stop it, then ask whoever leads on call for their view.

Last time

Two questions on Module 6: Design for Change. Answer in your head, then check.

Stewart Brand says “Fast learns, slow remembers.” Why not push a slow layer to move at a fast layer’s pace?
The slow layer holds what the rest depends on, such as a school’s record of grades or a contract. Forced to another layer’s pace, it ends badly, whichever way the push goes.
Two parts of a system are coupled “with respect to a particular change.” What does that let you do as a PM?
Learn which kinds of change make both parts move, and why, to tell costly requests from cheap ones. You often know better than anyone which changes are coming.

Why this matters

On a ticketing app, the worst time to fail is an on-sale, the morning a big tour’s tickets are released. When a failure would be that expensive, the usual answer is more sign-offs and bigger, rarer releases. That feels careful.

DORA, a research program on software delivery, points the other way. In its research on change approval, teams that needed a change board or a senior manager to approve changes were far more likely to be low performers, and it found no sign that the approvals made changes fail less often. Its five delivery measures count how fast changes get out and how often one fails, and across more than a decade of its surveys, teams that do well on speed tend to do well on stability. It all rests on what teams report about themselves.

Richard Cook, from Module 2: See the System, gives part of the reason: “Change introduces new forms of failure.” So a big, rare release brings many of them at once. A small one brings few, and you’ll find them sooner, while the change is fresh. Where nobody can tell ahead of time what a change will do, run what Dave Snowden and Mary Boone call “experiments that are safe to fail” (Harvard Business Review, 2007).

Before you change anything, know how good the service has to be, in words engineers can test: “When 50,000 fans try to buy in the first minute of an on-sale, checkout confirms 99 in 100 orders within 3 seconds.” An average hides the customers who wait, so when someone quotes you one, ask for the 99th percentile.

That’s harder to say when the output varies, as a model’s does. Google’s People + AI Guidebook, in its chapter “Errors + Graceful Failure,” says a recommender that’s useful 60 percent of the time “could be seen as a failure or a success, depending on the user and the purpose of the system.” It also names the failure that’s hardest to catch: one where “neither the user nor the system register an error.”

So decide what the model judges and what stays a plain rule. On your ticketing app, a model can score how likely each buyer is to be a bot, a rule can say what happens at each score, and a person can review the orders it holds back. The model sees patterns nobody could write down, and the rule keeps what happens to a fan predictable and easy to explain. Keep checking after launch: a model’s choices can shape the data it learns from next, and a change to one input can shift everything it does (Sculley and colleagues, 2015).

The short path

  1. Google SRE book, “Embracing Risk”

    10 minutes. A chapter. Free at sre.google. Read “Managing Risk,” then “Motivation for Error Budgets.”

    Look for: Why 100 percent is the wrong target, and who sets the reliability target, the service level objective (SLO).

    Why this source
    Why trust it
    Experience. Google’s site reliability engineers describe their own practice.
    What you’ll get
    One shared number to settle arguments between product and reliability.
  2. Pete Hodgson, “Feature Toggles (aka Feature Flags)”

    15 minutes. An article from 2016. Free at martinfowler.com. Read “A Toggling Tale,” then, under “Categories of toggles,” “Release Toggles,” “Experiment Toggles” and “Ops Toggles.”

    Look for: How deploying a change differs from releasing it: one puts it into production switched off, the other turns it on for customers, a few at first. Then how an ops toggle switches it off fast.

    Why this source
    Why trust it
    Experience. Hodgson, a software delivery consultant long at Thoughtworks, writes from his work with teams. He’s frank that every toggle adds complexity.
    What you’ll get
    The mechanics behind “released to 1 percent of customers,” enough to ask your engineers sharp questions.
  3. Error Budgets

    5 minutes. A concept card, one page.

    Look for: How a reliability target turns into minutes you can spend.

  4. Read the Errors First

    5 minutes. A concept card, one page.

    Look for: Why you read a model’s mistakes before you trust it, and how to tell what a change did.

  5. Propose one rollout, and log it

    The Do, on this page, below. Showing it to your tech lead and whoever leads on call can come later.

    Look for: The level at which you’d stop, for the customers it could hurt most.

  6. Check yourself

    The Check, on this page, below.

    Look for: What an error budget buys, how fast a seat record should change, and why you’d stop a test that’s winning.

Do

Propose one rollout (30 minutes). Pick a change coming up on your product, such as a new way to pay or a redesigned sign-up. Write a one-page proposal that answers five things. If you have no say over rollouts, write what you’d set, and bring it later to whoever does.

  1. The cohort: who gets it first, and how many.
  2. The goal measure you hope it moves.
  3. The guardrail metrics, which must not get worse, such as failed payments per thousand checkouts, and the level at which you’d stop. Or a hard line, where one case stops it, such as a customer charged twice. Break each down for the customers the change could hurt most, such as people on older phones or using a screen reader: a guardrail can hold on average while it fails them.
  4. Who can switch it off with a feature toggle, and how fast. In an app, the toggle has to ship in the version people installed.
  5. The error budget it might spend. No target yet? Note it, and ask later who sets one.

How much risk a change can take, and who gets it first, is product’s call. Engineering proposes how fast it ramps and how it’s switched off, within those limits, so give your view of those as a start.

Outside the 30 minutes, show it to your tech lead and whoever leads on call, and ask, “What do you fix by hand that this could break?” Then accept the plan they propose, or say which limit it misses.

For your decision log. Write whether you expect the rollout to reach all your users without being switched off, how sure you are, and why. You’ll have your answer when the last group has it.

What a good one looks like

Change: pay by bank, approved in the bank’s app.

  1. Cohort: 1% of buyers on quiet days, then 10%, 50%, and everyone, each step through a bigger on-sale.
  2. Goal: more checkouts end in orders, up from 62%.
  3. Guardrails: payment errors, not counting a bank’s declines, run 0.4 per thousand. Stop at 0.8, overall or in social apps’ browsers, where redirects break. The hard line is one payment with no ticket or refund after 15 minutes.
  4. Off switch: payments on-call switches it off within 10 minutes of an alert. In an on-sale it switches off automatically, in seconds.
  5. Error budget: the 99.9% target allows 1 failed checkout per thousand, or 43 minutes down a month at normal traffic. A 10-minute break for 1% of buyers spends six seconds of it. One on-sale minute down for everyone, at 45 times normal traffic, spends it all.

Decision log:

  • Expect: it reaches everyone and is never switched off.
  • Confidence: 65%, because it’s untested at on-sale load.
  • Know by: June 10, when the last group has it.

What makes it good:

  • Its breakdown and its hard line come from how this change breaks: bank redirects in social apps’ browsers, and money taken with no ticket.
  • It prices a break by when it lands as well as how wide, and lets that price argue for an off switch that’s automatic during an on-sale.
  • Its log says why it might fail, untested at on-sale load, and its ramp tests just that, each step through a bigger on-sale.

Optional: read one incident write-up (15 minutes). Find your team’s latest postmortem, or post-incident review. If there’s none, read “What happened” and “What went wrong” in Cloudflare’s account of its July 2019 outage, where one rule change went everywhere at once. Note when customers were first hurt, when the team knew, and how long switching it off took. Does it name one root cause, or the several that Module 2: See the System told you to expect? Outside the 15 minutes, ask your tech lead if you can sit quietly in the next incident review.

To bring to engineers

Bring what your next change must not make worse, and for whom. Say when a break would cost most, such as your busiest hour.

  • How long do our slowest 1 in 100 customers wait today, at the step this change touches?
  • What are our numbers on DORA’s five delivery measures, and which would you fix first?
  • What can go wrong, and what are we going to do about it?
  • If a model this release relies on were quietly wrong next month, what would tell us?

Check yourself

Answer in your head, then check.

Your team has error budget left this month. What does that let you do, and what happens once it’s spent?
You can keep releasing, because the budget is room you’ve already agreed to spend. Once it’s spent, releases slow or stop until reliability recovers.
Module 6: Design for Change said the records everything depends on, like a school’s grades, move slowly on purpose. This module says small, frequent releases are safer than big, rare ones. Which holds for your record of which fan has which seat?

Both, at different layers. Ship the code around the seat record in small steps, behind a toggle. Change its data and its contracts slowly, since every sale depends on them, and a toggle can’t undo a seat sold twice.

On your ticketing app, a test of a new seat map raises orders per visit, the goal it was meant to move. Why might you still stop the test?
A guardrail metric got worse. A goal can rise for a bad reason: a map that flatters seats sells more of them, and refunds and complaints follow. Page load time can slip too, overall or for one group of customers.
Beyond this module. Most of this module guards against honest mistakes. What about someone breaking your product on purpose?
Abuse and attack, where a feature works as designed for someone you never designed it for, like a bot that buys the best seats to resell. Adam Shostack’s Threat Modeling, on the full path below, starts there.

Go deeper: the full path

Optional, and not counted in the time above.

If you read one: Trustworthy Online Controlled Experiments. It covers the two calls here you’ll make most often: what an experiment answers to, and how fast a change reaches everyone.

  • Trustworthy Online Controlled Experiments, Ron Kohavi, Diane Tang, and Ya Xu

    A book.

    Read chapters 6 and 7, on the measures an experiment answers to, then chapter 15, on ramping a change to everyone.

    Why this source
    Why trust it
    Experience. Between them, the authors built experimentation at Microsoft, Google, and LinkedIn, and wrote their practical guide from inside large online businesses.
    What you’ll get
    How to choose the measures an experiment answers to, guardrails among them, and fold those you want to move into one overall evaluation criterion. Then how to ramp a change to everyone without trading safety for speed.
  • Threat Modeling, Adam Shostack

    A book.

    Read Part I, “Getting Started.” The Threat Modeling Manifesto, which Shostack wrote with other practitioners, puts threat modeling in four questions: “What are we working on?” “What can go wrong?” “What are we going to do about it?” and “Did we do a good enough job?”

    Why this source
    Why trust it
    Experience. Shostack spent nearly a decade at Microsoft, where he led the design of its threat modeling tool.
    What you’ll get
    Those four questions worked through at length, with no security training needed, so you can start the conversation with a security engineer while the design can still move.
  • AI Engineering, Chip Huyen

    A book.

    Read chapters 3 and 4, “Evaluation Methodology” and “Evaluate AI Systems.”

    Why this source
    Why trust it
    Experience. Huyen taught machine learning systems design at Stanford and writes from real cases, many of them her own. She sticks to the fundamentals rather than any one tool.
    What you’ll get
    How to tell whether output that varies is good enough, and stays so: graded examples, models as judges and their limits, and checks on each part of the system.
  • Ford v Ferrari, directed by James Mangold (20th Century Fox, 2019)

    A film.

    Carroll Shelby and the driver Ken Miles build a car to beat Ferrari by testing it, lap after lap. Yarn taped to the body shows the front lifting at speed, and a brake failure in testing ends in a crash and a fire before they find a fix the rules allow. Meanwhile every change has to pass up through Ford. “You can’t win a race by committee,” Shelby tells Henry Ford II. The film makes more of a villain of one executive, Leo Beebe, than history does.

    Why this source
    What you’ll get
    Speed that comes from many small tests, each cheap to fail, set against a company trying to make change safe by adding sign-offs.

Access pattern

A question a system’s data has to answer, with who asks it, how often, how fast, and how fresh.

In the glossary

Advice process

Anyone may make a decision, after asking the people it affects and people with relevant expertise. They don’t have to follow the advice, but they have to seek it out and write it down.

In the glossary

Bounded context

An area of a business or a system inside which each word and model has one agreed meaning.

In the glossary

Cognitive load

How much someone has to know to make a change safely. Team Topologies uses it for how much a team has to hold in its head.

In the glossary

Commander’s intent

The why given with a task, so people can still act when the task goes stale. From military doctrine.

In the glossary

Complexity

In John Ousterhout’s sense, anything in a system’s structure that makes it hard to understand and change. Its symptoms are change amplification, cognitive load, and unknown unknowns.

In the glossary

Conceptual integrity

Fred Brooks’s name for a product that reflects one set of design ideas, so its parts belong together.

In the glossary

Conjoint analysis

A survey method from market research. People choose among, rank, or rate versions of a product that differ in features and price, and their answers show how much each feature is worth to them. Paul Green developed it for marketing.

In the glossary

Consequence scanning

A short team conversation, early in a product’s or a feature’s life, about everything it could cause, run on three questions from Doteveryone.

In the glossary

Constraint (bottleneck)

The one part of a system that limits what the whole system can deliver.

In the glossary

Conway’s Law

A system ends up shaped like the communication between the teams that build it. Melvin Conway made the point in 1968.

In the glossary

Cost of change

What it takes to change part of a product later, set mostly by the slowest layer the change touches.

In the glossary

Cost of delay

What a week of waiting costs, in the value you don’t get while the work isn’t done. It puts urgency and value in one number.

In the glossary

Coupling

How far a change to one part forces a change to another, judged for a particular change.

In the glossary

Data-informed

Using numbers and stories for what each can tell you, while the decision stays yours. Adam Mosseri set it against being data-driven in a 2010 talk.

In the glossary

Decision record

A short note of one significant decision, with its context, the decision, its status, and its consequences. Engineers call it an architecture decision record (ADR).

In the glossary

Deprecation

Announcing that part of an API or a dataset will be retired, and when, so its callers can move before a breaking change, one that stops their code working, removes it.

In the glossary

Discovery

The work of learning whether a problem is real, whose it is, and what solving it is worth, before and while you build.

In the glossary

Double-loop learning

Questioning a goal and the assumptions behind it, where single-loop learning only changes the actions that serve it.

In the glossary

Error analysis

Reading a sample of what a model got wrong, writing a line on each mistake, then sorting the mistakes into kinds and counting them, before you decide what to test or change.

In the glossary

Error budget

The amount of failure a service’s SLO allows, treated as a budget. While some is left, releases go ahead.

In the glossary

Event time and processing time

When something happened, and when the system saw it.

In the glossary

Fake door

A button or link for a feature that isn’t built yet, shown to some customers to count how many tap it. Those who do are told right away that it isn’t ready.

In the glossary

Feature toggle (feature flag)

A switch in the software that turns a feature on or off without changing the code.

In the glossary

Feedback loop

A chain of cause and effect that runs from the level of a stock back to one of its flows. A balancing loop pulls the stock toward a goal. A reinforcing loop pushes it further the way it is already going.

In the glossary

Glue work

Tanya Reilly’s name for the work that holds a team together and rarely gets anyone promoted.

In the glossary

Goodhart’s Law

“When a measure becomes a target, it ceases to be a good measure.” The wording is the anthropologist Marilyn Strathern’s, from 1997, for a point the economist Charles Goodhart made in 1975.

In the glossary

Guardrail metric

A measure that must not get worse while you try to move another. You agree in advance the level at which you’d stop.

In the glossary

Heavyweight product manager

From a study of car development. A lightweight product manager coordinates the work. A heavyweight also champions the product’s concept, what you’d call its vision, and answers for it.

In the glossary

Holdout

A group kept out of a change on purpose, so you can compare what happens with it and without it. Picked at random, and large enough, it shows what the change itself did.

In the glossary

Hyrum’s Law

With enough callers, every behavior of an API they can see will be depended on by someone, whatever its documentation promises. Named for Hyrum Wright, who saw it as an engineer at Google.

In the glossary

Interface

Where two parts of a system, or two teams, meet, and what each side promises the other there.

In the glossary

Intersectional

Looking at where two or more groups overlap, such as gender and skin type together, not at one at a time. Kimberlé Crenshaw named the idea in a 1989 paper.

In the glossary

Inverse Conway maneuver

Shaping teams, and how they talk to each other, on purpose, to get the system you want.

In the glossary

Job crafting

Reshaping your own job from the inside, by changing its tasks, your working relationships, or how you see its purpose. Amy Wrzesniewski and Jane Dutton named it in 2001.

In the glossary

Kernel of a strategy

Richard Rumelt’s name for the three parts a strategy needs: a diagnosis of what’s going on, a guiding policy for meeting it, and coherent actions that carry it out.

In the glossary

Ladder of inference

Chris Argyris’s model of how you climb from what you notice to what you conclude and do, usually without seeing the steps. Tellings count its rungs differently. Ed Batista’s has four, and the most commonly cited one has seven.

In the glossary

Last responsible moment

The moment when putting off a decision would close off an important option. Until then, waiting to learn more can cost less than deciding wrong. Past it, waiting makes the choice for you.

In the glossary

Law of small numbers

Amos Tversky and Daniel Kahneman’s name for the belief that a small sample will look like the whole population. Small samples swing more than anyone expects.

In the glossary

Left-hand column

An exercise from Chris Argyris and Donald Schön. Beside what was said in a conversation, you write what you thought and felt but didn’t say.

In the glossary

Leverage point

A place in a system where a small change can produce a large change in how the whole behaves. Donella Meadows ranked twelve of them.

In the glossary

McNamara fallacy

Taking what’s easy to measure for all that matters. The market researcher Daniel Yankelovich named it in 1971.

In the glossary

Moral justification

Albert Bandura’s name for making harm feel acceptable by casting it as serving a worthy or moral purpose, such as a company’s mission.

In the glossary

OKRs (objectives and key results)

A goal-setting format many teams use. Each objective is paired with a few measurable key results.

In the glossary

One-way and two-way doors

Jeff Bezos’s terms for decisions you can’t easily undo, and decisions you can.

In the glossary

OODA loop (observe, orient, decide, act)

John Boyd’s model of every decision as a loop. He held that orienting, the picture you act from, matters most.

In the glossary

Operational and analytical

Operational use keeps the live service running, and analytical use looks across many records, the way reports do.

In the glossary

Pace layers

Parts of a building, a society, or a product that change at different speeds, with the slow ones setting the terms for the fast. Stewart Brand’s shearing layers, built on the architect Frank Duffy’s, are a building’s version.

In the glossary

Percentile

Where a case falls when all of them are ranked. If the 99th percentile wait is 3 seconds, 99 in 100 wait 3 seconds or less.

In the glossary

Premortem

Gary Klein’s technique of telling a team its project has already failed and asking each person, alone, to write down why.

In the glossary

Price sensitivity

How much a change in price changes what people will buy. One common survey for it is Peter van Westendorp’s Price Sensitivity Meter, from 1976. It asks at what price a product would seem too cheap to be any good, a bargain, getting expensive, and too expensive to consider, and reads a range of acceptable prices from where the answers cross.

In the glossary

Problem of many hands

Dennis Thompson’s name for harm that comes from so many small contributions that it’s hard to say who’s responsible.

In the glossary

Product judgment

A blend of lived experience, the principles behind the work, and the context of the situation, turned into intuition when making general product decisions. Coupled with product-specific expertise, it becomes what many in the field call “product sense.”

In the glossary

Product-market fit

The point where enough people with the problem keep using a product, and paying for it, that it can grow on their demand. Before it, a team is still finding out who the product is for.

In the glossary

Psychological safety

A shared belief that it’s safe to take interpersonal risks at work, such as raising a concern or admitting a mistake. Amy Edmondson’s research on teams made the idea widely known.

In the glossary

Regression to the mean

An extreme result tends to be followed by a less extreme one, whatever you did in between.

In the glossary

Right to erasure

A person’s right, under the General Data Protection Regulation (GDPR) in the EU and the UK, to ask an organization to delete their personal data, in some circumstances.

In the glossary

SCR (situation, complication, resolution)

A three-part opening for a message. The situation is what the reader already accepts, the complication is what changed, and the resolution is what you recommend or ask. It adapts Barbara Minto’s situation, complication, and question.

In the glossary

Service level objective (SLO)

A reliability target for a service, such as “up 99.9 percent of the time,” agreed before anything goes wrong.

In the glossary

Stock

Anything that builds up or drains away and can be counted or measured at one moment, such as a backlog or a bank balance. Only the flows into and out of it change it.

In the glossary

Stop rule

The result that would make you stop or change course, written before a bet goes live, with the signal you’ll watch and the date you’ll look. Written afterward, it tends to fit whatever happened.

In the glossary

Straddling

Michael Porter’s word for trying to hold two positions that don’t fit together, such as a full-service airline copying a low-cost rival.

In the glossary

Stress position

The end of a sentence, which readers naturally emphasize, so it’s the place for what you most want noticed. The term is Gopen and Swan’s.

In the glossary

System of record

The system that holds the authoritative copy of some data, from which every other copy is made.

In the glossary

Trust equation

A consultants’ model that treats trust as credibility, reliability, and intimacy, divided by self-orientation.

In the glossary

Unforced ambiguity

Ambiguity that isn’t inherent to the situation and comes from how an organization works, such as a decision nobody owns or a doubt nobody felt safe to raise.

In the glossary

Work in progress (WIP)

Work that has been started and not finished. A long queue of it in front of one step is the usual sign of a constraint.

In the glossary