Review Gate
review_gateGate changes for merge by evaluating local diffs or GitHub pull requests against risk, security, and policy checks, returning a PASS/WARN/FAIL verdict.
Instructions
Gate a change for merge and return a PASS / WARN / FAIL verdict. Omit pr to run the local, no-GitHub gate against a base ref (changed files, secret safety, risk-sensitive paths, release discipline, validation commands, dependency audit, policy profile). Set pr to gate an open GitHub PR via gh (PR state, review decision, CODEOWNERS approvals, unresolved conversations, branch protection, status checks). Merges the old merge_readiness and pr_merge_readiness tools. Use review_verdict instead when you want the full impact + review + gate composite, or review_context when you want diff/comment context with no verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | Optional PR selector (number, URL, or branch). When set, runs the GitHub gate; when absent, runs the local gate. | |
| base | No | Base ref for the local gate. Defaults to origin/main, then HEAD. Ignored in PR mode. | |
| path | No | Repository path. Defaults to current working directory. | |
| policy | No | Policy profile: standard (default), company, or high-risk. | |
| staged | No | Use the exact Git index for changed-path, risk, secret, and convergence evidence. Release, validation-command, and optional analyzer checks still inspect the working tree. May create Git object or index-cache metadata; source files are unchanged. Ignored in GitHub PR mode. | |
| receipt | No | Optional convergence inputs hash, JSON object, or path to a JSON receipt artifact. Exact-subject v2 receipts require the full hash; legacy v1 display IDs remain accepted. | |
| request | No | Optional change request for context evidence output. | |
| governance | No | Governance: team (default) or solo. | |
| minConvergence | No | Optional minimum convergence score (0–100). Enables a failing gate when the task/diff score is below this floor. |