Skip to content

fix(#1492): prevent triage agent from creating unknown labels - #1495

Merged
rh-hemartin merged 1 commit into
mainfrom
agent/1492-label-existence-guard
Jun 5, 2026
Merged

fix(#1492): prevent triage agent from creating unknown labels#1495
rh-hemartin merged 1 commit into
mainfrom
agent/1492-label-existence-guard

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Add a label-existence guard in post-triage.sh that fetches the repo's existing labels before processing label_actions. Agent-recommended labels that don't already exist in the repo are skipped with a warning instead of being auto-created by the GitHub API.

Also add issue-type awareness to the issue-labels skill: when a repo uses GitHub issue types, the agent is instructed not to recommend labels that duplicate the issue type (e.g., no 'bug' label when the issue is typed as Bug).

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Closes #1492

Post-script verification

  • Branch is not main/master (agent/1492-label-existence-guard)
  • Secret scan passed (gitleaks — addf9a24b1a9d937a2e2027b8c67a84f8d087739..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Add a label-existence guard in post-triage.sh that fetches the repo's
existing labels before processing label_actions. Agent-recommended labels
that don't already exist in the repo are skipped with a warning instead
of being auto-created by the GitHub API.

Also add issue-type awareness to the issue-labels skill: when a repo uses
GitHub issue types, the agent is instructed not to recommend labels that
duplicate the issue type (e.g., no 'bug' label when the issue is typed
as Bug).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Site preview

Preview: https://7d5377cc-site.fullsend-ai.workers.dev

Commit: 1de47d3b7783d0a48259a916672c0cf8fdf73fb0

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

No findings.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label May 26, 2026
@rh-hemartin
rh-hemartin added this pull request to the merge queue Jun 5, 2026
Merged via the queue into main with commit 06afe01 Jun 5, 2026
10 of 11 checks passed
@rh-hemartin
rh-hemartin deleted the agent/1492-label-existence-guard branch June 5, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Triage agent adds 'unknown' labels

1 participant