Repository navigation
fix(pr-review-cli): have files_read count against a listed file scope - #970
Conversation
On claude-code-plugins#12563 the code lane returned files_read 12 against a correct total of 13: the job already leaves whole-file deletions out of its count (--diff-filter=d), and the prompt told the model to leave them out again, so it subtracted the one deletion twice. The full-diff step now writes the files in scope to .claude-lane/files.txt and the scope step writes an incremental review's to .claude-lane/incremental-files.txt; each count is its list's length. The prompt has files_read count the listed files read whole, and each chunk prompt names the number a chunk read whole returns, with no deletion arithmetic left for the model. A list path the head planted as a symlink is replaced, not written through. Every leg, both lanes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #970 (head 5afbcb1)Findings: 0. Scope read. I read all of Checked, no issue:
No |
|
claude-review reviewed No findings. The pull request writes the in-scope file list to I read the diff and the changed workflow at head, and I did not run the tests. The 63/63
Closing issue: the PR states "No related issue", so there were no acceptance criteria to check. No path-scoped rules, settled threads or prior findings applied. |
No related issue: review-lane coverage defect found on melodic-software/claude-code-plugins#12563, routed by the HITL session.
Summary
On claude-code-plugins#12563 the code lane returned
files_read: 12against a correct total of 13. The gate already leaves whole-file deletions out (--diff-filter=d,pr-review-cli.ymlfull-diff step), but the prompt told the model to leave them out again, so it subtracted the deletion twice andclaude-review-statusfailed the head.Fix
.claude-lane/files.txt(teeinto the count), and the incremental scope step writes.claude-lane/incremental-files.txt; each count is its list's length.files_readcounts files of that list read whole; every "do not count deletions" instruction is gone. Chunk prompts name their share of the list.--text). Covers every leg (key, subscription, fallback) and both lanes, which sharepr-review-cli.yml.Verification
node --test .github/scripts/pr-review-cli.test.cjs: 63/63 (list contents, count, symlink case, prompt wording, env wiring).ci --error-on-warningson.github/scripts: clean.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojVgxFqBnrah9DwFLE