Review Gate
review_gateGate a code change for merge and return a PASS, WARN, or FAIL verdict for local refs or GitHub PRs, checking policy, secrets, and review rules.
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 | PR selector (number, URL, or branch). Set, runs the GitHub gate on that PR; omitted or blank, runs the local gate. | |
| base | No | Base ref for the local gate. Defaults to origin/main, then HEAD. Ignored in PR mode. | |
| head | No | Gate exactly base..head: changed-path, risk, secret, and convergence evidence come from the head commit's tree, so uncommitted and untracked files play no part. Release, validation-command, and optional analyzer checks still inspect the working tree. Cannot be combined with staged. Ignored in GitHub PR mode. | |
| path | No | Repository path. Defaults to current working directory. | |
| policy | No | Policy profile: standard, company, or high-risk. Omitted, the repository's .solumberc.json or user config decides, else standard. | |
| 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. A receipt bound to a head commit or the staged index verifies only in the same mode (head / staged); a JSON receipt names the mode it needs when they differ. | |
| request | No | Optional change request for context evidence output. | |
| governance | No | Governance: team or solo. Omitted, the repository's .solumberc.json or user config decides, else team. | |
| minConvergence | No | Optional minimum convergence score (0–100). Enables a failing gate when the task/diff score is below this floor. |