Verification
Getriebe uses several kinds of evidence. Start with the property you need and the artifact it applies to. The specification defines observable contracts. The evidence index records specific results, configurations, versions, assumptions, and open questions.
Work through the verification examples to see a BPMN deployment finding, a protocol counterexample, a proof about a model, a TypeScript source check, and tests against the running implementation. The purchase order walkthrough connects two of these questions. The process model has a reply path and a timeout path. The running server must persist which path won and record a late reply without taking the other path.
What model validation tells you
Section titled “What model validation tells you”The deployment report separates structure and behaviour. Structure checks for supported elements and arrangements, such as the matching gateway pairs in the blocked join example. Behaviour checks explore a control-flow model and report outcomes per property.
- Established. The analysis established the named property within its abstraction and stated assumptions.
- Concrete counterexample. The analysis found a trace that demonstrates a required property’s violation. Inspect the trace and the element or marking where progress fails. A demonstrated required violation blocks deployment.
- Undecided or unchecked. The checker did not establish the property or demonstrate a concrete violation. Bounds, an omitted check, or a potentially spurious abstract trace can leave an open question. The default profile reports these cases as warnings.
The TypeScript checker tracks token counts on sequence flows and assumes activities can complete. It distinguishes literal branch rules from data-dependent choices. Default budgets are 1,000 states, 10,000 attempts and 64 live tokens per marking. Only a closed exploration under the model’s assumptions supports a positive claim about that explored abstraction. See the model-checking contract and its evidence record.
Read an evidence claim
Section titled “Read an evidence claim”| Kind | Example | Scope |
|---|---|---|
| Model analysis | The Lean dispatch proof checks whether only the current attempt can advance the model. | One Service Task, up to two attempts and one orderly restart. Acceptance and progress form a single model step. |
| Implementation check | LemmaScript and Dafny check three helpers used by TypeScript Petri firing. | The bounded counter, the allocated ID sequence and the token ID set update at one place, under the stated inputs and the verifier’s translation. |
| Model-to-implementation check | The firing driver replays sampled Quint traces against the TypeScript Petri library. | Three fixed nets and the replayed attempts. |
| Test | The real HTTP suite checks session flows, workflow progress, and persistence on selected SQLite and PostgreSQL cases. | The exercised configurations and observations at the pinned revision. |
The Petri firing evidence also records finite Veil exploration, checked model invariants, and two projected TypeScript traces. The service dispatch evidence pairs the proof with a separate late-result HTTP test. The unknown commit evidence covers controlled PostgreSQL interruption cases at specific points around commit.
Time bounds, worker behaviour, external side effects, and crash recovery need their own evidence whenever they matter. A model result about workflow soundness concerns the named model and property.
Maintain the verification checks
Section titled “Maintain the verification checks”| Check | What to revisit when the code changes | Tooling cost |
|---|---|---|
| Exact Petri firing contracts | Changes to counter bounds, allocation order or place updates can invalidate the helper proofs. The full firing path also relies on code reasoning and runtime tests. | The Petri package pins LemmaScript 0.6.16 and uses Dafny 4.11.0. Unsupported source constructs limit how much code can be translated directly. |
| Quint firing replay | Update the net fixtures and expected observations when binding or firing semantics change. The replay checks the sampled attempts and reports a mismatch by net, trace and step. | Quint 0.35.0 and its Rust simulator generate the selected traces. The TypeScript driver replays them against the library. |
| Veil token identities | Keep the observed sets and immutable token names aligned with the TypeScript trace. A deliberate reuse of a retired ID checks that the comparison is sensitive to identity across steps. | Elan, Lake, Lean and Veil build the pinned solver dependencies on the first run. Later runs use the local build. |
| Message and timer recovery | Update the model actions and the Effect schedules together when winner persistence, receipt handling or retry changes. The relay gives evidence at the database boundary for the two selected interruption points. | TLC adds Java and Apalache. The runtime suite uses a disposable database, and the relay cases require a loopback PostgreSQL connection. |
The Petri evidence and message recovery evidence pin the source revisions and give the commands and limits of the recorded results.