deploy-gate
deploy-gate copied to clipboard
Docs: recommend strict: false for PP status check ruleset
Context
When users set up the deploy-gate GitHub Action with a branch ruleset that has strict_required_status_checks_policy: true, they hit a confusing UX bug:
- All checks pass (green ✅), but GitHub shows "Permission Protocol — Expected" and blocks merge
- This happens whenever
mainadvances while a PR is open (someone else merges first) - The PP approval becomes "stale" even though authorization has nothing to do with code freshness
- Creates merge loops: every merge invalidates every other open PR's PP status
Root Cause
GitHub's strict setting requires the branch to be up-to-date with the target before accepting status checks. This makes sense for build/test checks (code can conflict when combined) but is meaningless for authorization checks — permission doesn't go stale because someone else merged a CSS fix.
Recommended Fix
Update the deploy-gate README and setup docs to:
- Explicitly recommend
strict: falseon any ruleset requiring the "Permission Protocol" status check - Explain why — authorization ≠ code quality; strict creates phantom failures
- Suggest a two-ruleset pattern:
- Ruleset 1: "Permission Protocol" status check, strict OFF
- Ruleset 2: "Build and test" (or equivalent), strict ON
- Include a sample ruleset JSON config for easy copy-paste
Impact
Every user who installs deploy-gate with strict ON will hit this. It's a setup footgun that makes PP look broken when it's actually a GitHub interaction issue.