arXiv:2610.09198cs.PLOct 2026

Manuscript Offprint

arXiv:2610.09198

Modular Responsiveness Verification of Rust Async Runtimes

Yanze Li, Ivan Beschastnikh, Alexander J. Summers

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yanze Li, Ivan Beschastnikh, and Alexander J. Summers

University of British Columbia, Canada

Abstract. Asynchronous (async) programming is a popular paradigm for managing concurrency. Languages that provide async support typically have a runtime to manage asynchronous executions. These runtimes are critical infrastructure, yet verifying them has received little attention. One reason is that a property that users care most about from an async runtime is a liveness property: tasks submitted to the runtime eventually make progress. Verifying liveness is challenging for libraries that are both concurrent and highly optimized.

We present a lightweight and modular proof technique for verifying eventual progression guarantees for Rust async runtimes. We describe this technique in the context of a simple language based on Rust and Rust's async model. We then realize this proof technique as a set of static analyses for Rust and use these to verify eventual progression of several key components of multiple Rust async runtime implementations.

Keywords: Verification · Static Analysis · Asynchronous Programming

1 Introduction

To take advantage of multi-core CPU resources, modern programs make extensive use of asynchronous programming, which relieves developers from needing to manage concurrency themselves. Asynchronous programming is usually supported by an async runtime and such runtimes exist for most languages, including Java [22,11], JavaScript [21], Python [24], and Rust [25,28].

An async runtime takes care of managing a graph of inter-dependent user-defined asynchronous tasks, some of which may be waiting on external events, and others that may be waiting on the result of other tasks. Async runtimes vary in complexity, but even a simple runtime must keep track of tasks, wait and observe relevant events, and notify tasks to continue executing. These runtimes and their correctness from a user's perspective are the focus of this paper.

A critical responsiveness property of async runtimes that users depend on is eventual progression: assuming correct user code and a correct underlying operating system, every user-level async task managed by the runtime should eventually get to make progress (see Section 3).

The eventual progression property is the cornerstone of any async runtime, but is also challenging to verify. This is because a typical async runtime manages a collection of async tasks, and these tasks may depend on a variety of

Yanze Li, Ivan Beschastnikh, and Alexander J. Summers

external events. Async runtimes are also usually concurrent and contain multiple components that communicate with one another. In addition to this inherent complexity of async runtimes, languages such as Rust and OCaml do not ship an async runtime as part of the languages but only provide an interface for implementing async runtimes; users can use different runtime implementations simply by importing different async libraries. This means that any formal techniques aimed at async runtimes for such languages must be able to handle a diversity of alternative implementations in practice.

In this paper, we present a lightweight verification technique that allows programmers to verify eventual progression for practical and diverse async runtime implementations. To the best of our knowledge, this is the first work to verify liveness guarantees of existing async runtime implementations.

Rust async runtimes consist of three major parts: 1. async tasks, which include primitive async tasks provided by async runtimes (called pollables) and user-defined async functions using pollables, 2. Rust's async/await syntax and compiler support, which compile async functions to state-machine representations, and 3. reactors, which manage running async tasks by monitoring signals, waking up tasks when signals are observed, and repeating until all tasks complete. Assuming correctness of the Rust compiler, eventual progression boils down to the behaviors of the sets of runtime-provided pollables and reactors.

Our work relies on three key insights. First, we adopt a task-centric view and find that it is sufficient to consider verification of eventual progression for a single arbitrary task, instead of reasoning about a collection of tasks. Second, we use runtime component boundaries for a natural and modular decomposition of our verification goal. Finally, we observe that runtime components make use of implicit and, most importantly, monotonic events to determine how to deal with a task at any particular point in time. These events are usually internal to the runtime and are key to establishing eventual progression.

We formalize these three insights in a core language LART\mathcal{L}_{ART} with an operational semantics for the implementation of pollables and reactors. We then define static analyses for LART\mathcal{L}_{ART} whose verification conditions soundly imply eventual progression of the runtime. Grounded in our formalism, we design a lightweight specification language and verification technique for Rust called JACKDAW. Developers of async runtimes can specify the necessary conditions for pollables to be responsive, and annotate their implementation in terms of observations on events. We use JACKDAW to verify eventual progression of pollable and reactor components in two commonly used Rust async runtime libraries, smol [25] and futures-rs [8], and tokio [28], the most widely used production runtime. We show that our model and analyses handle a variety of real-world components with two modest extensions.

Our evaluation shows that pollable implementations can be verified with an average specification-to-code ratio of less than 30%, and the verification can prevent manually-seeded responsiveness bugs of various kinds.

In summary, the main contributions of our work are as follows:

  1. We develop an abstract model of Rust async runtimes, via our study of real-world implementations. Using our model, we observe that eventual progression for async runtimes fundamentally relies on the implementations of two kinds of critical components: pollables and reactors, which are programmed in a highly-stylized way. We formalize a core language LARTL_{ART} capturing this programming paradigm for modeling pollable and reactor implementations.

  2. We formally define the key responsiveness property of interest, eventual progression, in terms of an operational semantics for LARTL_{ART} that uses a novel notion of obligations. We develop modular static analysis techniques that track how each obligation is eventually discharged, and show their soundness and that this implies eventual progression.

  3. We implement a prototype tool JACKDAW in Rust, which allows annotating Rust pollable and reactor implementations to obtain models in LARTL_{ART}, and analyzes these models. We evaluate JACKDAW on three Rust async runtimes and successfully verify eventual progression of various pollable/reactor implementations with low specification effort. We also show that JACKDAW rejects responsiveness bugs that can arise in this challenging code.