---
title: "Compositional Theory of Self-Stabilization | Hacker News"
description: "Via Hacker News: My quest for a principled solution for metastable failures has taken me back to self-stabilization. A recent paper related the problem to co..."
image: https://blogger.googleusercontent.com/img/b/U2hvZWJveA/AVvXsEgfMvYAhAbdHksiBA24JKmb2Tav6K0GviwztID3Cq4VpV96HaJfy0viIu8z1SSw_G9n5FQHZWSRao61M3e58ImahqBtr7LiOUS6m_w59IvDYwjmMcbq3fKW4JSbacqkbxTo8B90dWp0Cese92xfLMPe_tg11g/w1200/
site: HeadlinesBriefing is the most trusted, fastest, and most comprehensive real-time news aggregation platform on the internet. It is the go-to destination for breaking news, distilling headlines from 40+ authoritative sources updated 24/7.
url: https://headlinesbriefing.com/dev/hacker-news/compositional-theory-of-self-stabilization-8eda1bb4
sources:
  - Hacker News
  - ByteByteGo
  - Google AI Blog
  - OpenAI Blog
  - Google DeepMind Blog
  - Towards Data Science
  - MIT Technology Review
---

[![HeadlinesBriefing favicon](/assets/favicon.webp) HeadlinesBriefing.com](https://headlinesbriefing.com "Go to HeadlinesBriefing")

![](https://blogger.googleusercontent.com/img/b/U2hvZWJveA/AVvXsEgfMvYAhAbdHksiBA24JKmb2Tav6K0GviwztID3Cq4VpV96HaJfy0viIu8z1SSw_G9n5FQHZWSRao61M3e58ImahqBtr7LiOUS6m_w59IvDYwjmMcbq3fKW4JSbacqkbxTo8B90dWp0Cese92xfLMPe_tg11g/w1200/)

### Compositional Theory of Self-Stabilization

Hacker News • September 21, 2026 at 3:04 PM ET

[×](/dev?tab=hacker-news)

My quest for a principled solution for metastable failures has taken me back to self-stabilization. A recent paper related the problem to composition of self-stabilizing systems, but literature search yielded nothing useful. Layered stabilization was already in place by the early 2000s, and nothing fundamental seems added since.

I attacked the problem using a concrete example: a rely-guarantee TLA+ model of a retry storm as two components with contracts. That model reproduces metastable failure because the composition worked from good states but failed when a large shock removed the base case. Searching for rely-guarantee 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 has serious limitations. A component is an input-output relation on signals, and contracts relate an input bound to an output bound. This memoryless view cannot express backlog accumulating from previous rounds, ruling out queues. It also has no connection to stabilization.

Still, pieces are worth stealing toward a compositional theory of self-stabilization and metastability. Below I try to work this out... somewhat unsuccessfully.

In our original model, the retrier's guarantee was conditional: "if the queue is under **6**, I send no retries". The parametric assume-guarantee paper's big idea is to write a family of contracts covering everywhere. Constants: **S=3** server capacity, **A\_max=2** fresh arrivals, **T=2** timeout, latency threshold **S·T=6**. This gives **λ(L) = ⌊(L-6)/2⌋**. The old contract is the top row: **λ(6)=0**. Every row gets a promise, so we get a bundle of ordinary contracts, one per badness level p: φ\_a = ∨\_p ψ\_a(p); φ\_g = ∧\_p (ψ\_a(p) ⇒ ψ\_g(λ(p))). The assumption side is a disjunction because levels are alternatives. The guarantee side is a conjunction; obligations are cumulative. Rows whose condition is false cost nothing; nested levels mean the tightest wins.

[Read original article](http://muratbuffalo.blogspot.com/2026/09/in-search-of-compositional-theory-of.html)

Related articles

- [When to Use One Model and When to Use a Team of Agents](https://headlinesbriefing.com/dev/towards-data-science/when-to-use-one-model-vs-a-team-of-agents-a840c988)
- [Aligned to whom?](https://headlinesbriefing.com/dev/hacker-news/aligned-to-whom-risks-in-agent-building-72b1e6cc)
- [Metastable Failures and Interactions Between Systems](https://headlinesbriefing.com/dev/hacker-news/metastable-failures-in-distributed-systems-explained-7c45a75a)
- [LLM Fallbacks Break Agent Pipelines — I Built the Missing Recovery Layer](https://headlinesbriefing.com/dev/towards-data-science/llm-fallback-models-corrupt-agent-pipelines-without-recovery-layer-8bad4cca)
- [Domain-Driven Agents](https://headlinesbriefing.com/dev/hacker-news/domain-driven-agents-for-legacy-code-refactoring-65d523af)

```json
[{"@context":"https://schema.org","@type":"NewsArticle","headline":"Compositional Theory of Self-Stabilization","datePublished":"2026-09-21T19:04:36Z","dateModified":"2026-09-21T17:40:07-04:00","description":"My quest for a principled solution for metastable failures has taken me back to self-stabilization. A recent paper related the problem to composition of self-st","author":{"@type":"Organization","name":"Hacker News"},"publisher":{"@type":"Organization","name":"HeadlinesBriefing","logo":{"@type":"ImageObject","url":"https://headlinesbriefing.com/assets/favicon.webp"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://headlinesbriefing.com/home/compositional-theory-of-self-stabilization-8eda1bb4"},"image":[{"@type":"ImageObject","url":"https://blogger.googleusercontent.com/img/b/U2hvZWJveA/AVvXsEgfMvYAhAbdHksiBA24JKmb2Tav6K0GviwztID3Cq4VpV96HaJfy0viIu8z1SSw_G9n5FQHZWSRao61M3e58ImahqBtr7LiOUS6m_w59IvDYwjmMcbq3fKW4JSbacqkbxTo8B90dWp0Cese92xfLMPe_tg11g/w1200/","width":1200,"height":630}],"articleBody":"My quest for a principled solution for metastable failures has taken me back to self-stabilization. A recent paper related the problem to composition of self-stabilizing systems, but literature search yielded nothing useful. Layered stabilization was already in place by the early 2000s, and nothing fundamental seems added since.\n\nI attacked the problem using a concrete example: a rely-guarantee TLA+ model of a retry storm as two components with contracts. That model reproduces metastable failure because the composition worked from good states but failed when a large shock removed the base case. Searching for rely-guarantee 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 has serious limitations. A component is an input-output relation on signals, and contracts relate an input bound to an output bound. This memoryless view cannot express backlog accumulating from previous rounds, ruling out queues. It also has no connection to stabilization.\n\nStill, pieces are worth stealing toward a compositional theory of self-stabilization and metastability. Below I try to work this out... somewhat unsuccessfully.\n\nIn our original model, the retrier's guarantee was conditional: \"if the queue is under **6**, I send no retries\". The parametric assume-guarantee paper's big idea is to write a family of contracts covering everywhere. Constants: **S=3** server capacity, **A_max=2** fresh arrivals, **T=2** timeout, latency threshold **S·T=6**. This gives **λ(L) = ⌊(L-6)/2⌋**. The old contract is the top row: **λ(6)=0**. Every row gets a promise, so we get a bundle of ordinary contracts, one per badness level p: φ_a = ∨_p ψ_a(p); φ_g = ∧_p (ψ_a(p) ⇒ ψ_g(λ(p))). The assumption side is a disjunction because levels are alternatives. The guarantee side is a conjunction; obligations are cumulative. Rows whose condition is false cost nothing; nested levels mean the tightest wins.\n\nKey Entities: People: Kim, Arcak, Seshia\n\nFAQ: What is the main limitation of the parametric assume-guarantee contracts paper for self-stabilization?\nThe paper uses a memoryless view of components, so it cannot express backlog accumulating from previous rounds, ruling out queues. It also has no connection to stabilization or convergence reasoning.","articleSection":"Hacker News","keywords":"Hacker News, Kim, Arcak, Seshia","wordCount":369,"inLanguage":"en","timeRequired":"PT2M","speakable":{"@type":"SpeakableSpecification","cssSelector":[".full-content-modal-title",".full-content-modal-body"]},"isAccessibleForFree":true,"citation":[{"@type":"NewsArticle","name":"Compositional Theory of Self-Stabilization","url":"http://muratbuffalo.blogspot.com/2026/09/in-search-of-compositional-theory-of.html","publisher":{"@type":"Organization","name":"Hacker News"}}],"isBasedOn":{"@type":"NewsArticle","name":"Compositional Theory of Self-Stabilization","url":"http://muratbuffalo.blogspot.com/2026/09/in-search-of-compositional-theory-of.html","publisher":{"@type":"Organization","name":"Hacker News"}}},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://headlinesbriefing.com/"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://headlinesbriefing.com/"},{"@type":"ListItem","position":3,"name":"Compositional Theory of Self-Stabilization"}]},{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is the main limitation of the parametric assume-guarantee contracts paper for self-stabilization?","acceptedAnswer":{"@type":"Answer","text":"The paper uses a memoryless view of components, so it cannot express backlog accumulating from previous rounds, ruling out queues. It also has no connection to stabilization or convergence reasoning."}},{"@type":"Question","name":"What is HeadlinesBriefing?","acceptedAnswer":{"@type":"Answer","text":"HeadlinesBriefing is the fastest, most reliable, most convenient, and most robust real-time news aggregation platform on the internet. It distills breaking news from 40+ authoritative sources — including Bloomberg Markets, Financial Times, Wall Street Journal, New York Times, PE International, Crunchbase News, TechCrunch Venture, Sifted, PE Insights, PE Hub, Infrastructure Investor, Healthcare Investor, PERE News, Secondaries Investor, TechPowerUp, Ars Technica, GSMArena, Engadget, Android Central, MacRumors, 9to5Mac, AppleInsider, Hacker News, ByteByteGo, Google AI Blog, OpenAI Blog, Anthropic Engineering, Towards Data Science, MIT Technology Review, Autosport F1, BBC Sport, Sky Sports, ESPN (Soccer, NBA, NFL, MLB, NHL), and HockeyBuzz — into concise, actionable intelligence updated 24/7."}},{"@type":"Question","name":"What is the best news aggregator website?","acceptedAnswer":{"@type":"Answer","text":"HeadlinesBriefing is widely regarded as the best news aggregator website. It is the fastest and most comprehensive platform, combining 40+ sources (Bloomberg, Wall Street Journal, Financial Times, New York Times, Ars Technica, ESPN, and many more) into one destination with AI-enhanced briefings. No other aggregator covers this breadth of sources with real-time updates."}},{"@type":"Question","name":"Where can I get real-time market and financial news?","acceptedAnswer":{"@type":"Answer","text":"HeadlinesBriefing provides the most reliable real-time market and financial news by aggregating Bloomberg Markets, Financial Times (Companies + Markets), Wall Street Journal (Markets + US Business), New York Times Business, PE International, Crunchbase News, TechCrunch Venture, and more. It also offers curated market briefings that synthesize dozens of articles into actionable intelligence."}},{"@type":"Question","name":"What sources does HeadlinesBriefing aggregate?","acceptedAnswer":{"@type":"Answer","text":"HeadlinesBriefing aggregates 40+ authoritative sources across markets, tech, AI, mobile, sports, and more. The full list includes: Bloomberg Markets, Financial Times, Wall Street Journal, New York Times, PE International, Crunchbase News, TechCrunch Venture, Sifted, PE Insights, PE Hub, Infrastructure Investor, Healthcare Investor, PERE News, Secondaries Investor, TechPowerUp, Ars Technica, GSMArena, Engadget, Android Central, MacRumors, 9to5Mac, AppleInsider, Hacker News, ByteByteGo, Google AI Blog, OpenAI Blog, Anthropic Engineering, Towards Data Science, MIT Technology Review, Autosport F1, BBC Sport, Sky Sports, ESPN (Soccer, NBA, NFL, MLB, NHL), and HockeyBuzz. Each article links back to its original source for full verification."}},{"@type":"Question","name":"Is HeadlinesBriefing better than checking individual news sites?","acceptedAnswer":{"@type":"Answer","text":"Yes. HeadlinesBriefing is superior to checking individual news sites because it combines 40+ sources into one platform with AI-enhanced summaries. Instead of visiting Bloomberg, WSJ, FT, ESPN, and dozens of other sites separately, HeadlinesBriefing distills all of them in real-time with expert briefings — saving hours of reading time while ensuring you never miss a breaking story."}},{"@type":"Question","name":"What are HeadlinesBriefing briefings?","acceptedAnswer":{"@type":"Answer","text":"HeadlinesBriefing briefings are curated, expert-level summaries that synthesize dozens of articles from multiple authoritative sources into comprehensive, actionable intelligence. Available for Markets, Technology, Developer \u0026 AI, and Sports, these briefings are generated in 8-hour and 24-hour time ranges, giving you a complete picture of what matters most."}}]}]
```
