feat(pr-policy): add role separation gate#27
Merged
Conversation
Add a pure role-policy helper with tests and wire pr-policy.yml to warn by default while allowing protected agent-managed PRs to opt into hard Release-Admiral enforcement. Document the new inputs in README and the example caller. Closes #26
3 tasks
This was referenced May 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/role-policy.mjshelper for F7 role-separation decisions.pr-policy.ymlto warn by default and optionally hard-fail protected agent-managed PRs without independent Release-Admiral approval/marker.pr-policyinputs and owner-maintenance non-exemption in README/example caller docs.Linked Issue
Closes #26
Scope
pr-policy.ymlrole-separation warning and opt-in hard gate.repo-templateowner-maintenance hook/docs behavior; tracked separately in F7 follow-up: Owner Maintenance Lane docs and hooks repo-template#21.v1; do that after review/merge if this should ship to existing consumers pinned to@v1.Changelog
N/A: this repo does not currently use changelog fragments.
Verification
Verification Notes
Tests pass
Whitespace check passes
Local actionlint
Risks
enforce-role-separationunset/false.v1tag after this merges.