Why Green Pipelines Still Fail: Diagnose the Hidden Assumptions

Why Green Pipelines Still Fail: Diagnose the Hidden Assumptions

A release that passed every test in staging fails within minutes in production. The team scrambles, rolls back, and holds a review. The usual finding is not a careless engineer; it is a difference between what the pipeline took for granted and what the production environment actually did. Here the situation is handled like a diagnosis: the symptom is a surprising failure, the cause is an unrecorded belief, and the remedy is an assumptions log that makes such beliefs visible before the next release.

The symptom: green pipeline, red production

Consider a team that ships a service with a build step, unit tests, a container image and an automated rollout. Staging looks healthy. In production, requests start failing because a downstream service rejects calls that exceed a payload size the staging copy never enforced. Nothing in the code was broken. The belief that “staging behaves like production” was broken.

Patterns like this recur across delivery pipelines. Environments differ in limits, certificates, data volume, network paths and permissions. Each difference is harmless until someone relies on sameness without saying so.

Diagnosis: recover the beliefs behind the failure

After an incident, the most productive question is not “who changed what?” but “what did we believe that turned out false?” Work backwards through the release and write each belief as a plain sentence. For the payload example, the list might include:

  1. Staging enforces the same request limits as production.
  2. The downstream service has not changed its limits since the last release.
  3. Large payloads are rare in real traffic.
  4. Failures of this kind would be caught by the smoke tests.

Notice that each line can be tested. Number one can be tested by comparing configuration; number three by sampling production requests; number four by reading the smoke test list. The act of writing turns a vague regret into four checkable items.

Root pattern: beliefs inherited rather than chosen

Many assumptions arrive by inheritance. A pipeline template was copied from an older project, and with it came silent conditions: a fixed timeout, a default retry count, a base image that is assumed to be patched. Nobody decided them; nobody remembers them. When the pipeline is copied again, the assumptions travel too.

The fix is to review inherited configuration with the same question: what does this setting presume? If the answer is “I do not know”, the setting goes onto the log as unknown, with an owner and a check.

A short timeline of the diagnosis

It helps to see the order of work. First, stabilise: roll back or apply the quick fix, and write down only facts. Second, within a day, hold a short session where each participant lists beliefs they held about the release, without assigning blame. Third, merge the lists and sort by whether the belief was ever checked. Fourth, choose the two or three that mattered most and design a lasting check for each. The entire exercise fits in an hour, and the output is a list rather than a long narrative, which makes it far easier to act on later.

One more observation from this kind of review: beliefs held by several people are the most dangerous, because agreement feels like evidence. If four engineers all assume staging mirrors production, nobody thinks to test it. Mark shared beliefs explicitly and give them extra scrutiny.

Solution: a release assumptions log

A practical log for a delivery pipeline has columns for the belief, the confidence, the evidence or check, and the owner. Keep it short enough to read in five minutes at release time. A sample block for a security-conscious pipeline:

  • Dependencies scanned in the build are the same versions that run in production (probable; compare lock file hash with deployed image manifest).
  • Secrets are injected only at deploy time and never baked into images (unknown; check image layers on the latest build).
  • Staging and production use the same network policy (unknown; diff the two policy files).
  • The rollback path has been exercised in the last quarter (probable; confirm date from the change record).

For teams working on secure delivery, a good companion is a written roadmap for developers and security teams, which shows the sequence of practices; the log then records what each stage quietly presumes. A related article on the value of catching problems at the start of a delivery pipeline pairs with this: early checks are far more effective when you know which beliefs they are testing.

Verification: turning unknowns into facts

Run the checks in order of risk. A useful rule of thumb: first the lines that are unknown and could cause an outage, then the probable ones that touch security, then the rest. Record the outcome beside each line with a date. When a check disproves a belief, open a ticket and link it. When it confirms one, change the label to known and note the evidence.

Some teams automate a few of these checks, for instance a script that compares limits between environments and fails the pipeline on a mismatch. That works well for beliefs that can be expressed as comparisons. Beliefs about people and process, such as “the on-call engineer can approve an emergency rollback”, still need a human conversation.

Outside perspectives

Teams who want formal learning on operations practices may come across NoOpsSchool, an India-based site that describes a set of certification courses, consulting and services for IT staff. As always, treat a site’s self-description as a starting point and judge fit for yourself.

Measuring whether it helps

After a few releases, review the log as a dataset. Count how many beliefs were unknown at release time, how many were disproved, and how many incidents trace back to a belief that was never written. If the third number falls over time, the practice is working. If beliefs keep failing in the same category, such as environment differences, that category deserves a structural fix, like generating staging from the same definition as production.

Common objections, answered briefly

  • “It slows releases.” A five-minute review costs less than a rollback.
  • “We have tests.” Tests verify behaviour you thought of; the log captures conditions you did not test.
  • “Nobody will read it.” Make it part of the release checklist and the question becomes unavoidable.

Next release: three actions

  1. Pick the last failed or rolled-back release and write the five beliefs behind it.
  2. Add a section called Assumptions to the release template with confidence and check columns.
  3. At the next release, mark every unknown before approving the rollout, and record which ones were resolved.

The diagnosis is straightforward once you adopt it: failures come from distance between belief and reality. The log shrinks that distance on purpose, one line at a time, and gives the review meeting something firmer to discuss than hindsight.