# Specula: Scaling formal specifications for autonomous model checking of system code

DevFeed: [Specula: Scaling formal specifications for autonomous model checking of system code](<https://devfeed.tech/articles/specula-scaling-formal-specifications-for-autonomous-model-checking-of-system-code-41853.md>)

Original publisher: [Read original article](<https://muratbuffalo.blogspot.com/2026/08/specula-scaling-formal-specifications.html>)

Author: Murat (noreply@blogger.com)

Published: 2026-08-12T21:33:44Z

Content type: opinion

Language: en

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

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Code](<https://devfeed.tech/topics/code.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Software](<https://devfeed.tech/topics/software.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Network](<https://devfeed.tech/topics/network.md>), [C](<https://devfeed.tech/topics/c.md>), [Erlang](<https://devfeed.tech/topics/erlang.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [Rust](<https://devfeed.tech/topics/rust.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [bug](<https://devfeed.tech/tags/bug.md>), [code](<https://devfeed.tech/tags/code.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [developers](<https://devfeed.tech/tags/developers.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [erlang](<https://devfeed.tech/tags/erlang.md>), [etcd](<https://devfeed.tech/tags/etcd.md>), [formal-methods](<https://devfeed.tech/tags/formal-methods.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [network](<https://devfeed.tech/tags/network.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [paper-review](<https://devfeed.tech/tags/paper-review.md>), [rabbitmq](<https://devfeed.tech/tags/rabbitmq.md>), [rust](<https://devfeed.tech/tags/rust.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [tla](<https://devfeed.tech/tags/tla.md>)

## AI overview

An opinionated analysis of Specula, an agentic system that automatically derives TLA+ specifications from software, validates them against code, model-checks for concurrency bugs, and generates integration tests. The article discusses reported results across 48 open-source distributed and concurrent systems, including 249 bugs found, while also raising unresolved questions about the approach.

## Source excerpt

Specula is an agentic system that automates the process of software bug finding through authoring and model-checking a spec for the code. It derives TLA+ specifications automatically from the code, checks code-spec conformance through trace validation, model checks the spec to find concurrency bugs, and reproduces the bug at the code layer by writing integration tests with precise timing. I remember reading the Daikon paper "Quickly detecting relevant program invariants" in 2000 and getting impressed by it, and here we are after 26 years, solving the end-to-end problem much better than I ever thought would be possible in a push-button manner in the year of our lord 2026. But somehow, I am still somewhat unsatisfied with the paper. This may be me being hypercritical and trying to get more out of the paper by arguing with it. So bear with me until I resolve (or learn to accept) these problems over time. I know many of the authors of the Specula work, and respect them, and I know they won't take my critiques about the larger problem in a wrong way... I am trying to make sense of the terrain myself. So, let's look at what Specula gets right, its major contributions, and then dive into my unresolved questions and existential thinking about the terrain. Why is Specula an Impressive Achievement Specula is run on "slices of" 48 complex open-source distributed and concurrent systems including MongoDB, Microsoft's SONiC network OS, GCC's libgomp, Etcd, and RabbitMQ's ra. It found 249 bugs, 207 of them new. The 48 systems span 7 languages, from C to Erlang to Rust. This is very impressive, and it earns the "scaling" claim in the title of the paper. Hand-crafting TLA+ specifications may take weeks (especially for unfamiliar code bases), and Specula completes end-to-end checks in 1.4 to 9.8 hours at a median token cost of 57 dollars per system. Did I mention this is all push-button? Developers just review the end results. They may not even have to look at the TLA+ specs, and the