Add restricted-tool triage guidance for tool denials - #53025
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add restricted-tool-triage skill for tool-denial handling
Add restricted-tool triage guidance for tool denials
Aug 16, 2026
pelikhan
marked this pull request as ready for review
August 16, 2026 03:40
Contributor
There was a problem hiding this comment.
Pull request overview
Adds agent guidance for safely handling tool denials in restricted gh-aw workflows.
Changes:
- Documents denial-budget awareness and capability-based fallback.
- Adds triage procedures, verification checks, and stop conditions.
Show a summary per file
| File | Description |
|---|---|
.github/skills/restricted-tool-triage/SKILL.md |
Adds restricted-tool denial triage guidance. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Balanced
|
|
||
| ## Stop conditions | ||
|
|
||
| - If you reach 2 denials, stop attempting anything not certain to be in the allowlist — finish with only allowed tools and report the limitation. |
|
|
||
| ## Procedure | ||
|
|
||
| 1. **Read the allowlist first, before acting.** Before issuing any shell/file/MCP command, check the workflow's declared `tools:` block (frontmatter `bash: [...]`, `edit:`, MCP `toolsets:`, etc.) if visible in context, or infer it from the first denial message, which echoes the exact denied command. Do not assume general-purpose shell access is available just because the environment looks like a normal shell. |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
Agents with narrow tool allowlists can exhaust the session denial budget by retrying disallowed commands and may misdiagnose intentional restrictions as infrastructure failures.
Denial handling
Capability triage
Operational guidance
.github/skills/restricted-tool-triage/SKILL.md.