信任校准的代码审查:针对LLM生成的多文件变更的审查工作流程的参与式设计研究
Trust-Calibrated Code Review: A Participatory Design Study of Review Workflows for LLM-Generated Multi-File Changes
AI总结:
本研究通过参与式设计,发现审查LLM生成的多文件变更的核心挑战是信任校准,提出了三级审查工作流程和七项设计构造,并通过验证调查表明其能降低审查工作量。
摘要:
背景:开发者越来越多地审查基于LLM的智能体生成的多文件代码变更,但目前尚无经过验证的端到端工作流程或IDE工具设计。目的:我们研究(RQ1)开发者在审查LLM生成的多文件变更时面临的挑战,以及(RQ2)开发者如何设想针对此任务的有效工作流程。方法:与JetBrains合作,我们采用双钻石设计流程(包括发现、定义、开发和交付阶段)进行了一项参与式设计研究。行业从业者参与了发现阶段(N=17);其中七人返回参与了开发阶段。定义阶段由作者主导进行综合。交付阶段产出了一个概念设计和一个高保真半交互式原型,并通过后续调查(N=43名从业者)进行了评估。结果:参与者将信任校准确定为核心挑战。研究得出了一个三级审查工作流程(概览、文件分析、代码片段审查),并由七项设计构造(块、每行风险、每文件风险、评判者、走查、缩放、安全笼)支持。在验证调查中,所有三个工作流程级别的得分均高于中性中点(五点量表均值3.50-3.91)。63%的受访者预期相对于当前工具,整体审查工作量会减少,52%预期信任评估工作量会减少。这些发现表明,设计构造为未来工具开发指明了积极方向。结论:审查LLM生成的多文件变更是一个信任校准问题,而非差异比较问题。我们报告的三级工作流程和七项构造为工具设计者提供了一个概念框架,用于构建AI就绪的代码审查工具,该工具能够在开发者分配注意力的粒度上呈现风险和置信度信号。
英文摘要:
Background: Developers increasingly review multi-file code changes generated by LLM-based agents, yet no validated end-to-end workflow or IDE tooling design exists for this scenario. Aims: We investigate (RQ1) the challenges developers face when reviewing LLM-generated multi-file changes and (RQ2) how developers envision effective workflows for this task. Method: In collaboration with JetBrains, we conducted a participatory design study structured using the double-diamond design process with Discover, Define, Develop, and Deliver phases. Industry practitioners participated in the Discover phase (N=17); seven of these returned for the Develop phase. The Define phase was an author-led synthesis. The Deliver phase produced a conceptual design and a high-fidelity semi-interactive prototype evaluated through a follow-up survey with N=43 practitioners. Results: Participants identified trust-calibration as the central challenge. The study yielded a three-level review workflow (overview, file-analysis, code snippet review) supported by seven design constructs (chunk, risk-per-line, risk-per-file, judge, walk-through, zooming in/out, and security cage). In the validation survey, all three workflow levels scored above the neutral midpoint (means 3.50--3.91 on a five-point scale). Of the respondents, 63% expected reduced overall review effort, and 52% reduced trust-assessment effort, relative to their current tools. These findings suggest that the design constructs indicate a positive direction for future tool development. Conclusions: Reviewing LLM-generated multi-file changes is a trust-calibration problem rather than a diffing problem. The three-level workflow and the seven constructs we report give tool designers a conceptual framework for building AI-ready code review tools that surface risk and confidence signals at the granularity at which developers allocate attention.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。