Skip to content

Add regression coverage for repository lifecycle writes - #14834

Merged
lpcox merged 2 commits into
mainfrom
copilot/guard-coverage-fix
Oct 13, 2026
Merged

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

Conversation

Copilot AI commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Repository creation, deletion, and forking must be explicitly classified as upstream write operations.

  • Regression coverage: Assert all three tools remain in WRITE_OPERATIONS. Their production entries are already present.
for op in &[
    tool_names::CREATE_REPOSITORY,
    tool_names::DELETE_REPOSITORY,
    tool_names::FORK_REPOSITORY,
] {
    assert!(WRITE_OPERATIONS.binary_search(op).is_ok());
}

Copilot AI changed the title [WIP] Fix guard coverage gap for GitHub CLI write operations Add regression coverage for repository lifecycle writes Oct 13, 2026
Copilot AI requested a review from lpcox October 13, 2026 21:24
@lpcox
lpcox marked this pull request as ready for review October 13, 2026 22:14
Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:14

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

The focused regression test correctly validates all targeted operations against the existing write inventory.

0 open findings

What changed in this PR

Adds regression coverage ensuring repository creation, deletion, and forking remain classified as upstream writes.

Changes:

  • Extends the write-operation test to cover all three repository lifecycle tools.
  • Uses canonical tool-name constants.
File Description
guards/​github-guard/​rust-guard/​src/​tools.rs Expands repository lifecycle write-classification assertions.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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: 3 operations from github-mcp-server / GitHub CLI not fully covered

3 participants