Skip to content

Add critical rule: agents must NEVER approve/request-changes on PRs#33885

Closed
kubaflo wants to merge 1 commit intodotnet:mainfrom
kubaflo:fix/pr-finalize-no-approve
Closed

Add critical rule: agents must NEVER approve/request-changes on PRs#33885
kubaflo wants to merge 1 commit intodotnet:mainfrom
kubaflo:fix/pr-finalize-no-approve

Conversation

@kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Feb 3, 2026

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Adds a critical safety rule to the pr-finalize skill: AI agents must NEVER use --approve or --request-changes flags when reviewing PRs.

Why This Matters

During testing of PR #33861, an AI agent mistakenly ran gh pr review --approve, which is inappropriate because:

  • Approval is a human decision - only humans should approve PRs
  • Blocking PRs is a human decision - only humans should request changes
  • AI agents provide analysis, not judgment - the agent role is to post findings as comments

Changes Made

File Changes
.github/skills/pr-finalize/SKILL.md Added prominent warning section at top with allowed/forbidden actions table
.github/copilot-instructions.md Added CRITICAL note to skill description

New Warning Section

## 🚨 CRITICAL: NEVER Approve or Request Changes

| Action | Allowed? | Why |
|--------|----------|-----|
| `gh pr review --approve` |**NEVER** | Approval is a human decision |
| `gh pr review --request-changes` |**NEVER** | Blocking PRs is a human decision |

Issues Fixed

N/A - Safety improvement to agent workflow

Copilot AI review requested due to automatic review settings February 3, 2026 23:41
- Add prominent warning section at top of pr-finalize skill
- Add CRITICAL note to copilot-instructions.md

AI agents should only post comments with findings. Approval and
rejection decisions are reserved for human reviewers.
@kubaflo kubaflo force-pushed the fix/pr-finalize-no-approve branch from 707fb6e to 5381908 Compare February 3, 2026 23:42
@kubaflo kubaflo added the area-ai-agents Copilot CLI agents, agent skills, AI-assisted development label Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an explicit safety guardrail to the pr-finalize skill documentation to ensure AI-driven workflows only provide feedback via comments and never make approval/blocking decisions via GitHub review flags.

Changes:

  • Added a prominent “NEVER approve/request-changes” warning section to the top of the pr-finalize skill documentation.
  • Added a matching critical note in .github/copilot-instructions.md under the pr-finalize skill entry.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/skills/pr-finalize/SKILL.md Introduces a clear, early warning section forbidding gh pr review --approve and --request-changes, and clarifies the agent’s role as comment-only feedback.
.github/copilot-instructions.md Reinforces the same rule at the skills index level so it’s visible even before opening the skill doc.

@kubaflo
Copy link
Contributor Author

kubaflo commented Feb 3, 2026

closed in favour of #33861

@kubaflo kubaflo closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai-agents Copilot CLI agents, agent skills, AI-assisted development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments