Skip to content

Separate feature-gated moderation tools from the default guard inventory - #15564

Merged
lpcox merged 4 commits into
mainfrom
copilot/guard-coverage-fix-6-stale-operations
Oct 27, 2026
Merged

lpcox merged 4 commits into
mainfrom
copilot/guard-coverage-fix-6-stale-operations

Conversation

Copilot AI commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

The coverage audit flagged six hide/unhide operations as stale because they are absent from the upstream README catalog. Upstream v2.0.3 still implements them behind issues_granular and pull_requests_granular; removing coverage or marking them deprecated would be incorrect.

  • Classification: Move all six into FEATURE_GATED_WRITE_OPERATIONS, documenting their gates and upstream source.
  • Protection: Preserve write classification and existing DIFC enforcement.
  • Regression coverage: Assert feature-gated membership and exclusion from default upstream buckets; include the new bucket in sortedness and uniqueness checks.

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove or migrate stale upstream operations in guard coverage Separate feature-gated moderation tools from the default guard inventory Oct 26, 2026
Copilot AI requested a review from lpcox October 26, 2026 11:13
@lpcox
lpcox marked this pull request as ready for review October 26, 2026 13:37
Copilot AI max review requested due to automatic review settings October 26, 2026 13:37

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

Runtime enforcement remains unchanged, and the remaining audit-workflow feedback is non-blocking.

1 open issue
What changed in this PR

Separates six active, feature-gated moderation tools from the GitHub guard’s default write inventory while preserving their existing protection.

Changes:

  • Adds a documented FEATURE_GATED_WRITE_OPERATIONS bucket for hide/unhide tools.
  • Includes the new bucket in write classification.
  • Updates regression checks for membership, default-bucket exclusion, sortedness, and uniqueness.
File Description
guards/​github-guard/​rust-guard/​src/​tools.rs Separates feature-gated moderation tools and updates classification and inventory tests.

Review effort: Max

/// These are active tools, not deprecated aliases: issue comments require `issues_granular`,
/// and PR reviews/comments require `pull_requests_granular`. Keep write and DIFC coverage.
/// See https://github.com/github/github-mcp-server/blob/v2.0.3/pkg/github/comment_minimize.go
const FEATURE_GATED_WRITE_OPERATIONS: &[&str] = &[
@lpcox

lpcox commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

Copilot AI commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

Updated the audit workflow and regenerated its lock file to include feature-gated write coverage and source-based stale checks. Verified compilation and CodeQL. Commit: 2ae1357.

@lpcox

lpcox commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

…e-fix-6-stale-operations

# Conflicts:
#	.github/workflows/github-mcp-guard-coverage-checker.lock.yml

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

Copilot AI commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and resolve conflicts

Merged main and resolved the generated workflow lock conflict in merge commit c290b36.

@lpcox
lpcox merged commit 82f89e4 into main Oct 27, 2026
28 checks passed
@lpcox
lpcox deleted the copilot/guard-coverage-fix-6-stale-operations branch October 27, 2026 01:36
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: 6 stale upstream operations from github-mcp-server / GitHub CLI not fully covered

3 participants