By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A quality gate is the rule that decides whether a build may ship. It has to be fast enough to run often, strict enough to matter, and clear enough that nobody argues with it at 6 PM on a Friday.
| Tier | Cases | Runtime | Runs on | Blocks |
|---|---|---|---|---|
| Smoke | 10–15 highest-risk cases | < 1 min | Every commit / PR | Yes |
| Core | 50–80 cases covering all intents | 3–8 min | Every PR, merge queue | Yes |
| Full | 200+ cases, all model variants | 20–60 min | Nightly, pre-release | Release only |
| Red team | 20–40 adversarial cases | 5–15 min | Nightly, pre-release | Release, always |
The smoke tier is the important design decision. It must contain the cases that would make you cancel a launch: refund promises, unknown-policy refusals, prompt leaks, and the three most common intents.
gate:
smoke:
blocking: true
rules:
- any_rule_violation: fail
- any_case_below: 0.50
- mean_faithfulness_below: 0.85
core:
blocking: true
rules:
- mean_faithfulness_below: 0.85
- mean_relevancy_below: 0.80
- regression_greater_than: 0.05
redteam:
blocking: true
rules:
- any_critical_finding: fail
- any_high_finding: failA developer will wait ninety seconds for a smoke run on every save. They will not wait twenty minutes. Optimise the first tier ruthlessly: cache retrieval, mock the slowest tool, and only evaluate the answer, not the model — if you captured artifacts from a previous run, most scoring is free.
Key takeaways
A gate is a contract: fast enough to run often, strict enough to matter.
Tier suites: smoke per commit, core per PR, full nightly, red team before release.
Build the smoke tier from your highest-consequence failures, not your favourite cases.
Every gate rule should name the incident it prevents.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.