Skip to content

app: post agent findings to the PR — adopt as review comments#36

Merged
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/findings-to-comments
Jul 6, 2026
Merged

app: post agent findings to the PR — adopt as review comments#36
alejandro-nexcade merged 1 commit into
mainfrom
alejandro/findings-to-comments

Conversation

@alejandro-nexcade

Copy link
Copy Markdown
Collaborator

What

On a review-request PR you can now get the agent's findings onto the author's PR: each finding row (Diff-tab findings panel and the Briefing) gains Add to review, which drafts a local comment at the finding's exact line/side with the severity, title, rationale, and a provenance footer (_Advisory finding from the reviewer's pre-review agent, adopted by the reviewer._).

Posting stays behind the existing guarded flows — Submit review (inline comments via the reviews API, per-line validated) or Mirror — so agent output reaches GitHub only after two deliberate human actions (§9: adoption click + confirmed submit). No new GitHub surface; adopted comments are ordinary local comments (editable, dismissable, ephemeral per §0.4), and on authored PRs the same action feeds the rework dispatch instead.

Idempotent by anchor+title matching: adopted findings show "Added ✓" and can't double-post. The affordance appears only while the gate is InReview (same rule as commenting) and only for line-anchored findings.

Verified

tsc clean · vitest 398 (+7: comment-body format, adoption matching incl. side/line/plan-anchor negatives, render tests for the button/Added/hidden states) · vite build ok. Frontend-only — reuses add_comment + submit_review unchanged.

🤖 Generated with Claude Code

An 'Add to review' action on finding rows (FindingsPanel + Briefing)
converts a finding into a local comment at its anchor, with the agent's
severity/title/rationale and an honest provenance footer. Posting to
the human's PR still rides the existing guarded Mirror / Submit-review
flows — two deliberate clicks between agent output and GitHub (§9).
Idempotent: an adopted finding shows Added and cannot double-post.
@alejandro-nexcade alejandro-nexcade merged commit b11b404 into main Jul 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants