ci: Claude review check on every PR, with REVIEW.md #667
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 334 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #667"
general
weight: 0.35
github-actions[bot]
Adds an independent Claude review to every same-repo PR, reported as the
Claude reviewcheck. It fails while any Important finding is open, so agents can land a PR on this check instead of aReviewed-by:line. This is layer 2 of the Osmani review model in dfakkeldy/grok-bots#932. A separate claude-skills PR teachesland_pr.pyto accept the check.How it works
.github/workflows/claude-review.ymlruns on opened, synchronize, reopened and ready_for_review. It skips forks, drafts and promotion heads (nightly,weekly,main)..github/scripts/claude_review.py preparepicks a mode.reviewruns when the PR's own diff changed (by patch-id).skipruns for base merges, re-runs and reopens: no Claude, and the earlier verdict stands.rethinkruns after three rounds.emptyruns when every changed file is on the ignore list. It writes Claude's brief: the PR's stated intent,REVIEW.mdfrom the base branch, the diff, the new diff since the last round, and the earlier findings with their replies.claude-code-action) only reads: Read, Grep, Glob andgit diff/log/show. It answers through--json-schemastructured output.finishposts one COMMENT review with inline findings marked Important, Nit or Pre-existing. The review opens with a count line or "no issues found". It replies to and resolves the earlier Important threads that Claude found fixed or accepted, resolves Nit and Pre-existing threads at once (so they never block), and fails the check while an Important thread is open.REVIEW.mdholds what fails here (the AGENTS.md evidence rules, privacy, secrets, frozen-input pins), what never counts (style, things CI catches), the paths to ignore and the reporting rules.claude_review.py measure --since DATEcounts what happened to each finding (fixed, rejected, intended, changed, no response) for the two-week noise check.Testing
python3 -m unittest discover -s .github/scripts/tests -v: 21 new tests, all 96 pass. They cover the modes, patch-id across a base merge, the interdiff, anchoring, the nit cap, never re-raising a settled finding, settling threads, the rethink gate and failure without posting when Claude doesn't finish.Risk
Stop-list tier (workflow and
.github/scripts). It reads withCLAUDE_CODE_OAUTH_TOKEN, so each review counts against Dan's Claude usage. A failed Claude run fails the check, and re-running the job retries it. Nothing merges on this check until the claude-skills change lands.How to revert
gh pr revert <this PR>. Threads and reviews already posted stay on their PRs.