feat: add maintainer issue investigation workflow#665
Open
huzaifa-d wants to merge 11 commits into
Open
Conversation
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
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
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 Investigationgh-aw workflow (/investigate) with strict safe-output limits (max 1 public comment + max 1 draft PR, docs/tests paths only). - Hardens
Issue Triageinstructions to treat issue content as untrusted evidence and appends a maintainer/investigatecallout when routing succeeds. - Documents the intended behavior/safety model in
CONTRIBUTING.mdand 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
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
marked this pull request as ready for review
July 21, 2026 23:57
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
bbonaby
approved these changes
Jul 22, 2026
bbonaby
left a comment
Collaborator
There was a problem hiding this comment.
excited to see what the bot does 😊
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📖 Description
Adds a maintainer-triggered /investigate Agentic Workflow that:
Plus hardens automatic issue triage against untrusted issue content.
✅ Checklist
Cargo.lock, thedependency-feed-checkcheck passes (see docs/pull-requests.md)📋 Issue Type
Microsoft Reviewers: Open in CodeFlow