SEHCJul 13, 2025

Code Review as Decision-Making -- Building a Cognitive Model from the Questions Asked During Code Review

arXiv:2507.09637h-index: 13
Originality Synthesis-oriented
AI Analysis

For software engineering researchers and tool developers, this work provides a cognitive model that could inform better tool support for code review, though it is an incremental qualitative study.

The authors conducted an ethnographic think-aloud study with 10 participants and 34 code reviews to build a cognitive model of code review, revealing that code review follows a decision-making process similar to recognition-primed decision-making, with two phases: orientation and analytical. The resulting CRDM model describes how developers make decisions during code review.

Code review is a well-established and valued practice in the software engineering community contributing to both code quality and interpersonal benefits. However, there are challenges in both tools and processes that give rise to misalignments and frustrations. Recent research seeks to address this by automating code review entirely, but we believe that this risks losing the majority of the interpersonal benefits such as knowledge transfer and shared ownership. We believe that by better understanding the cognitive processes involved in code review, it would be possible to improve tool support, with out without AI, and make code review both more efficient, more enjoyable, while increasing or maintaining all of its benefits. In this paper, we conduct an ethnographic think-aloud study involving 10 participants and 34 code reviews. We build a cognitive model of code review bottom up through thematic, statistical, temporal, and sequential analysis of the transcribed material. Through the data, the similarities between the cognitive process in code review and decision-making processes, especially recognition-primed decision-making, become apparent. The result is the Code Review as Decision-Making (CRDM) model that shows how the developers move through two phases during the code review; first an orientation phase to establish context and rationale and then an analytical phase to understand, assess, and plan the rest of the review. Throughout the process several decisions must be taken, on writing comments, finding more information, voting, running the code locally, verifying continuous integration results, etc. Analysis software and process-coded data publicly available at: https://doi.org/10.5281/zenodo.15758266

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes