diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 647a6776c45..88d74295c2b 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -232,8 +232,15 @@ jobs: - `issue_comments` — array of issue comments on the PR from the GitHub API - `tracking_comment` — body of the existing tracking comment (null on first run); if present, use it as the basis for your `summary` in Phase 3 - - `review_comments` — array of inline review comments from the GitHub API; - you will need the `id` fields in Phase 3 to populate the `resolve` array + - `review_comments` — array of ALL inline review comments on the PR from the + GitHub API. Use these as context, but observe the following rules: + - Only re-check your own comments (user.login == "github-actions[bot]" and + body starts with "Claude: "). Do NOT validate, re-raise, respond to, or + duplicate comments from other authors. + - Items checked off in the tracking comment (`- [x]`) are resolved. Do NOT + re-check or re-raise review comments that correspond to resolved items. + - You will need the `id` fields of your own unresolved comments in Phase 3 + to populate the `resolve` array. The PR branch has been fetched locally as `pr-review`. Use `git log --reverse --format=%H HEAD..pr-review` to list the PR commits, and