deploy-gate icon indicating copy to clipboard operation
deploy-gate copied to clipboard

Docs: recommend strict: false for PP status check ruleset

Open rodchalski opened this issue 8 months ago • 0 comments

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 main advances 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:

  1. Explicitly recommend strict: false on any ruleset requiring the "Permission Protocol" status check
  2. Explain why — authorization ≠ code quality; strict creates phantom failures
  3. Suggest a two-ruleset pattern:
    • Ruleset 1: "Permission Protocol" status check, strict OFF
    • Ruleset 2: "Build and test" (or equivalent), strict ON
  4. 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.

rodchalski avatar Mar 18 '26 15:03 rodchalski