Skip to content

fix(ai-pr-review): stop treating agent rule files as protected paths - #141

Merged
jmarek41 merged 2 commits into
mainfrom
fix/review-protected-paths
Oct 28, 2026
Merged

jmarek41 merged 2 commits into
mainfrom
fix/review-protected-paths

Conversation

@jmarek41

@jmarek41 jmarek41 commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Why

AGENTS.md and CLAUDE.md are edited often (new conventions, layout notes), and every such PR became high risk and waited for a human, even when the rest of the change was routine. They steer how agents write code, not what ships.

Changes

The default protected_paths no longer lists AGENTS.md, CLAUDE.md, CLAUDE.local.md or all of .claude/. It keeps .claude/settings*.json and .claude/hooks/, because hooks and permissions run commands on every machine that opens the project.

Unchanged: the review still replaces the PR's rule files with the base branch copies, so a PR cannot change the rules it is judged by. A caller that wants the old behaviour passes its own protected_paths.

The usage comment also drops edited from the recommended pull_request types: the review already skipped description edits, but that run of skipped jobs replaced the successful review in the PR checks list. Retargeting still works for callers that subscribe to it, and /review covers the rest.

Evidence

actionlint is clean. The new pattern matches .claude/settings.json, .claude/settings.local.json, .claude/hooks/* and .github/*, and does not match AGENTS.md or .claude/skills/*.

jmarek41 and others added 2 commits October 28, 2026 09:05
AGENTS.md and CLAUDE.md change often and steer how agents write code, not
what ships, so a change to them no longer needs a human by default. Agent
hooks and permissions stay protected: they run commands on every machine
that opens the project. The review still reads rule files from the base
branch, so a PR cannot change the rules it is judged by.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A description edit then adds no run of skipped jobs, which replaced the
successful review in the PR's checks list. The trigger still accepts a
retarget from callers that subscribe to it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jmarek41
jmarek41 merged commit 7f9aff9 into main Oct 28, 2026
2 checks passed
@jmarek41
jmarek41 deleted the fix/review-protected-paths branch October 28, 2026 08:13
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.

1 participant