Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

Campaign orchestrator run #20330838254 failed to discover issue #6820 created by worker run #20330678188. The agent used safeoutputs-noop instead of querying GitHub API because instructions lacked technical specificity.

Changes

  • Enhanced orchestrator template (pkg/campaign/prompts/orchestrator_instructions.md)

    • Replaced vague "Query GitHub Actions API" with explicit MCP tool names: github-list_workflow_runs, github-list_workflow_run_artifacts
    • Added step-by-step artifact download and parsing procedure
    • Specified environment variable format: GH_AW_OUTPUT_CREATE_ISSUE_ISSUE_URL
    • Added GitHub Issues search as fallback mechanism
    • Named exact safe-output action for project board updates: update-project
  • Regenerated campaign workflows

    • go-file-size-reduction-project64.campaign.g.{md,lock.yml}
    • go-file-size-reduction.campaign.g.{md,lock.yml}

Before/After

Before:

1. Query GitHub Actions API for recent workflow runs using the worker's tracker-id
2. Examine workflow run outputs and artifacts to discover issues created by the worker

After:

1. **Query GitHub Actions API for recent workflow runs** using the GitHub MCP server:
   - Use `github-list_workflow_runs` with the worker's workflow file (e.g., `daily-file-diet.lock.yml`)
   - Filter for recent completed runs (last 24-48 hours)
   
2. **Extract issue URLs from workflow run artifacts**:
   - Use `github-list_workflow_run_artifacts` to list artifacts
   - Download the `agent-output` artifact
   - Look for outputs like: `GH_AW_OUTPUT_CREATE_ISSUE_ISSUE_URL`

The fix transforms abstract guidance into executable technical steps, enabling campaigns to properly discover and track worker-created issues.

Original prompt

Analyze campaign run: https://github.com/githubnext/gh-aw/actions/runs/20330838254
and understsand why this run by the worker (daily file diet) #6820 was not picked up by the campaign and reported on the campaign's project board.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…worker-created issues

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Analyze campaign run for missing worker report Campaign orchestrator: Add explicit instructions for discovering worker-created issues Dec 18, 2025
Copilot AI requested a review from mnkiefer December 18, 2025 09:01
@mnkiefer mnkiefer marked this pull request as ready for review December 18, 2025 10:40
@mnkiefer mnkiefer merged commit e023323 into main Dec 18, 2025
164 checks passed
@mnkiefer mnkiefer deleted the copilot/investigate-campaign-run-issue branch December 18, 2025 10:51
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