Generalize early wildcard-target validation across safe-outputs MCP tools#39300
Generalize early wildcard-target validation across safe-outputs MCP tools#39300Copilot wants to merge 10 commits into
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot apply to other safeoutputs like add_comment, close_pull_request... define the relation between target * and parameters in the specification/JSON to be more generic - less hardcoding |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot do not require json file, read file parse json (there is problably a helper for this) |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Addressed in 689f1f2. The wildcard-target requirement is now driven from tool-definition JSON instead of handler-specific checks, and I extended it to other safe-outputs including close_pull_request while keeping add_comment and the PR review/update flows covered. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
🧠 Matt Pocock Skills Reviewer failed during the skills-based review. |
|
❌ Design Decision Gate 🏗️ failed during design decision gate check. |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
|
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
|
|
|
📰 BREAKING: Smoke Copilot - AOAI (Entra) is now investigating this pull request. Sources say the story is developing... |
|
❌ Tool validation failed! Agent Container Smoke Test detected missing tools: failed |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
📰 BREAKING: Smoke Copilot - AOAI (apikey) is now investigating this pull request. Sources say the story is developing... |
|
|
|
@copilot fix setup.sh this copy .json file |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
I checked that run/job. The failure is |
Wildcard-target safe-outputs MCP calls were still reaching apply-time for some tools, where they failed with less actionable errors when the required target identifier was omitted. This change moves that validation into the MCP layer and defines the wildcard-target parameter requirements in the tool JSON so agents get immediate, tool-specific feedback before any intent is recorded.
What changed
target: "*"is configured.close_pull_requestcreate_pull_request_review_commentsubmit_pull_request_reviewupdate_pull_requestpush_to_pull_request_branchcreate_check_runupdate_discussionValidation behavior
Review comment buffering
create_pull_request_review_commentcalls do not increment the inline review comment counter.submit_pull_request_reviewcalls.Tests