Issue triage agent is told to add `gh-*` command labels it cannot apply · Issue #14026 · cli/cli · GitHub
Skip to content

Issue triage agent is told to add gh-* command labels it cannot apply #14026

Description

@williammartin

Description

issue-triage.md fetches skills/issue-classifier/references/label-taxonomy.md from desktop/gh-cli-and-desktop-shared-workflows as its label reference. That file has a "Command Labels (cli/cli)" section listing gh-* labels (gh-pr, gh-issue, gh-repo, and so on) and instructs the agent to "add the relevant command label".

The agent cannot do this. add-labels.allowed in .github/workflows/issue-triage.md does not contain any gh-* label, so gh-aw's safe-output layer silently drops them.

The result is that the agent is being told to do something on every issue that is guaranteed to have no effect. This is pre-existing and unrelated to any recent change; it was noticed while consolidating the spam-detection workflows.

Expected Output

Either:

  1. Add the gh-* command labels to the add-labels allowlist in issue-triage.md, or
  2. Drop the command-label instruction from the shared taxonomy, since it does not apply to this repo's configuration.

Worth deciding deliberately - option 1 meaningfully increases the number of labels the agent can emit, which interacts with the max: 3 cap.

Notes

The allowlist is at .github/workflows/issue-triage.md. Any change there needs gh aw compile to regenerate issue-triage.lock.yml.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staletech-debtA chore that addresses technical debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions