人工智能时代关于代码审查的3100种观点:从从业者话语中构建因果理论
3100 Opinions on Code Review in an AI World: Building Causal Theory from Practitioner Discourse
AI总结:
研究人工智能对代码审查的影响,通过收集从业者话语构建因果模型,明确审查是控制点,团队决定编码代理对软件影响,转化相关命题,还提供LLM辅助灰色文献理论构建方法。
摘要:
编码代理现在可以撰写整个拉取请求,从业者对于这对代码审查的影响存在严重分歧:它是否会成为瓶颈、人工审查是否仍然必要,以及它是否会悄然侵蚀曾经建立的理解。存储库挖掘研究衡量表面趋势,但很少解释其背后的机制,而且这些趋势本身也不稳定。一项对公共GitHub活动的观察性分析发现,由代理撰写的拉取请求被审查的频率较低、合并速度快几倍且讨论较少,但在不同但同样合理的分析选择下,这些趋势的方向会发生反转。为了恢复这些机制,我们将从业者的话语大规模合成一种解释性理论:我们收集了38709份灰色文献(工程博客和Reddit线程),筛选出与代码审查实质性相关的文献,并使用LLM辅助管道对3100个分层随机样本进行编码,从中构建了一个包含26个结构和67个关系(64个有向,3个有争议)的因果模型。其核心观点是审查是决定编码代理对软件影响的控制点,人工智能并不会确定这种影响的正负:团队通过其人员带来的专业知识以及审查过程的结构来确定。该理论明确了相互竞争的立场,并将“人工智能正在改变代码审查”转化为具有命名结构和调节因素的可证伪命题。作为次要贡献,我们提供了底层的LLM辅助灰色文献理论构建方法,作为软件工程研究的可扩展模板,并提供了公共实现。
英文摘要:
Coding agents now author entire pull requests, and practitioners sharply disagree about what this does to code review: whether it becomes the bottleneck, whether human review is still necessary, and whether it quietly erodes the understanding that it once built. Repository-mining studies measure surface trends but seldom explain the mechanisms beneath them, and the trends themselves prove unstable. A motivating observational analysis of public GITHUB activity finds that agent-authored pull requests are reviewed less often, merged several times faster, and discussed less than human-authored ones, yet the direction of these trends flips under different but equally defensible analysis choices, so the traces establish what is changing without explaining why. To recover the mechanisms, we synthesize practitioner discourse at scale into an explanatory theory: we collect 38,709 grey-literature documents (engineering blogs and Reddit threads), filter to those substantively about code review, and code a stratified random sample of 3,100 with an LLM-assisted pipeline, from which we build a causal model of 26 constructs and 67 relationships (64 directed, 3 contested). Its organizing claim is that review is the control point through which a coding agent's effect on software is decided, and that AI does not fix the sign of that effect: the team sets it, through the expertise its humans bring and how it structures the review process. The theory makes the competing positions explicit and turns "AI is changing code review" into falsifiable propositions with named constructs and moderators. As a secondary contribution, we offer the underlying LLM-assisted, grey-literature theory-building method as a scalable template for software-engineering research, with a public implementation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。