GitHub-native coordination gate that detects scope overlap across open Issues and PRs. Supports warn-only mode or merge-blocking mode via required checks.
This gate parses literal labels from Issue bodies and PR descriptions:
SCOPE: <scope-key>
INTENT: <one-line why/what>
- Scans open Issues and PRs for
SCOPE: - Flags collisions when the same scope appears in multiple open items
- Posts an evidence-linked collision notice
- In
blockmode, fails the PR check on collision (pre-merge gate)
Copy into your repo:
.github/workflows/coordination_scope_collision.yml.github/scripts/scope_collision.py
(Optional but recommended)
.github/ISSUE_TEMPLATE/coordination_work_item.yml
- Create Issues using the issue template (it inserts the canonical labels).
- Ensure PR descriptions include the canonical labels (at minimum
SCOPE:).
Set COORD_MODE in the workflow:
warn: comment only (non-blocking)block: comment + fail check on collision (merge gate when required checks are enabled)
- docs/director_proof.md
- docs/design_notes.md
- No auto-merge, no auto-approve
- Auditable via PR comments and GitHub Actions logs
Portfolio map: https://github.com/alyssadata/PORTFOLIO_MAP.md