Mid staged release, a smart-home security app's update makes door-lock pairing fail for some users; how do you decide to halt and ship the fix?
answer
- decide the halt rule before release
- compare the new version with the old
- halting is cheap, waiting is not
- smallest fix from the release branch
- native code cannot ride over the air
basics
~20 sHalt on a rule agreed before release: pairing failures by app version on the server, the crash signal, support contacts. Ship the smallest fix as a new version from the release branch, staged again; native code cannot go over the air.
solid answer
~50 sBefore release the team agrees the halt rule, because during an incident nobody wants to argue thresholds. The signals are the per-version crash and hang data, the server's own view (lock pairing attempts and failures by app version, compared with the previous version over the same hours) and support contacts. Halting is cheap and, on one store, a resumed rollout reaches the same users, so halt on a credible signal and investigate afterwards. Meanwhile, help households already on the version with a server-side workaround or a switch that build already checks, plus an in-app notice. The fix ships as a new version built from the release branch, holding only the change, through review and a staged release again. Over the air, only interpreted code can change within store rules; a native pairing bug needs a store release.
go deeper
Remember that halting stops the spread and that the only fix for installed copies is a newer version through the store.
Explain the halt signals (server metrics by version, the crash signal, support), why halting early is cheap, and why the fix is built from the release branch and staged again.
Show the production judgment: a halt rule agreed before release, a same-window comparison with the previous version, relief through what the bad build already contains, and the store ceiling on over-the-air fixes.
Weigh the release train itself: cadence against review delay, which changes must ship behind switches, and how long old code paths stay in the binary so a remote switch can restore them.
## The situation A smart-home security app is at 10 % of a staged release. Version 6.2 changed how a new door lock is paired, and pairing now fails for some households. The questions an interviewer is probing are: **what tells you to stop**, **what you do for homes already on 6.2**, and **how the fix gets out**, given that an installed version cannot be rolled back. ## Deciding to halt The halt rule is written down **before** the release, so the decision during the incident is a check, not a debate. It combines three sources: - **The crash and hang signal per version.** It belongs to the reporting design (the question on crash and hang reporting owns how it is measured); here it is one input. - **What the server sees.** If every request carries the app version, as it should, the pairing service can chart pairing attempts, failures and abandonments **by app version**. A lock that fails to pair does not crash the app, so this is often the first and clearest signal. - **Support contacts and store reviews** that mention pairing, which catch failures neither metric was designed for. Compare 6.2 with **6.1 over the same hours**, not with a historical average: the early recipients are the phones that took the update first, often those updating automatically, so they skew towards newer phones and engaged users, and time of day changes how often people pair locks. The thresholds are the team's own (for example, as this scenario's assumption, "pairing success on 6.2 more than 3 points below 6.1 after at least 500 attempts"). Bias towards halting early: | Choice | Cost if the signal is real | Cost if it is noise | |---|---|---| | Halt now | Few homes affected | A delay; on one store resuming reaches the same users | | Keep going | More homes on a version only a roll-forward can repair | None | ## Helping the homes already on 6.2 The installed version keeps running, so relief comes from what the server controls or what 6.2 already contains: 1. **A server-side workaround**, such as accepting the previous pairing exchange from 6.2 clients, if the server can do so safely. 2. **A switch that 6.2 already checks** around the new pairing flow, turned off remotely. A switch added in 6.3 does nothing for 6.2. 3. **An in-app notice** (and a support article) saying existing locks still work and pairing a new lock should wait for the update. ## Rolling forward The fix is **6.3**, and its path shapes how the team works: - **Build from the release branch**, not from main, so 6.3 contains 6.2 plus the fix and none of the untested work merged since. - **Keep the change minimal**, or revert the pairing change outright; the goal is the smallest diff that review and testing can trust. - **Submit for review and stage it again**, perhaps with faster steps, because the fix itself is new code. - **Expect delay.** Review time is outside the team's control, and after approval the fix still has to reach phones that take updates slowly. Because every fix pays that delay, teams run a **release train**: a regular cadence (say every two weeks, as an assumption) with a code freeze, a release branch, and a hotfix path for exactly this case. Risky changes ship behind switches, and the old pairing path stays in the binary for at least one release so it can be switched back on. ## What over the air can and cannot fix Some apps run part of their code in an interpreter, such as a cross-platform framework's script bundle or web content, and can download a new version of that code. Store rules set the ceiling. One store forbids an app to download, install or execute code that introduces or changes its features; the other forbids an app to update itself outside the store or to download executable code, with an exception for code run in a virtual machine or interpreter. So: - an over-the-air update can at most patch **interpreted code**, within each store's rules; - a bug in **native code**, which lock pairing over the phone's radio usually is, needs a **store release**; - an over-the-air update is still a rollout of its own and needs its own staging and revert plan. ## What a good answer covers A pre-agreed halt rule with a server-side metric by version, an early halt, relief for installed copies through what already exists, a minimal fix from the release branch, and an honest statement that review and adoption delay the fix.
- Why compare the new version with the previous one over the same hours rather than with last month's average?The first recipients of a staged release are not a random slice of the whole fleet: they are mostly phones that update automatically, often newer ones, and the time of day changes how often anyone pairs a lock. Comparing 6.2 with 6.1 over the same window removes those effects, so a gap points at the release rather than at who or when.
- The pairing logic is in the app's interpreted script bundle; does that remove the need for a store release?It may, if the fix stays within the store rules on downloaded code and changes no native code. The over-the-air update then needs its own staged rollout and revert plan. If the fix touches the native radio layer, or changes the app's features in a way the rules forbid, it still needs a store release and review.
- Why should the fix be built from the release branch instead of from main?Main has collected unreleased, untested work since 6.2 was cut. Building from it would ship that work inside an urgent fix, through a review the team is rushing, to households who already suffered one bad release. The release branch gives 6.2 plus one change, which is the smallest thing that can be tested and trusted quickly.
- If the crash rate stays flat, the release is healthy enough to keep rolling.
- A kill switch added in the fix release will turn the feature off in the broken build.
- We can push the native pairing fix over the air and skip review.
- Build the hotfix from main so it also ships the next features.
- Compare the new version's failure rate with the whole fleet's historical average.