EvidenT: An Evidence-Preserving Framework for Iterative System-Level Package Repair

Chenyu Zhao, Minghua Ma, Shenglin Zhang, Zeshun Huang, Yongqian Sun, Chetan Bansal, Saravan Rajmohan, Dan PeiarXiv 2026

TL;DR

EvidenT is an automated, architecture-agnostic framework designed to fix complex, system-level software package build failures. By preserving and fusing failure evidence across iterative build attempts, EvidenT fixes 53.88% of real-world RISC-V package failures, vastly outperforming standard LLMs and state-of-the-art agentic baselines.

What Problem Does This Paper Address?

When a software ecosystem evolves—whether due to toolchain updates, component upgrades, or migrating to a new Instruction Set Architecture (ISA) like RISC-V—building software packages at scale frequently breaks. Diagnosing and fixing these system-level build failures is a massive headache for software engineers.

While Large Language Models (LLMs) have gotten quite good at fixing isolated bugs within a single source code file, they fall flat at the system level. System-level package repair involves managing multi-language environments, complex dependency graphs, and heterogeneous artifacts like build recipes (e.g., RPM spec files), configuration scripts, and compressed source archives.

Prior automated repair tools either rely on rigid, handcrafted rules or treat each repair attempt in isolation. Without a way to remember what they tried in previous iterations, LLM agents often get trapped in repetitive loops, trying the same incorrect fixes over and over.

Table 1. Capability matrix of related approaches compared to EvidenT. "Category" indicates the methodology class, and checkboxes denote supported features essential for system-level package repair.

Methods

The authors introduce EvidenT, an evidence-preserving repair framework that decouples iteration-aware evidence management from tool execution. It operates in a closed-loop validation environment using three core components:

  1. External Build Service: Executes the patched packages in a clean, reproducible environment (like the Open Build Service or Docker) to provide real, un-isolated build feedback.
  2. Evidence-Preserving Repair Controller: This is the brain of the system. Instead of dumping raw logs into an LLM, it maintains a structured, iteration-aware context divided into four slots: Build Feedback (what failed), Repair History (what was tried), Cached Findings (package structure), and Knowledge Context (historical fixes and ISA-specific pitfalls). It enforces "do-not-repeat" constraints so the agent learns from its past mistakes.
  3. Automated Repair Orchestrator: Powered by the Model Context Protocol (MCP), it coordinates specialized tools to localize failures (using log condensation and phase-aware parsing) and execute system-level repair actions, such as modifying configuration flags or unpacking, editing, and repackaging source archives.

Datasets

The authors evaluated EvidenT using real-world build-failed packages collected from the Open Build Service (OBS):

  • Primary Benchmark: 219 real-world RISC-V package build failures spanning diverse domains (cloud-native tools, network services, development toolchains, etc.).
  • Generalization Benchmarks: 79 aarch64 (ARM64) and 83 x86_64 build-failed packages to test how well the framework adapts to legacy architectures.

Key Insights and Ideas

  • Build Failures are Rarely Just Code Bugs: The authors' empirical study revealed that 72% of successful repairs primarily involve adjustments to build configurations, dependencies, or environment settings (spec files), rather than code-level defects. Only 28% required modifying the actual source archives.
  • Memory is Mandatory for Convergence: System-level repair is inherently iterative. Providing the agent with a clear "negative history" (explicitly flagging failed edits as things to avoid) prevents the agent from drifting or destabilizing across multiple build attempts.
  • Decoupling Architecture from Workflow: By separating the core repair logic from the architecture-specific knowledge base, EvidenT achieves remarkable portability. Adapting the tool to a completely different hardware architecture requires swapping out only the underlying data sources in the Knowledge Context, leaving the orchestrator untouched.
Table 2. Classification of Build Failure Cases. "Category" refers to the expert-defined failure category, "Sub- category" is the further division based on the failure, and "Count" indicates the number of packages in each sub-category.

Key Results

EvidenT was evaluated against bare LLMs and adapted state-of-the-art agentic baselines (Agentless, CXXCrafter, and RepairAgent):

  • High Success Rate: EvidenT successfully repaired 53.88% (118/219) of the RISC-V package failures. In comparison, direct LLM repair achieved less than 2%, and the strongest agent baseline, CXXCrafter, topped out at 20.55%.
  • Cross-Architecture Portability: Without changing its core code, EvidenT achieved a 41.77% success rate on aarch64 and 46.99% on x86_64 simply by updating the ISA-specific knowledge context.
  • The Power of Iteration: Increasing the iteration budget from one to three attempts raised EvidenT's success rate by over 25 percentage points, proving the necessity of the iterative feedback loop.
  • Component Importance: Ablation studies showed that disabling Anomaly-focused Log Condensation (ALC) caused the steepest performance drop (success rate plummeted from 53.88% to 29.68%), highlighting how crucial it is to filter out background noise from voluminous build logs.
Table 3. Types of Repair Observed in 100 Failed Packages. "Category" refers to expert-defined modification classes and "Modification details" show the concrete operations required for package repair

Limitations and Future Work

While highly effective, EvidenT's performance is bounded by the quality of the build infrastructure. If a package fails early due to completely corrupted source archives or highly unstable dependency availability, the framework struggles to extract actionable refinement signals.

Additionally, a successful build does not automatically guarantee that the software works perfectly at runtime. The authors note that incorporating systematic runtime validation, regression testing, and performance benchmarking into the feedback loop is a vital direction for future work.

Summary updated

BibTeX
@misc{zhao2026evident,
  author = {Chenyu Zhao and Minghua Ma and Shenglin Zhang and Zeshun Huang and Yongqian Sun and Chetan Bansal and Saravan Rajmohan and Dan Pei},
  title = {{EvidenT: An Evidence-Preserving Framework for Iterative System-Level Package Repair}},
  year = {2026},
  eprint = {2605.08621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.08621},
}
Figure