FizzBee and similar specification tools

Hand-drawn angular terracotta bands that fork and rejoin from left to right, spreading across a dense field of cream, sand, umber and moss cross-hatched tiles.

FizzBee is a specification language and model checker for the design of distributed and concurrent systems, written in a Python-like language rather than in mathematical notation. A model checker is a program that explores every state a model of a system can reach and reports any that break a stated property. FizzBee’s checker does this for designs such as Apache Kafka’s transaction protocol, but only within explicit bounds, and one practitioner’s largest models ran out of memory (FizzBee, n.d.e; Vanlightly, 2024b; Vanlightly, 2024a). Its speed compared with TLC, the checker for the established language TLA+, remains open.

Also open are whether its tests against real code find defects, and whether it is easier to use than Quint, P, Stateright or Loom. The evidence on these questions rests mostly on vendor documentation and practitioner reports. The wider family of tools, TLA+ itself included, is described in Formal verification tools, and what verification establishes in general in Formal verification.

How a FizzBee model describes a design

A FizzBee model is a set of actions written in Starlark, a dialect of Python, which the checker invokes in every possible order to explore the states of the design. FizzBee adds model-checking constructs to Starlark, and its checker explores breadth-first by default (FizzBee, n.d.e; FizzBee, n.d.a; FizzBee, n.d.g). Roles are class-like descriptions of the actors, processes or components of a system, such as the clients and brokers of a message queue (FizzBee, n.d.j).

FizzBee’s checker can also explore executions where an action pauses part way through and another action runs (Vanlightly, 2024b).

A model states two kinds of property. A safety property says nothing bad happens: an always assertion must hold in every reachable state (FizzBee, n.d.b). A liveness property says something good eventually happens, for example that the system eventually reaches a condition and stays in it (FizzBee, n.d.g).

Liveness depends on fairness, an assumption about which actions the system cannot postpone forever. Weak fairness requires that an action which stays enabled eventually runs; strong fairness requires that an action enabled infinitely often eventually runs (FizzBee, n.d.c). In FizzBee, fairness on a role’s action applies to each instance of the role separately (FizzBee, n.d.g).

Bounds and memory limits

A passing FizzBee check covers only the bounded model that was explored, and memory limited how large one practitioner’s models could be. A check capped at a maximum number of actions can pass even when the state space is infinite (FizzBee, n.d.k). Lakestream’s protocol models likewise cover only the protocol core, in explicitly bounded configurations (Lakestream, n.d.).

Jack Vanlightly’s 2024 FizzBee model of the Apache Paimon table format ran out of memory except in his smallest configurations (Vanlightly, 2024a). For his December 2024 Kafka model he also named single-threaded checking as a limitation (Vanlightly, 2024b).

Use on real protocols

The published uses of FizzBee are bounded design checks of named protocols, reported by practitioners and projects rather than independent studies, and each is paired with a TLA+ model.

Kafka transactions and the speed comparison Weak evidence: few or small studies support this

The one timed comparison with TLC comes from a single 2024 model and does not settle current relative speed. Vanlightly wrote a FizzBee model of Kafka transactions equivalent to his TLA+ model, with the logic of each action in Starlark (Vanlightly, 2024b). In one small configuration (three clients, three brokers, one partition, no symmetry reduction), both checkers found the same 15,498 states; TLC took 8 seconds and FizzBee 64 (Vanlightly, 2024b).

The setups were not matched in every run: his simulation comparison gave TLC 14 workers and FizzBee one process (Vanlightly, 2024b). FizzBee has changed since. Its current development branch documents an experimental queue that removes duplicate states before exploring them, and release v0.5.4 changed how some assertion results are reported (FizzBee, n.d.d; FizzBee, n.d.l).

Lakestream’s paired models Weak evidence: few or small studies support this

Lakestream checked its leaderless log and task-claiming protocols with both TLA+ and FizzBee, but not every property in both. StreamNative’s team used the AI coding tool Claude Code to translate one Markdown specification into the two independent models (The Lakestream Authors, n.d.; openlakestream, n.d.; Guo, 2026). Three liveness properties and a property called AppendProgress ran in TLA+ only (Lakestream, n.d.; openlakestream, n.d.).

Testing an implementation against the model

FizzBee models can drive tests of real code through an official runner or through independent harnesses, but FizzBee’s founder had no full case study of the official runner to offer in November 2025. Model-based testing means generating tests from the model and checking that the implementation behaves as the model allows.

FizzBee’s own runner is a separate release from the checker. It needs an adapter, code that maps each model action to a method of the implementation, and it can map implementation state back to model state through state getters (FizzBee, n.d.f). In a November 2025 interview, FizzBee’s founder said he had no full case study yet (Colantonio, 2025).

Independent projects build their own harnesses instead. Spec Guardian generates Go tests from FizzBee’s exploration output, one action at a time, and lists an example against the Go implementation of Apache Iceberg (mrasu, n.d.). Its cache-aside demonstration passes, then fails once the order of two operations is changed on purpose (mrasu, n.d.). The LocalAI project documents a Go conformance harness driven by a FizzBee model of how it coordinates responses (mudler, n.d.).

Probabilities and performance compared with PRISM Weak evidence: few or small studies support this

FizzBee can attach probabilities and costs to the paths of a model, and its claim to be easier than PRISM rests on FizzBee’s own documentation. In its coin example, the analyser gives equal probability to each branch by default, and users can assign other probabilities to labelled choices in a separate file (FizzBee, n.d.i). A component’s latency can be given as a distribution rather than a single number (FizzBee, n.d.h).

PRISM, a dedicated probabilistic model checker, supports several classes of model: discrete- and continuous-time Markov chains, Markov decision processes, and probabilistic timed automata. Models can carry rewards or costs, quantities accumulated along an execution (PRISM, n.d.b).

Both tools present the same example, a fair die built from coin tosses. FizzBee reports the mean and the histogram of the number of tosses, while PRISM’s tutorial computes the expected number of steps with rewards (FizzBee, n.d.h; PRISM, n.d.a). FizzBee’s tutorial compares the two and contrasts its Python-like language with PRISM’s, on its own examples (FizzBee, n.d.i).

Similar tools

FizzBee belongs to a group of tools for checking the behaviour of distributed designs, and they differ mainly in what the user writes and how a model reaches the real code. Quint’s maintainers group TLA+, Quint, FizzBee, P and PlusCal as options for verifying distributed systems (Quint, 2026). One practitioner who wrote checkout models in both FizzBee and Quint lists FizzBee, Quint and TLA+ as the options when fairness or liveness needs expressing (mizchi, n.d.). A requirements-engineering review classifies FizzBee as a Python-inspired design specification language (Ferrari & Spoletini, 2025).

ToolWhat the user writesWhat is checked or runLink to the implementation
FizzBeeStarlark actions, roles and assertionsExhaustive exploration of a bounded modelAdapter-based test runner, or independent harnesses
QuintDeclarative state transitions in a fragment of TLARandom simulation, Apalache up to a bound, or TLCQuint Connect generates tests and checks implementation state against the model
PCommunicating state machines and monitorsMonitors over the state machinesPObserve checks service logs against the monitors
StaterightA Rust model, or a runnable Rust actor systemChecks of abstract models or actor systemsCode can be shared between model and implementation
LoomA concurrent Rust testReruns of the test under different executionsThe test is the implementation

Quint

Quint describes state transitions declaratively, as a fragment of TLA with a different syntax, and its specifications can be translated to TLA+ automatically (Quint, n.d.a). Verification uses Apalache by default, with TLC as an alternative, and a built-in simulator runs a chosen number of random executions (Quint, n.d.b). Apalache checks executions up to a length the user sets, while TLC enumerates every state and so needs a finite, tractable model (Quint, n.d.a).

The Neutron framework models its database protocols, state machines and real-time communication in Quint. Its continuous integration runs type checks and random simulation against invariants, but not the model checker (Neutron, n.d.).

Quint Connect is Quint’s counterpart to FizzBee’s test runner, and the Quint team reports one defect found with it. It generates test cases from a specification and checks that the implementation’s state matches the model’s. This requires a mapping that extracts the relevant state and replays each transition in the code (quint-co, n.d.; Quint, n.d.a). On the team’s Emerald framework, this testing exposed a memory leak in which completed data streams were kept forever (Pintor, 2026).

P and PObserve Weak evidence: few or small studies support this

This comparison rests on descriptions from the P and Quint projects. P models a distributed system as state machines that exchange messages. PObserve checks a running service’s logs against P monitors (P, n.d.). This differs from FizzBee’s route to the code: PObserve reads what the service already did, while FizzBee’s runner calls the implementation through an adapter. Quint’s comparison puts P and FizzBee together as actor-model tools, contrasting P’s state machines and monitors with FizzBee’s actions and assertions (Quint, 2026).

Stateright and Loom

Two Rust tools move the model into the programming language itself. Stateright checks both abstract models and runnable actor systems written in Rust, and encourages sharing code between model and implementation (Stateright, n.d.). Its book sets a Rust model of two-phase commit beside a TLA+ model of the same protocol (Stateright, n.d.).

Loom works at a lower level, on a concurrent Rust test rather than a model. It reruns the test under different executions allowed by its memory model, which omits some executions that the C11 memory model permits (tokio-rs, n.d.). A pass in Loom therefore does not cover every execution the C11 memory model permits.

Further reading

  • Vanlightly, “Verifying Kafka transactions, diary entry 4” (Vanlightly, 2024b): a practitioner’s account of translating a TLA+ model into FizzBee, with the 2024 timings and limits.
  • FizzBee, “Liveness and fairness” (FizzBee, n.d.g): the project’s tutorial on liveness assertions and fairness per role.
  • Lakestream, “Protocol specifications” (Lakestream, n.d.): paired TLA+ and FizzBee models of one protocol, with the properties each tool checks.
  • Quint, “A reference of formal verification tools” (Quint, 2026): a maintainer’s map of TLA+, Quint, FizzBee, P and PlusCal.
  • Stateright, “Comparison with TLA+” (Stateright, n.d.): the same protocol modelled in Rust and in TLA+.

Known gaps

What this article cannot tell you yet.

  1. The only timed comparison of FizzBee with TLC dates from 2024; no rerun with current versions of both tools has been published.
  2. No independent study measures how long FizzBee, Quint or TLA+ take to learn, or the total engineering effort each needs on the same task.
  3. No public report shows FizzBee’s official model-based testing runner finding a defect in an independently maintained system.
  4. FizzBee’s probability and performance estimates have not been checked against measurements of a running system, and no source compares its analysis speed with PRISM’s.
  5. How widely FizzBee is used in industry, for example in continuous integration, is unknown beyond a few named case reports.
  6. PlusCal is covered only as a member of the tool group, not in its own right.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 34 references