Cover assign_copilot_to_issue_with_intent in GitHub guard write classification and DIFC labeling - #9844
Conversation
assign_copilot_to_issue_with_intent in GitHub guard write classification and DIFC labeling
There was a problem hiding this comment.
Pull request overview
Adds guard coverage for Copilot issue assignment with intent.
Changes:
- Classifies the tool as a write operation.
- Applies repo-scoped secrecy and writer integrity labels.
- Adds regression tests for classification and integrity.
Show a summary per file
| File | Description |
|---|---|
tools.rs |
Adds write classification and test. |
labels/tool_rules.rs |
Adds explicit DIFC labeling. |
labels/mod.rs |
Extends writer-integrity coverage. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Medium
🔒 mcpg Read-Only Stress — gvisorSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS
References: §29961508035
|
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS Notes
|
🔒 mcpg Read-Only Stress — docker-sbxSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS
References: §29961508144
|
The GitHub guard was missing coverage for
assign_copilot_to_issue_with_intent, leaving a mutating Copilot issue-assignment operation outside the write-classification and explicit DIFC-labeling paths. This change aligns that tool with the existing Copilot assignment/review write behavior.Write operation coverage
assign_copilot_to_issue_with_intenttoWRITE_OPERATIONSin the Rust guard so it is treated as a mutating GitHub operation.DIFC labeling
assign_copilot_to_issue_with_intentto the existing repo-scoped write rule arm alongside:assign_copilot_to_issuerequest_copilot_reviewGuard regression coverage
assign_copilot_to_issueExample of the rule alignment: