| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR strengthens defense-in-depth guidance around tool auto-approval by documenting that several built-in auto-approval rules rely on tool names, and that name collisions can silently bypass the intended human-approval boundary (notably for configurable-name tools like the Harness shell tool).
Changes:
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file| File | Description |
|---|---|
| dotnet/src/Microsoft.Agents.AI/Skills/AgentSkillsProvider.cs | Documents approved tool names and name-collision risk for skill auto-approval rules. |
| dotnet/src/Microsoft.Agents.AI/Harness/ToolApproval/ToolApprovalAgentOptions.cs | Adds security warning about name-based auto-approvals in configuration docs. |
| dotnet/src/Microsoft.Agents.AI/Harness/ToolApproval/ToolApprovalAgent.cs | Adds documentation clarifying the “approve everything” rule. |
| dotnet/src/Microsoft.Agents.AI/Harness/FileAccess/FileAccessProvider.cs | Documents approved tool names and collision risk for file-access auto-approval rules. |
| dotnet/src/Microsoft.Agents.AI.Tools.Shell/ShellExecutor.cs | Adds warning about choosing shell tool names that won’t collide with auto-approved names. |
| dotnet/src/Microsoft.Agents.AI.Tools.Shell/LocalShellExecutor.cs | Adds warning about shell tool name collisions bypassing approval prompts. |
| dotnet/src/Microsoft.Agents.AI.Tools.Shell/DockerShellExecutor.cs | Adds warning about shell tool name collisions bypassing approval prompts. |
| dotnet/src/Microsoft.Agents.AI.Harness/HarnessAgentOptions.cs | Adds warning about ShellToolName collisions with auto-approval rules. |
| dotnet/samples/02-agents/Harness/Harness_Step03_DataProcessing/README.md | Adds sample-level guidance to avoid tool-name collisions when using read-only auto-approval. |
| dotnet/samples/02-agents/Harness/BuildYourOwnClaw/Claw_Step02_WorkingWithData/README.md | Adds sample-level warning about name collisions with auto-approved file-access tools. |
| dotnet/samples/02-agents/AgentSkills/Agent_Step07_SkillsAutoApproval/README.md | Adds sample-level warning about collisions across skills/file-access/shell tools. |
Sorry, something went wrong.
There was a problem hiding this comment.
Reviewers: 5 | Confidence: 85%
This PR adds documentation warnings about tool-name collision risks in auto-approval rules. All changes are XML doc comments, README additions, and no code logic is modified. The documented tool names and set memberships are verified to be accurate against the actual source constants and HashSet definitions.
This PR is purely a documentation change adding security warnings about tool-name collisions in auto-approval rules. All documented claims (tool names, matching behavior, and rule semantics) have been verified against the actual source code and are accurate. The warnings correctly describe a real defense-in-depth concern: auto-approval rules match solely by tool name, so a configurable-name tool (like the shell executor) could inadvertently be auto-approved if assigned a colliding name. No code logic is changed, no new vulnerabilities are introduced, and the documentation accurately reflects the existing behavior.
This PR is entirely a documentation change — adding XML doc comments and README security warnings about tool-name collisions in auto-approval rules. No runtime code was modified. The existing test suite already verifies the name-based matching behavior (approving known names, rejecting unknown ones) that these warnings document. No new test coverage is needed for documentation-only changes.
This PR adds only documentation: XML doc comments and README warnings about tool-name collision risks in auto-approval rules. There are no functional code changes — no new logic, no modified behavior, no altered control flow. No failure modes are introduced or preserved by this diff.
The PR’s overall direction is sound, but one of the new central API warnings overstates how auto-approval works. ToolApprovalAgentOptions.AutoApprovalRules accepts arbitrary predicates over FunctionCallContent, so documenting the feature as inherently name-only misdescribes the design and may steer users away from safer argument-aware rules. I did not find a code-path or test-backed reason to request changes beyond tightening that wording.
Automated review by westey-m's agents
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation & Context
Defense in depth
Description & Review Guide
Fully document how auto-approval rules match by name only, and warn users to ensure that there are no name collisions.
Related Issue
#7088
Contribution Checklist