fix: agent workflow dispatch chaining and duplicate issue prevention#28
fix: agent workflow dispatch chaining and duplicate issue prevention#28
Conversation
e608193 to
d4977ca
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s agentic GitHub workflows to avoid create-agent-session (which requires OAuth tokens) by chaining from agent-created issues into a new workflow-dispatch-based “issue implementer” workflow, and it reduces duplicate agent-created issues by instructing agents to read existing open issues first.
Changes:
- Replace
create-agent-sessionsafe output usage with a dispatch-to-issue-implementerworkflow pattern. - Add a new
issue-implementerworkflow (and compiled lock) that reads an issue spec and opens a PR. - Update code-health/test-analysis agent instructions to avoid duplicates and to apply standard title prefixes + labels to created issues.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/test-analysis.md | Switch safe-outputs to workflow dispatch chaining; update agent instructions to read open issues + add labels/prefixes. |
| .github/workflows/test-analysis.lock.yml | Compiled workflow updates removing agent-session creation and adding dispatch workflow support/permissions. |
| .github/workflows/issue-implementer.md | New workflow definition to implement a specified issue and open a PR. |
| .github/workflows/issue-implementer.lock.yml | Compiled workflow for the new issue implementer pipeline. |
| .github/workflows/code-health.md | Switch safe-outputs to workflow dispatch chaining; update agent instructions to read open issues + add labels/prefixes. |
| .github/workflows/code-health.lock.yml | Compiled workflow updates removing agent-session creation and adding dispatch workflow support/permissions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…licate issues Two fixes for agentic workflows: 1. create-agent-session fails with fine-grained PATs (requires OAuth). Replaced with dispatch-workflow pattern using a new issue-implementer workflow (Claude Opus 4.6) that reads issue specs and opens PRs. 2. Agents created duplicate issues on repeated runs. Added instruction to read existing open issues before creating new ones. Also adds [aw][code health] and [aw][test audit] title prefixes and labels to agent-created issues. Closes #29 Closes #30 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
d4977ca to
17750d9
Compare
microsasa
left a comment
There was a problem hiding this comment.
Fixed: dispatch-workflow max increased to 2 to match create-issue max. The tool name mismatch in lock files is auto-generated by gh aw compile — recompile resolved it.
Two fixes for agentic workflows:
create-agent-session fails with fine-grained PATs — requires OAuth tokens. Replaced with dispatch-workflow pattern using a new issue-implementer workflow (Claude Opus 4.6) that reads issue specs and opens PRs.
Agents created duplicate issues on repeated runs — agents now read existing open issues before creating new ones and skip anything already reported.
Also:
Closes #29
Closes #30