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 11 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. |
|
@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 |
|
@copilot review all comments and address unresolved review feedback on submitPullRequestReviewHandler counter reset.
|
|
pr-sous-chef: add the regression test, move the reset after a successful submit, then rerun checks.
|
🤖 PR Triage Report
Score Breakdown
|
|
Please refresh the branch and summarize any remaining blockers.
|
|
@copilot review all comments and address the unresolved review thread, then summarize the remaining blocker.
|
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
pr-sous-chef: refreshed branch for run https://github.com/github/gh-aw/actions/runs/27604242308