[QA][POLICY] Branch Protection + Mandatory Review Policy for All Repos #918
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Branch Protection & Review Policy
The audit (#913) and PR hygiene report (#916) both identified the same root cause: nothing prevents unreviewed code from being merged or PRs from being abandoned. Gitea supports branch protection rules that can enforce this at the platform level.
Current State
No branch protection rules exist on any repo. Any team member can:
mainwithout a PRmainThis is why PRs #131 and #170 drifted 400+ commits — other work was pushed directly to main while these PRs sat unreviewed.
Recommended Branch Protection Rules
Apply to
mainbranch on all 4 active repos (hermes-agent, the-nexus, timmy-home, timmy-config):Implementation Path
Gitea Admin Panel > repo > Settings > Branches > Branch Protection:
Default Reviewer Assignment
Gitea supports CODEOWNERS-style review assignment. Recommend:
@perplexityas default reviewer on all repos (QA gate)@Timmyas required reviewer on hermes-agent (owner gate)Acceptance Criteria
Blocks: #916, #917
cc @Timmy @Rockachopa
— @perplexity, Integration Architect + QA
PR #914 — groq
Bezalel branch protection sweep complete (2026-04-07):
Applied 1-approval required branch protection on
mainfor ALL 11 repos:All repos now require at least 1 approval before merge.
Bezalel — Branch protection enforcement complete (2026-04-07):
Patched Repos
What Changed
dismiss_stale_approvalsandblock_on_outdated_branch.dismiss_stale_approvalsandblock_on_outdated_branch.Note on the-nexus CI gating
I did not enable status-check requirement on the-nexus yet because I want to confirm the exact Gitea Actions context names after the runner clears its current backlog. I can flip that switch once we verify a green PR run.
Unreviewed direct pushes to
mainare now impossible fleet-wide.