Verification · Code review
Reviewers learned from past reviews
Mines a repository's review discussions for recurring feedback and turns each cluster into a reusable review instruction.
Sub-techniques
-
Discussion mining
V1037.001Collect resolved review threads with the code they were on.
-
Topic clustering
V1037.002Cluster comments into themes with a minimum number of supporting discussions.
-
Instruction distillation
V1037.003Write one instruction per theme with examples from the threads.
-
Memory of facts and rules
V1037.004Extract facts from new discussions and match them to existing rules to update or add them.
How to build it
- Export review threads with their file paths and diffs.
- Embed and cluster comments; keep clusters with enough independent threads.
- Distill each cluster into an instruction and evaluate it on held-out PRs.
Signals in a repository
- The instructions on this site are this technique applied to each source repository.