skip to content

As lead of a tax-filing web app whose three teams each ship weekly, what release-health gate would you set to catch a bad release, who owns it, and what triggers rollback or a kill switch?

level: principalimportance: should knowfreq 47%

answer

  1. compare with the last release, not zero
  2. error-free sessions and new groups
  3. the submit step weighs most
  4. silence is not health
  5. open tabs outlive a rollback

basics

~20 s

Compare each release with the previous one: error-free sessions, new error groups and submit-path failures, tagged by release. A platform team runs the gate; each feature team owns its thresholds; a submit-path breach halts the rollout and flips the switch.

solid answer

~50 s

The gate reads per-release signals from the error pipeline: the share of sessions with no reported error, new error groups first seen in this release ranked by sessions affected, and failure rates on the steps that decide a filing. It compares them with the previous release over the same window, never with a fixed count, because traffic swings tenfold near the deadline. A breach on submit or payment halts the staged rollout automatically and pages the owning team; smaller regressions open a ticket. If the pipeline goes quiet, the gate halts rather than passing. A platform team owns the pipeline, the gate and its defaults; each feature team owns its flows' thresholds and its on-call. Rolling back helps new page loads only: open tabs keep the bad bundle, so risky features ship behind a server-read kill switch and the page offers a reload. In the final week, I'd allow fixes only, with tighter thresholds.

go deeper

for a junior

Recall that every error report should carry its release so a team can tell whether a new release made things worse.

for a middle

Explain the per-release signals, error-free session rate and new error groups, and why they are compared with the previous release rather than with zero.

for a senior

Design the gate's rules: minimum sample, fail-closed on silence, automatic halt on the submit path, and why a rollback does not reach open tabs.

for a principal

Own the organisation's trade-offs: who sets thresholds and who can halt, sensitivity against false alarms, a shared gate against team speed, and the deadline-week freeze.

## What the gate is for A **release-health gate** is the rule that decides, after a release starts reaching users, whether it keeps going, stops, or is reversed. Three teams ship weekly into one **tax-filing web app**; each release reaches the browser of anyone who loads the page, and a broken submit step costs people a filed return. The gate turns the error pipeline's data into that decision, quickly and the same way for every team. ## The signal: relative, per release Every report carries its release, so the pipeline can compute per release: - **Error-free session rate**: sessions that reported no error divided by all sessions. It measures user impact rather than raw volume, so one tab firing a loop does not dominate it. - **New error groups**: issues first seen in this release, ranked by sessions affected. - **Critical-step failure rate**: errors on the submit and payment steps per session reaching them, which are never sampled out. - **Pipeline health**: report volume per session and the share of muted `Script error.` reports; a release that breaks the reporter itself must not look clean. Each is compared with **the previous release over the same window and traffic mix**, not with a fixed number. Deadline week brings ten times the traffic: a fixed count would fire on almost every release that week and rarely in a quiet one. ## The gate itself | Condition | Action | Who acts | |---|---|---| | New group on submit or payment above a small share of sessions | halt the rollout, flip the feature's switch, page the owning team | automatic, then the team | | Error-free sessions down by more than an agreed margin, after a minimum number of sessions | halt the rollout, review within thirty minutes | the owning team's on-call | | Report volume collapses or the pipeline stops | halt; treat as unknown, not healthy | platform on-call | | Regression in a non-critical flow | ticket against the owning team, no halt | the team, next working day | The numbers are agreed per flow; the shape is what matters. Two details keep it honest: a **minimum sample** before any verdict, because the first minutes of a staged rollout carry too few sessions to compare; and a **fail-closed rule**, because silence from the pipeline during a rollout means "we cannot see", not "nothing broke". How the rollout is staged belongs to deployment strategy; this gate only supplies the signal and the stop. ## Rollback versus kill switch in a browser Redeploying the previous build fixes **new page loads only**. Tabs already open keep running the bundle they loaded until they reload, and tax returns are long-lived tabs. Two consequences: 1. **Risky features ship behind a server-read switch.** The page reads a small configuration at boot and again when the tab becomes visible, and turns the faulty path off without a reload. The switch must exist before the release; it cannot be added during the incident. 2. **The page can ask stale tabs to reload** when the server says their release is withdrawn, after saving the user's draft. How a long-open tab coexists with a newer deploy is the version-skew question's subject. ## Ownership across three teams - **The platform (web infrastructure) team** owns the pipeline, the gate's mechanics, its defaults, the fail-closed rule and the runbook. It does not own other teams' bugs. - **Each feature team** owns the thresholds for its flows, the error groups mapped to its code (by original file path, once reports are symbolicated) and the on-call during its rollouts. - **The release owner of the week** makes the final call when signals conflict, and can halt any team's release. Mapping error groups to teams by code path is what lets a shared gate stay fair: one team's regression halts its own release and pages its own on-call. ## Trade-offs a lead has to own - **Sensitivity against false alarms.** Tight thresholds stop bad releases early but halt good ones on noise; a gate that cries wolf gets bypassed. Start loose outside the critical steps and tighten with evidence. - **Automatic halts against human judgement.** Automate the stop on the submit path, where minutes matter; keep humans in the loop elsewhere. - **One shared gate against team speed.** A shared gate slows everyone a little; per-team gates on a shared bundle let one team's regression ship under another's green light. - **Deadline week.** Ten times the traffic gives faster verdicts but each bad minute costs more filings. I would allow only fixes in the final week, with tighter thresholds and the switches for every change checked before it ships.

  • Why compare against the previous release instead of a fixed error budget?
    Because the baseline moves. Traffic in deadline week is ten times normal, browsers and extensions change, and some errors are a steady background nobody will fix this week. A fixed count fires on every busy-week release and misses a regression in a quiet week. Comparing the same signals with the previous release over the same window asks the question that matters: did this release make things worse?
  • What should the gate do if the error pipeline stops receiving reports during a rollout?
    Halt and treat the release as unknown. A release can break the reporter itself: by throwing before the listeners install, by a reporter bug that stops the flush, or by a configuration that samples everything out. If silence passes the gate, the worst releases pass easiest. Platform on-call checks the pipeline before the rollout resumes.
  • Why isn't redeploying the previous build enough for users already mid-filing?
    Their tabs keep running the bundle they loaded, so the bug stays until they reload, and many will not reload a half-finished return. A server-read kill switch turns the faulty path off in those tabs without a reload, and a prompt asks stale tabs to reload after saving the draft. Both must exist before the release goes out.

  • Redeploying the previous build immediately fixes every user, including open tabs.
  • A fixed error-count threshold works the same in a normal week and deadline week.
  • Silence from the error pipeline during a rollout means the release is healthy.
  • A kill switch can be added during the incident once the bad release is found.