feat: gate every PR — remove deploy-intent filtering, add fail-open + PR comments
Decision
Deploy-gate should create a PP request for every PR to a protected branch. No deploy-intent filtering, no bot detection, no magic labels.
Approved by Rod, March 9 2026.
Architecture
- Deploy-gate action (this repo): Creates a request for every PR. Always. One job, no config, no detection logic.
- PP platform (app.permissionprotocol.com): Decides auto-approve vs manual approval based on tenant policy configured in the dashboard.
- Policy lives in the platform, not in repo YAML. Centrally managed, no config drift.
Must-Haves
1. Fail-open mode
If PP API is unreachable after N seconds (suggest 30s), set GitHub commit status to success with a warning message. Receipt records "platform unreachable, fail-open."
PP must never block deploys when it is down. No team will install something that can brick their CI.
2. PR comment with receipt link
When deploy-gate creates a request and it is auto-approved, post a PR comment:
✅ Permission Protocol: Auto-approved
Risk: Low | 3 files changed | No restricted paths
[View receipt →](https://permissionprotocol.com/review/{id})
This is the primary product touchpoint for auto-approved PRs. It is how teams discover the AI summary, risk signals, and review page.
For PRs requiring manual approval:
⏳ Permission Protocol: Approval required
Risk: High | Changes to deploy/*, .github/workflows/*
[Review & approve →](https://permissionprotocol.com/review/{id})
3. Dashboard filtering
Auto-approved requests should not clutter the approval queue. Default view: "Needs approval." Auto-approved requests exist in the audit trail and are accessible via filter.
What to Remove
- Deploy-intent detection (label matching, body keyword matching, restricted tier file matching)
- The "Verification skipped: non-deploy PR" path
- All conditional logic that decides whether to create a request
What Stays
- Restricted file detection (but used for risk assessment, not gating)
- Risk tier computation
- Commit status setting
- Receipt verification on subsequent pushes
Strategic Context
- Receipt is the wedge. Approval page is the upgrade path.
- Teams install deploy-gate → get receipts for every deploy (zero friction for human PRs)
- PR comments expose the AI summary → teams discover the review page
- Teams organically migrate to approving from PP because it is better than GitHub merge flow
- "PP does not have opinions about your workflow. It has a receipt for every outcome."
Related
- Phase 1 approval alignment shipped (app#6, site#151) — approval page visual convergence
- App review page refresh (app#4) — 3-zone layout, stats bar
- Deploy-gate v1.1.0 currently deployed on permissionprotocol-site and permission-protocol/app