Forward Deployed EngineeringAI EngineeringProduction Diagnostics
A customer says 'the model got worse, and we changed nothing.' What are your hypotheses, and how do you test each?
Question 57 of 73 · Updated
On this page
Interview-ready answer#
I would take the customer's observation seriously without assuming that the model weights changed. "We changed nothing" usually means no intentional application deployment; it does not rule out changes in the effective model, configuration, knowledge base, dependencies, traffic or measurement.
I would establish when the regression began, quantify its impact, preserve representative failures and compare them with known-good executions. Then I would separate three questions:
- Did comparable tasks actually become harder for the system?
- Did the distribution of tasks change?
- Did the measurement of quality change?
For a reproducible failure, I would replay the same authorized input with controlled evidence and tool responses, compare the effective request configuration, and substitute one component at a time. If only the model changes and the failure follows that change across representative cases, the model or serving configuration becomes a strong suspect. If the model succeeds with correct evidence but fails with current retrieval, investigate the retrieval pipeline instead.
I would mitigate customer impact in parallel, preserve diagnostic evidence and report confirmed causes separately from hypotheses. I would not respond by immediately rewriting the prompt.
1. Establish the incident#
Ask for the affected intents, concrete failed conversations, first observed time, last known-good period and customer impact. Check whether the issue concerns factual correctness, omissions, tool actions, refusals, truncation, latency or an evaluation dashboard.
Record the actual executed configuration, not just the intended Git revision:
- Model identifier and revision or provider fingerprint where exposed; effective request parameters, prompt/template version and feature flags.
- Rendered input length, retrieved source IDs and revisions, relevant tool results, response completion reason, retries and fallback route.
- Outcome labels, evaluator version, sample selection rules, timestamps and traffic segments.
Use approved, minimized traces or synthetic reproductions when raw customer data cannot be retained. Separate mitigation from diagnosis: for example, temporarily restrict a failing write capability while investigating. Preserve known-good artifacts before changing configurations or rebuilding indexes.
2. Hypotheses and discriminating tests#
| Hypothesis | What I would test | Evidence that supports it |
|---|---|---|
| Provider-side change | Compare model revisions, routing and provider notices; replay frozen inputs against a pinned known-good version and current version if both remain available | A systematic difference with the same effective inputs, settings and tools |
| Application or configuration drift | Compare rendered requests, environment flags, templates, SDK versions, defaults, timeouts, token limits and effective fallback routing | Restoring a specific changed setting reproduces or removes the regression |
| Retrieval degradation | Compare index freshness, ingest coverage, chunk IDs, embedding compatibility, filtering and labeled retrieval recall; supply oracle evidence | Required passages disappeared, and supplying correct evidence restores grounded performance |
| Source or policy drift | Compare authoritative document revisions, applicability dates and access rules | The old answer is now incorrect under updated business facts, or an obsolete source is being retrieved |
| Dependency failure | Replay recorded or synthetic tool fixtures; inspect errors, throttling, retry and partial-result rates | Quality recovers with healthy dependencies; traces connect failures to degraded service |
| Data or traffic drift | Compare intent mix, languages, input lengths, difficulty, customer populations and novel tasks; evaluate stable segments | Aggregate quality falls because the traffic mix changes, or new cases fail disproportionately |
| Evaluation drift | Re-score the same stored outputs with the old and current evaluator, rubric and sample rules; independently human-review disagreements | Verdicts change even though the evaluated outputs are unchanged |
| Random variation or biased reports | Inspect denominators, sampling, confidence intervals and repeated matched trials | The apparent difference is not reliably distinguished from ordinary variation, or complaints represent a narrow slice |
A provider status page is useful corroboration, not proof that a quality incident came from the provider. A model alias can resolve differently over time; conversely, an unchanged identifier does not prove identical serving behavior. If the old model is unavailable, a historical response is evidence of earlier behavior but does not provide a fresh controlled comparison.
3. Isolate the failing component#
For a RAG incident, use a small factorial replay rather than changing all components together:
| Replay | Model | Retrieved context |
|---|---|---|
| A | Known-good | Known-good snapshot |
| B | Current | Known-good snapshot |
| C | Known-good | Current snapshot |
| D | Current | Current snapshot |
Keep the question, application logic, evaluator and compatible settings controlled. Compare B−A and D−C for model-related effects, C−A and D−B for context-related effects, and examine interaction when one model handles the new evidence differently. Use authoritative labels valid for the test's policy date; do not judge legitimately updated facts against obsolete answers.
When actual old snapshots are unavailable, mark the missing cells rather than inventing counterfactual results. Use oracle evidence or targeted fixture substitution to narrow the hypotheses that remain testable. For stochastic outputs, repeat matched cases and compare outcomes rather than requiring identical generated text.
A component substitution that improves one example is not sufficient evidence of root cause. Look for the same mechanism across independently sampled failures, a plausible trace-level explanation, and recovery when the specific defect is corrected. Components can interact, so one-at-a-time debugging is not always enough.
4. Distinguish traffic mix from quality deterioration#
Suppose the support bot serves simple and complex requests:
| Segment | Previous period | Current period |
|---|---|---|
| Simple | 760/800 correct (95%) | 380/400 correct (95%) |
| Complex | 140/200 correct (70%) | 420/600 correct (70%) |
| Overall | 900/1,000 (90%) | 800/1,000 (80%) |
Overall success falls by ten percentage points even though neither segment's observed success rate changes. The harder segment now represents 60% of traffic rather than 20%. This is a composition effect, not evidence of a within-segment model regression.
When both mix and rates change, let w0 and w1 be the previous and current traffic shares for each stable segment, and r0 and r1 its success rates. A symmetric decomposition of the aggregate change is:
- Mix effect = sum of (w1 − w0) × (r0 + r1)/2.
- Within-segment effect = sum of (r1 − r0) × (w0 + w1)/2.
Their sum is exactly the observed overall change. This averages the two possible orders of changing traffic weights and segment rates, rather than assigning their interaction entirely to one component.
PYTHONfrom fractions import Fraction as F def decompose(old, new): # Maps: stable segment -> (successful tasks, total tasks). if not old or old.keys() != new.keys(): raise ValueError('matched nonempty segments required') for period in (old, new): for s, n in period.values(): if type(s) is not int or type(n) is not int or not 0 <= s <= n or n == 0: raise ValueError('invalid segment counts') n0 = sum(n for s, n in old.values()) n1 = sum(n for s, n in new.values()) mix = within = F(0) for k in old: s0, t0 = old[k] s1, t1 = new[k] w0, w1 = F(t0,n0), F(t1,n1) r0, r1 = F(s0,t0), F(s1,t1) mix += (w1-w0)*(r0+r1)/2 within += (r1-r0)*(w0+w1)/2 return mix, within
The example returns (−0.10, 0). Executed verification: Python 3.13.5 passed 38,423 checks: 38,416 exhaustive two-segment, two-period scenarios with segment totals from one to four, checked against aggregate differences, independent standardization paths and reversal symmetry; one worked example and six invalid-input cases. Exact rational arithmetic avoids rounding errors in the identity.
This is a descriptive attribution, not a causal estimate of model degradation. Segments must be consistently defined, mutually exclusive and collectively exhaustive for the target population, with observed rates in both periods. New or disappearing segments require explicit treatment; do not silently impute a rate. For inference, account for sampling weights, uncertainty and dependent conversations. Residual difficulty changes inside a segment can still affect its success rate.
5. Worked incident investigation#
Imagine a customer reports that a policy assistant no longer mentions a crucial return exception. No application deployment occurred.
I retrieve approved historical failure and success traces, and find that the current response lacks the exception because the relevant passage is absent from its context. In a controlled sandbox, I supply the current authoritative exception directly to the same model; it answers correctly. That narrows the issue but does not yet prove an ingestion bug.
Next I run labeled retrieval probes and compare document versions, access filters and index contents. Suppose the index reports successful ingestion but a new PDF parser omitted a page containing the exception. I reproduce the omission using the same source and parser version, correct the parser, re-index the affected authorized documents, and verify both retrieval recall and supported answers on held-out cases. I also check unaffected policy categories and latency to detect collateral regressions.
This hypothetical incident illustrates why an unchanged model and prompt can produce worse answers: the effective evidence changed. The corrective action belongs in ingestion and indexing, not prompt engineering.
6. Close the incident with evidence#
For the customer, report the affected scope, estimated impact with denominators, confirmed mechanism, remaining uncertainty, mitigation and verification of recovery. Avoid assigning blame to a provider before isolating the dependency.
Prevent recurrence by recording effective model and application versions, tracking index freshness and source coverage, monitoring tool health and quality by stable intent, and maintaining a frozen sentinel suite alongside representative current-traffic evaluation. Retain a human-calibrated grading baseline (FDE-0051) and a validated migration contingency (FDE-0048). Alert on changes in outcomes and component-level signals, so the next investigation starts with evidence rather than a complaint alone.
References
- 1.
- 2.
- 3.
- 4.
- 5.OpenAI — Evaluation best practices (not live-verified)platform.openai.com
Related questions
- Your provider is deprecating the model you built on. How do you detect and measure regression before migrating?
- Your agent reads customer emails and can issue refunds. Defend it against prompt injection.
- Design an eval suite that catches silent quality regressions when you upgrade the underlying model.
Explore other topics:AI AgentsAI System DesignLarge Language Models