Skip to content

feat: add maintainer issue investigation workflow#665

Open
huzaifa-d wants to merge 11 commits into
mainfrom
user/modanish/github-repo-assist-research
Open

feat: add maintainer issue investigation workflow#665
huzaifa-d wants to merge 11 commits into
mainfrom
user/modanish/github-repo-assist-research

Conversation

@huzaifa-d

@huzaifa-d huzaifa-d commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

📖 Description

Adds a maintainer-triggered /investigate Agentic Workflow that:

  • Checks whether an issue is valid under the current code, tests, and documentation.
  • Posts a report with assessment, classification, evidence, and recommended next step.
  • Requests missing details from the issue author when there is insufficient information.
  • Creates a draft PR only for a small, unambiguous documentation or test-only fix.

Plus hardens automatic issue triage against untrusted issue content.

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Copilot AI review requested due to automatic review settings July 21, 2026 19:43
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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

Adds a maintainer-triggered /investigate GitHub Agentic Workflow (gh-aw) for evidence-backed issue investigation (optionally creating one narrow draft docs/tests PR), and updates the existing issue-triage workflow to (a) harden against prompt injection from issue text and (b) advertise /investigate when triage successfully routes an issue.

Changes:

  • Introduces a new Issue Investigation gh-aw workflow (/investigate) with strict safe-output limits (max 1 public comment + max 1 draft PR, docs/tests paths only).
  • Hardens Issue Triage instructions to treat issue content as untrusted evidence and appends a maintainer /investigate callout when routing succeeds.
  • Documents the intended behavior/safety model in CONTRIBUTING.md and new design spec docs.
Show a summary per file
File Description
docs/superpowers/specs/2026-07-21-triage-investigation-discovery-design.md New spec describing how triage comments should advertise /investigate (needs small accuracy fixes).
docs/superpowers/specs/2026-07-17-issue-investigation-design.md New design doc defining goals, scope limits, and safety constraints for /investigate.
CONTRIBUTING.md Adds contributor-facing documentation for the /investigate workflow and its safety boundaries.
.github/workflows/issue-triage.md Updates triage instructions for untrusted content + adds /investigate discoverability paragraph and PR read permission.
.github/workflows/issue-triage.lock.yml Regenerated gh-aw lockfile for the triage workflow.
.github/workflows/issue-investigation.md New gh-aw workflow implementing /investigate with strict safe outputs and path guards.
.github/workflows/issue-investigation.lock.yml Generated gh-aw lockfile for the new investigation workflow.

Review details

Comments suppressed due to low confidence (1)

docs/superpowers/specs/2026-07-21-triage-investigation-discovery-design.md:25

  • "Scope and Safety" states this changes only the triage comment content, but this PR also changes the Issue Triage workflow permissions (adds pull-requests: read). Either drop that permission if it’s not required, or update this spec so it accurately describes the full scope of the change.
This changes only the explanatory content of the Issue Triage comment. It does
not change the triage trigger, roles, label or assignment rules, safe outputs,
or the `/investigate` workflow's permissions and limits.
  • Files reviewed: 6/7 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread docs/superpowers/specs/2026-07-21-triage-investigation-discovery-design.md Outdated
huzaifa-msft and others added 4 commits July 21, 2026 13:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
- Tighten prose in issue-investigation and issue-triage workflow prompts
- Restrict GitHub toolset to context,repos,issues (drops pull_requests),
  removing the now-unneeded pull-requests: read agent permission
- Remove docs/superpowers/specs design records from the PR

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3732dd5c-330c-4ee4-86e4-0a92eb782e6a
@huzaifa-d
huzaifa-d marked this pull request as ready for review July 21, 2026 23:57
@huzaifa-d
huzaifa-d requested a review from a team as a code owner July 21, 2026 23:57
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@bbonaby bbonaby left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

excited to see what the bot does 😊

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.

4 participants