Use as a checklist.
Coverage percentages do not ship software. Risk-based gates do.
| Smoke failure | Critical capability failure in smoke suite → BLOCK |
| Regression failure | Non-critical regression issue with passing smoke → WARN |
| All gate criteria pass | → GO |
| Optional later state | HOLD for missing evidence or infrastructure ambiguity |
{
"testId": "auth-chromium::specs/smoke/login.spec.js::user can sign in",
"suite": "smoke",
"capability": "Authentication",
"impact": "Users cannot access protected features.",
"gateBehavior": "BLOCK",
"ownerHint": "Auth / platform"
} if (missingRequiredEvidence) return 'HOLD';
if (hasFailedSmokeBlockingCapability) return 'BLOCK';
if (hasRegressionFailures) return 'WARN';
return 'GO'; {
"failures": [
{
"capability": "Article Publishing",
"suite": "smoke",
"impact": "Core content creation path is impaired.",
"classification": "LOCATOR",
"ownerHint": "UI / test automation review"
}
],
"policy": {
"smokeFailuresBlock": true,
"regressionFailuresWarn": true
}
}
Commands
node scripts/release-gate-agent.js
cat test-results/release-gate/release-gate.json | jq .
GitLab shape
release_gate:
stage: report
script:
- node scripts/release-gate-agent.js
- cat test-results/release-gate/release-gate.json
artifacts:
when: always
paths:
- test-results/release-gate/
Expected outputs
- ✔ One explicit gate decision per run.
- ✔ Capability-level rationale attached to each warning or block.
- ✔ A reviewer can explain the decision without opening raw logs first.
- ✔ The policy remains stable across reviewers and runs.
Failure modes
- Pass percentage replaces risk logic: action: anchor the gate to capability and impact.
- Regression failures block everything: action: preserve smoke vs regression intent.
- Agent hides uncertainty: action: call out missing evidence or ambiguous classification.
- No ownership hint: action: include
ownerHint in the risk map.
Operational value
- Explicit release-night decision support.
- Clear separation between stop-signal and confidence-signal suites.
- Auditable release rationale tied to business risk.
- Stronger stakeholder communication than raw dashboard percentages.