QA Release Gate
Synthesize release diff forensics, coverage adequacy, migration/rollback readiness, and open Defect posture into an evidence-backed Go, Conditional-Go, or No-Go Release Gate decision governed by a mandatory 2-step Draft-then-Confirm human gate and structured 7-field Waiver accountability.
Guardrails, Language & Boundaries
- Read-only on code, tests, and external trackers: Inspect repository files,
.qa/reports/,.qa/suites/,.qa/bugs/, and tracker records read-only; leave application source code, tests, schemas, and external tracker records untouched. Persist output solely to.qa/reports/<slug>-release-gate.mdwhen chaining.qa/reports/<slug>-*checkpoints or explicitly requested by the user. - No Raw Secrets Rule: Never read
.env, private keys, or credential dumps, and never echo literal tokens, passwords, or keys found in configs or logs; mask any discovered literal as<REDACTED>and cite onlyfile:lineand variable name. - Zero-config context load: Read
GLOSSARY.md,docs/qa/context.md,docs/qa/bug-tracker.md, anddocs/agents/issue-tracker.mdif present; fall back silently to.qa/defaults (.qa/reports/,.qa/suites/,.qa/bugs/) when absent. - Bilingual policy: Keep
SKILL.mdschema keys, report headings,Waiverfield names,GLOSSARY.mdterms,Severity(S1-Blocker–S4-Minor) &Priority(P0-Immediate–P3-Low) codes, coverage verdicts (Adequate,Needs Hardening,Inadequate),Unverifiedtags, andRelease Gateverdicts (Go,Conditional-Go,No-Go) in English. Adapt conversational output (Draft Gate Summary, confirmation questions, FinalRelease Gatenarrative) to the user's prompt language (English or Vietnamese), and honorArtifact languageindocs/qa/context.mdwhen persisting.qa/reports/<slug>-release-gate.md. - Gating-only boundary: Synthesize readiness evidence, enforce the gating rubric, and govern
Waiverconfirmation. Route root-cause debugging toqa-investigate-defect, tracker mutations or retests toqa-triage-defect, and deep forensics toqa-audit-difforqa-audit-coverage.
Step 1 — Intake Release Evidence & Apply Missing-Evidence Fail-Safe
- Resolve release target &
<slug>: Identify the release tag, branch/PR, or.qa/reports/<slug>-*bundle and derive a kebab-case<slug>(^[a-z0-9-]+$). - Collect the 4 evidence pillars (context-light first): When
.qa/reports/<slug>-<stage>.mdcheckpoints exist, read their YAML frontmatter and<= 25-line## Handoff Summaryfirst, zooming into full bodies only where needed:- Diff Forensics & Rollback Readiness (
.qa/reports/<slug>-diff-audit.mdor user-supplied diff): ExtractDiff Risk Posture, outwardBlast Radius,OpaqueBlind Spots, andMigration & Compatibility Defect/ schema rollback readiness. - Coverage Adequacy (
.qa/reports/<slug>-coverage-audit.mdor user-supplied audit): Extract overall coverage verdict (Adequate|Needs Hardening|Inadequate),P0/Auth & Permission Leak/ Data Integrity gaps,False-Confidence Testfindings, and failing or blocked critical test results. - Open
DefectPosture (.qa/reports/<slug>-defect-scan.mdor read-only metadata-only scan ofdocs/qa/bug-tracker.md/docs/agents/issue-tracker.md/.qa/bugs/): Query metadata-only fields (ID,title, labels/Severity/Priority, state, touched module/file,URL)—omit full descriptions and comment threads unless zooming into anS1-Blocker/P0-Immediatecandidate—to collect repo-wide openS1-Blocker/S2-Critical/P0-Immediate/P1-HighDefects, openDefects touching changed modules, and anywontfixresidual risks. - Operational Context: Check migration/rollback runbooks, feature flags/kill switches, release deadline, and runtime verification notes.
- Diff Forensics & Rollback Readiness (
- Missing-Evidence Fail-Safe (when upstream Pillar 2/5 reports are absent):
- Run a lightweight inline gap check whenever repository files, tests,
.qa/suites/, or tracker records are accessible (inspect changed critical paths, auth/data-integrity/migration changes, recent test execution output, and metadata-only.qa/bugs/or tracker records). - Explicitly tag every unchecked or inaccessible pillar or module
Unverifiedin the criteria matrix—never assume clean status without evidence. - Block a clean
Go: Missing critical diff or coverage evidence preventsGo(resulting inConditional-Goat best with explicitWaivers for non-criticalUnverifiedareas, orNo-GowhenP0,Auth & Permission Leak, Data Integrity, or migration rollback readiness remainsUnverified). - Recommend running
qa-audit-diffandqa-audit-coveragein separate fresh sessions to replaceUnverifiedgaps with full evidence.
- Run a lightweight inline gap check whenever repository files, tests,
Completion criterion: All 4 evidence pillars are inventoried, every absent or inaccessible area is tagged Unverified via the lightweight inline check, and clean Go is blocked whenever required evidence is missing.
Step 2 — Apply Gating Rubric & Structure Waiver Governance
Load references/gating-rubric-and-waivers.md before locking the verdict or drafting any Waiver. Evaluate verdicts strictly from top to bottom (No-Go -> Conditional-Go -> Go):
No-Go(Hard Blockers — evaluated first): Any condition below mandatesNo-Go:- Any open
S1-BlockerorP0-ImmediateDefect(cannot be directly waived; the human team must fix theDefectbefore release or explicitly downgradeSeveritywith documented technical justification, such as a proven disabled feature flag or boundedBlast Radiusevidence, recorded viaqa-triage-defect). Inadequatecoverage onP0,Auth & Permission Leak, or core Data Integrity flows (orUnverifiedcriticalP0/ Auth / Data Integrity paths).- Missing or unsafe database/schema migration rollback plan, or an unmitigated
Migration & Compatibility Defectunder rolling deployment. - Unexplained failing or blocked critical (
P0/P1) tests.
- Any open
Conditional-Go(100% Waiver-Governed): Permitted only when zeroS1-BlockerorP0-ImmediateDefects are open, allP0flows are verified, migration and rollback readiness pass, and 100% of acceptedS2-Critical/S3-MajorDefects,Needs Hardeningcoverage exceptions, or non-criticalUnverifiedareas carry a complete 7-fieldWaiver:Waiver ID(WVR-01,WVR-02, ...)Item / Defect RefRisk DescriptionMitigation / WorkaroundFollow-up Ticket & Target DeadlineApprover (Human Owner)(named person—never"TBD"or"team")Confirmed (Yes/No)
Go(Clean Release): Permitted only when zeroS1-BlockerorS2-CriticalopenDefects exist, zeroP0-ImmediateopenDefects exist, critical coverage isAdequate,Blast Radiusand migration/rollback readiness pass, all critical tests pass, and zero required evidence areas areUnverified.
Completion criterion: Proposed verdict strictly obeys the No-Go -> Conditional-Go -> Go precedence, zero S1-Blocker / P0-Immediate Defects are waived, and every non-blocker exception is drafted with all 7 Waiver fields.
Step 3 — Execute Mandatory 2-Step Draft-then-Confirm Human Gate
Follow references/report-template.md for exact Draft and Final report formats:
- Gate Step A — Present Draft Gate Summary & Pause: Output the Draft Gate Summary in chat showing:
- Proposed verdict (
Go|Conditional-Go|No-Go) and evidence rationale. - Criteria matrix (
Pass|Fail|Waived|Unverified). - Open
Defects (S1–S4,P0–P3) and anyS1/P0hard blockers requiring a fix or justifiedSeveritydowngrade. - Coverage,
Blast Radius, and migration/rollback gaps. - Pending 7-field
Waivertable (Confirmed (Yes/No)set toNo (Pending), highlighting any missing owner, ticket, or deadline). - Missing context /
Unverifieditems and specific confirmation questions for the human decision-maker.
- Proposed verdict (
- Wait for explicit human confirmation: Pause before emitting any final verdict. Collect explicit human approval or edits for every
Waiver(Confirmed: Yes, namedApprover (Human Owner),Follow-up Ticket & Target Deadline), any missing operational context, or any justifiedSeveritydowngrade. If anyS1/P0blocker remains unresolved or any requiredWaiveris rejected or incomplete, the final verdict remainsNo-Go. - Gate Step B — Emit Final
Release GateReport: After receiving explicit human response, recompute the verdict strictly from verified evidence and confirmed 7-fieldWaivers (Confirmed: Yesacross 100% of accepted exceptions) and emit the FinalRelease GateReport in chat.
Completion criterion: Draft Gate Summary was presented first, explicit human confirmation resolved every Waiver and missing-context item, and Final Release Gate Report reflects only confirmed decisions.
Step 4 — Persist Checkpoint Report (Conditional)
Persist .qa/reports/<slug>-release-gate.md only when chaining .qa/reports/<slug>-* checkpoints or explicitly requested by the user:
- Open with the standardized checkpoint YAML frontmatter (
skill: qa-release-gate,stage: release-gate,status,target,slug,date,artifact_language,confidence,upstream_refs,skipped_stages) and a<= 25-line## Handoff Summaryfrom references/report-template.md, followed by the FinalRelease GateReport. - Redact any secrets (
<REDACTED>) and leave source code, tests, and external trackers untouched.
Completion criterion: .qa/reports/<slug>-release-gate.md (when written) contains valid checkpoint YAML frontmatter, a <= 25-line ## Handoff Summary, and the confirmed Final Release Gate Report with zero unredacted secrets.