- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 2
- Significance
- 3
Read review
Summary
This paper studies how coding agents can produce patches that are not only functionally correct but also aligned with the evolving conventions of a specific repository. The authors propose a next-commit prediction paradigm, where historical commits before a temporal cutoff are used for repository-specific onboarding and future commits are held out for evaluation. The proposed framework lets an agent first attempt historical commits without seeing the ground-truth patch, then compares the generated patch with the oracle diff and distills the observed gaps into a reusable skill document. At test time, the agent conditions on this accumulated repository memory to solve future tasks.
The paper introduces a Learning to Commit benchmark over several open-source repositories and evaluates generated patches using localization, patch-size deviation, and pairwise LLM-judge metrics for organicity. It further reports experiments on SWE-bench Pro under a temporal-split protocol, showing that the skill-conditioned agent improves both organicity-oriented metrics and pass@1 over a no-memory baseline.
Strengths and weaknesses
Strengths
- Important problem formulation. The paper identifies a real gap in current coding-agent evaluation: passing tests is not sufficient for real-world adoption, since maintainers also care about repository conventions, architectural fit, internal API reuse, and reviewability. Framing this as repository-specific onboarding is timely and relevant.
- Interesting learning signal. The blind-attempt-versus-oracle-diff setup is a natural way to obtain dense feedback from commit history. The comparison against unsupervised self-reflection is particularly interesting: the result that self-reflection without an oracle can be harmful is a useful observation for agent-memory research.
- Temporal evaluation protocol. The paper’s per-repository temporal split is a sensible design choice and is more realistic than randomly sampling repository-level tasks. It also makes the setup closer to how developers accumulate repository experience over time.
- Clear empirical trends. The paper shows consistent improvements across multiple models and memory baselines. The observation that stronger models benefit more from repository memory is also insightful, suggesting that experience reuse itself requires substantial agent capability.
Weaknesses
- The evaluation metrics do not fully match the stated goal of mergeability or organicity. The paper motivates the problem in terms of real-world maintainability and mergeability, but the main metrics largely measure similarity to the historical oracle patch. File IoU measures whether the agent touched the same files as the oracle, and line-deviation measures whether the patch size resembles the oracle. These are useful diagnostic metrics for localization and patch similarity, but they are not direct measurements of whether a maintainer would merge the patch.
- Oracle diffs are not necessarily unique or optimal solutions. A historical commit is one accepted solution, not necessarily the only valid or best solution. A patch may be more maintainable, better tested, or architecturally cleaner than the oracle while touching different files or adding more lines. Conversely, a patch close to the oracle may inherit shortcuts, missing tests, or technical debt. The current evaluation may therefore penalize valid alternative solutions and reward oracle mimicry.
- File IoU is especially vulnerable to contamination concerns. Since the benchmark uses popular open-source repositories, it is plausible that some future commits or related metadata appeared in the pretraining data of the evaluated models. A pretrained model may not memorize the full patch, but it may remember which files were changed for a given issue or commit. In such cases, higher File IoU could reflect partial memorization rather than repository-specific skill acquisition.
- The LLM judge only partially covers real code-review criteria. The four judge dimensions—scope alignment, logic similarity, redundancy/hallucination, and code style—capture some aspects of organicity. However, they do not explicitly evaluate maintainability, test adequacy, architectural soundness, API design, regression risk, performance or safety concerns, long-term technical debt, or whether an alternative non-oracle solution would be acceptable. Thus, the judge remains closer to an oracle-relative organicity assessment than a maintainer-style mergeability assessment.
- Human validation of the LLM judge is limited. The paper reports agreement between human raters and the LLM judge, which is a good step. However, the validation appears to be on 100 pairs from an internal reference repository rather than the main benchmark repositories. The paper also does not clearly report human inter-annotator agreement. This makes it hard to assess whether the LLM judge reliably tracks expert maintainer preferences across repositories.
- Benchmark scale and construction raise concerns. The main Learning to Commit benchmark contains only a small number of test commits per repository. In addition, several stages rely on LLM-based filtering, categorization, and synthetic issue generation. While practical, this introduces possible bias and makes it harder to reason about leakage and task realism.
Questions
- How do the authors justify File IoU and line-deviation as organicity metrics rather than oracle-similarity metrics? These metrics seem useful for diagnosing localization and patch-size similarity, but they do not directly measure maintainability or mergeability. My evaluation would improve if the authors clearly reframed these as auxiliary diagnostics, or provided evidence that they correlate with maintainer judgments.
- Can the authors evaluate valid alternative solutions? A useful analysis would be to sample low-File-IoU or high-line-deviation patches and ask expert reviewers whether they are nevertheless acceptable. This would estimate the false-negative rate of the current metrics and clarify whether the benchmark penalizes non-oracle but mergeable patches.
- Can the authors strengthen the LLM-judge validation? The current human-alignment experiment is helpful, but it would be more convincing to validate the judge on samples from the main benchmark repositories, report human inter-annotator agreement, and include a direct “would you merge this patch?” or “approve / request changes / reject” label.
- How is pretraining contamination handled? The temporal split prevents leakage during the paper’s onboarding procedure, but it does not address whether the base models have seen future commits from popular open-source repositories. A post-cutoff repository subset, private repository subset, or contamination analysis would help separate repository-specific learning from memorization.
- Can the evaluation include more code-review-oriented criteria? I encourage the authors to add or discuss metrics for test adequacy, maintainability, architectural fit, API design, regression risk, and technical debt. These are closer to real merge decisions than file overlap or patch-size similarity.
Limitations
yes
Paper formatting concerns
no
We thank the reviewer for recognizing our formulation as "timely and relevant", and we have adopted every concrete suggestion: the metric reframing, the false-negative-rate analysis, the strengthened judge validation, the contamination audit, and the extended review criteria detailed below.
Response to Weaknesses:
On Reframing the Deterministic Metrics as Auxiliary Diagnostics (Weakness 1 & Question 1): We agree completely with the point that these metrics measure oracle similarity rather than mergeability itself, and we will adopt exactly the reframing proposed in Question 1 in the revised manuscript: File IoU and line deviation will be presented as auxiliary diagnostics of localisation fidelity and change economy. They diagnose where patches diverge, while primary evidence rests on the pairwise judge and human validation. To provide the requested correlation, we conducted a human mergeability study with direct approve / request changes / reject verdicts (details in Weakness 5). The auxiliary metrics correlate moderately with the human merge labels: File IoU at Spearman ρ = 0.40 and line deviation at −0.28, both patch level. Independently, our new per-task analysis on SWE-bench Pro finds File IoU only weakly correlated with test-based resolution (r = 0.12), confirming it is no substitute for a correctness measure; the revision will position it strictly as a localisation diagnostic.
On Valid Alternatives and Oracle Mimicry (Weakness 2 & Question 2): We understand the concern that oracle diffs are not unique and that our evaluation might penalize valid alternatives; several safeguards address this. (a) First, the pairwise judge is explicitly instructed to tolerate alternatives. Quoting Appendix I.11 verbatim: "the Oracle diff is only a reference standard, not the only correct implementation. A and B may use different approaches, but you need to judge who is overall closer to the 'correct and native' implementation that the repo expects." The anchor is the repository's expectation rather than the oracle's literal diff. (b) Second, any remaining strictness affects both conditions equally: every conclusion is a paired comparison of the same model on the same task, with versus without the skill, so a penalty on legitimate diversity cannot create the observed deltas. (c) Finally, following the concrete suggestion, expert annotators judged every patch for whether it is an acceptable alternative despite diverging from the oracle. Among low-localisation patches (File IoU < 0.5), 20% were judged acceptable alternatives, twice the rate over all patches (Table NMr1-R4 in our reply to Reviewer NMr1). This estimates how often the auxiliary metrics penalise mergeable patches, supporting this reframing.
On Pretraining Contamination (Weakness 3 & Question 4): We recognize that contamination is a valid concern for File IoU and examined it from several angles. (a) First, the paired-delta argument: every reported gain is a within-model difference, so whatever the model memorised is equally available to the vanilla and the skill-conditioned agent. If File IoU gains reflected memorisation, the vanilla condition would enjoy them too and the delta would vanish. Instead we observe +5–7 pp deltas across three models, and Figure 2(b) shows held-out File IoU rising steadily over onboarding iterations, from 60% to 65% on vllm and 56% to 67% on milvus, while the base model memory stays frozen. (b) Second, a new temporal audit: 45 of 50 test commits date from 2026-02, the release month of Claude Opus 4.6, or later, past every evaluated model's training cutoff. For four repositories this holds for all 40/40 test commits, and the 5 exceptions lie in DeepSpeed (2025-11 to 2026-01). Excluding them, the File IoU delta remains at +5.0pp, in line with Table 2's five-repo aggregate of +5pp. (c) Third, a no-snapshot memorisation probe: models receive only the synthetic issue text, which by construction strictly omits file paths and function names (§3.4, stage v), and must guess changed files without repository access. Memory alone yields File IoU of 0.15 for Claude Opus 4.6 and 0.16 for Claude Sonnet 4.6, roughly a quarter of the 0.53–0.67 range that agents with repository access achieve in Table 2, and the probe scores are nearly identical across the two models despite their differing skill-conditioned gains. (d) These address the reviewer's requests directly: the temporal audit provides the post-cutoff subset, the internal LLM RL training repository of Appendix D, used for the human study in point 5 below, provides the private repository subset, and the memorisation probe constitutes the contamination analysis.
On Broader Code-Review Criteria (Weakness 4 & Question 5): We agree that a convincing evaluation should cover broader code-review criteria. (a) To incorporate this, we re-ran the pairwise judge on existing patch pairs with four additional dimensions, alternating the two patches' presentation order across rounds to cancel position bias, with undecided rounds recorded as ties (Table mGuB-R1):
As the table shows, the skill-conditioned agent leads on all four new dimensions. Its outright win rates peak in maintainability and regression risk, architectural fit also favours the skill agent, and test adequacy ties most often. (b) The remaining criteria, including API design, performance and safety, and long-term technical debt, are captured by the human mergeability study, where annotators' merge decisions weigh them all at once, favouring the skill-conditioned agent at 48% versus 32% approval (Track B; Table 4u9n-R2).
On Strengthening the Judge Validation (Weakness 5 & Question 3): We understand the concern that the original validation was limited to an internal repository without inter-annotator agreement, and designed the new human study to deliver each element requested here. Track A involves the internal LLM RL repository, upgrading the label from pairwise preference to the direct merge verdict: real maintainers issued approve / request changes / reject on agent-generated patches for 30 tasks drawn from historical GitLab merge requests. Track B extends the validation to the main benchmark repositories, with three annotators possessing maintainer-level industry experience and the direct "would you merge this patch?" label. The full verdict tables for both tracks are Tables 4u9n-R1/R2 and NMr1-R1/R2 in our responses to Reviewers 4u9n and NMr1; on both tracks the skill-conditioned agent is approved substantially more often. Specific to this question, inter-annotator agreement on Track B is moderate (Fleiss' κ = 0.52), and the LLM judge's task-level verdict agrees with the human merge preference on 21/30 (70%) Track-B tasks (a task agrees when the judge's pairwise winner matches the patch with the better human verdict).
On Benchmark Scale and LLM-Based Construction: We acknowledge both concerns. On scale, the evaluation covers 100 distinct tasks in total: 50 held-out tasks on the main benchmark run through three single-axis ablations (3 agent models, 4 memory-extraction methods, 4 learning modes), plus 50 SWE-bench Pro tasks with 4 rollouts each, i.e. 200 task-runs per cell. As disclosed in Appendix H.5, API spend up to submission was on the order of USD 10K. The additional experiments and human studies conducted for this rebuttal bring the cumulative cost above USD 20K, practically the ceiling of an academic budget; we will update Appendix H.5 accordingly in the revised manuscript. The test-set size is a deliberate compute-bound choice, and the fully automated curation pipeline extends mechanically to more repositories and later time windows. Regarding construction bias, we ran a dual audit of 30 sampled synthetic queries. On leakage, no query contains an oracle file path, internal symbol, or code-level solution step verbatim, a hard-leak count of 0/30. All 30 fall in a borderline band on granularity, neither verbatim leakage nor fully underspecified, an inherent artefact of reverse-synthesising tasks from merged commits, and a string-matching sweep flags 9 loose hits involving public feature names. On realism, the queries score a mean of 4.0/5 against genuine issue reports, and the auditor noted they read like maintainer-authored task tickets. We will acknowledge both scale and construction details in the revised Limitations.
Response to Questions:
(All five questions are addressed jointly with the corresponding weaknesses above: Question 1 → Weakness 1, Question 2 → Weakness 2, Question 3 → Weakness 5, Question 4 → Weakness 3, Question 5 → Weakness 4.)