Skip to content

Add /issue triage agentic workflow for manual issue labels - #39065

Merged
kubaflo merged 57 commits into
mainfrom
kubaflo-issue-triage-labels
Oct 6, 2026
Merged

kubaflo merged 57 commits into
mainfrom
kubaflo-issue-triage-labels

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Adds a standalone maintainer-only /issue triage GitHub Agentic Workflow, following the command-driven approach discussed in #38807. It covers the existing manual issue-label taxonomy, rather than broadening the opening-event area/platform labeler. No new Azure pipeline is introduced.

  • Documents how labels currently arise from issue forms, the automatic labeler, human/partner triage and Policy Service, with representative issue histories and a machine-readable eligibility policy.
  • Classifies type, area, platform, status, regression, performance, version, workaround/device, feature/handler, ownership and planning labels. Preserves unrelated, unknown, legacy, typo and automation-only labels.
  • Requires existing positive authorized reproduction for confirmation labels and explicit existing maintainer decisions for priority, acceptance, backport, release and ownership commitments. Registered read-only partner validators can support reproduction, not business approvals. Tentative decisions, review claims and no-repro outcomes are withheld; unsuccessful reproduction must concern the reported issue, not an instruction or hypothesis.
  • Allows evidence-backed additions and narrow corrections/removals, with exact source quotations, chronology checks, actionable feedback requests, conflicting-priority/status prevention and documented Policy Service side effects. Same-second contrary evidence vetoes support conservatively. First-bad-version validation checks the complete enclosing cited paragraph, not a selectively shortened quote. Required removals retain their independent authority/transition checks; unrelated pre-existing conflicts are not cleaned up.
  • Accepts only the exact new /issue triage comment on an open issue from a current write/maintain/admin caller, running default-branch infrastructure. Rechecks requester authority, source-command identity and independently hashed issue context before handing off publication. Job reruns are deliberately unsupported: authorization, pool/analysis guards and the trusted publication validator require attempt one.
  • Uses the existing GPT-6.1 Sol/Copilot and PAT-pool configuration. Shell/GitHub tools are disabled for analysis. Native safeoutputs MCP tools declare the structured comment/deltas; a separate trusted validator renders the comment and reconciles the delta before built-in safe-output handlers execute. The pinned runtime's automatic comment temporary ID is narrowly validated and discarded before publication; numeric targeting and incomplete-result rejection are unchanged.
  • Provides staged manual dispatch by default. Enforces complete bounded intake and at most 20 total changes/10 additions/10 removals/one comment; fails rather than silently truncating required evidence. Documents non-atomic publication and the explicit fresh-invocation recovery contract.

The existing automatic labeler, interactive milestone-triage flow, Policy Service and Azure/PR-review pipelines are unchanged.

Recovery contract: after a failure, inspect the original run and its validated report artifact, then use a fresh command or dispatch to assess remaining deltas. The report is retained before label/comment handlers execute, independently of comment success. If labels succeed but comment delivery fails, the artifact remains the historical explanation; a fresh no-op does not reconstruct or prove delivery of that missing comment. This avoids unsupported rerun promises with gh-aw v0.86.2's immutable fixed-name artifacts. Publication remains non-atomic.

Validation

No surveyed issue labels or comments were changed. No synthetic evidence, product/device tests or pipeline test files were introduced.

Hosted validation limitation: these were split-validation fork canaries, not production end-to-end authorization. Both existing fork credentials returned HTTP 403 on upstream collaborator-permission reads, so the existing local CLI login performed actual Gather and final Validate GETs; its credential was never copied to Actions or provisioned as a new secret. Bounded compressed dispatch data supplied the real evidence, and literal staged handlers suppressed writes. A registered workflow path was repurposed only on the isolated fork feature branch; both default branches and production repository/ref guards were unchanged. Production default-branch/slash-command authorization, PAT-pool selection, fully hosted authority revalidation, apply-mode delivery and the new job-rerun guards remain unexercised on production infrastructure. The documented deployment step remains an authorized production dispatch with staged=true and artifact inspection before intentional application.

Credential/permission note: reuses existing pool secrets and SHA-pinned existing actions, with no new credential provisioning. PAT selection is gated on successful trusted intake; analysis and publication are separate jobs. The generic v0.86.2 remove-label handler generates pull-requests: write in publication jobs even though this command is issue-only; trusted issue-type checks, exact-target validation and fixed built-in output targets constrain its use. The pool job is fully redeclared because this compiler version replaces imported job definitions instead of merging an added condition; other workflows and the shared pool are unchanged.

Issues Fixed

N/A — new maintainer tooling, not a product bug fix. Related command reference: #38807.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 18:28
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 1, 2026 18:28 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39065

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39065"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Skill Validation Results

@kubaflo — new skill validation results are available based on this last commit: a7bd740.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Passed Static Passed LLM Skipped Skills 27 Agents 6

✅ Skill Validation Results — a7bd740 · Add /issue triage agentic workflow for manual issue labels · 2026-10-05T12:38:21Z

✅ Static Checks Passed

Skills: 27 | Eval specs linted: 17

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
Vally collects pseudonymous usage telemetry (command name, version, outcome, duration, persistent device identifier (when available), and coarse OS/runtime info) to improve the product. No prompts, datasets, file paths, or arguments are collected.
Opt out any time by setting VALLY_TELEMETRY_OPTOUT=1 or DO_NOT_TRACK=1.
Learn more: https://aka.ms/vally/telemetry
✔ .github/skills/agentic-labeler/tests/eval.vally.yaml is valid
── .github/skills/analyze-sessions/tests/eval.vally.yaml
✔ .github/skills/analyze-sessions/tests/eval.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.ownership.vally.yaml
✔ .github/skills/ci-fix/tests/eval.ownership.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.vally.yaml
✔ .github/skills/ci-fix/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/eval.inline-findings.vally.yaml
✔ .github/skills/code-review/tests/eval.inline-findings.vally.yaml is valid
── .github/skills/code-review/tests/eval.producer-trace.vally.yaml
✔ .github/skills/code-review/tests/eval.producer-trace.vally.yaml is valid
── .github/skills/code-review/tests/eval.trim-aot.vally.yaml
✔ .github/skills/code-review/tests/eval.trim-aot.vally.yaml is valid
── .github/skills/code-review/tests/eval.vally.yaml
✔ .github/skills/code-review/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/hermeticity.vally.yaml
✔ .github/skills/code-review/tests/hermeticity.vally.yaml is valid
── .github/skills/code-review/tests/soak.capability.vally.yaml
✔ .github/skills/code-review/tests/soak.capability.vally.yaml is valid
── .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
✔ .github/skills/evaluate-pr-tests/tests/eval.vally.yaml is valid
── .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
✔ .github/skills/pr-review/tests/eval.gh-auth.vally.yaml is valid
── .github/skills/review-test-failures/tests/eval.vally.yaml
✔ .github/skills/review-test-failures/tests/eval.vally.yaml is valid
── .github/skills/try-fix/tests/eval.restore.vally.yaml
✔ .github/skills/try-fix/tests/eval.restore.vally.yaml is valid
── .github/skills/try-fix/tests/eval.vally.yaml
✔ .github/skills/try-fix/tests/eval.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml is valid

⏭️ LLM Evaluation: Skipped

No changed skills with eval specs found.

🔍 Full results and investigation steps

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 1, 2026 18:32 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 1, 2026 18:34 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 1, 2026 18:34 — with GitHub Actions Inactive

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.

Copilot review overview

🟡 Changes recommended

The trusted validator has unresolved reference-parsing, quoted-decision, label-eligibility, evidence-validation, and test-coverage issues.

Review effort: Balanced
Findings: 1 High severity · 3 Medium severity · 1 Low severity

Open (5)
What changed in this PR

Adds a maintainer-only /issue triage agentic workflow for evidence-based issue labeling.

Changes:

  • Adds authorized, staged label-triage workflow and generated lock file.
  • Introduces label policy, evidence gathering, validation, and publication safeguards.
  • Documents operation, deployment, and relationship to existing triage tooling.
File Description
.github/​workflows/​issue-triage.md Defines command workflow and safe outputs.
.github/​workflows/​issue-triage.lock.yml Contains compiled GitHub Actions workflow.
.github/​skills/​issue-triage/​SKILL.md Routes hosted triage to the new skill.
.github/​skills/​issue-triage-labels/​SKILL.md Defines evidence and labeling rules.
.github/​skills/​issue-triage-labels/​references/​label-policy.json Provides machine-readable label policy.
.github/​scripts/​IssueTriage.ps1 Gathers evidence and validates proposals.
.github/​docs/​issue-triage.md Documents behavior, safety, and deployment.

Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved

@PureWeen PureWeen 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.

Adversarial review

An independent reviewer ran 3 independent reviewers with adversarial consensus. Two verified issues remain:

  • ⚠ Logic — a later maintainer removal of a confirmation label can be reversed by an older validator confirmation (2/3 reviewers).
  • ⚠ Config Impact — the broad report deny pattern blocks i/great-reporter even though the same policy declares that label eligible (2/3 reviewers).

Test coverage: no targeted automated coverage was added for the new validator transitions.

Existing review feedback was considered; these findings are not duplicates.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

Comment thread .github/scripts/IssueTriage.ps1 Resolved
@kubaflo kubaflo added the area-ai-agents Copilot CLI agents, agent skills, AI-assisted development label Oct 1, 2026
Address Markdown parsing, technical assessment and confirmation chronology feedback. Expose removal eligibility and preserve the approved reporter-label policy.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 22:11
@kubaflo

kubaflo commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Review follow-up pushed in 81d6e15:

  • Replaced line-based decision filtering with Markdown-aware handling of lazy quotes and indented/fenced/inline code.
  • Extracted related references outside code, with complete token boundaries and explicit context for color-shaped shorthand.
  • Exposed separate addition/removal eligibility, including supported removal-only placeholders.
  • Required label-specific technical assessments and reused their supporting evidence for transitions.
  • Prevented older confirmations from undoing newer maintainer removals.
  • Narrowed report deny patterns so i/great-reporter remains maintainer-authorized.

All seven current inline threads have replies and are resolved. The Pester suggestion was declined within the documented no-new-pipeline-tests scope. Strict gh-aw compilation, actionlint (the documented generated-queue compatibility exception), PowerShell/JSON parsing, skill validation, and real read-only intake/proposal validation passed. No surveyed issue labels/comments were changed; hosted staged execution still awaits default-branch registration.

This session is configured to check for new feedback every hour, handle useful in-scope changes, and avoid duplicate follow-up comments. It stops when the PR closes or merges.

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.

Copilot review overview

🟡 Changes recommended

The trusted validator has several authorization and evidence-matching gaps that can permit unsupported label decisions.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (5)
Previously missed (1)

In code that hasn't changed since last review

Medium severity Recognize later inability-to-confirm comments as stale evidence vetoes

.github/​scripts/​IssueTriage.ps1:458

The stale-confirmation veto only recognizes negative forms of “reproduce.” A later validator comment such as “unable to confirm this on 10.0.110” or “could not verify the reported behavior” is contrary evidence under the policy, but it is ignored and an older confirmation can still add s/verified or i/regression. Extend this check to the confirm/verify/validate forms already handled by Get-Confirmation, while distinguishing infrastructure-only failures.

This issue also appears on line 465 of the same file.

Comment thread .github/scripts/IssueTriage.ps1 Resolved

@PureWeen PureWeen 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.

Adversarial review

An independent reviewer ran three isolated reviews with adversarial consensus. Three new, actionable validator gaps remain:

  • Later contrary validation that says it cannot confirm, verify, or validate is not considered when deciding whether an earlier confirmation is stale.
  • Retry reconciliation assumes the publisher is github-actions[bot], although the configured safe-output token can publish as another principal.
  • The color-reference safeguard suppresses ordinary three-digit issue references such as Fixes #542, omitting related context.

Existing feedback was checked; the exact-label-boundary issue already has an inline comment and is not duplicated here.

Scope: code review only. CI/check status and merge readiness were not evaluated.

Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Require exact label tokens, share failed-validation matching, preserve standard issue reference verbs, and pin safe-output publication to the Actions token.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 23:34
@kubaflo

kubaflo commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Addressed the four new review findings in 94f897d and replied to/resolved their threads:

  • Exact label-token matching now applies to approvals, superseding decisions and negation normalization; longer labels cannot authorize their prefixes.
  • Positive confirmation and the full-context stale-evidence veto share negative reproduce/confirm/verify/validate matching. Failed validation withholds confirmation; it does not assign no-repro.
  • Safe-output publication is pinned to the built-in Actions token, matching the author-plus-marker retry check instead of selecting another configured publisher.
  • Standard Fixes/Closes/Resolves/See/reference wording preserves three-digit linked context without removing the existing code/color safeguards.

Strict gh-aw compilation, actionlint with the documented generated-queue exception, PowerShell/JSON parsing, skill metadata and whitespace checks passed. Fresh read-only intake and trusted rendering also passed for #38925 and #37440; no issue labels/comments were changed and no pipeline test files were added.

The new-HEAD Pester run finished with 2,200 passed and the same three pre-existing GPT model-pin assertion failures. The assertion and model-configuration files are untouched by this PR, so no unrelated patch was added. Static skill validation passed. Hosted triage and partial-publication retry execution still require default-branch registration; local validation is not an end-to-end canary.

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.

Copilot review overview

🟡 Changes recommended

The trusted validation and publication boundary has unresolved authorization, evidence-classification, chronology, and permission-scope issues.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (1)
Previously missed (4)

In code that hasn't changed since last review

Medium severity Tentative reproducibility wording incorrectly confirms validation

.github/​scripts/​IssueTriage.ps1:372

This treats the bare word reproducible as positive confirmation, so a validator comment such as “This should be reproducible on Android” passes both this regex and Test-NegativeValidation. That can authorize s/verified or i/regression without the explicit positive reproduction required by the policy. Require affirmative reproduction wording or reject tentative/modal phrasing before accepting confirmation.

Medium severity Comment edits are ignored in confirmation chronology

.github/​scripts/​IssueTriage.ps1:466

Confirmation chronology is ordered by createdAt even though comment bodies can be edited and updatedAt is captured. If an older validator comment is edited after a newer positive confirmation to say reproduction failed, it is not considered later contrary evidence, so a stale confirmation can still be published. Use the comment's updatedAt (with createdAt for immutable events) consistently for latest/supersession comparisons.

Medium severity Withheld labels can duplicate or overlap changed labels

.github/​scripts/​IssueTriage.ps1:652

Withheld decisions are validated separately from additions/removals, so the same live label can be both changed and reported as withheld (or appear multiple times). The trusted renderer would then publish a contradictory decision record. Reject duplicate withheld names and any overlap with $names before rendering.

Medium severity Issue-only publisher receives unnecessary pull request write access

.github/​workflows/​issue-triage.md:231

Enabling remove-labels compiles this issue-only publisher with pull-requests: write (see the generated safe_outputs and conclusion jobs), even though no PR mutation is required. Target validation reduces reachability but does not remove the unnecessary credential from the prompt-output publication boundary. Use a gh-aw version/handler that supports issue-only removal permissions, or publish removals through a trusted issue-only mechanism before enabling this workflow.

Comment thread .github/scripts/IssueTriage.ps1 Resolved

@PureWeen PureWeen 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.

Adversarial review

An independent reviewer ran 3 independent reviewers with adversarial consensus. Four actionable validation defects remain:

  • ⚠ Logic — unrelated negation near a successful verification falsely vetoes confirmation (2/3 reviewers).
  • ⚠ Logic — later contradictory paragraphs in the same validator comment are not considered (2/3 reviewers).
  • ⚠ Logic — tentative expected-behavior wording can apply s/not-a-bug (2/3 reviewers).
  • 💡 Security — Markdown link metadata can be interpreted as a maintainer label decision (2/3 reviewers).

Test coverage: no focused automated tests cover these new trusted-validator parsing and chronology contracts. Existing review feedback was checked; the items above are not duplicates.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Comment thread .github/scripts/IssueTriage.ps1 Resolved
Refresh both invocation identities, reject tentative confirmations and contradictory withheld records, and account for edited contrary evidence without reviving older affirmative decisions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 00:31
This was referenced Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai-agents Copilot CLI agents, agent skills, AI-assisted development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance degradation when using CommunityToolkit IconTintColorBehavior with Microsoft.Maui.Controls versions newer than 10.0.51

4 participants