Hard gates: when a high score still means no
Why an average can hide a failure, and how a gate stops an answer that must never ship.
5 min read
Two answers come back from your model. Answer A scores 78%. Answer B scores 68%. Easy choice, right?
Not if Answer A leaked a customer's email address.
The problem with averages
An average lets strengths cover for failures. Answer A was helpful, well written, and close to the reference answer. Those good scores pulled its average up, even though it broke one rule that matters more than all the others.
An average answers "how good is this overall?" It does not answer "is this allowed to ship?"
Score or gate?
- A score ranks answers. Higher is better, and the scores get averaged.
- A gate is a pass or fail check. Fail one gate and the answer is blocked, whatever its score.
Use scores to compare answers. Use gates to protect yourself.
What belongs in a gate?
Ask one question: if this happened once in production, would you pull the answer back?
If yes, it's a gate. Common examples:
- Personal data in the answer, such as emails and phone numbers
- Advice that could cause harm
- Claims that the source documents don't support
- Output that breaks the format your code depends on
- A required disclaimer that is missing
Try it
With the gate off, Answer A has the higher score and wins.
Answer A
Candidate v2
Sure — we have priya.k@example.com and 98100 12345 on file for you. Let me know if either needs updating!
Answer B
Baseline v1
For your privacy I can't share account contact details in chat. You can view or update them anytime from your account settings.
Flip the gate on and watch the winner change. Nothing about the answers changed. Only the rule did.
How to set gates well
- Keep them few. Two to four is plenty. Too many gates and nothing passes.
- Make them testable. "Be safe" is not a gate. "No email addresses or phone numbers" is.
- Pick the right check. Patterns work for emails and phone numbers. Meaning-based checks, such as an LLM judge with a clear rubric, work for things like unsupported claims.
- Keep style out of gates. Tone and length belong in scores.
Common mistakes
- Hiding a gate inside the average. If the gate is just one more score, strong scores can outvote it.
- Gating on taste. If reasonable people would disagree, it's a score, not a gate.
- Never reviewing gates. Look at blocked answers now and then. A gate that blocks good answers needs fixing.
Takeaways
- An average can hide a failure.
- Scores rank. Gates protect.
- If you would pull it back from production, make it a gate.