# In Search of a Compositional Theory of Self-Stabilization

DevFeed: [In Search of a Compositional Theory of Self-Stabilization](<https://devfeed.tech/articles/in-search-of-a-compositional-theory-of-self-stabilization-57579.md>)

Original publisher: [Read original article](<https://muratbuffalo.blogspot.com/2026/09/in-search-of-compositional-theory-of.html>)

Author: Murat (noreply@blogger.com)

Published: 2026-09-21T16:55:13Z

Content type: article

Language: en

Sources: [Metadata](<https://devfeed.tech/sources/metadata.md>)

Topics: [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [retry](<https://devfeed.tech/topics/retry.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [fault-tolerance](<https://devfeed.tech/tags/fault-tolerance.md>), [metastability](<https://devfeed.tech/tags/metastability.md>), [retries](<https://devfeed.tech/tags/retries.md>), [stabilization](<https://devfeed.tech/tags/stabilization.md>), [tla-plus](<https://devfeed.tech/tags/tla-plus.md>)

## AI overview

The author examines compositional reasoning for self-stabilization and metastable failures. Using a TLA+ model of a retry storm, the article discusses rely-guarantee contracts, their limitations for modeling accumulating queues, and possible directions for a compositional theory.

## Source excerpt

My quest for a principled solution for metastable failures has taken me back to my roots on self-stabilization, as this recent paper related the problem to composition of self-stabilizing systems. But, my literature search for recent work on composing self-stabilizing systems didn't yield anything useful. The layered stabilization idea was already in place by the early 2000s, and nothing fundamental seems to have been added since. Frustrating. So I decided to attack the problem using the concrete example I have. I had composed a rely-guarantee TLA+ model of a retry storm as two components with contracts. That model reproduces metastable failure because the composition that worked from good states failed to work when a large shock removes the base case that let the two conditions hold each other up. Searching for rely-guarantee based composition from every state, turned up a 2017 control theory paper by Kim, Arcak and Seshia, "A Small Gain Theorem for Parametric Assume-Guarantee Contracts". This paper does roughly what I want: discharging circular reasoning between two components without layering or blocking. But it comes with some serious limitations. In their formalism, a component is an input-output relation on signals, and contracts relate an input bound to an output bound. This is a memoryless view of a component, so it is not possible to express backlog accumulating from previous rounds. That rules out queues, among other useful distributed systems concepts. It also has no connection to stabilization. The paper does not talk about a variant/potential function and convergence reasoning. But there are still pieces there worth stealing toward a compositional theory of self-stabilization and metastability. Below I try to work this out... somewhat unsuccessfully. Understanding Parametric Assume-Guarantee Contracts In our original model, the retrier's guarantee was conditional and partial: "if the queue is under 6, I send no retries". This contract does not say anyth