feat: prevent duplicate agent PRs via in-progress labels and umbrella issues#76
Merged
feat: prevent duplicate agent PRs via in-progress labels and umbrella issues#76
Conversation
… issues
- Add `in-progress` label (#fbca04) to standard label set in github-settings.md
and apply-repo-settings.sh so all repos have it available for agents to claim issues
- Add `in-progress` to compliance-audit.sh REQUIRED_LABELS and ensure_required_labels()
so the audit enforces its presence across repos
- Remove `--label "claude"` from individual compliance finding issues; individual issues
now only get the `compliance-audit` label so multiple agents don't race on them
- Add create_umbrella_issue() to compliance-audit.sh: after each audit run, one umbrella
issue is created in petry-projects/.github grouping all findings by remediation category.
Only the umbrella gets the `claude` label, triggering one coordinated agent run instead
of N competing agents each fixing the same script/file
- Add "Multi-Agent Issue Coordination" section to AGENTS.md with:
- Claim-before-work protocol (check in-progress label, check for open PRs, claim before
writing code, release claim on abandonment)
- File-conflict check (search open PRs for the target file before creating it)
- Compliance umbrella issue guidance (work from umbrella, fix whole category per PR)
Closes #75
Co-authored-by: don-petry <don-petry@users.noreply.github.com>
5 tasks
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…lCheck SC2155 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
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
in-progresslabel (#fbca04) to the standard label set (github-settings.md,apply-repo-settings.sh,compliance-audit.sh) so all repos have it available for agents to claim issues before writing code--label "claude"from individual compliance finding issues — they now only getcompliance-audit, preventing N agents racing on the same findingscreate_umbrella_issue()tocompliance-audit.sh: one umbrella issue per audit run inpetry-projects/.githubgroups all findings by remediation category and is the only issue labeledclaude, triggering one coordinated agent runAGENTS.mdwith claim-before-work protocol, file-conflict check, and compliance umbrella guidanceWhat changed
standards/github-settings.mdin-progressto Labels — Standard Set tablescripts/apply-repo-settings.shin-progresstolabel_configsinapply_labels()scripts/compliance-audit.shin-progresstoREQUIRED_LABELS+ensure_required_labels(); removedclaudelabel from individual finding issues; addedcreate_umbrella_issue()function; addedISSUES_FILEtracking for umbrella issue linksAGENTS.mdAcceptance criteria
in-progresslabel exists in standard label set and is created byapply-repo-settings.shAGENTS.mdincludes claim-before-work and file-conflict-check rulescompliance-audit.shcreates a grouped umbrella issue per audit runcompliance-auditlabel but NOT theclaudelabelclaudelabel to trigger coordinated remediationCloses #75
Generated with Claude Code