Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

fix(ops-release): drop Copilot review requirement from release gate (#1047)

Aurora Capitalbc60c46a9bab
diff --git a/claude-ops/bin/ops-release b/claude-ops/bin/ops-release
index 9b1c3e77..8deca5eb 100755
--- a/claude-ops/bin/ops-release
+++ b/claude-ops/bin/ops-release
@@ -211,7 +211,7 @@ RELEASE_REQUIRED_CHECKS='["lint-and-check (ubuntu-latest)","pii-gate","test-suit
# Read-only pre-merge proof for the exact checked head. Queries are bounded;
# missing, partial, paginated-error or stale evidence refuses the merge.
release_review_gate() {
- local pr_ref="$1" expected_head="$2" number owner name detail reviews threads checks query
+ local pr_ref="$1" expected_head="$2" number owner name detail threads checks query
number="${pr_ref##*/}"; owner="${GH_REPO%%/*}"; name="${GH_REPO#*/}"
[[ "$number" =~ ^[0-9]+$ ]] || return 1
detail="$(run_bounded 25 gh api "repos/$GH_REPO/pulls/$number")" || return 1
@@ -220,16 +220,9 @@ release_review_gate() {
and .head.sha == $head and .mergeable == true and .mergeable_state == "clean"
' <<<"$detail" >/dev/null || return 1
- reviews="$(run_bounded 25 gh api --paginate --slurp "repos/$GH_REPO/pulls/$number/reviews?per_page=100")" || return 1
- jq -e --arg head "$expected_head" '
- type == "array" and length > 0 and all(.[]; type == "array")
- and any(.[][]; .commit_id == $head and .user.type == "Bot"
- and ((.user.login | ascii_downcase) == "copilot-pull-request-reviewer[bot]"
- or (.user.login | ascii_downcase) == "copilot-pull-request-reviewer"
- or (.user.login | ascii_downcase) == "copilot")
- and (.state == "COMMENTED" or .state == "APPROVED"))
- ' <<<"$reviews" >/dev/null || return 1
-
+ # No review sign-off is required: per the org-wide decision of 2026-10-14
+ # the merge gate is green CI on the final head + all review threads
+ # resolved. A Copilot review is optional and never blocks a release.
query='query($owner:String!,$name:String!,$number:Int!,$endCursor:String) {
repository(owner:$owner,name:$name) {
pullRequest(number:$number) {
@@ -260,7 +253,7 @@ release_review_gate() {
and all(.[]; .bucket == "pass")
' <<<"$checks" >/dev/null || return 1
# Last read immediately precedes --match-head-commit; a concurrent head or
- # conflict change cannot borrow reviews/checks from the earlier head.
+ # conflict change cannot borrow thread/check proof from the earlier head.
detail="$(run_bounded 25 gh api "repos/$GH_REPO/pulls/$number")" || return 1
jq -e --arg head "$expected_head" '
.state == "open" and .draft == false and .head.sha == $head
@@ -575,7 +568,7 @@ if [ "$do_merge" -eq 1 ]; then
fi
stable_head="$(cat "$stable_head_file")"
rm -f "$stable_head_file"
- release_review_gate "$PR_URL" "$stable_head" || { echo "ops-release: same-head CI/review/Copilot/conflict proof missing; PR left open" >&2; exit 1; }
+ release_review_gate "$PR_URL" "$stable_head" || { echo "ops-release: same-head CI/threads/conflict proof missing; PR left open" >&2; exit 1; }
gh pr merge "$PR_URL" --repo "$GH_REPO" --squash --delete-branch --match-head-commit "$stable_head"
echo "ops-release: merged v$NEW to main"
tag_status=0
diff --git a/claude-ops/tests/test-ops-release-contract.py b/claude-ops/tests/test-ops-release-contract.py
index 7ef75152..8a735c84 100644
--- a/claude-ops/tests/test-ops-release-contract.py
+++ b/claude-ops/tests/test-ops-release-contract.py
@@ -52,8 +52,8 @@ class ReleaseTests(unittest.TestCase):
result = subprocess.run(['bash', '-c', code], capture_output=True, text=True)
self.assertNotEqual(result.returncode, 0, 'failed status read was accepted as empty statuses')
- def test_merge_gate_requires_review_proof(self):
- self.assertTrue('release_review_gate() {' in RELEASE.read_text(), 'same-head review/thread/Copilot gate is absent')
+ def test_merge_gate_requires_ci_and_thread_proof(self):
+ self.assertTrue('release_review_gate() {' in RELEASE.read_text(), 'same-head CI/thread gate is absent')
def test_same_head_review_gate_negative_fixtures(self):
import copy
@@ -68,13 +68,14 @@ class ReleaseTests(unittest.TestCase):
threads = [page(True, True), page(True, False)]
required = json.loads(required_line.split('=', 1)[1].strip("'"))
checks = [{'name': name, 'bucket': 'pass'} for name in required]
- for case in ('valid', 'copilot_missing', 'copilot_stale', 'copilot_spoofed', 'unresolved_second_page', 'partial_pagination', 'graphql_error', 'graphql_head_changed', 'final_head_changed', 'conflict', 'unknown_mergeable', 'skipped_ci', 'missing_ci', 'reviews_read_error', 'threads_read_error', 'checks_read_error', 'final_read_error'):
+ for case in ('valid', 'no_copilot_review', 'unresolved_second_page', 'partial_pagination', 'graphql_error', 'graphql_head_changed', 'final_head_changed', 'conflict', 'unknown_mergeable', 'skipped_ci', 'missing_ci', 'threads_read_error', 'checks_read_error', 'final_read_error'):
with self.subTest(case=case), tempfile.TemporaryDirectory() as d:
root = Path(d)
current, final, r, t, c = (copy.deepcopy(value) for value in (detail, detail, reviews, threads, checks))
- if case == 'copilot_missing': r = [[]]
- elif case == 'copilot_stale': r[0][0]['commit_id'] = 'b' * 40
- elif case == 'copilot_spoofed': r[0][0]['user']['type'] = 'User'
+ # Copilot review is optional since the 2026-10-14 decision:
+ # a PR with no Copilot review on the head must still pass when
+ # CI is green and every review thread is resolved.
+ if case == 'no_copilot_review': r = [[]]
elif case == 'unresolved_second_page': t[1]['data']['repository']['pullRequest']['reviewThreads']['nodes'][0]['isResolved'] = False
elif case == 'partial_pagination': t[-1]['data']['repository']['pullRequest']['reviewThreads']['pageInfo']['hasNextPage'] = True
elif case == 'graphql_error': t[1]['errors'] = [{'message': 'read failed'}]
@@ -99,7 +100,7 @@ class ReleaseTests(unittest.TestCase):
'''
code = 'set -euo pipefail; GH_REPO=fixture/repo; ' + required_line + '\n' + mocks + function + '\nrelease_review_gate https://example.com/pull/7 ' + head
result = subprocess.run(['bash', '-c', code], env=dict(os.environ, FIX=str(root), CASE=case), capture_output=True, text=True)
- if case == 'valid': self.assertEqual(result.returncode, 0, result.stderr)
+ if case in ('valid', 'no_copilot_review'): self.assertEqual(result.returncode, 0, result.stderr)
else: self.assertNotEqual(result.returncode, 0, case)
def test_inventory_failure_and_open_prs_stop_before_bump(self):