Clarify safe-outputs MCP tool invocation in workflow instructions#12207
Merged
Clarify safe-outputs MCP tool invocation in workflow instructions#12207
Conversation
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
pelikhan
approved these changes
Jan 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI Cleaner workflow failed with no safe outputs generated. Agent misinterpreted "use the
create_pull_requesttool" 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:
create_pull_requestMCP tool (from safe-outputs MCP server)"daily-doc-updater.md:
create_pull_request(different tool)Example change:
Recompiled all 142 workflows with updated instructions.
Original prompt
💡 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.