arXiv:2610.34521cs.DCOct 2026

Manuscript Offprint

arXiv:2610.34521

Supervision Without Blocking: An Evidence-Driven Redesign of OTP-Style Fault Tolerance for Cooperative Runtimes

Sam Uwejan, Erdogan Dogdu

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

Abstract

Actor frameworks on mainstream runtimes advertise Erlang/OTP-style supervision, but OTP's consistency contracts assume a synchronous, single-threaded supervisor, and ports inherit that assumption's absence as unexamined risk. We evaluated every supervision guarantee against pinned OTP documentation and source read verbatim, against the source of three further Rust actor frameworks at fixed revisions, and against the actor-model literature, recording the evidence behind each design decision. Blind adversarial audits and the cross-framework study surfaced 24 defect classes, of which eight reduce to one root cause: reconstructing, by explicit mechanism, the atomicity a synchronous supervisor gets implicitly. We introduce a supervision runtime that closes all 24 cataloged classes through supervisor-owned completion values, per-incarnation identity, and a single lifecycle state machine, validated by 241 tests including reverted-fix reproductions. The result holds OTP's verbatim-verified contracts while adding two properties OTP does not offer: a supervisor that remains responsive throughout group restarts, and message handlers that are never cancelled mid-execution. We delimit the forcing guarantees no cooperative runtime can honor.

I. INTRODUCTION

Fault tolerance in the Erlang/OTP tradition rests on supervision trees [1]. A supervisor process owns the lifecycle of its children and restarts them according to a declared policy. This design has migrated far beyond the BEAM virtual machine. Actor libraries for Rust, the JVM, and .NET advertise supervision as a headline feature, and production systems increasingly depend on those implementations honoring the contracts the original defines.

Existing implementations inherit OTP's semantics wholesale or partially, without evaluating which guarantees deserve keeping and which reflect accidents of the BEAM's architecture. An OTP supervisor is a single-threaded process that blocks for the duration of each restart and termination step it performs, and its consistency contracts are silent consequences of that blocking. Frameworks on cooperative schedulers such as Tokio, an asynchronous Rust runtime [2], drop the blocking to keep their supervisors responsive. None of the implementations we examined priced what that removal costs or what it makes possible.

We took the opposite route and treated every supervision guarantee as a design decision that must earn its place on evidence. We read the governing OTP documentation and supervisor source verbatim at pinned versions. We examined the source of three further Rust actor frameworks at fixed revisions, drew on the actor-model literature, and subjected our own framework to blind adversarial audits, recording the evidence behind every decision. The audits and the cross-framework study surfaced 24 defect classes and one dominant root cause. All four codebases, at the revisions we examined, had independently adopted push-based lifecycle signaling, whose losses and reorderings are the unpaid price of an asynchronous supervisor.

The resulting runtime, ANON, pays that price deliberately. The supervisor holds each child's completion as a value returned by a task set it owns. Every instance carries an identity drawn from a monotonic counter. All liveness bookkeeping collapses into one state machine with a single transition function. Teardown reproduces the documented OTP asymmetry by which a kill delivered over a link arrives trappable while a direct kill does not [3], [4]. Where the evidence favored departing from OTP, we departed. The supervisor never blocks, and a message handler, once begun, is never cancelled.

The outcome closes all 24 cataloged classes, validated by 241 tests that include regression reproductions failing with the fixes reverted. The runtime holds OTP's verbatim-verified contracts alongside two properties OTP does not offer, namely full supervisor responsiveness during group restarts and handler-turn isolation. The guarantee analysis states each kept, added, and traded property with its evidence and its price.

• An evidence-driven design method. We evaluate every supervision guarantee against pinned primary sources read verbatim, the source of three competing frameworks at fixed revisions, and blind adversarial audits, and we record the evidence behind each decision, including the decisions to depart from OTP.

• A supervision race taxonomy. We catalog 24 defect classes reducing to seven mechanism families with one dominant root cause, and we document instances of two families recurring in the examined external frameworks.

• An ownership-based supervision runtime. We introduce ANON, in which completions are supervisor-owned values, identity is per-incarnation, liveness is a single state machine, and termination follows a signal-first cascade, closing every cataloged class while the supervisor stays responsive.

• A three-way guarantee analysis. We state which OTP contracts the runtime reproduces with verbatim-source verification, which properties it provides beyond OTP, and which forcing guarantees no cooperative runtime can honor, each with its evidence and its cost.