feat(pst:code-review): v2 tournament analysis -- 3 parallel lens agents, Opus dedup judge#72
Merged
Merged
Conversation
…tegies, Opus dedup judge Replace single-path analysis with 3 parallel Sonnet agents (Security-first, Correctness-first, Blast-radius-first). Foreground Opus judge deduplicates and merges findings: keeps those appearing in 2+ strategies or severity:critical from any. Diff-size gate selects N (small=1/skip, medium+large=3). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… analysis
- Analysis agents restricted to Read/Grep/Glob in prompt (no mutations)
- Severity taxonomy mapping table: critical/high/medium/low -> critical/warning/nit/drop
- Line field format defined as start-end; dedup overlap rule made precise
- Opus judge result block schema defined with title, confidence, strategies fields
- N=1 path: spawn single Strategy B agent, skip judge, pass directly to pre-filter
- grep excludes +++ and --- diff headers from LINES_CHANGED count
- Zero-findings: skip verification, proceed directly to Reporting
- Re-review diff: git diff {prior_sha}..HEAD (not gh pr diff which returns full diff)
- Inline comment: note + fallback to body comment when line not in diff
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Key design decisions
"<start>-<end>", dedup overlap rule precise (max(startA,startB) <= min(endA,endB)+5)---judge-result---with title (8-word imperative), confidence (1/3/5), strategies array+++/---header lines from LINES_CHANGED countgit diff $PRIOR_REVIEW_SHA..HEADinstead ofgh pr diff(which returns full diff)Adversarial review (2 rounds, 9 findings resolved)
🤖 Generated with Claude Code
https://claude.ai/code/session_019BCr5Qxi8jXnG2Rr7zdkw1