Lune

OOPSLA2026Top-tier venue

Specy: Learning Specifications for Distributed Systems from Event Traces

Mike He, Ankush Desai, Jagarapu Aishwarya, Doug Terry, Sharad Malik, Aarti Gupta

Abstract

Reasoning about the correctness of distributed systems is a significant challenge, with precise correctness specifications serving as an essential prerequisite to verification. However, identifying and formulating specifications remains a major hurdle for developers in practice. Specy addresses this challenge by automatically learning specifications from observable event traces generated by message exchanges in distributed systems. The system employs a specialized grammar tailored for event-based specifications, incorporating support for quantifiers over events - a capability essential for capturing the complex behavioral patterns inherent in distributed protocols. Specy utilizes a novel learning procedure that combines grammar-based enumerative search with dynamic learning from event traces, providing effective control over the specification search. We evaluated Specy on established distributed protocols and industrial case studies, demonstrating its ability to successfully learn important protocol specifications. Specy can discover previously unidentified specifications overlooked by developers, automatically derive inductive invariants that were previously constructed manually for verification purposes, and, through run-time monitoring in production systems, reveal gaps in testing coverage - highlighting opportunities to leverage specifications in practice.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Verus: A Practical Foundation for Systems Verification cites Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
  • Verus: A Practical Foundation for Systems Verification cites DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols
  • Verus: A Practical Foundation for Systems Verification cites DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
  • Finding Invariants of Distributed Systems: It's a Small (Enough) World After All cites First-order quantified separators
  • DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols cites Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
  • DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols cites First-order quantified separators
  • DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols cites DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
  • DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols cites Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
  • DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols cites First-order quantified separators
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on14

  1. DistAI: Data-Driven Automated Invariant Learning for Distributed ProtocolsJianan Yao, Runzhou Tao, Ronghui Gu, Jason Nieh et al.OSDI 2021 · 76 citations
  2. Finding Invariants of Distributed Systems: It's a Small (Enough) World After AllTravis Hance, Marijn Heule, Ruben Martins, Bryan ParnoNSDI 2021 · 69 citations
  3. DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed ProtocolsJianan Yao, Runzhou Tao, Ronghui Gu, Jason NiehOSDI 2022 · 50 citations
  4. First-order quantified separatorsJason R. Koenig, Oded Padon, Neil Immerman, Alex AikenPLDI 2020 · 31 citations
  5. Verus: A Practical Foundation for Systems VerificationAndrea Lattuada, Travis Hance, Jay Bosamiya, Matthias Brun et al.SOSP 2024 · 22 citations

Related papers

  1. Basilisk: Using Provenance Invariants to Automate Proofs of Undecidable ProtocolsTony Nuda Zhang, Keshav Singh, Tej Chajed, Manos Kapritsos et al.OSDI 2025 · 9 citations
  2. Message Chains for Distributed System VerificationFederico Mora, Ankush Desai, Elizabeth Polgreen, Sanjit A. SeshiaOOPSLA 2023 · 7 citations
  3. I3DP: Neuro-Symbolic Inductive Invariant Inference for Distributed ProtocolsWeining Cao, Guangyuan Wu, Yuan Yao, Hengfeng Wei et al.SOSP 2026
  4. Inductive Invariants That Spark Joy: Using Invariant Taxonomies to Streamline Distributed Protocol ProofsTony Nuda Zhang, Travis Hance, Manos Kapritsos, Tej Chajed et al.OSDI 2024 · 9 citations
  5. Psym: Efficient Symbolic Exploration of Distributed SystemsLauren Pick, Ankush Desai, Aarti GuptaPLDI 2023 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines