Commit bab8fe4
Source review prompt from base_sha (not PR head)
The prompt defines HOW the reviewer reviews. Sourcing it from the PR
head allowed a PR to silently change its own review rules. Read it
from base_sha via `git show` instead; the prefetch step has already
fetched that commit's tree.
Scope-limited intentionally: docs/methodology/REGISTRY.md and TODO.md
remain sourced from the PR head. The prompt itself instructs the
reviewer to recognize PR-added Note/Deviation labels in REGISTRY.md
and new entries in TODO.md as mitigations (`.github/codex/prompts/
pr_review.md:4,9,62,97`), so those files must reflect the PR's
edits to behave correctly. Only the review-rules file is moved.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fb1c468 commit bab8fe4
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
| |||
0 commit comments