EnvFaultBench: Benchmarking LLM Agents on Software Environment-Fault Troubleshooting

Siqi Zhong, Haiyang Shen, Mugeng Liu, Chongyang Pan, Yun MaNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Every developer knows the frustration of "the code is fine, why won't it run?"—a broken dependency, a stale cache, or a misconfigured environment. EnvFaultBench is a new benchmark of 348 real-world, Dockerized environment-fault tasks across Python, TypeScript/JavaScript, and JVM. Evaluating 10 LLM agents reveals that the best model (GPT-5.5) resolves 65.8% of these faults, and that success hinges heavily on diagnostic efficiency: how quickly an agent turns clues into an actual repair.

What Problem Does This Paper Address?

Most benchmarks for AI coding agents test one of two things: writing source-code patches (like SWE-bench) or setting up a project from scratch (like EnvBench). They miss a massive everyday reality in software engineering: an existing environment that has drifted into a faulty state.

In these scenarios, the application code is completely correct, but something around it—installed packages, environment variables, caches, or system resources—is broken. The agent can't just edit a line of code; it has to poke around the shell, interpret distributed symptoms (logs, config files, runtime errors), and fix the environment itself.

Figure 1: Environment-fault scenario targeted by ENVFAULTBENCH. The source code is correct (left), but environment-level faults (center) cause distributed failure symptoms (right) whose evidence is not localized to any single code line.

Methods

To build EnvFaultBench, the authors started with 8,364 closed GitHub issues from 97 open-source repositories and filtered them down to 1,847 reproducible environment faults. From these, they extracted structured fault pattern records and used an LLM (deepseek-chat) to co-generate three artifacts for each task:

  1. A faulty Dockerfile that recreates the broken state.
  2. A hidden verifier script (the functional oracle).
  3. A reference repair script.

Each instance underwent bidirectional validation (the oracle must fail in the broken container and pass after the reference repair) and 3x multi-run certification to weed out flaky, non-deterministic tasks.

Figure 2: ENVFAULTBENCH instance construction and agent evaluation workflow. From a fault pattern record, the pipeline co-generates a faulty Dockerfile, functional oracle, and reference repair, then certifies instances via bidirectional and multi-run validation.

During evaluation, an agent is dropped into the broken Docker container with a 10-step interaction budget ($K=10$) under the OpenHands framework. It can see the Dockerfile and run shell commands, including an opaque verify command. Crucially, any command sequence that restores the target behavior counts as a pass—reflecting the one-to-many nature of environment repairs (e.g., pinning a dependency vs. upgrading it).

Datasets

EnvFaultBench (newly introduced) consists of 348 Dockerized instances from 75 open-source projects across three ecosystems:

  • Python: 186 instances
  • TypeScript/JavaScript: 100 instances
  • JVM: 62 instances

The tasks span 22 fault types grouped into three root-cause layers: Runtime-state (50.9%), Dependency (35.1%), and Configuration (14.1%). Unlike SWE-bench (code patches), EnvBench/EnConda-Bench (setup from scratch), or Terminal-Bench (general CLI tasks), EnvFaultBench focuses specifically on post-setup, issue-derived environment repair without documentation.

Figure 3: Fault distribution in ENVFAULTBENCH. Left: instance counts by ecosystem and fault layer. Right: per-type instance counts across 22 fault types.

Key Insights and Ideas

  • Diagnostic efficiency is king: Stronger models don't just know more shell commands—they form a hypothesis and attempt their first fix within 2–3 steps (Spearman $\rho = -0.85$ between first-fix step and solve rate). Weaker models burn their 10-step budget gathering observations and run out of time to iterate.
  • Delayed action despite having clues: In 10.5% of analyzed trajectories, agents actually had sufficient root-cause evidence in their context but failed without ever attempting a repair.
  • Exposing the verifier actually hurts: In an "anti-cheat" ablation where file-hiding was removed, no model improved—and two dropped sharply (DeepSeek-V4-Pro by 14.0 percentage points, GLM-5.1 by 9.2 pp). Instead of taking shortcuts, they wasted their limited steps reading the verifier source code, which only encodes symptoms rather than repair recipes.
  • More steps help, at a cost: Raising the step budget from 5 to 100 on an 80-task Python subset boosts aggregate success from 35.8% to 80.4%, but with sharply diminishing returns per million tokens.

Key Results

  • Overall performance: Under OpenHands ($K=10$), GPT-5.5 leads with a 65.8% resolve rate, followed by Gemini-3.1-Pro (56.6%) and Claude-Opus-4-7 (52.6%). A zero-shot baseline (DeepSeek-V3.2) resolves only 10.9%, underscoring the need for interactive troubleshooting.
  • Open-weight value: GLM-5.1 reaches 50.0% overall. DeepSeek-V4-Flash achieves 46.3% (nearly matching Claude-Sonnet-4-6's 46.8%) at a total API cost of just $0.92 for all 348 tasks—compared to $100.69 for Claude-Opus-4-7.
  • Ecosystems & sanity checks: Python is consistently the easiest ecosystem and JVM the hardest. Deterministic sanity checks pass 98.3%–99.8% of the time on solved instances, confirming that successful repairs don't break other parts of the environment.

Limitations and Future Work

The authors note that LLM-assisted reconstruction can simplify real-world incidents and favors faults that fit neatly into self-contained Docker containers; having the Dockerfile visible may also make diagnosis easier than in messy production environments. Additionally, eight of the 22 fault types have fewer than five instances, and full-benchmark results are single-run (with three-run variance tested on a 120-task subset).

Looking ahead, the authors suggest using diagnostic efficiency—not just final task success—as a training signal for coding agents, encouraging them to turn available observations into testable repair hypotheses early.

Summary updated

BibTeX
@inproceedings{zhong2026envfaultbench,
  author = {Siqi Zhong and Haiyang Shen and Mugeng Liu and Chongyang Pan and Yun Ma},
  title = {{EnvFaultBench: Benchmarking LLM Agents on Software Environment-Fault Troubleshooting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1tS0rcwXBg},
}
Figure