A Prompt Change Broke Production. How Do You Prevent It Next Time?
The interviewer asksAn engineer tweaked a prompt to fix one customer complaint. The next day, answers got worse for everyone else. How do you stop this happening again?
AI Product EngineerApplied AI PMCoreExecution roundRepresentative5–7 min
On this page
The 30-second version
- Roll back first.
- Treat prompts like code: versioned, reviewed, with history.
- Gate every prompt change on an eval set of real cases, including past failures.
- Roll out changes to a small share of traffic and watch metrics before going wide.
- Add the customer's complaint as a test case so the original fix is tested too.
What it's really testing
- Treating prompts as production code
- Eval gates
- Safe rollout
How to structure your answer
- Contain.
- Find the gap in the process.
- Add versioning, evals and staged rollout.
- Make it routine.
The interview, played out
- InterviewerAn engineer tweaked a prompt to fix one customer complaint. The next day, answers got worse for everyone else. How do you stop this happening again?
- CandidateFirst, roll back to the previous prompt. Then, how did we notice, and how long did it run?
- Revealed when askedSupport tickets spiked; it ran for a day.
- CandidateSo there was no check before shipping and nothing to catch it quickly after. I'd treat prompts like code: stored in version control, reviewed, with a record of which version produced each answer.
- Strong moveIdentifies two gaps: before shipping and after.
- CandidateBefore shipping: an eval set of a few hundred real conversations, plus past failures, run automatically on every prompt change; the change only ships if it doesn't regress.
- CandidateAfter shipping: release to a small share of traffic first and watch quality signals before going wide.
- InterviewerWon't that slow the team down?
- CandidateA little.
- Missed signalShould quantify: an automated eval run takes minutes, versus a day of bad answers.
- CandidateThe eval runs automatically in minutes; a bad day costs far more. And the customer's complaint becomes a test case, so we fix it without breaking others.
The strong answer, distilled
- Contain: roll back immediately.
- Gaps: no check before shipping, slow detection after.
- Before: prompts versioned and reviewed; an automatic eval gate on real conversations and past failures.
- After: staged rollout with quality signals watched.
- Original fix: the complaint becomes a test case.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Containment | None | Fix forward | Roll back first |
| Process | Be more careful | Testing | Versioning, review, eval gate |
| Rollout | All at once | Monitor | Staged rollout with signals |
Round scorecard: AI Product Engineer: execution round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Reading results | Takes the headline number. | Checks significance. | Checks noise, novelty and guardrails before believing the result. | Strong. Asked how the regression was noticed and how long it ran. |
| Trade-offs | Ships or kills by gut. | Weighs benefit and cost. | Quantifies the trade-off per user and per outcome. | Strong. Weighed process cost against risk. |
| Engineering options | Accepts the cost as fixed. | Suggests a cheaper model. | Several levers (routing, caching, prompts) tested against evals. | Strong. Versioning, eval gate, staged rollout. |
| Ownership | Hands the decision to others. | Recommends. | Recommends, sets a follow-up test and owns the outcome. | Strong. Owned the process change. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| AI Product Engineer | The eval gate and rollout tooling |
| Applied AI PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Balancing speed of fixes against quality for all users |
Common mistakes
- Fixing forward with another untested tweak
- Relying on people being careful
- No record of which prompt produced which answer
More follow-ups to practise
- "The eval set takes an hour to run." Hint: a fast subset on every change, the full set before release.
- "A customer needs a custom prompt." Hint: per-customer versions with their own tests.
Go deeper
- Module: Prompting and context engineering
- Framework: Opening Any Interview Answer
- Lesson: Improving prompts with evals
- Also tests: Eval plans and release gates
- Also tests: Shipping and iteration
Sources
Representative question: written to match execution rounds for AI product roles, not a specific reported interview.