Skip to content

Compatibility

You pin a proptastic version in your build and upgrade when you choose. Before you do, you want to know what the upgrade can break: whether your tests still compile, whether the ones that pass still pass, whether your CI scripts still read the files, and whether mutastic still reads the failures. The version number tells you. This page says how.

From 1.0.0:

  • A major release (1.x to 2.0) may break anything below. Its notes list each break and what to use instead.
  • A minor release (1.2 to 1.3) adds, and may change what’s marked minor below. Its notes say what changed.
  • A patch release (1.2.3 to 1.2.4) fixes bugs. It never changes what a seed draws.

Each release’s notes are its section of the changelog.

Major means only a major release breaks it. Minor means a minor release may change it, and says so in its notes. Not promised means any release may change it.

What Kept until Why
The API: every public type and member of io.proptastic, io.proptastic.bounds and io.proptastic.serials, the types of io.proptastic.core a test holds (PropertyFailure, Step, FirstSteps, ThreadSteps, Handle), and proptastic-kotlin Major Your tests are written against it. A test that compiles against 1.2 compiles and runs against 1.9.
The vocabulary, including handles (handles, keep, drop, Argument), fromState, first(…), @Handle and draw spans in the choices Major They’re the API, and the editions share them.
What require decides: when a label is too rare, enough, or incomplete, and that incomplete never passes silently Major A stricter require would turn a green build red with no change to your code; a looser one would hide gaps.
What a seed draws: the same seed and test draw the same inputs Minor Shrinking, edge cases and domains get better, and that moves draws. A patch never does; a minor’s notes say Draws change when it does.
Pins: .example(…), .via("proptastic: c…"), and typed pins such as account(1) Major A pin is your code. One a 1.x release printed keeps compiling and means the same input on every later 1.x.
How pin it: prints a pin: its layout and comments Minor The pin it prints still compiles.
Counterexample ids (c and eight hex digits) Major Proposals, .via and proptastic example name them.
A saved counterexample’s format (id=, seed=, choices=, tzdb=) Major Readers skip lines they don’t know, so the format can grow. What a file replays is kept within a minor, as a seed’s draws are.
The corpus’s format (proptastic.corpus/v1) Major What an entry draws may change in a minor. The corpus is a cache: a stale entry still runs, and is never an error.
.proptastic/proposals.yaml Major You commit it and edit it.
The schemas: events, manifest and report, /v1 Major Within v1 they only gain: a field may be added, never removed, renamed or retyped, and none becomes required. A break comes as /v2, with a major.
The command line: run, fuzz, explain, example, corpus, their options and exit codes Major Scripts and CI call them. New commands and options come in a minor.
--format=agent’s line keys and their order (proptastic: PASS/FAIL ·, note:, ran:, counterexample:, message:, pin it: and the rest) Major Coding agents parse them. The sentences after the keys are wording.
Settings: PROPTASTIC_* and proptastic.*, their values, and a blank one meaning unset Major They live in CI files. New settings come in a minor.
Defaults: tries, the profiles’ budgets, redraws, the fuzz cap, the certainty, PROPTASTIC_INCOMPLETE Minor A default may move in a minor, and its notes say so. A patch never moves one.
The 10,000-state cap on a spec’s graph Major Moving it can fail a build whose graph is committed.
The build plugins: the Gradle plugin io.proptastic, its tasks and proptastic { } keys; the Maven goals and <configuration> keys; -Pproptastic.… and -Dproptastic.… Major Build files and CI call them.
Models: the model tasks’ and goals’ names, models/tla/ and models/lean/, the model’s JSON lines, Model.serve, outcome and answer Major You commit the models you write. Which TLC version the build fetches may move in a minor.
The TLC trace route’s names: allowed, did, differs, the reserved names and PROPTASTIC_TLC Major The sentences around them, (TLC traces: N steps, M distinct) included, are wording.
What mutastic reads in a failure (below) Major Another tool parses it.
Wording for people: a failure’s sentences, how sure:, fails for any:, the stateful and thread messages (what the threads saw, the orders tried, the interleaving’s lines), help text and Next: hints Minor Wording gets better with use.
What’s marked @Internal, colour, widths, the order of fields in JSON, and the caches under .proptastic/fuzz/ and the build directory Not promised They’re proptastic’s own. Losing a cache loses nothing.

What’s @Internal is public only for proptastic’s own code: what the agent’s rewritten code and fuzz’s worker call, what generated step builders are built on, and what the commands share. The agent, fuzz and commands jars are run, not written against: what’s kept of them is how you run them, the agent’s -javaagent: argument, the plugins’ tasks and the command line.

mutastic parses a failure, so these keep the major promise whatever the wording around them does:

  • The failure is io.proptastic.core.PropertyFailure, an org.opentest4j.AssertionFailedError. Its message is your message, a blank line, then the report.
  • The header is <test> failed after N tries (seed 0x…), or <test> failed on …, its counts grouped with commas whatever the locale.
  • The first fact is shrunk counterexample: or counterexample:, two spaces in. A value too wide for its line sits on the lines below its key, four spaces in.
  • rerun: holds PROPTASTIC_SEED=0x…. Seeds print and read as 0x and hex.
  • A stateful or thread failure has shrunk steps: in place of a counterexample fact, so mutastic names no input for it, and reads nothing of its steps, its interleaving or the lines above its header.
  • The settings mutastic sets: PROPTASTIC_SEED, PROPTASTIC_SHRINK, PROPTASTIC_REPLAY, PROPTASTIC_EVENTS, PROPTASTIC_CORPUS, PROPTASTIC_COLOR.
  • A seed’s draws are keyed on the test’s signature, never its class, so mutastic’s renamed copies of a test draw what the original drew.

PROPTASTIC_MUTANT, PROPTASTIC_LOG and PROPTASTIC_CORPUS_MATRIX are between proptastic and mutastic. They change only together with mutastic, and may in a minor.

  • Bugs. A patch may fail a build that passed, when its fix finds a real bug in your code: a race the agent missed, say. Its notes say so under Fixes that can fail a build.
  • Security. A security fix may break what it has to, and its notes say why.
  • JDK 17. proptastic 1.x runs on JDK 17 or later. Raising that is a major release.
  • What’s provisional or experimental. A word the docs mark provisional, such as .inZones, and anything the docs call experimental may change in a minor.

The Java and Rust editions release each minor version together, at the same version, and keep the same promises; either may ship a patch alone. The proptastic command carries the same version: one version across the family. A Rust edition’s differences from Java’s, which Where the editions differ lists, keep its own edition’s promise.

Something kept until a major isn’t removed or renamed before one. In between:

  1. It’s deprecated: @Deprecated with its replacement named, the vocabulary marked, and a line in the notes under Deprecated.
  2. The replacement ships in the same release, so you can move at once.
  3. A deprecated option, setting or task still works, and says once what replaces it, on stderr or in the build log, never in the events, the agent format or a failure.
  4. It stays for at least one minor before the major that removes it, whose notes list each removal.

The contract tests hold the editions to each other, and to the failure format mutastic reads. Checks that hold each release to the one before it, its API, schemas, command line and formats, come with 1.0.1, now that 1.0.0 is out to compare with.

Privacy