Skip to content

Add end-to-end guard coverage for Copilot automation tools - #16801

Merged
lpcox merged 2 commits into
mainfrom
copilot/guard-coverage-fix
Nov 18, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/guard-coverage-fix

Conversation

@lpcox

@lpcox lpcox commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

The issue identified missing mutation classifications and DIFC rules for 11 Copilot automation tools. Those rules already exist in this checkout; this change adds regression coverage through the combined resource-labeling pipeline.

  • Classification: Assert write, read-write, and read operations for all 11 tools.
  • DIFC labels: Verify public/private repository secrecy, personal-definition protection, and reader/writer integrity.
  • Descriptions: Verify repository and automation identifiers are retained.

No production behavior changes.

@lpcox lpcox changed the title [WIP] Fix guard coverage for 11 GitHub CLI operations Add end-to-end guard coverage for Copilot automation tools Nov 18, 2026
@lpcox
lpcox marked this pull request as ready for review November 18, 2026 18:54
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 18:54
@github-actions

Copy link
Copy Markdown
Contributor

🔒 mcpg Read-Only Stress — default

Surface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Isolation runtime: default AWF (normal container isolation)

Part Surface Op Result Expected Status
A MCP reads (list_issues, list_pull_requests, get_file_contents, list_commits) data returned ALLOWED ✅
B MCP writes (add_issue_comment/star_repository/issue_write/create_branch/create_or_update_file/create_pull_request) all 6 write tools absent from exposed catalog (23 read-only tools only) — no refusal observed because no write-capable backend reached BLOCKED ⚠️ INCONCLUSIVE
C CLI reads via proxied github CLI data returned ALLOWED ✅
D CLI REST writes (reaction/star/issue/comment) gh CLI not authenticated (no GH_TOKEN) — could not attempt BLOCKED ⚠️ INCONCLUSIVE
E CLI GraphQL mutations (addReaction/addStar/createIssue) gh CLI not authenticated — could not attempt BLOCKED ⚠️ INCONCLUSIVE

Overall: INCONCLUSIVE

No write leaked in any part (Overall is not FAIL). Gaps: Part B write tools never appear in the gh-aw tools.github: catalog (backend launched with GITHUB_READ_ONLY=1 per gh-aw framework design), so gateway-level write-refusal could not be independently exercised on this surface. Parts D/E could not run because gh was unauthenticated in this job (no GH_TOKEN). All reads (Parts A and C) succeeded as expected.

🔒 mcpg read-only stress (default AWF runtime) by Read-Only Stress: default runtime

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for this test-only expansion of regression coverage across all 11 Copilot automation tools.

No open issues 🎉

What changed in this PR

Adds regression coverage for all 11 Copilot automation tools through the GitHub guard’s combined resource-labeling pipeline. The classification and labeling rules already exist; this PR changes tests only.

Changes:

  • Checks read, write, and read-write classifications.
  • Verifies public/private repository secrecy, personal-definition protection, and reader/writer integrity.
  • Confirms descriptions retain repository and automation identifiers.
File Description
guards/​github-guard/​rust-guard/​src/​lib.rs Adds table-driven pipeline coverage for all 11 automation tools across public and private repositories.

Review effort: Balanced (adaptive)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[guard-coverage] Guard coverage gap: 11 operations from github-mcp-server / GitHub CLI not fully covered

3 participants