Continuous Delivery Is a State, Not a Pipeline

By Esteban Trillo13 min readupdated Continuous DeliveryBooks

Always ready. Releasing is a decision, not an event.
Always ready. Releasing is a decision, not an event.

Part 1 of a series reading Continuous Delivery, by Jez Humble and David Farley. Start here: what “CD” actually means, before any tooling.

A while back I wrote about refactoring — a word everyone uses and few use the way the book means it. This book does the same thing to two more words.1

There’s enough in it that I’m reading it in public, one idea at a time. This first part is about the biggest misunderstanding of all: what “CD” even is.

Ask an engineer and they point at a tool. Jenkins. GitHub Actions. A green checkmark on a pull request. A pipeline with stages.

That is not what the book is about.

Software is in a state where it can be safely released to production at any time.2

Read that again. It is not a description of a tool. It is a description of your software.

Continuous Delivery is a state, not a pipeline.

The pipeline is real and it matters. But it is the machine, not the goal. The goal is a property your codebase either has or does not: could this go to production right now, safely, on demand? If the honest answer is “not until we stabilize the branch” or “not until QA signs off next week,” you do not have Continuous Delivery. You have a pipeline.

Delivery is not deployment

The confusion starts with the letters. “CD” gets used for two different things, and the difference is the whole idea.

Continuous Delivery means your software is always in a releasable state. A human still decides when to push the button.

Continuous Deployment means every change that passes the pipeline goes to production automatically. No button.3

“CD” as most people use itContinuous Delivery, the book
A pipeline tool you configureA property your software has
“The build is green”“We could ship this right now”
Stabilize, then releaseAlways releasable, release on demand
A stage at the end of the workA discipline running through all of it

Here is the tell. A team can have a gorgeous pipeline — parallel stages, dashboards, badges in the README — and still not be able to ship on a Tuesday. The code they actually care about is three weeks deep on a branch. QA needs a week with it. The release needs a sign-off meeting. Green pipeline, unreleasable software. That is a pipeline, not Continuous Delivery.

You can practice Continuous Delivery and deploy to production once a week. You are still doing CD, because at any moment you could have shipped. The releasable state is the thing. Automatic deployment is one option you unlock once you have it.

Continuous integration is the price of entry

Before any of this works, there is a habit you cannot skip: everyone folds their work into mainline constantly. Daily at the least, ideally many times a day.

That is continuous integration, and it does not mean “we have a CI server.” It is a discipline about your code, not your tooling: you never let your branch drift far from everyone else’s.4

The alternative is what most teams actually do. Work sits on a branch for a week, two weeks, a month. It grows. It diverges. Then comes the merge, and the merge is a small war — conflicts, surprise interactions, tests that passed alone and fail together. The longer the branch lived, the worse the war.

That merge pain is not bad luck. It is deferred integration, billed back with interest. CD refuses to run that tab. You integrate in small pieces, all the time, so the system is never far from a known-good state — which is the only way “always releasable” is even possible.

It raises an obvious question: how do you integrate a half-built feature every day without breaking everyone? You hide the unfinished part behind a flag and merge it dark. That is the same trick we get to at the end of this post — and it is what makes daily integration safe.

The pipeline is only the evidence

So if CD is a state, what is the pipeline for?

It is how you prove the state. You cannot know your software is releasable by feeling optimistic about it. You know because every change walks the same gauntlet — build, unit tests, acceptance tests, a production-like environment — and comes out the other side with a verdict.

  1. commitpush to main
  2. buildcompile + package
  3. unitfast tests
  4. acceptancedoes it behave?
  5. stagingprod-like env
  6. productionreleasable

Green all the way. Every stage runs against the same commit and passes, so it lands in production releasable. Nobody had to decide it was safe — the pipeline proved it.

The line stops. Acceptance caught a behavior change, so the commit never reaches production. That is the point: the pipeline is a gate, not a conveyor belt. A red stage means not releasable, loudly and early.

The pipeline is a series of gates, each one harder to pass than the last, each one a chance to reject a change before a human is on the hook for it. A green run is not decoration. It is a claim, backed by evidence, that this specific commit is safe to release.

The order is not arbitrary. The cheap, fast checks run first — compile, unit tests, the things that come back in minutes — so most mistakes get caught while the change is still warm in your head. The slow, expensive checks — acceptance tests, a full production-like environment — run later, only on changes that already earned the right. Fail fast, fail cheap, and spend the expensive minutes only on candidates worth spending them on.

And a red stage is just as valuable. It stops the line. The change does not reach production, and you find out within minutes instead of during an incident. The pipeline’s job is not to ship things. It is to tell you the truth about whether you could.

Done means it could ship right now

Here is where CD quietly rewrites a word you use every day: done.

On most teams “done” is a soft word. Done can mean “I wrote the code.” It can mean “it works on my machine.” It can mean “it’s merged, QA will get to it.” Each of those leaves a gap between done and shippable, and that gap is where releases go to die.

CD closes the gap. A change is done when it is in a releasable state — not before.

And that gap has a cost that compounds. A branch that is “done” but unintegrated is inventory sitting in a warehouse — finished, paid for, earning nothing, and quietly rotting as the code around it moves on. Multiply it across a team and you get the familiar end-of-sprint scramble, where a pile of “done” tickets turns out to hide days of integration nobody put on the board. Under CD the warehouse stays empty: the change is in mainline, proven by the pipeline, shippable. There is no second pile waiting to ambush you at release time.

If you cannot tick the last box, the work is not done. It is almost done, which under CD is a different and more honest thing to say.

Small batches are the whole trick

The mechanism that makes any of this survivable is unglamorous: small batches.

Big releases are terrifying because they are rare, and they are rare because they are terrifying. Weeks of changes pile up. Nobody remembers everything that went in. When it breaks — and it breaks — you are bisecting a crowd.

Drag this and watch the risk grow with the batch.

3changes in this release
every few dayshow often you ship
3suspects if it breaks
small batchbig bang

Small and frequent. If a release breaks, there are only a handful of changes to look at — the fix is usually obvious.

The book’s answer, borrowed from lean manufacturing, is to shrink the batch until releasing stops being an event. Humble and Farley put it as a rule that sounds backwards the first time you hear it:

Release rarely and every release is a high-stakes gamble on a mountain of untested integration. Release constantly and each one is a boring, well-rehearsed non-event. Same total work. Wildly different risk.

There is a sneakier cost to big batches, too: they wreck your ability to diagnose. When one change ships and something breaks, you know the culprit. When fifty ship together, the failure could be any of them — or an interaction between two — and you are debugging in production, at the worst possible moment, with the least possible information. Small batches keep the signal clean. If the release that broke held a single change, the investigation is over before it starts.

Make releasing boring

Small batches only work if releasing is cheap. If every release is a hand-run ritual, “do it more often” is a cruelty, not advice.

So the pipeline has to be automated end to end — not because automation is elegant, but because a human runbook does not survive being run ten times a day.

Toggle this. That runbook is what “deploy” looks like without CD.

The steps do not vanish when you automate. A machine still ssh-es in, runs the migrations, restarts the workers. The difference is that it does them the exact same way every single time, with no 11pm typos and no forgotten step. The release becomes repeatable, which is the only thing that makes it frequent, which is the only thing that makes it safe.

There is a quieter payoff. A manual release lives in one person’s head — the person who knows the order, the gotchas, the one server that needs a manual nudge. That knowledge is a single point of failure with a pulse. When they are on vacation, releasing is scary again. Automating the runbook moves the ritual out of memory and into version control, where the whole team owns it and anyone can run it. And repeatable cuts both ways: the same automation that ships you forward is what ships you back, calmly, when a release needs to be undone.

Deploy is not release

The last piece is the one that unlocks the rest, and it hinges on two words people use as synonyms.

Deploy is a technical act: the code is now running in production.

Release is a business act: users can now use the feature.

CD pulls them apart. You deploy code to production constantly — half-finished features included — and keep it dark behind a feature flag until it is ready. Deploying stops being scary because deploying no longer means exposing.5

Flip the flag.

Look at what did not change. The new code was already in production in both states. The toggle only changed who could see it. That is the trick that lets you integrate every day without waiting for a feature to be “finished” — the risky part (getting code onto the box) happens continuously and quietly, and the visible part (turning it on) becomes a decision you make when you’re ready, not a deployment you have to survive.

Once deploy and release are separate, you get powers that feel a little like cheating. Turn a feature on for one percent of users and watch the graphs before you commit — a canary. Turn it on for your own team first — a dark launch. Turn it off in seconds when something looks wrong, with no rollback, no redeploy, no war room. Release stops being a cliff you leap off and becomes a dial you turn.

deep diveIsn't a codebase full of feature flags just a new kind of mess?

Yes, if you never remove them. A flag that outlives its purpose is debt — a dead branch in your logic that everyone is scared to delete. The discipline is that flags are temporary by default: a release toggle exists to decouple deploy from release, and once the feature is fully rolled out, removing the flag is part of the work, not a someday-cleanup. Treat a stale flag the way refactoring treats a code smell — a named signal that something needs a small, deliberate change. The flags are a tool for controlling risk, not a place to store indecision.

So, what is Continuous Delivery?

It is not your CI tool. It is not a green checkmark. It is not a stage bolted onto the end of the sprint.

It is a state: your software is always ready to ship. The pipeline is how you prove it. Small batches are how you keep it true. Automation is what makes it repeatable. Feature flags are what let you separate the safe act of deploying from the deliberate act of releasing.

Rename it in your head. “CD” is not “we have a pipeline.” It is “we could ship what’s on mainline right now, and we know it, because we prove it on every commit.”

That is a state you have to keep earning. Earn it and releasing turns from the scariest day of the month into the most boring part of the week.

Which, if you have ever lived through a release that was not boring, is the entire point.

That is the core idea, and the rest of this series is the machinery that makes it real: the deployment pipeline stage by stage, the testing strategy that lets you trust a green run, and how you manage configuration and data when any commit might ship. But the mindset comes first. Everything else is in service of one sentence — the software is always ready to go.

Next in the series: what actually happens inside the pipeline, one stage at a time.

Footnotes

  1. Jez Humble and David Farley, Continuous Delivery (Addison-Wesley, 2010). The ideas were later extended with the DORA research in Accelerate, which found deployment frequency and lead time to be measurable predictors of team performance. ↩

  2. The canonical definition, from Humble’s continuousdelivery.com: the goal is software that is “in a state where it can be safely released to production at any time.” ↩

  3. Martin Fowler draws the line clearly: Continuous Delivery means software is always releasable; continuous deployment means every good build actually goes out automatically. ↩

  4. Martin Fowler, Continuous Integration — integrate frequently into mainline, keep the build healthy, and treat a broken build as the team’s top priority. ↩

  5. Pete Hodgson, Feature Toggles (aka Feature Flags), on decoupling deployment from release and on retiring toggles once they’ve done their job. ↩

Piwi hands a single letter to the user at a mailbox; a small note reads no noise.

Get the next one in your inbox

One email when a post goes out, with its sketch. Nothing in between, and one link to leave.

Sign in faster next time?

Add a passkey and skip the email link. Your fingerprint, face or device PIN is enough.