🔒 Preview only

This page shows a high-level overview of the runbook. The full implementation (commands, scripts, and enforcement rules) is available upon request.

Request full runbook
Runbook 17 — Release gate agent
QA Test Lab • Runbook 17
← Back to Runbooks Sprint Plan

Runbook 17 — Release gate agent

Quick links

Objective

Rule

Coverage percentages do not ship software. Risk-based gates do.

Definition of done

Decision policy

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
Risk map contract
{
  "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"
}

Mechanics

Decision order
if (missingRequiredEvidence) return 'HOLD';
if (hasFailedSmokeBlockingCapability) return 'BLOCK';
if (hasRegressionFailures) return 'WARN';
return 'GO';

Output schema

{
  "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.