Add max-tool-denials: 8 to all 64 copilot-sdk workflows#42070
Closed
Copilot wants to merge 2 commits into
Closed
Conversation
Add `max-tool-denials: 8` at the top level of the frontmatter for all 64 .github/workflows/*.md files that use `copilot-sdk: true`. This safety net prevents infinite tool-denial loops from burning AI credits by stopping Copilot SDK inference when tools are repeatedly denied. Upstream-managed workflows (those with `source:` in their frontmatter) are not modified — none of them use copilot-sdk: true. Closes #42061 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add max-tool-denials: 8 to all 64 copilot-sdk workflows
Add max-tool-denials: 8 to all 64 copilot-sdk workflows
Jun 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.
Zero of 64 SDK workflows configured
max-tool-denials, leaving them vulnerable to infinite tool-denial loops that burn AI credits. This field stops Copilot SDK inference when tools are repeatedly denied; default is 5, recommended is 8 for complex workflows.Changes
max-tool-denials: 8as a top-level frontmatter key (not nested underengine:) to every.github/workflows/*.mdwithcopilot-sdk: truemake recompileUpstream-managed workflows (
source:frontmatter) were not modified — none of the 5 upstream files usecopilot-sdk: true.