← Back to Pull requests

[ADD] oca-review-lessons: rule pack from OCA reviews #1

Open
unknown opened this pull request with 177 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 23, 2026 18:35 UTC
Author

Hi Cyril, I built something similar in parallel and saw yours the same day. Yours covers the process well; mine came from mining review comments, so I packed that part as a rule pack for your structure rather than starting a second skill set.

It holds what reviewers repeatedly ask to change and the written guidelines don't say: extending existing tests instead of adding new ones (the most frequent complaint about AI-assisted PRs), patterns flagged as generated, placement and root cause, PR text, migration history. Each quote links to the PR it comes from, attributed to the PR rather than the person, in line with your "learn from the repository" principle.

overrides.md changes three base rules where review practice is more precise. The one I'd most like your view on is oca-pr-review: a summary ready to post is what maintainers objected to in OCA/bank-statement-import#965 ("A disclaimer on the foot doesn't serve"), so the pack asks for findings only and leaves the review to the human. If you agree, it may be better fixed in oca-pr-review itself.

Once you've merged or adapted what you find useful, it would be worth raising the result on OCA/maintainer-tools#668, which asks for exactly this kind of agent instructions. I also have a copier-ready AGENTS.md template for oca-addons-repo-template that could point to these skills; happy to add it here or keep it separate.

Assisted-by: Claude Opus 5.5

Diff: 177 lines (+132 / -45) across 2 files Reviewer: cvinh Review duration: 10200m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 177 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.310
Real PR Conversation Timeline
1 comments
"Review active on #1"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.4% (MEDIUM) · Higher = larger blast radius
35.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 18.9% · Safe to merge
18.9%