Trustworthy Runtime Error Healing in Real-World Repositories: A Benchmark and Guardrail

Gou Tan, Pengfei Chen, Zhensu Sun, Jieke Shi, Junkai Chen +7 more
9/30/2026
cs.SEcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Runtime error healing lets a crashed program continue by generating code that repairs its live runtime state. Recent work shows that LLMs can generate such healing code, but it is evaluated only on small competition programs, and executing LLM-generated code inside a live process raises safety concerns that remain unaddressed. In this paper, we take LLM-based runtime healing toward practical use in real-world repositories. We first build HealBench, a benchmark of 265 runtime errors from 18 real-world repositories, each paired with a reference execution on the patched version. HealBench also provides a unified framework that lets LLM agents heal with cross-file context and live runtime state. We then design HealGuard, which requires healing code to be written in HealCore, an analyzable subset of Python, and uses static and dynamic taint analysis to check whether state changed by healing reaches operations protected by developers. We evaluate a dedicated healing method and three general coding agents with three backbone LLMs. The best setting resumes execution in 38.11% of instances and passes the target test in 28.68%, showing that existing agents can already heal a meaningful share of real repository-level crashes. However, among executions that pass, HealGuard flags 17.4% whose healing-changed state may reach a protected operation. On 684 controlled cases, HealGuard detects all unsafe cases, at the cost of a 68.42% false positive rate.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tan2026trustworthy,
  title  = {Trustworthy Runtime Error Healing in Real-World Repositories: A Benchmark and Guardrail},
  author = {Gou Tan and Pengfei Chen and Zhensu Sun and Jieke Shi and Junkai Chen and Ting Zhang and Weifeng Sun and Junda He and Shuai Liang and Chuanfu Zhang and Lwin Khin Shar and David Lo},
  year   = {2026},
  eprint = {2609.39086},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.39086v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.39086.svg)](https://codeofpaper.com/paper/2609.39086)

Discussion