Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Fix skipped assign to agent step

Investigation shows that the agent didn't call assign_to_agent in workflow run https://github.com/githubnext/gh-aw/actions/runs/21467408567/job/61832573819.

Root Cause

The workflow instructions at Step 4 said:

  • "After calling create_issue, store the returned issue number"
  • "Use the issue number from action 1"

But create_issue returns a temporary ID (e.g., aw_sec2026012901), not a final issue number. This ambiguous language may have confused the agent about what value to pass to assign_to_agent.

Solution

  • Update workflow instructions to explicitly mention temporary IDs
  • Clarify that the agent should use the temporary ID returned from create_issue
  • Add example showing temporary ID usage in the instructions
  • Recompile workflow lock file
  • Run validation checks (tests passed, linting passed, compilation passed)

Changes Made

  1. Updated security-alert-burndown.md Step 4 instructions:
    • Changed "store the returned issue number" to "store the returned temporary ID (e.g., aw_sec2026012901)"
    • Changed all references from <new_issue_number> to <temporary_id_from_create_issue>
    • Added concrete example: assign_to_agent(issue_number="aw_sec2026012901", name="copilot")
    • Added clarification that "The temporary ID will be automatically resolved to the real issue number during execution"
  2. Recompiled workflow to update .lock.yml file
  3. Validated changes with unit tests and linting

Verification

  • ✅ Unit tests passed
  • ✅ Linting passed
  • ✅ Workflow compiles without errors
  • ✅ No code changes were needed - this was purely a documentation improvement

The agent will now have clear, explicit instructions to use the temporary ID returned from create_issue when calling both update_project and assign_to_agent.

Original prompt

Fix skipped assign to agent step:
https://github.com/githubnext/gh-aw/actions/runs/21467408567/job/61832573819


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@mnkiefer mnkiefer marked this pull request as ready for review January 29, 2026 06:18
@mnkiefer mnkiefer changed the title [WIP] Fix skipped assign to agent step in CI workflow Fix skipped assign to agent step Jan 29, 2026
@mnkiefer mnkiefer merged commit a70f5ec into main Jan 29, 2026
121 checks passed
@mnkiefer mnkiefer deleted the copilot/fix-skipped-assign-to-agent branch January 29, 2026 06:20
Copilot stopped work on behalf of mnkiefer due to an error January 29, 2026 06:21
Copilot AI requested a review from mnkiefer January 29, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants