跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.31316 · v1

Diffs Are Cheap, Show Me the Trajectory: An Empirical Study of Trajectory-Informed Code Review

首次提交 2026-11-23 13:06
版本更新 2026-11-23 13:06
雷达观测 2026-11-25 10:16
arXiv ↗PDF ↗

摘要

Code review typically starts from the final diff. However, the diff reveals little about how the code was developed. Coding-agent trajectories preserve intermediate decisions, failed attempts, and validation evidence that may assist code review. We systematically investigate whether and how these trajectories can help independent review agents identify problems in the resulting code, beyond inspecting the final diff and repository. We develop a procedure that generates review comments by comparing the initial and merged versions of pull requests, and assess it against withheld human review comments. Using held-out reference implementations as comparison targets for agent-produced code, we construct a dataset linking 339 implementations of 113 DeepSWE tasks with their trajectories and 882 synthetic reference review comments. Across three coding-agent configurations and two review harnesses, we compare diff-only review, full-trajectory access, and four alternative ways of presenting and using trajectories. Full-trajectory access raises mean reference recall from 23.03% to 25.87%, but improves recall in only four of six configurations. All four alternatives improve mean reference recall over diff-only by between 4.05 and 7.32 percentage points. The gains also extend to review comments that explain task-verifier failures. Higher recall can require more tokens and longer review time, while simpler trajectory views remain competitive. These results support development trajectories as an additional source of code-review context and show that their benefits and resource costs depend on how they are presented and used.

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-23 13:06 · 最新观测版本

Diffs Are Cheap, Show Me the Trajectory: An Empirical Study of Trajectory-Informed Code Review

Code review typically starts from the final diff. However, the diff reveals little about how the code was developed. Coding-agent trajectories preserve intermediate decisions, failed attempts, and validation evidence that may assist code review. We systematically investigate whether and how these trajectories can help independent review agents identify problems in the resulting code, beyond inspecting the final diff and repository. We develop a procedure that generates review comments by comparing the initial and merged versions of pull requests, and assess it against withheld human review comments. Using held-out reference implementations as comparison targets for agent-produced code, we construct a dataset linking 339 implementations of 113 DeepSWE tasks with their trajectories and 882 synthetic reference review comments. Across three coding-agent configurations and two review harnesses, we compare diff-only review, full-trajectory access, and four alternative ways of presenting and using trajectories. Full-trajectory access raises mean reference recall from 23.03% to 25.87%, but improves recall in only four of six configurations. All four alternatives improve mean reference recall over diff-only by between 4.05 and 7.32 percentage points. The gains also extend to review comments that explain task-verifier failures. Higher recall can require more tokens and longer review time, while simpler trajectory views remain competitive. These results support development trajectories as an additional source of code-review context and show that their benefits and resource costs depend on how they are presented and used.

查看此版本解读 →查看此版本原文 ↗