Skip to content

Extract issue triage guidance into a reusable skill with regression evals - #68870

Open
PureWeen wants to merge 11 commits into
mainfrom
pureween-add-issue-triage-skill
Open

PureWeen wants to merge 11 commits into
mainfrom
pureween-add-issue-triage-skill

Conversation

@PureWeen

@PureWeen PureWeen commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Why this change

The issue-triage workflow currently carries its classification guidance inline. This PR extracts that guidance into a reusable repository skill so it can support interactive triage and be evaluated independently before the production workflow adopts it.

This is the second layer of stack #68872, following #68869. This PR does not change the running issue-triage workflow. #68871 updates the workflow and generated lock to consume the skill. Keeping the two steps separate lets us review the classification policy independently from its production integration. Agents that discover repository skills can use the new skill for interactive triage once it is available.

What changes

This PR adds three files: the issue-triage skill, its area-ownership reference, and a Vally evaluation with eight targeted regression scenarios.

The skill recommends one area (or abstains), preserves a trusted existing issue type or recommends Bug/Feature/Task for a confirmed-untyped issue, selects at most one supported subtype, assesses duplicate evidence, and drafts a triage summary. It does not take over maintainer decisions about severity, milestones, closure, or resolution.

This is not a purely mechanical extraction. Working through the scenarios exposed ambiguities that the skill now addresses explicitly:

  • Broken current product behavior or repository automation/policy is a Bug; proactive maintenance and docs-only deliverables are Tasks. Fix size does not decide the type.
  • Existing issue types, including Epic, are preserved. A failed or missing trusted type lookup produces an unknown type decision, not a replacement recommendation.
  • Verified external ownership requires area abstention and the external subtype. The area reference also clarifies ownership boundaries, including repository automation versus the product it discusses.
  • The by-design subtype requires explicit maintainer evidence. Duplicate decisions account for verified maintainer cross-references rather than relying only on matching symptoms.

The skill produces a structured decision record followed by a maintainer-facing summary. The production workflow remains responsible for deciding what to apply or publish.

How the evaluation evolved

We corrected evaluation problems as well as policy ambiguities. Originally, only the skilled variant received the required output schema, so some baseline failures measured missing formatting instructions rather than classification differences. Both variants now receive the same neutral format contract; only the skill environment differs. We also removed a rubric requirement that penalized a correct Feature decision for not explicitly explaining why it was not Epic.

The final evaluation uses Vally 0.14.0 with gpt-5.6-terra as both model and semantic judge, and a threshold of 1.0. We did not lower the threshold to obtain a pass.

At commit 9b92e343e3d18d49a5a64445ed3f7b80f7d9f029, hosted smoke run 35015657901 passed:

Result With skill Without skill
Cases passing every deterministic and semantic grader 8/8 2/8
Cases passing the semantic prompt grader 8/8 5/8

The full-case result includes exact-format compliance; it should not be read as a classification-accuracy comparison. Every skilled trajectory successfully read references/areas.md.

Local Vally Validate, Test, and strict Lint passed. Standard and smoke discovery resolved the intended model and judge. Vally MockExecutor confirmed identical resolved prompts for all eight baseline/skilled pairs; that checks prompt parity, not model accuracy.

Limits of this evidence

  • The hosted smoke used one trial per scenario. These cases were used during development, not held out, so the result is a targeted regression check rather than evidence of broad accuracy or repeatability.
  • Cases supply frozen issue evidence and trusted lookup results. They do not exercise live metadata retrieval, duplicate search, GitHub writes, or the production workflow's safeguards. Those integration questions belong to Wire issue triage workflow to reusable skill #68871.
  • Both the model and semantic judge use Terra; the semantic scores are not an independent human assessment.
  • The runner's absolute-path view calls still fail with Path does not exist. All eight skilled cases read the reference through a scoped local-file fallback. This mitigates the runtime defect; it does not fix it. The fallback is limited to missing/path-resolution failures and must not bypass permission or content-exclusion denials.
  • The model-only Terra attempt is preserved at commit 41227c643e62f17f417685049cc755cd4ab50bde in run 35009625231. Later attempts include policy and evaluation corrections and are not a pure model comparison.

Review focus

Please review whether the classification rules and area-ownership boundaries match maintainer intent, particularly the clarifications above, and whether the evaluation expectations enforce the right decisions without requiring unnecessary phrasing.

Reviewing this alongside #68871 will show the complete intended workflow. This PR establishes the reusable policy and its regression checks; #68871 is the separate production switch.

@PureWeen
PureWeen force-pushed the pureween-add-issue-triage-skill branch 2 times, most recently from 7ea3172 to 3c17e6b Compare September 2, 2026 17:23
@PureWeen
PureWeen force-pushed the pureween-add-issue-triage-skill branch from 3c17e6b to 8bc9f5c Compare September 2, 2026 18:50
@PureWeen PureWeen changed the title Add reusable issue triage skill and Vally evals Add reusable issue triage skill and strict Vally evals Sep 2, 2026
@Youssef1313 Youssef1313 added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Sep 2, 2026
@PureWeen
PureWeen force-pushed the pureween-add-issue-triage-skill branch from 5cfb008 to d7cef05 Compare September 2, 2026 20:27
Base automatically changed from pureween-simplify-triage-type-fix to main September 3, 2026 16:04
@PureWeen
PureWeen force-pushed the pureween-add-issue-triage-skill branch from d7cef05 to c75dcbb Compare September 3, 2026 16:04
- name: require-api-proposal-subtype
type: output-matches
config:
pattern: '(?im)^(?:[-*]\s*)?(?:\*\*)?(?:Supported\s+)?Subtype\s*:\s*(?:\*\*)?\s*(?:recommend(?:ed)?\s+)?`?api-proposal`?\b'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

⚠️ Testing — This grader requires a line beginning with Subtype: api-proposal, but the skill only requires the subtype to appear in a compact decision record and does not prescribe that record’s formatting. It explicitly keeps subtype out of the one fixed-format section, the triage summary. A policy-compliant response such as Decision: area-blazor; recommend Feature; api-proposal subtype; no duplicate therefore fails this deterministic grader under the all-graders-pass scoring rule. Please either define a required Subtype: field in the decision-record contract or broaden this matcher to accept the compliant forms the skill currently permits.

Flagged by: 3/3 reviewers

and installers.

- Code: `src/Tools/`, `src/Tools/Microsoft.dotnet-openapi/`,
`src/ProjectTemplates/` template infrastructure, `src/Installers/`

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

⚠️ Logic — src/Installers/ is also listed under area-infrastructure later in this reference, with no rule resolving the overlap. The repository’s deterministic path labeler, area-owner documentation, CODEOWNERS, and existing installer issues consistently assign this directory to area-infrastructure. Because the skill requires exactly one best area, preserving both mappings can make installer issues classify differently depending on which entry the model favors. Please remove this path from area-commandlinetools or add an explicit disambiguation rule that makes area-infrastructure authoritative for src/Installers/.

Flagged by: 2/3 reviewers after dispute

graders:
- type: output-matches
config:
pattern: '(?is)Bug.*external|external.*Bug'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

💡 Testing — This token-order matcher also accepts an inverted decision such as Bug, but not external, so it does not independently verify the subtype polarity. The prompt judge may still reject that response, but this deterministic grader contributes no reliable signal for the distinction it is intended to protect. Anchoring external to a subtype decision field, or adding a negative control, would make the case meaningfully discriminating.

Flagged by: 2/3 reviewers

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Three findings survived adversarial consensus:

  • ⚠️ The api-proposal subtype grader requires formatting that the skill contract does not require, so correct outputs can fail the eval.
  • ⚠️ src/Installers/ is assigned to two areas without disambiguation, conflicting with the repository’s canonical infrastructure ownership and allowing inconsistent issue classification.
  • 💡 The Browser Link deterministic matcher accepts negated external decisions and therefore provides weak independent validation.

The reusable policy is otherwise internally coherent: it preserves trusted existing issue types, keeps Epic maintainer-managed, limits new type recommendations to Bug/Feature/Task, and separates subtype and duplicate decisions. The seven scenarios cover the major intended policy changes, but two deterministic graders currently weaken the reliability of those evaluations.

Methodology: 3 independent reviewers with adversarial consensus. There were no prior reviews or review comments to duplicate. Event: COMMENT.

@PureWeen
PureWeen force-pushed the pureween-add-issue-triage-skill branch from 1cdf4d3 to 4bf0ee3 Compare September 6, 2026 16:00
@PureWeen
PureWeen marked this pull request as ready for review September 15, 2026 15:23
@PureWeen
PureWeen requested review from a team and wtgodbe as code owners September 15, 2026 15:23
Copilot AI lite review requested due to automatic review settings September 15, 2026 15:23

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 review identified unresolved moderate issues in lookup handling, ownership precedence, YARP coverage, and Vally matcher correctness.

Get a fresh assessment by requesting another Copilot review.

Review tier: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds a reusable ASP.NET Core issue-triage skill, ownership references, and strict Vally evaluation coverage.

Changes:

  • Defines triage classification and output contracts.
  • Adds progressively disclosed area ownership guidance.
  • Adds seven frozen stimuli with binary graders.
File Summary Review findings
.github/​skills/​issue-triage/​SKILL.md Reusable triage policy Moderate (2 votes): distinguish failed or unavailable lookups from confirmed untyped issues and fail closed when the type is unknown.
.github/​skills/​issue-triage/​references/​areas.md Area ownership taxonomy Moderate (1 vote): define precedence for overlapping paths using the longest matching prefix. Moderate (1 vote): retain YARP routing or document its intended external-owner handling.
eng/​skill-evals/​issue-triage/​eval.vally.yaml Frozen Vally evaluations Moderate (1 vote each): update both negated matchers to allow the closing Markdown ** before the colon, so explicit Epic recommendations and replacement actions are correctly detected.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/skills/issue-triage/SKILL.md Outdated
Comment on lines +46 to +50
Treat a supplied trusted current issue type as authoritative. When it is non-empty,
report that it must be preserved and recommend no replacement type. This includes
maintainer-created `Epic` issues and template- or automation-assigned `Bug`, `Feature`,
or `Task` issues.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate cae17f2

@github-actions

Copy link
Copy Markdown
Contributor

❌ Smoke skill evaluation did not pass for issue-triage at cae17f2. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate e3575a6

@github-actions

Copy link
Copy Markdown
Contributor

❌ Smoke skill evaluation did not pass for issue-triage at e3575a6. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 9d30d0b

@github-actions

Copy link
Copy Markdown
Contributor

✅ Smoke skill evaluation passed for issue-triage at 9d30d0b. Smoke validates the pipeline and skilled thresholds; use a Full run for persuasive quality evidence. View the workflow run and artifacts.

@PureWeen
PureWeen force-pushed the pureween-add-issue-triage-skill branch from 9d30d0b to 305b956 Compare September 15, 2026 17:11
@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 305b956

@github-actions

Copy link
Copy Markdown
Contributor

✅ Smoke skill evaluation passed for issue-triage at 305b956. Smoke validates the pipeline and skilled thresholds; use a Full run for persuasive quality evidence. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 41227c6

@github-actions

Copy link
Copy Markdown
Contributor

❌ Smoke skill evaluation did not pass for issue-triage at 41227c6. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 6fb5e8e

@github-actions

Copy link
Copy Markdown
Contributor

❌ Smoke skill evaluation did not pass for issue-triage at 6fb5e8e. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 07c191c

@github-actions

Copy link
Copy Markdown
Contributor

❌ Smoke skill evaluation did not pass for issue-triage at 07c191c. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate ee8758c

@github-actions

Copy link
Copy Markdown
Contributor

❌ Smoke skill evaluation did not pass for issue-triage at ee8758c. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 9b92e34

@github-actions

Copy link
Copy Markdown
Contributor

✅ Smoke skill evaluation passed for issue-triage at 9b92e34. Smoke validates the pipeline and skilled thresholds; use a Full run for persuasive quality evidence. View the workflow run and artifacts.

@PureWeen PureWeen changed the title Add reusable issue triage skill and strict Vally evals Extract issue triage guidance into a reusable skill with regression evals Sep 15, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

@dotnet-policy-service dotnet-policy-service Bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Sep 26, 2026

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

Current-head review — 9b92e343e3d18d49a5a64445ed3f7b80f7d9f029

No new high-confidence actionable finding identified after reviewing all three added files and the existing runner, experiment/staging/result contracts, production triage policy, and ownership mappings. Failed lookup is separated from confirmed-untyped state, trusted types including Epic are preserved, and other classification decisions continue independently. This PR adds the reusable skill; it does not replace the running workflow.

Prior feedback: The decision-record/api-proposal format mismatch, installer ownership conflict, Browser Link negation matcher, failed-lookup handling, and bold-field matcher concern are addressed in the current text. The generic overlapping-path precedence and YARP-coverage concerns were already raised in prior feedback; they are not duplicated or declared resolved here. All 5 review bodies, 4 inline comments, and 19 issue comments were reconciled.

Validation and limits: A GPT-6.1 Sol reviewer checked all eight stimuli, the real area-reference staging path, result-count/score assertions, and same-format A/B prompts. Frozen diff whitespace and YAML parsing of the new eval, central experiments, and skill frontmatter passed. Targeted run.ps1 Lint was blocked because vally is unavailable; no toolchain was installed. YAML syntax is not Vally schema/grader validation. The saved head checks have 30 successes, 11 skips, and one neutral; skips/neutral are not passes. The separate exact-head skill-evaluations status reports a successful smoke, but raw trajectories and the author's 8/8-versus-2/8 counts were not independently verified. These samples do not establish held-out accuracy, repeatability, or model-only improvement.

Scope: GPT-6.1 Sol only; no model/judge/campaign/workflow execution, live issue retrieval, production mutation, visual/browser validation, approval, or merge-readiness claim. Runtime reference-path recovery was inspected as instructions, not exercised through the live host.

This branch has not been deployed

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

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants