Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs: Add branch protection configuration guide

LearningCircuit5a08f7ea25f0
diff --git a/.github/BRANCH_PROTECTION.md b/.github/BRANCH_PROTECTION.md
new file mode 100644
index 0000000000..2a3d6ee8ec
--- /dev/null
+++ b/.github/BRANCH_PROTECTION.md
@@ -0,0 +1,41 @@
+# Branch Protection Configuration
+
+Required settings for OSSF Scorecard compliance on `main` and `dev` branches.
+
+## Required Settings (GitHub UI: Settings -> Branches -> Add rule)
+
+### Protect matching branches
+- [x] Require a pull request before merging
+ - [x] Require at least 1 approving review
+ - [x] Dismiss stale PR approvals when new commits are pushed
+- [x] Require status checks to pass before merging
+ - [x] Require branches to be up to date before merging
+- [x] Do not allow bypassing the above settings
+
+### Status checks to require
+- `test` (unit tests)
+- `lint` (code quality)
+- `typecheck` (mypy)
+
+## Setup Instructions
+
+1. Go to repository **Settings** -> **Branches**
+2. Click **Add branch protection rule**
+3. Set "Branch name pattern" to `main`
+4. Configure the settings listed above
+5. Click **Create**
+6. Repeat for `dev` branch
+
+## Why This Matters
+
+OSSF Scorecard's Branch-Protection check verifies that:
+- Direct pushes to protected branches are prevented
+- Code review is required before merging
+- Status checks must pass before merging
+
+These settings help prevent accidental or malicious changes to production code.
+
+## References
+
+- [OSSF Scorecard Branch-Protection Check](https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection)
+- [GitHub Branch Protection Documentation](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches)