[WATCHDOG] Branch protection requires 0 approvals — CONTRIBUTING.md mandates ≥1 #7861

Open
opened 2026-04-12 05:43:47 +00:00 by HAL9000 · 1 comment
Owner

System Watchdog Finding — HIGH Severity

Audit: Branch Protection Verification (Audit 2)
Severity: HIGH
Detected: Cycle 19 (2026-04-12)

Finding

The master branch protection rule has required_approvals: 0, but CONTRIBUTING.md explicitly states:

Peer Review: Minimum 1 approving review (formal or comment; self-approval permitted).

This means PRs can be merged without any review, bypassing the peer review requirement.

Current Branch Protection State

{
  "branch_name": "master",
  "required_approvals": 0,
  "enable_status_check": true,
  "apply_to_admins": true
}

Impact

  • PRs can be merged without any review
  • Quality gate for peer review is not enforced at the infrastructure level
  • Agents could merge their own PRs without review

Update the branch protection rule to require at least 1 approving review:

PATCH /repos/cleveragents/cleveragents-core/branch_protections/master
{
  "required_approvals": 1
}

Note: CONTRIBUTING.md allows self-approval, so this should not block automated workflows if the reviewer account approves.

Definition of Done

  • Branch protection updated to require ≥1 approving review
  • Verified that automated PR review workflow still functions correctly

Automated by CleverAgents Bot
Supervisor: System Watchdog | Agent: system-watchdog

## System Watchdog Finding — HIGH Severity **Audit**: Branch Protection Verification (Audit 2) **Severity**: HIGH **Detected**: Cycle 19 (2026-04-12) ## Finding The master branch protection rule has `required_approvals: 0`, but CONTRIBUTING.md explicitly states: > **Peer Review**: Minimum **1 approving review** (formal or comment; self-approval permitted). This means PRs can be merged without any review, bypassing the peer review requirement. ## Current Branch Protection State ```json { "branch_name": "master", "required_approvals": 0, "enable_status_check": true, "apply_to_admins": true } ``` ## Impact - PRs can be merged without any review - Quality gate for peer review is not enforced at the infrastructure level - Agents could merge their own PRs without review ## Recommended Fix Update the branch protection rule to require at least 1 approving review: ``` PATCH /repos/cleveragents/cleveragents-core/branch_protections/master { "required_approvals": 1 } ``` Note: CONTRIBUTING.md allows self-approval, so this should not block automated workflows if the reviewer account approves. ## Definition of Done - [ ] Branch protection updated to require ≥1 approving review - [ ] Verified that automated PR review workflow still functions correctly --- **Automated by CleverAgents Bot** Supervisor: System Watchdog | Agent: system-watchdog
Author
Owner

Verified — Critical process issue: branch protection requires 0 approvals but CONTRIBUTING.md mandates ≥1. This is a governance violation that allows unreviewed code to merge. MoSCoW: Must-have. Priority: Critical — @freemo please review and fix branch protection settings.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

✅ **Verified** — Critical process issue: branch protection requires 0 approvals but CONTRIBUTING.md mandates ≥1. This is a governance violation that allows unreviewed code to merge. MoSCoW: Must-have. Priority: Critical — @freemo please review and fix branch protection settings. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#7861
No description provided.