Branches and protection
The default branch, protection rules, and who can push where.
New repositories protect their default branch (main) from the start: changes come through pull requests, one approval, no force-push.
| Rule | What it does |
|---|---|
| Pull request required | no direct pushes to the branch |
| Approvals | how many reviewers must approve; new commits dismiss old approvals |
| Required checks | status checks that must pass, such as sypnia-run/preview or cases/check |
| No force-push, no deletion | history on the branch cannot be rewritten |
| Linear history | only squash or rebase merges |
| Signed commits | every commit verified (Security) |
| Who may bypass | nobody by default; never an agent |
Rules apply to a branch name or a pattern (release/*). Agents, Sypnia Agent included, can push to their own branches and open pull requests; merging into a protected branch is a person’s decision (Sypnia Agent).