Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 28, 2026

CI Cleaner workflow failed with no safe outputs generated. Agent misinterpreted "use the create_pull_request tool" as file I/O, writing JSON to /tmp/gh-aw/safeoutputs/ instead of invoking the MCP tool at /opt/gh-aw/safeoutputs/outputs.jsonl.

Changes

hourly-ci-cleaner.md:

  • Changed ambiguous "use the tool" → "Call the create_pull_request MCP tool (from safe-outputs MCP server)"
  • Added explicit warning against manual JSON file writes
  • Fixed parameter casing: Title/Body → title/body (matches MCP schema)
  • Consolidated redundant execution guideline bullets

daily-doc-updater.md:

  • Applied same clarifications for consistency
  • Added warning against using GitHub MCP server's create_pull_request (different tool)

Example change:

-2. Use the `create_pull_request` tool with:
-   - **Title**: Clear description
-   - **Body**: Detailed description
+2. **Call the `create_pull_request` MCP tool** (from safe-outputs MCP server) with:
+   - **title**: Clear description
+   - **body**: Detailed description
+
+**Important**: Do NOT write JSON to files manually. Use the MCP tool by calling it directly.

Recompiled all 142 workflows with updated instructions.

Original prompt

This section details on the original issue you should resolve

<issue_title>[agentics] CI Cleaner failed</issue_title>
<issue_description>### Workflow Failure

Workflow: CI Cleaner
Branch: main
Run URL: https://github.com/githubnext/gh-aw/actions/runs/21427131821
Pull Request: #12196

⚠️ No Safe Outputs Generated: The agent job succeeded but did not produce any safe outputs. This typically indicates:

  • The safe output server failed to run
  • The prompt failed to generate any meaningful result
  • The agent should have called noop to explicitly indicate no action was taken

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 CI Cleaner

  • expires on Feb 4, 2026, 6:40 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.

Copilot AI and others added 2 commits January 28, 2026 07:08
The CI Cleaner workflow failed because the agent didn't produce safe outputs in the expected location. The agent wrote JSON to `/tmp/gh-aw/safeoutputs/` instead of calling the `create_pull_request` MCP tool.

Root cause: Instructions said "use the create_pull_request tool" but didn't clarify it's an MCP tool to be invoked, leading the agent to manually write JSON files.

Changes:
- Updated hourly-ci-cleaner.md to explicitly state "Call the `create_pull_request` MCP tool"
- Added warning: "Do NOT write JSON to files manually"
- Clarified tool is available through safe-outputs MCP server
- Updated daily-doc-updater.md for consistency
- Recompiled all workflow lock files

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Consolidated two redundant bullet points in execution guidelines:
- "Early termination" and "Create a pull request" bullets were saying the same thing
- Combined into single clear bullet: "Early termination & PR creation"

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug CI Cleaner workflow failure Clarify safe-outputs MCP tool invocation in workflow instructions Jan 28, 2026
Copilot AI requested a review from pelikhan January 28, 2026 07:25
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] CI Cleaner failed

2 participants