name: review-gate description: Perform an independent pre-merge quality gate with a strict PASS or FAIL decision, prioritized findings, and required fixes. Use before merge, release, or any high-risk deployment.
Review Gate
Shared Runtime Contract
Apply the booster-wide contract from booster-runtime-contract.md.
Operating Modes
- Gate mode:
standardby default.paranoidfor release, risky deploy, schema or data changes, auth/security-sensitive work, or when the user asks for maximum conservatism.
- Execution posture:
- always
report-only.
- always
Purpose
This skill is the final gate decision layer.
It should consume the strongest available review artifacts first, especially outputs from techlead-code-reviewer, and convert them into a strict go/no-go decision for integration to main/master, release, or risky deployment.
Workflow
- Declare the gate mode (
standardorparanoid) and keepreport-onlyposture explicit. - Read the current-state evidence:
- changed files and affected runtime paths;
- commit range and commit messages when the project defines a commit-message policy;
- untracked files, expected review/spec artifacts, temporary debug scripts, and unrelated dirty files;
- relevant review artifacts, if they already exist;
- validation commands and observed results.
- If a
techlead-code-reviewerartifact exists, explicitly consume these fields from it:
Review ModeExecution PostureDecisionBlocking FindingsNon-Blocking FindingsCurrent-State AssessmentDocs/Config/Runtime Drift AssessmentRequired Validation CommandsResidual Risks
- If a
qa-reportartifact exists, explicitly consume these fields from it:
QA ModeExecution PostureScopeEnvironmentCurrent-State AssessmentBlocking IssuesNon-Blocking IssuesUntested or Blocked AreasSeverity AssessmentEvidenceRecommended Next Step
- If a
release-prepartifact exists, explicitly consume these fields from it:
Release ModeExecution PostureRelease ScopePreflight AssessmentValidation AssessmentBlocked or Untested Critical PathsDocs/Config/Runtime Drift AssessmentRollback AssessmentOperator Readiness AssessmentGo/No-GoRecommended Next Step
- If no upstream review artifact exists, perform a compact independent gate review focused on decision safety rather than broad commentary.
- Evaluate the gate in this order:
- correctness and behavioral regressions;
- data and migration safety;
- security and secret handling;
- public API contract sync and hardcoded URL drift;
- cross-project contract/memory sync for CB/LMS/SPW/TG_LMS changes;
- QA evidence and blocked acceptance paths;
- release readiness, rollback credibility, and operator readiness;
- docs/config/runtime drift;
- repository hygiene: commit-message policy, missing expected artifacts, temporary debug files, and unrelated working-tree drift;
- test adequacy and validation coverage;
- maintainability only where it changes release safety.
- In
paranoidmode, assume missing evidence is unsafe until proven otherwise. - Return a strict
PASSorFAILwith required fixes and the next safe step.
Output Contract
Gate ModeExecution PostureDecisionCurrent-State AssessmentConsumed Review ArtifactsConsumed QA ArtifactsConsumed Release ArtifactsBlocking IssuesNon-Blocking ImprovementsDocs/Config/Runtime Drift AssessmentPublic API Contract AssessmentCross-Project Sync AssessmentRepository Hygiene AssessmentRequired FixesRequired TestsRequired Validation CommandsResidual RisksNext Safe Step
Decision Rules
PASSonly if no blocking issue remains.FAILif production-critical behavior is uncertain.FAILif validation evidence is missing for a risky path.FAILif QA artifacts show unresolvedS1/S2behavior on a release-critical, user-critical, or operator-critical path.FAILif QA reports blocked or untested acceptance paths that are required for integration or release confidence.FAILif release artifacts showno-go, non-credible rollback, or unready operator path for the planned release.FAILif docs/config/runtime drift makes deployment, operator flow, or repository understanding unsafe.FAILif a required spec/review/release artifact is missing from the reviewed change, or if unrelated dirty drift would be included in the integration.FAILif a public API URL/method/schema/status changed without same-change spec/OpenAPI/docs backsync.FAILif cross-project CB/LMS/SPW/TG_LMS behavior changed without the relevant contract/state/changelog update or an explicit not-applicable reason.FAILif an external write path has only mock evidence and no gated live smoke or operator verification replacement.FAILif an upstream review already saysFAILand the blocking issues remain unresolved.- In
paranoidmode, unresolved ambiguity is itself a blocking issue. - Treat commit-message convention misses, temporary debug files, and unrelated dirty files as
S3non-blocking findings unless they affect reproducibility, release contents, or the reviewed integration boundary. - Check commit subjects against git-commit-rules.md.
Quality Rules
- Prefer current-state evidence over intended follow-up work.
- Consume existing review artifacts instead of rewriting a second full review when the first one is already strong.
- Every finding must include: impacted file/path, current-state risk, why it matters, and specific fix direction.
- Keep the gate decision compact and binary: it is a go/no-go layer, not a brainstorming layer.
- Check the project error register for repeated prevention actions before returning
PASS. - Surface repository hygiene findings explicitly even when they are non-blocking, so they can enter the weekly skill-improvement loop.