Commit 6da20ba
authored
Upgrade Claude Code review to Opus 4.7 with scoped tool permissions (#733)
## Summary
- Upgrades the Claude Code review model from Opus 4.6 to Opus 4.7
- Scopes `allowedTools` patterns to the current PR number instead of
wildcards. This prevents Claude from accidentally posting review
comments on other PRs (e.g. previously merged PRs).
- Adds an explicit prompt guardrail telling Claude to only interact with
the current PR
## Context
On aws-otel-js-instrumentation, a review run for PR #406 accidentally
posted 10 review comments on the already-merged PR #391. The cause was
the wildcard pattern in `allowedTools` (`repos/*/pulls/*`) allowing
Claude to post to any PR.
## Test plan
- [ ] Verify Claude still posts review comments on new PRs
- [ ] Verify Claude cannot post to other PRs (by checking only current
PR gets comments)1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
0 commit comments