Deterministic PR gating using decision contracts (no heuristics, no AI) #191248
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Product Feedback
Body
Most PR workflows today rely on some mix of:
But decisions themselves are not first-class.
We’ve been working on a system where PRs are evaluated against explicit decision contracts instead of relying on reviewers or implicit rules.
Basic idea:
Example:
{
"contractIds": ["contract.ageCheck.v1"],
"input": { "age": 17 }
}
→ Fails deterministically
→ PR cannot merge (
manthan/pr-gate)No heuristics.
No AI.
No interpretation layer.
Just:
deterministic → auditable → enforceable decisions.
Question for the community:
Do you see value in treating decisions as enforceable primitives in PR workflows (beyond CI tests and policy tools)?
Where would this break in real-world repos?
Beta Was this translation helpful? Give feedback.
All reactions