SetupX: Can LLM Agents Learn from Past Failures in Functionality-Correct Code Repository Setup?
Anonymous authors
ICLR 2027
TL;DR. An experiential LLM agent that learns from past configuration failures and is independently audited by a Prosecutor–Judge verification protocol, achieving 92% functionality-level setup pass rate on 100 Python repositories.
Abstract. Functionality-correct repository setup aims to configure execution environments (e.g., dependencies, build scripts) to successfully execute a repository's documented features. It presents significant challenges due to diverse, repository-specific failures, including dependency incompatibilities, missing toolchains, incomplete installations, and verification-strategy mismatches. Existing LLM agents struggle to robustly resolve these issues, specifically failing to support (1) cross-repository experience transfer, (2) multi-step trial-and-repair under non-invertible state changes, and (3) robust verification of setup outcomes to distinguish setup-induced failures from repository bugs. To address this, we introduce SetupX, an experiential learning-based setup framework. First, we construct a Self-Evolving Experience Representation (XPU), a dual-modality knowledge unit encoding setup signals, textual guidance, executable actions to dynamically transfer verified environment fixes to unseen repositories. Second, we employ Experience-Augmented Speculative Execution backed by a LIFO Docker snapshot stack, enabling the agent to proactively trial fixes and safely roll back to known-good states. Third, we introduce a Prosecutor-Judge Verification Protocol that separates evidence collection from final judgment, enabling more reliable setup verification beyond superficial build-time metrics. Evaluation results on carefully-crafted benchmarks show SetupX achieves highest performance (e.g., 92% pass rate) and outperforms the strongest baseline by over 19%. Crucially, SetupX excels in complex multi-repository setup requiring coordinating multiple interconnected services across different containers.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 25 Nov 2026, 10:37 UTC.
- Rating
- 3/4(+1)
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
Strengths
S1. The paper addresses an important and practical problem.
Repository environment setup is an important and practical problem in software engineering. In real-world software development, configuring a repository from scratch may involve complex dependency conflicts, missing toolchains, and runtime version incompatibilities. This paper addresses these challenges through an automated approach, potentially improving the applicability of LLM agents to real-world software engineering tasks.
S2. The structured experience knowledge base enables cross-repository experience reuse.
The paper introduces a structured experience representation called eXPerience Unit (XPU) and constructs a knowledge base that allows agents to reuse experiences accumulated from previous repository setup tasks to guide the configuration of new repositories.
S3. Independent multi-agent verification improves the reliability of setup evaluation.
The paper recognizes that the Setup Agent's self-assessment may not always be reliable, and relying solely on the agent's own judgment may incorrectly classify an improperly configured environment as successful. To address this issue, the authors introduce a Prosecutor–Judge verification protocol, in which independent agents examine the configured environment and distinguish setup-induced failures from repository-intrinsic issues. Compared with conventional self-assessment or simple installation success checks, this approach provides more reliable verification results.
Weaknesses
W1. The reliability of the Prosecutor–Judge verification protocol requires further investigation.
Although the paper validates the effectiveness of the Prosecutor–Judge protocol through human expert evaluation in Appendix I and reports high agreement rates, both the Prosecutor and Judge are implemented using LLM agents. Therefore, they may still be susceptible to hallucinations, incorrect failure attribution, and incomplete investigations.
For example, among the 100 environments configured by SetupX, the Prosecutor–Judge protocol achieves 98% agreement with expert judgments, but still incorrectly classifies two unsuccessful environments as successful. Furthermore, the protocol primarily relies on representative tests and documented entry points in the README, rather than comprehensively verifying all repository functionalities.
Therefore, I believe the authors should further analyze the causes of these incorrect judgments and investigate the sensitivity of the verification results to different LLM backbones, prompt designs, and repository types. Such analyses would provide stronger evidence of the reliability and robustness of the proposed verification protocol.
W2. The evaluation is limited to Python repositories, with insufficient evidence of cross-language generalizability.
The main benchmark only includes Python repositories. However, real-world software development involves diverse programming languages, which may differ substantially in dependency management, build systems, and environment configuration procedures.
In particular, since XPUs are distilled from historical setup failures, their diagnostic signals and repair actions may be specific to particular programming languages or toolchains. Therefore, it remains unclear whether the proposed approach can be effectively applied to repositories written in Java, C/C++, Rust, or JavaScript, which involve different build and dependency management mechanisms.
W3. Insufficient experimental validation of the self-evolving capability.
The paper presents the self-evolving XPU knowledge base as one of its key contributions, emphasizing that the system can continuously update and refine its experiences based on historical execution feedback. However, the current experiments primarily demonstrate that experiences extracted from previous repositories can be transferred to new tasks. They do not sufficiently demonstrate whether the XPU knowledge base can continuously accumulate knowledge and progressively improve the agent's setup performance as more tasks are encountered.
I suggest that the authors conduct a continual learning experiment. For example, repositories could be organized into a sequential task stream, allowing the system to update its XPU knowledge base after each batch of tasks. The authors could then examine whether the setup success rate improves as more experiences are accumulated. A frozen knowledge base could also be included as a baseline to better distinguish the benefits of experience reuse from those of continual learning.
W4. Insufficient analysis of the storage and execution overhead of Docker snapshots.
SetupX uses docker commit to create environment snapshots for speculative execution and multi-step rollback. Although Docker's layered filesystem allows some data to be shared across images, repeatedly creating snapshots during complex setup tasks may still introduce substantial additional storage overhead, especially when installing large dependencies or frequently modifying the environment.
The paper does not provide a detailed analysis of the overhead associated with the snapshot mechanism, such as the average number of checkpoints created per task, cumulative and peak disk usage, or the time required for commit and restore operations.
W5. Insufficient evaluation of recovery from unseen setup failures and incorrect initial configurations.
SetupX's environment repair process relies substantially on XPUs distilled from historical setup trajectories. However, since these XPUs are extracted from a limited set of previous tasks, the knowledge base cannot guarantee coverage of all possible environment configuration problems.
Although the Setup Agent can still attempt to resolve errors using shell commands and its own reasoning capabilities when no relevant XPU is available, the paper does not introduce an explicit mechanism that enables the agent to systematically explore new repair strategies in the absence of historical experience.
This issue becomes particularly important when the agent makes an incorrect initial setup decision. For example, if the agent initially selects an incompatible Python version, package manager, or dependency installation strategy, subsequent local repair attempts may continue to build upon the incorrect initial decision, potentially leading to further environment contamination.
Questions for the authors
Q1. How does SetupX ensure sufficient checkpoint coverage to support reliable multi-step rollback?
SetupX primarily creates checkpoints using docker commit before executing TRY_XPU_SUGGESTION, rather than before every state-changing action. However, as the paper points out, problems introduced by earlier environment modifications may only become apparent several steps later.
Since the Setup Agent can also modify the environment through ordinary SHELL_COMMAND actions, an incorrect configuration may be introduced before the first checkpoint is created. In such cases, subsequent checkpoints may already contain the contaminated environment state.
I would appreciate clarification on the following questions:
- How does SetupX determine which checkpoint to roll back to? Is there any mechanism to assess whether a checkpoint represents a relatively correct or clean environment state?
- If the error responsible for a dependency conflict was introduced before the earliest available checkpoint, how can the agent recover from it?
- Does the system support recreating a clean environment and restarting the setup process when recovery through existing checkpoints is not possible?
Q2. How does SetupX identify and correct incorrect initial setup decisions when no relevant XPU is available?
The proposed conflict resolution mechanism relies heavily on retrieving and applying historical XPUs. However, since XPUs are distilled from previous repository setup trajectories, their coverage is inherently limited.
Consider a scenario in which the agent initially selects an incorrect Python version, package manager, or dependency installation strategy, while the XPU knowledge base contains no relevant experience to address the problem. In this case, the agent may repeatedly attempt local repairs without recognizing that the underlying issue originates from its initial setup strategy.
How does SetupX recognize and correct such incorrect initial decisions, and what mechanisms enable the agent to discover an alternative setup strategy without relying on relevant historical XPUs?
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 3/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper proposes a code reposity setup method called "SetupX", which is an agentic framework to learn from past setup failures with memory design (e.g., cross-repository experience transfer), multi-step trial-and-repair, and robust verification of setup. The results show improvement over some baseline settings.
Strengths
-
The paper addresses a very important and practical problem, which is the base block for many swe tasks. Learning from past failures and multi-step trial & error make senses.
-
The experimental results show the effectivenss of the design and achieve better results than baseline methods.
-
The ablation studies are quite comprehensive and successfully demonstrate the effectivess of individual components.
Weaknesses
-
The paper only evaluated Claude Code and other CLI agents with Qwen3.5-Plus, but did not provide comparisons against native Codex CLI or Claude Code with the strongest model. I feel like existing GHCP CLI/Claude harness is already good enough, the effectivess demonstrated with Qwen 3.5-Plus may not transfer to Opus 5.5.
-
The novelty is not that good, most technical components are from prior works, including experience retrieval, checkpoint/rollback, and multi-agent verification.
-
The authors claims "single continuous loop", but actually the XPU database is built offline and frozen during evaluation, so it mainly demonstrate experience reuse rather than continuous learning.
Questions for the authors
-
What is the results if using the strongest model (e.g., GPT 6 Astra, Opus 5) on these baseline settings?
-
What are the results if more experiences are accumulated? And is delayed experience updates really important?
-
The main experiments only consider python repositories, does it generalize to other langages, especially compiling languages (e.g., C++)
- Rating
- 3/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper studies functionality-correct repository setup. A configured environment must pass tests and also run documented entry points, with setup-induced failures separated from project-intrinsic defects. The authors propose SETUPX, which combines three components:
-
XPU: a structured experience record (signals, advice, executable atoms, telemetry), built by offline distillation, audited online, and retrieved by vector search plus LLM reranking.
-
Speculative execution: snapshot-backed multi-step rollback with a read-only in-loop verifier.
-
Prosecutor–Judge (P–J): a role-separated post-hoc LLM audit used as the success criterion.
On 100 EnvBench Python repositories, SETUPX reaches a 92% pass rate, about 19 pp above the strongest CLI baseline. Expert audits of 700 containers agree with P–J on 95–98%, while native success signals over-report by 23–52 pp. A 22-family multi-repository track serves as a stress test.
Strengths
-
Rigorous task definition. The paper moves from "tests collectable" to "documented entry points run". Collect-only over-reports Repo2Run by +48 pp (Appendix I), a valuable finding in itself.
-
Complete design. The three components target missing experience, irreversible state changes, and unreliable success signals.
-
Systematic evaluation. It includes a full ablation, noisy-KB and skill-library swaps, three runs, cost analysis, and a blinded two-expert audit of 700 containers.
-
Candor. The paper reports its failure cases and its Python-only scope.
Weaknesses
-
Generalization claim weakly supported. The 229 development repos and 100 test repos come from the same EnvBench pool, separated only by identity. Same-ecosystem or similar-dependency repos may appear on both sides, and there is no nearest-neighbor or leave-ecosystem-out check. All 5 failures with no matching XPU fail, suggesting dependence on KB coverage.
-
Baselines too weak to attribute the gain to XPU.
-
There is no raw-trajectory RAG, Reflexion/ExpeL, Agent-KB, or static-prompt baseline. The only comparison is a self-built Voyager-style library.
-
The ReAct control (41%) is far below Qwen Code (70%), so general improvements likely explain much of the gain. The net XPU contribution is 10 pp (82→92), not 19 pp.
-
Four repos fail only with XPU, and this is unanalyzed.
-
-
Weak statistics.
-
Repeats cover run noise but not KB-construction variance, and there is no paired test. My count from Table 12 gives about 14 vs. 4 discordant pairs (McNemar p≈0.03).
-
Delayed-audit verdicts are unvalidated, and the a/b thresholds lack sensitivity analysis.
-
The multi-repo track is a tie (16/22 vs. 16/22), so the abstract's claim is overstated.
-
Questions for the authors
-
How much do the development and test sets overlap in ecosystem and dependencies? Does the 92% hold under an ecosystem hold-out?
-
Please add McNemar tests and KB variance across development subsets and seeds.
-
Please compare with Reflexion/ExpeL/Agent-KB-style memory and static rules in the prompt.
-
How accurate are the delayed-audit verdicts, and how sensitive are the a/b thresholds?
-
Why do the 4 negative-transfer repos fail, and why didn't rollback contain them?
Ethics concerns
No ethics review needed.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
This paper presents SetupX, an experience-driven framework for automated, functionality-correct code repository setup. It introduces a self-evolving XPU knowledge base to reuse historical setup experiences, snapshot-backed speculative execution to support environment rollback, and a Prosecutor–Judge protocol for reliable verification. The authors evaluate SetupX on 100 Python repositories and 22 multi-repository scenarios. Experimental results show that SetupX achieves a 92% pass rate on the single-repository benchmark, outperforming the strongest baseline by 19 percentage points.