Repository navigation
Keep automation confirmation on delete only and tighten tool schemas - #3867
Open
A-Georgiou wants to merge 2 commits into
Open
A-Georgiou wants to merge 2 commits into
A-Georgiou wants to merge 2 commits into
Conversation
Only delete_automation keeps the multi-round-trip confirmation, so create, update and run stay available to clients without form elicitation. Reject unknown automation arguments, return the revisions next_cursor from the Link header, and mark create and update as non-destructive. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: f921ed41-2ec0-4075-a572-7692f9529b7e
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Direct handler calls bypass the SDK-only argument validation, allowing an unknown ownership field to produce a creation request without type and silently default to personal ownership.
1 open issue
What changed in this PR
Aligns the public Copilot automation tools with hosted behavior and improves compatibility with clients that do not support confirmation round trips.
Changes:
- Removes confirmation requirements for create, update, and run; preserves deletion confirmation and HTTP safeguards.
- Tightens all automation input schemas and marks create and update as non-destructive.
- Adds revision pagination cursors and updates tests and tool snapshots.
| File | Description |
|---|---|
pkg/http/server.go |
Narrows the request-state flag to automation deletion. |
pkg/http/server_test.go |
Updates request-state configuration assertions. |
pkg/http/handler.go |
Limits missing-key filtering to deletion tools. |
pkg/http/handler_test.go |
Verifies create, update, and run remain available. |
pkg/github/agent_automations.go |
Updates confirmation, schemas, annotations, and cursor output. |
pkg/github/agent_automations_test.go |
Tests validation, pagination, and deletion-only confirmation. |
pkg/github/__toolsnaps__/update_automation.snap |
Records updated confirmation, validation, and annotations. |
pkg/github/__toolsnaps__/run_automation.snap |
Records removed confirmation and stricter input schema. |
pkg/github/__toolsnaps__/list_available_automation_triggers.snap |
Records rejection of extra arguments. |
pkg/github/__toolsnaps__/list_available_automation_tools.snap |
Records rejection of extra arguments. |
pkg/github/__toolsnaps__/list_automations.snap |
Records rejection of extra arguments. |
pkg/github/__toolsnaps__/list_automation_revisions.snap |
Records rejection of extra arguments. |
pkg/github/__toolsnaps__/get_automations_configuration_for_repository.snap |
Records rejection of extra arguments. |
pkg/github/__toolsnaps__/get_automation.snap |
Records rejection of extra arguments. |
pkg/github/__toolsnaps__/get_automation_revision.snap |
Records rejection of extra arguments. |
pkg/github/__toolsnaps__/delete_automation.snap |
Tightens inputs while retaining confirmation. |
pkg/github/__toolsnaps__/create_automation.snap |
Records updated confirmation, validation, and annotations. |
Review effort: Max (dynamic)
The schema only rejected extra arguments when the SDK validated the call. A shared input normalizer now rejects them on every path, including direct ServerTool.Handler calls. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: f921ed41-2ec0-4075-a572-7692f9529b7e
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.

Summary
Follow-up to #3719. Only
delete_automationkeeps the request-state confirmation. The automation tools also reject unknown arguments,list_automation_revisionsreturnsnext_cursor, and create and update are marked non-destructive.Why
Part of github/sweagentd#16692, which moves the hosted automation tools onto these tools.
create_automation,update_automationandrun_automationrequired protocol2026-07-28with form elicitation. Clients without multi-round-trip support could not list them, and HTTP mode hid them when no request-state key was set. The hosted tools have no confirmation step, anddelete_repositoryis the only other tool behind this gate.ownershipwere silently dropped, so the automation was created with the defaultpersonaltype.Linkheader, so callers could not get past the first page.What changed
delete_automationis unchanged.MRTRStateKey, onlydelete_automationanddelete_repositoryare hidden. Renamed the internal field todisableDeleteAutomation.additionalProperties: false, and a shared input normalizer rejects unknown arguments on every path, including directServerTool.Handlercalls.rel="next"cursor, the response gains anext_cursorfield, matching the hosted output.destructiveHint: falseon create and update.MCP impact
Create, update and run no longer require a multi-round-trip client. All 11 automation tools reject unknown arguments, and revisions output can include
next_cursor.Prompts tested (tool changes only)
No natural-language prompts. I called the tools directly through the stdio server against the live API with a
2025-06-18client, without making any changes:tools/listreturned 10 automation tools, including create, update and run.delete_automationstayed hidden.list_automation_revisionswithperPage: 1returned revisions 3, 2 and 1 across three pages by followingnext_cursor.create_automationwithownershipfailed withinvalid arguments: unexpected argument "ownership"and sent no request.Security / limits
Create, update and run still need the
reposcope, and the API requires repository write access for each of them. Deletion keeps its typed confirmation. This matches the hosted tools and the other write tools in this server.Unknown arguments are rejected before any request is sent. Name sanitization still applies to responses that include
next_cursor.Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lint./script/testDocs
script/generate-docsproduces no changes.docs/streamable-http.mdstill says every automation mutation tool needs request state, so that sentence will be updated in a separate docs PR.Skills
No bundled skill covers the automation tools.