Evaluation and QualityExperiments and causal evidencePrincipal
How should repeated monitoring change the stopping rule for an assistant A/B test?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A team launches a new assistant and checks a conventional 5% significance test every hour. On Tuesday a dashboard shows `p < 0.05`, so they announce a win. By Friday the estimate is near zero. Was Tuesday's math necessarily wrong?
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
The calculation may have been correct for a fixed sample at that instant, while the decision rule was not. If the team repeatedly looks and stops as soon as ordinary fixed-horizon p-values cross 0.05, its chance of claiming a win under no real effect is higher than the nominal level. Early estimates that happen to cross a threshold are also prone to look larger than the eventual effect. Spotify's engineering discussion of sequential testing explains why a valid repeated-look procedure needs an explicit stopping rule. This is not a reason to hide safety alarms until the test ends. Monitoring guardrails and claiming a positive treatment effect are different decisions.
A conventional p-value describes how incompatible the observed statistic is with a specified null model under that test’s assumptions. It is not the probability that the new assistant is worse, and crossing 0.05 is not proof of a useful effect. With repeated looks, the decision procedure gets multiple opportunities to stop on a favorable fluctuation. The statistical guarantee must cover that whole procedure, not only the arithmetic performed on Tuesday’s sample.
I would reconstruct the experiment plan: primary outcome, randomization unit, minimum duration and sample, planned looks, analysis method, guardrails and stopping conditions. Was Tuesday the predetermined final analysis or one of many dashboard refreshes? Did the team change metrics after seeing results? Did the same user stay in the same variant across turns? A multi-turn agent evaluated by request rather than user can create contamination, which What is the unit of an online experiment for a multi-turn agent? addresses separately. Here the focus is the repeated decision to declare a win from a conventional threshold.
Choose either a precommitted fixed-horizon analysis or a group-sequential or always-valid method designed for the actual monitoring schedule. If many metrics and segments are scanned for “the winner,” account for that search too. Report the effect size and uncertainty, not only a crossing of 0.05. Include costs, latency, unsafe outcomes, reversals and task completion as guardrails. For a low-base-rate harmful event, an ordinary week-long experiment may lack power to show safety, so complement it with targeted audits. A valid statistical test cannot compensate for a metric that measures the wrong user outcome.
The interviewer may say they needed to stop Tuesday because the new assistant was causing harm. Yes, predefined harm rules can stop an experiment for safety without calling Tuesday a positive win. If the system had a genuine preplanned sequential rule and crossed its adjusted boundary, Tuesday could be a valid decision. The question is which rule governed the decision before the data arrived. You tuned against the holdout for six months. Is it still a test set? covers tuning on an old offline holdout. This is online repeated peeking at a live randomized experiment.
Related questions
Keep practising evaluation and quality
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux