Repository navigation
Prevent documentation workflow tool retry loops - #69438
Merged
DeagleGross merged 2 commits intoSep 22, 2026
Merged
DeagleGross merged 2 commits into
DeagleGross merged 2 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Strengthen the shell-permission regression test by comparing the complete parsed allowlist.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Updates the documentation workflow to prevent denied-tool retry loops and avoid creating nonexistent future release-note structures.
Changes:
- Clarifies optional documentation surfaces and failure handling.
- Adds workflow policy regression tests.
- Regenerates workflow lock metadata while preserving permissions and turn limits.
| File | Summary |
|---|---|
.github/workflows/pr-docs-check/test_workflow_policy.py |
Adds policy and permission assertions. |
.github/workflows/pr-docs-check.md |
Updates prompt policy and failure handling. |
.github/workflows/pr-docs-check.lock.yml |
Regenerated workflow metadata. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <[email protected]>
Youssef1313
approved these changes
Sep 22, 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.

Summary
includeshierarchy when the docs repository does not already have that structuredraft_failedfor required operations that cannot be completed with permitted toolsmkdiras the only new bash command so genuinely required documentation/article directories can be created while the semantic guardrails prevent unnecessary release-note hierarchy creationmax-turns: 100and keep wildcard shell access plus other broad or file-execution commands unavailableRoot cause
PR Documentation Check run 35718934996 successfully completed trusted setup, authentication, source analysis, and the canonical conceptual documentation edit. It then repeatedly tried excluded shell commands while attempting to create a nonexistent ASP.NET Core 12 release-note hierarchy. The agent exhausted the invocation cap with
429 Maximum LLM invocations exceeded (100 / 100)before emittingnotify_source_pr, so downstream output validation failed.This change fixes the control loop in the prompt and adds narrowly scoped defense-in-depth for legitimate directory creation. It adds only
mkdir; it does not add wildcard bash, network commands, file-execution commands, or a higher turn cap.Validation
python -m unittest discover -s .github/workflows/pr-docs-check -p "test_*.py"gh aw compile pr-docs-check --strict --validate --approvemkdiris allowed whileinstall,touch,cp,python3,curl,base64,rm, and wildcard agent shell grants remain absentgit diff --check