Evals & Observability·Question 36 of 83Intermediate

Your team ran a red-team exercise and found 30 ways to break the assistant. How do you turn that into something durable?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

A red-team exercise finds problems once. An eval suite is what keeps them fixed. The conversion is the whole value, and most teams skip it: they patch the prompt, close the tickets, and regress silently three releases later.

Full worked answer

A red-team exercise finds problems once. An eval suite is what keeps them fixed. The conversion is the whole value, and most teams skip it: they patch the prompt, close the tickets, and regress silently three releases later.

Each finding becomes a test case with the attack input, the policy criterion it violated, and a grader. Prefer a deterministic grader where the violation is checkable (did a card number appear in the output, did it call the refund tool) and fall back to a judge with a tightly scoped rubric where it is not.

The critical move is generalising past the literal string. If you add the exact jailbreak prompt and nothing else, you will fix that string. The next release passes your suite and fails to the same attack rephrased. So each finding expands into ~5-20 mutations: paraphrases, a different language, a different framing, the same attack embedded in a retrieved document rather than typed by the user. Maintain the taxonomy behind them: roleplay framing, encoding tricks, indirect injection via retrieved content or tool output, multi-turn escalation where turn 1 is innocuous. The taxonomy is what generalises; the individual prompts are instances.

These belong in the guardrail suite, not the quality suite. Binary, must-pass, any failure blocks the merge. You do not trade a jailbreak for a helpfulness gain.

Cadence: humans red-team on a schedule and per major change, because they find new categories. The automated suite runs every CI, because it defends the old ones. Track attack success rate over the suite as a trend.

One caution: keep a private holdout and do not publish the whole set. A public attack suite ends up in the next pretraining run, and then it measures memorisation.

What a good answer covers

  • A red-team exercise finds problems once
  • An eval suite is what keeps them fixed
  • The conversion is the whole value, and most teams skip it
  • Each finding becomes a test case with the attack input, the policy criterion it violated, and a grader
  • Prefer a deterministic grader where the violation is checkable (did a card number appear in the output,…

Interviewer follow-ups to expect

  1. How do you keep a red-team suite from going stale as models improve?

  2. Your attack success rate is 0% for six months. Good news or bad?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep