Proof-Gated Live Updates: Trustless DSU with SMT-Verified Certificates
Production services are constantly patched under intense time pressure—increasingly via automated changes proposed by fuzzers, refactoring engines, or LLMs. While Dynamic Software Updating (DSU) allows running processes to accept new versions without restarting, traditional mechanisms suffer from a major trust gap: they either blindly trust the patch or only verify low-level type safety. They do not verify whether the update preserves behavioral equivalence where it shouldn't change, or whether it respects high-level contracts and effect guarantees.
This post explores a novel approach called proof-gated live updates, implemented in Codira (an ahead-of-time compiled, garbage-collected language).
The Problem: The Blind Spots of Traditional DSU
When an unverified hot update is applied to a live heap, it can cause silent, catastrophic failures:
Unintended side effects: A patch changes the behavior of an untouched helper function because a shared symbol moved or behavior shifted.
Contract violations: It weakens postconditions that callers implicitly rely on.
Hidden allocations: It introduces heap allocations on paths explicitly promised to be @noalloc.…













