Code Simplifier: allow required validation commands in sandbox tool permissions#36573
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix effective token budget exhaustion in Code Simplifier
Code Simplifier: allow required validation commands in sandbox tool permissions
Jun 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Code Simplifier agent workflow permissions so the sandboxed shell tool can run the same local validation commands the workflow prompt asks the agent to execute, avoiding repeated tool/permission denials during runs.
Changes:
- Expanded the
tools.bashallowlist in.github/workflows/code-simplifier.mdto permit additionalmake/govalidation commands. - Regenerated
.github/workflows/code-simplifier.lock.ymlso the compiled--allow-tool shell(...)entries match the updated allowlist.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/code-simplifier.md | Adds make/go commands to the bash allowlist for agent-side validation. |
| .github/workflows/code-simplifier.lock.yml | Updates the compiled workflow manifest to include the newly allowed shell commands. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
Comment on lines
+45
to
+49
| - "make test-unit" | ||
| - "make lint" | ||
| - "make build" | ||
| - "make fmt" | ||
| - "go build ./..." |
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.
Code Simplifier failed because its prompt requires local validation commands that were not in the workflow bash allowlist, causing repeated
tool/permissiondenials and wasted token budget. This change aligns declared permissions with the workflow’s intended command surface.Problem alignment
make test-unit,make lint, andmake build, but those commands were blocked by tool permissions in runtime.Workflow source update (
.github/workflows/code-simplifier.md)tools.bashallowlist to include required validation/build commands:make test-unitmake lintmake buildmake fmtgo build ./...Compiled manifest update (
.github/workflows/code-simplifier.lock.yml)--allow-tool 'shell(...)'entries match the updated source workflow and runtime permissions.