Skip to content

Set up agentic issue triaging#47696

Open
JennyPng wants to merge 5 commits into
Azure:mainfrom
JennyPng:migrate-agentic-triage
Open

Set up agentic issue triaging#47696
JennyPng wants to merge 5 commits into
Azure:mainfrom
JennyPng:migrate-agentic-triage

Conversation

@JennyPng JennyPng marked this pull request as ready for review June 26, 2026 21:32
@JennyPng JennyPng requested a review from a team as a code owner June 26, 2026 21:32
Copilot AI review requested due to automatic review settings June 26, 2026 21:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the Azure SDK for Python repository's initial issue triage from the rules-based github-event-processor to a gh-aw agentic workflow. It adds a new agentic workflow source (issue-triage.md) describing a multi-step triage decision flow (customer evaluation, label prediction, CODEOWNERS-based owner routing, and analysis comments), its compiled issue-triage.lock.yml, and flips the legacy InitialIssueTriage rule off so the two systems don't both run on issues.opened.

Changes:

  • Add issue-triage.md: an agentic triage workflow that runs on issues.opened/workflow_dispatch, predicts Client/Mgmt + service labels, routes via CODEOWNERS, and includes a custom mention_owners safe-output job to preserve real @mentions.
  • Add issue-triage.lock.yml: the gh-aw-compiled lock file (read-only GitHub MCP server, safe-outputs after threat detection, firewalled network).
  • Update event-processor.config: set InitialIssueTriage to Off while leaving the other issue-automation rules enabled.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/issue-triage.md New agentic triage prompt + frontmatter (permissions, network, safe-outputs, custom mention_owners job).
.github/workflows/issue-triage.lock.yml Auto-generated lock file (DO NOT EDIT) compiled from the .md source.
.github/event-processor.config Disables the legacy InitialIssueTriage rule to avoid overlap with the new workflow.

Notes for the reviewer:

  • The .lock.yml is generated by gh aw compile; it should not be hand-edited and appears consistent with the source frontmatter (network allowlist, issues toolset, timeouts, safe-output maxima).
  • The custom mention_owners job posts the agent-provided message verbatim, bypassing the sanitization/length-cap that the standard add_comment safe-output applies — see the inline comment.
  • This is a security-sensitive workflow that runs on issues opened by anyone (roles: all, min-integrity: none) with write access to issues, so it warrants careful human review.

Comment thread .github/workflows/issue-triage.md Outdated

@xirzec xirzec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow looks good, but what version of gh-aw was used to compile this? From the lock.yml I see "compiler_version":"v0.79.8" but I see the latest is https://github.com/github/gh-aw/releases/tag/v0.80.9 -- can you regenerate with that to make sure the token permissions work?

@JennyPng JennyPng requested review from a team, benbp and l0lawrence as code owners June 26, 2026 22:24
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.

3 participants