Repository navigation
ci(review): claude-review proof counts reports, not the claude[bot] login - #162
Conversation
…ogin claude.yml answers @claude mentions under the same claude[bot] identity and the review action posts its error messages under it, so an identity-only count could pass on a reply or a failure — the case ADR-0033 exists to catch. The step now counts general comments and reviews whose body carries the REVIEW-FORMAT heading "## PR Review:", and ADR-0033 says why. Raised by opencode on #160. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThis tightens the Claude review proof from an identity check to the report-contract heading, addressing the stated false-green cases. However, nullable review bodies make the new New findings🟡 Important (should be resolved).github/workflows/claude-code-review.yml:106 — CI correctness (confidence: 88)
|
PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe change replaces an identity-only count with a body test for the Previous issues
New findings🟡 Important (should be resolved)[.github/workflows/claude-code-review.yml:106] — CI correctness (confidence: 86)
💡 Suggestions (nice to have)
Note: commit |
…ke bodies; null-safe Two review findings on #162. Codex: review bodies can be null and `contains` aborts on null under set -e; guarded with `// ""`. opencode: the plugin does not reliably emit the literal "## PR Review:" heading — its sandbox flattened it to a single-line body on #156 ("## Code review") and #159 — so the exact string would turn the check red on posted reviews. The step now accepts an inline comment by claude[bot] (exclusive to this workflow's MCP tool) or a general comment / review whose body reads as a report ("PR Review" or "Code review", case-insensitive). ADR-0033 describes both signals and names the residual. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re the first round on #162, both findings fixed in the follow-up commit:
|
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe revised proof handles nullable bodies and accepts the report forms the plugin has actually emitted, while restoring the inline-comment signal. The two prior correctness findings are resolved; the previously noted residual false-positive path and floating plugin marketplace remain. Previous issues
No additional findings meet the report threshold. |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe revised proof correctly guards nullable bodies, restores the inline-review signal, and recognizes the report forms the plugin has actually emitted. The two remaining earlier findings still apply: a mention-response can satisfy the broad text test without being a review, and the plugin marketplace remains a floating supply-chain input. Previous issues
|
|
Re Codex review #3, the two open items:
|
PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe follow-up fixes the two first-round issues: Previous issues
New findings🟡 Important (should be resolved)[.github/workflows/claude-code-review.yml:114] — CI correctness / proof integrity (confidence: 88)
💡 Suggestions (nice to have)
Notes: commits |
claude.yml also triggers on pull_request_review_comment, and the action answers an @claude mention in a review thread with a threaded reply by claude[bot] before Claude runs, so "inline comments are exclusive to the review workflow" was false. The inline count now takes only top-level review comments (in_reply_to_id null), which the review workflow's MCP tool posts and the mention workflow does not; ADR-0033 states it that way. Raised by opencode on #162. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #2 on #162: correct — |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe latest change excludes threaded Previous issues
No new findings meet the reporting threshold. |
PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🔴 Blocked Executive summaryThe iteration fixed the inline-reply premise: Previous issues
New findings🔴 Blocking (resolve before merge).github/workflows/claude-code-review.yml:117-118 — CI correctness / proof integrity (confidence: 98)
💡 Suggestions (nice to have)
Notes: commits |
The count helper collects the elements the predicate lets through and takes the array length; the body test was passed as a bare boolean expression, so every claude[bot] comment and review counted and the proof was identity-only again. Wrapped in select(), which is what the dry run had used. Raised by opencode on #162. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #6, the blocking finding: correct, and embarrassing — the body test was passed as a bare boolean, so |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe final checkout correctly makes the report-body predicates Previous issues
|
PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟢 Approved Executive summaryThe proof step now keys on the artifacts a review actually leaves (a top-level inline comment, or a comment/review whose body reads as a report) instead of the Previous issues
New findings💡 Suggestions (nice to have)
Notes: commits |
…observed The ADR said the plugin's sandbox flattened the report to a single-line body; what #156 and #159 show is a different heading ("## Code review") and a "PR Review:" line without its "##". And "reviews a PR once" was too strong: the plugin stops when it finds its own general comment, so a first pass that left only inline comments is followed by a second (#159). Workflow comment aligned. Suggestions from opencode on #162. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #7's two suggestions: both applied in the follow-up commit. ADR-0033 now describes the observed headings ( |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe proof now correctly filters report-like bodies, handles null bodies, and excludes threaded mention replies from the inline signal. The ADR corrections accurately describe the observed report forms and the plugin’s general-comment stop rule. No new findings meet the reporting threshold; two prior CI risks remain open. Previous issues
|
PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟢 Approved Executive summaryThe proof step now keys on the artifacts a review actually leaves — a top-level inline comment (excluding threaded mention replies), or a general comment/review whose body reads as a report ( Previous issues
New findings💡 Suggestions (nice to have)
NotesAll six commits report |
The Context still said the plugin reviews a PR once; it stops on its own general comment and does not review every push. The guarantee now says what the step verifies — a review-shaped claude[bot] comment or review is on the PR — instead of promising a review the named residual cannot exclude. Suggestions from opencode on #162. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #10's two suggestions: applied in the follow-up commit — the Context bullet no longer says the plugin reviews a PR once (it stops on its own general comment and does not review every push), and the guarantee reads "a review-shaped |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟡 Minor changes Executive summaryThe current proof correctly filters report-shaped bodies, handles null bodies, and excludes threaded mention replies from the inline signal. The ADR now accurately describes the plugin’s stopping condition and the limited guarantee the check provides. No new findings meet the reporting threshold. Previous issues
|
PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟢 Approved Executive summaryThe proof step replaces an identity-only count with the artifacts a review actually leaves — a top-level inline comment (excluding Previous issues
New findings💡 Suggestions (nice to have)
Notes: all seven PR commits (including the merge |
…orkflow comment matches The title and the Decision's opening still promised an unconditional "review was posted" while the ADR accepts a named residual; both now say "a review-shaped report on the PR", which is what the step verifies. The workflow comment attributed the heading variation to sandbox flattening; it now names what was observed, as the ADR does. Suggestions from opencode on #162. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #11's two suggestions: applied in the follow-up commit — the ADR title and the Decision's opening now say "a review-shaped report on the PR" (the file's slug stays), and the workflow comment names the observed headings instead of "sandbox flattening". No further changes planned on this PR. |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟢 Approved Executive summaryThe proof now counts only top-level inline comments or nullable-safe, report-shaped general comments and reviews, rather than treating the posting identity as sufficient proof. ADR-0033 and the workflow commentary now describe the actual signals and their limits coherently. No new findings meet the reporting threshold. Previous issues
|
PR Review: ci(review): claude-review proof counts reports, not the claude[bot] login (#162)Decision: 🟢 Approved Executive summaryThe proof step now keys on the artifacts a review actually leaves — a top-level inline comment by Previous issues
New findingsNo finding reaches the REVIEW-FORMAT threshold. Specifics checked:
NotesAll eight PR commits report |
Summary
Follow-up to #160: the
claude-reviewproof step counts review signals, not theclaude[bot]login. It passes on a top-level inline comment by that login (only this workflow mounts the inline-comment tool;claude.yml's threaded replies are excluded) or on a general comment / review whose body reads as a report ("PR Review" or "Code review"); review bodies are null-safe. ADR-0033's Claude bullet says why and names the residual. Raised by opencode on #160 after the PR had merged.Motivation
.github/workflows/claude.ymlanswers@claudementions under the sameclaude[bot]identity — as general comments, or as threaded replies in a review thread — and the review action posts its own error messages under it, so an identity-only count could go green on a reply or a failure — the case ADR-0033 exists to catch. The exact REVIEW-FORMAT heading is not usable as the marker: the plugin's sandbox flattened it on real reviews (#156, #159), which would turn the check red on a posted review.Type of change
Checklist
Developer Certificate of Origin
(
git commit -s).cargo fmt --allandcargo clippy --workspace --all-targets -- -D warningslocally. (N/A: no Rust;actionlintpasses.)docs/, orREADME.md) where appropriate.CHANGELOG.mdentry under## [Unreleased]if this change is user-visible. (N/A)cargo deny check. (N/A)Security considerations
Tightens the proof of review; permissions and gates unchanged. Every
${{ }}in therun:enters throughenv:.Notes for reviewers
claude-reviewis red by design (the action refuses to run a workflow file that differs frommain); the step names that case.Proposedonmain, so its text can be amended here; its Status flip comes with ADR-0034's after ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) #161 merges.Automated reviews
PRs authored by
dependabot[bot](and other bots) do not trigger opencode, Claude Code Review or codex.They are covered by CI (
commit-lint,build (ubuntu-latest)andbuild (macos-latest),cargo deny,openssh-interop;cargo auditruns weekly) and manual review when needed.https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa