Skip to content

feat: prevent duplicate agent PRs via in-progress labels and umbrella issues#76

Merged
don-petry merged 2 commits intomainfrom
claude/issue-75-20260406-1252
Apr 6, 2026
Merged

feat: prevent duplicate agent PRs via in-progress labels and umbrella issues#76
don-petry merged 2 commits intomainfrom
claude/issue-75-20260406-1252

Conversation

@claude
Copy link
Copy Markdown
Contributor

@claude claude Bot commented Apr 6, 2026

Summary

  • Adds in-progress label (#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
  • Removes --label "claude" from individual compliance finding issues — they now only get compliance-audit, preventing N agents racing on the same findings
  • Adds create_umbrella_issue() to compliance-audit.sh: one umbrella issue per audit run in petry-projects/.github groups all findings by remediation category and is the only issue labeled claude, triggering one coordinated agent run
  • Adds Multi-Agent Issue Coordination section to AGENTS.md with claim-before-work protocol, file-conflict check, and compliance umbrella guidance

What changed

File Change
standards/github-settings.md Added in-progress to Labels — Standard Set table
scripts/apply-repo-settings.sh Added in-progress to label_configs in apply_labels()
scripts/compliance-audit.sh Added in-progress to REQUIRED_LABELS + ensure_required_labels(); removed claude label from individual finding issues; added create_umbrella_issue() function; added ISSUES_FILE tracking for umbrella issue links
AGENTS.md Added "Multi-Agent Issue Coordination" section with claim-before-work protocol, file-conflict check, and umbrella issue guidance

Acceptance criteria

  • in-progress label exists in standard label set and is created by apply-repo-settings.sh
  • Org-level AGENTS.md includes claim-before-work and file-conflict-check rules
  • compliance-audit.sh creates a grouped umbrella issue per audit run
  • Individual finding issues get the compliance-audit label but NOT the claude label
  • Only the umbrella issue gets the claude label to trigger coordinated remediation

Closes #75

Generated with Claude Code

… 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>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 6, 2026

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 6, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 63e27a09-7246-4815-9d82-8ad042ec449f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-75-20260406-1252

Comment @coderabbitai help to get the list of available commands and usage tips.

…lCheck SC2155

Co-authored-by: don-petry <don-petry@users.noreply.github.com>
@don-petry don-petry merged commit 6ce0e96 into main Apr 6, 2026
3 checks passed
@don-petry don-petry deleted the claude/issue-75-20260406-1252 branch April 6, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: prevent duplicate agent PRs via claimed labels and umbrella issues

1 participant