Skip to content

[WIP] Debug workflow failure in agent performance analyzer#14057

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/debug-agent-performance-analyzer-again
Closed

[WIP] Debug workflow failure in agent performance analyzer#14057
Copilot wants to merge 1 commit intomainfrom
copilot/debug-agent-performance-analyzer-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

Investigation: Agent Performance Analyzer - Meta-Orchestrator Failure

Root Cause

The workflow failed because the agentic-workflows MCP server requires GH_TOKEN environment variable to be passed to the MCP gateway Docker container for gh extension operations. Currently, only GITHUB_TOKEN is configured in the container environment.

Fix Plan

  • Identify root cause: Missing GH_TOKEN in agentic-workflows MCP config
  • Add GH_TOKEN to envVars array in renderAgenticWorkflowsMCPConfigWithOptions
  • Update tests to verify GH_TOKEN is included in config
  • Run targeted tests to validate fix
  • Rebuild binary and recompile workflows
  • Run make agent-finish for full validation

Technical Details

File: pkg/workflow/mcp_config_builtin.go
Function: renderAgenticWorkflowsMCPConfigWithOptions (line 161)
Issue: The envVars array only includes DEBUG and GITHUB_TOKEN, but not GH_TOKEN

The Codex engine version (line 463 in mcp_renderer.go) correctly includes both tokens:

env_vars = ["DEBUG", "GH_TOKEN", "GITHUB_TOKEN"]

But the JSON format (used by Copilot) only includes:

{"DEBUG", "*", true},
{"GITHUB_TOKEN", "GITHUB_TOKEN", false},
// Missing: GH_TOKEN

Error from Logs

MCPG Error: failed to load config: Configuration error at configuration: undefined environment variable referenced: GH_TOKEN
Original prompt

This section details on the original issue you should resolve

<issue_title>[agentics] Agent Performance Analyzer - Meta-Orchestrator failed</issue_title>
<issue_description>### Workflow Failure

Workflow: Agent Performance Analyzer - Meta-Orchestrator
Branch: main
Run URL: https://github.com/github/gh-aw/actions/runs/21735686374

Action Required

Debug this workflow failure using the agentic-workflows agent:

/agent agentic-workflows

When prompted, instruct the agent to debug this workflow failure.

Generated from Agent Performance Analyzer - Meta-Orchestrator

  • expires on Feb 13, 2026, 1:51 AM UTC

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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.

[agentics] Agent Performance Analyzer - Meta-Orchestrator failed

2 participants