Repository navigation
[issue-check] Add closed issue reference check agentic workflow - #130124
kotlarmilos merged 19 commits into
Conversation
Adds a scheduled gh-aw workflow that reconciles closed issues with the code that still references them. A deterministic pre-step greps the source tree for issue references, batch-resolves each issue's state via GraphQL, and keeps the closed ones; the agent re-checks every candidate through the integrity-gated github MCP tools and posts one advisory comment recommending the issue be reopened or the stale reference removed. Advisory-only (comment via safe-outputs, capped and deduplicated on a hidden marker), runs weekly plus on manual dispatch. Co-authored-by: Copilot <[email protected]>
|
Tagging subscribers to this area: @dotnet/area-meta |
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Agentic Workflows (gh-aw) scheduled workflow that scans the src/ tree for dotnet/runtime/issues/<n> references, resolves the referenced issues’ states via GraphQL, and (via an integrity-gated MCP read) advises on closed issues that are still referenced by posting a single deduplicated comment.
Changes:
- Introduces
closed-issue-reference-check.mddefining the workflow, deterministic scan step, and the agent prompt/guardrails. - Adds the compiled
closed-issue-reference-check.lock.ymlworkflow generated bygh aw compile.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/closed-issue-reference-check.md | Defines the new scheduled workflow, including the deterministic scan + GraphQL resolution and the agent prompt for advisory comments. |
| .github/workflows/closed-issue-reference-check.lock.yml | Compiled lock workflow that implements the md-defined agentic workflow in GitHub Actions jobs/steps. |
Copilot's findings
- Files reviewed: 1/2 changed files
- Comments generated: 2
…sue-reference-check
Regenerate closed-issue-reference-check.lock.yml with gh-aw v0.74.8 to match the repo's other locks: SHA-pinned gh-aw-actions/setup@efa55847 (from actions-lock.json), no unresolved action refs. Re-apply the pat_pool patch on the detection job (gh-aw dotnet#30232). Co-authored-by: Copilot <[email protected]>
… tolerate no-match grep - grep -o captures every issue URL per source line (was only the first) - emit_query aborts on real GraphQL errors instead of silently yielding an empty set (false 'no closed issues'), while still tolerating per-alias NOT_FOUND for PR numbers - grep no-match (exit 1) no longer aborts the scan under set -euo pipefail Co-authored-by: Copilot <[email protected]>
Align with the repo's active agentic workflows (ci-failure-scan/-fix/-feedback). Co-authored-by: Copilot <[email protected]>
…c step Move the marker-based dedup out of the agent prompt into the scan script: rank all closed referenced issues, then drop any already carrying the advisory marker, keeping up to MAX fresh candidates. The agent no longer reasons about issues it would only skip. Co-authored-by: Copilot <[email protected]>
|
Is there an example of what this produces currently? |
The compiled safe-outputs tool is add_comment (underscore); the prompt referred to it as add-comment, which would emit a missing-tool output instead of posting. Co-authored-by: Copilot <[email protected]>
Dry-run resultsRan the scan locally over Raw artifact the workflow produces in
|
Co-authored-by: Copilot <[email protected]>
Replaces the --paginate download of an issue's entire comment history with a reverse walk that stops as soon as the advisory marker is found, so typical already-advised issues read one page instead of all of them. Marker detection is unchanged; a REST failure still aborts the run rather than re-advising. Co-authored-by: Copilot <[email protected]>
…sue-reference-check
Co-authored-by: Copilot <[email protected]> Copilot-Session: ded98f7e-9fed-456d-94a0-872433ca1374
|
Updated the branch to current |
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8871f8da-e894-43e2-8c85-214b4df969fd
Description
Adds a scheduled
gh-awworkflow that finds closed issues still referenced by test-disabling or build-guarding constructs undersrc. The deterministic scan accepts only positive issue numbers, classifiesActiveIssueonly when it appears in an executable attribute, ignores commented-out attributes and plain comments, resolves issue state through GraphQL, and recordstotal_countwhile retaining at most 15 reference locations per issue. The agent inspects the surrounding code and posts deduplicated advisory comments throughsafe-outputs, capped at five comments per run. The workflow uses the current isolatedcopilot-pat-poolconfiguration, runs weekly or through manual dispatch, and remains gated todotnet/runtime.