Skip to content

Schemas

proptastic writes files that other tools read: your CI, mutastic, a coding agent, the proptastic command. Each has a JSON Schema, kept in the contract every edition’s tests hold to, so a tool can check what it reads, and every edition writes the same fields. The tables here are read from those schemas.

Each file names its schema in its schema field, such as proptastic.events/v1, so a tool can tell which it’s reading.

/schemas/events/v1.json. An event is one JSON object a line, written for each property to events/ in the build directory, and by the proptastic command for a whole run. Every event has these, and the fields of its reason:

FieldHoldsMeans
schema"proptastic.events/v1"The format and its major version. A change that would break a reader comes as v2, with a schema of its own.
edition optional"java", "rust", "swift"Which edition wrote the event, or which the CLI ran: every property-passed and property-failed has it, and a run-failed once the CLI has chosen an edition (decision 68).
reasona stringWhat the event is: property-passed or property-failed from the library; run-started, run-finished and run-failed from the CLI. Ignore an event whose reason you don't know: a later v1 may add one.
FieldHoldsMeans
schema"proptastic.events/v1"The format and its major version. A change that would break a reader comes as v2, with a schema of its own.
edition"java", "rust", "swift"Which edition wrote the event, or which the CLI ran: every property-passed and property-failed has it, and a run-failed once the CLI has chosen an edition (decision 68).
reason"property-passed"
propertya stringThe property as a failure's header names it, after its test's class or module: SortTest#sortKeepsSize. Its exact id is the manifest's id.
runa stringThe run's stamp: 16 hex digits the test process draws once, the same in every event it writes, so a reader can tell which properties ran together (decision 61).
starteda stringWhen the property started, in UTC to the millisecond: 2026-12-02T21:24:13.120Z. The CLI reads an event as its run's when it started at or after the CLI started the host, so it needn't trust a file's time (decision 61).
triesan integerThe tries it passed, corpus entries among them, examples not.
discardedan integerTries a filter or assume threw away.
seeda stringThe seed, 0x and hex digits, as a failure prints it.
corpusan integerCorpus entries it ran.
profile"local", "pr", "nightly"
budget optionala stringThe time budget, as said (2s), when it ran out before the tries did; absent otherwise.
statisticsan objectWhat classify counted: each label, and the tries it held on.
sizes optionalan objectThe sizes the counted tries drew (decision 100): each sized draw by its name, or each kind of sized value inside one, strings in xs, and the 50th, 90th and 99th percentiles, by nearest rank, of every such value's size; absent when no sized value was drawn.
targets optionalan objectEach target label's best score, "" for a score with no label (decision 62); absent when no try scored.
durationMsan integerHow long the property ran, in milliseconds.
howSure optionalan objectThe numbers the how sure: line and its long form are worked from (decision 41), so explain says what the library would; absent when no try was drawn at random, as with examples alone, tries 0 or .exhaustively().
incomplete optionala list of objectsEach require label the tries couldn't tell at 64 times those asked (decision 107), in the order they were asked for; absent when every label was told, and from an edition before decision 107.
model optionalan objectThe model or spec the property followed, as its pass names it; absent when it followed none.
outcomes optionala list of objectsEach of the model's outcomes, or a spec's actions, in the model's order, with what the tries reached; absent when it followed none.
FieldHoldsMeans
schema"proptastic.events/v1"The format and its major version. A change that would break a reader comes as v2, with a schema of its own.
edition"java", "rust", "swift"Which edition wrote the event, or which the CLI ran: every property-passed and property-failed has it, and a run-failed once the CLI has chosen an edition (decision 68).
reason"property-failed"
propertya stringThe property as a failure's header names it, after its test's class or module: SortTest#sortKeepsSize. Its exact id is the manifest's id.
runa stringThe run's stamp: 16 hex digits the test process draws once, the same in every event it writes, so a reader can tell which properties ran together (decision 61).
starteda stringWhen the property started, in UTC to the millisecond: 2026-12-02T21:24:13.120Z. The CLI reads an event as its run's when it started at or after the CLI started the host, so it needn't trust a file's time (decision 61).
id optionala stringThe counterexample's id, c and 8 hex digits: the first 8 of the SHA-256 of the property's id (the manifest's id), a newline, and the choices as the counterexample file writes them (decision 52). The counterexample file holds it too, as id=; example ID names it.
example optionalan integerWhich pinned example failed, counting from 1.
tries optionalan integerThe tries it made up to the failing one, that one included; 0 for a saved counterexample that failed again.
discarded optionalan integer
shrinkSteps optionalan integerThe smaller inputs shrinking found on its way.
fromCorpus optionala booleanWhether the failing input was a corpus entry.
seed optionala stringThe seed, 0x and hex digits, as a failure prints it.
shrunka booleanWhether shrinking made the input smaller.
flakya booleanWhether the input passed when it ran again (decision 18).
counterexamplean objectThe input that failed, smallest first when shrunk.
pin optionala string or a nullThe pin it: line, as source, or null where there's none.
failsForAny optionala list of stringsThe draws whose values didn't matter, as the fails for any: fact names them: by draw name where the edition has them, else value <n>, or the value for one draw. Empty when none, or when the edition didn't look.
rerun optionala string or a nullThe rerun: line: the CLI's, proptastic run --only='<id>' --seed=0x…, when PROPTASTIC_COMMANDS=proptastic (decision 63), else the host's own; null where proptastic doesn't know the host's command, or the chain fixes the seed.
assertiona string or a nullThe check's own message, untouched, or null when it had none.
location optionala anyWhere the check failed, in the test's own source, or null where that isn't known.
statistics optionalan objectWhat classify counted: each label, and the tries it held on.
sizes optionalan objectThe sizes the counted tries drew (decision 100): each sized draw by its name, or each kind of sized value inside one, strings in xs, and the 50th, 90th and 99th percentiles, by nearest rank, of every such value's size; absent when no sized value was drawn.
durationMs optionalan integerHow long the property ran, in milliseconds.
rendereda stringproptastic's report, as the failure prints it after the check's message.

Files a run leaves shows one.

The proptastic command writes these, around the properties’ own:

FieldHoldsMeans
schema"proptastic.events/v1"The format and its major version. A change that would break a reader comes as v2, with a schema of its own.
edition"java", "rust", "swift"Which edition wrote the event, or which the CLI ran: every property-passed and property-failed has it, and a run-failed once the CLI has chosen an edition (decision 68).
reason"run-started"
projecta stringThe project's directory, absolute.
host"gradle", "maven"The build tool whose test runner runs the properties, as the edition's hosts binding (E19) names it. Within v1 a host may be added.
commanda stringThe command the CLI ran, as a person would type it from where the CLI was run.
chosena list of stringsThe properties chosen, by the manifest's ids; null on a first run, which runs every test to register the properties (decision 50).
FieldHoldsMeans
schema"proptastic.events/v1"The format and its major version. A change that would break a reader comes as v2, with a schema of its own.
edition"java", "rust", "swift"Which edition wrote the event, or which the CLI ran: every property-passed and property-failed has it, and a run-failed once the CLI has chosen an edition (decision 68).
reason"run-finished"
passedan integerThe properties that passed.
failedan integerThe properties that failed.
missinga list of stringsThe properties chosen that wrote no event, by the manifest's ids: they didn't run.
registeredan integer or a nullOn a first run, how many properties the manifests have now; null on a later run.
overriddena list of objectsEach setting asked for that the properties ran without, as the human formats' ! lines say it (decision 49).
warningsa list of stringsWhat else the person should know, as the human formats' ! lines say it: a class that calls forAll and that the host doesn't run, as Surefire doesn't run a *Properties class by default.
reports optionala list of stringsThe reports the run wrote (decision 76), each file as typed from where the CLI was run; empty with --report=none. Absent from a CLI before decision 76.
incomplete optionala list of stringsThe properties that passed with a require label their tries couldn't tell (decision 107), by the manifest's ids; absent when there are none, and from a CLI before decision 107.
durationMsan integerHow long the property ran, in milliseconds.
exitCodean integer0 every property passed, 1 one failed: the CLI's exit. A run that can't finish ends in run-failed instead.
FieldHoldsMeans
schema"proptastic.events/v1"The format and its major version. A change that would break a reader comes as v2, with a schema of its own.
edition optional"java", "rust", "swift"The edition the CLI chose for the project, by --edition or from what it found there. Absent when the CLI failed before it chose one, as for a mistake in the command or no project found: then no edition was involved (decision 68).
reason"run-failed"
codea stringThe kind of failure, one of the contract's errors, such as unknown-option or ci-refused. A later v1 may add a code: treat one you don't know as other.
messagea stringThe error's first line, without proptastic: .
helpa list of objectsThe commands the error ends in, in its order. Empty when it offers none.
exitCodean integer
rendereda stringThe error as stderr has it, every line, proptastic: first.

/schemas/manifest/v1.json. properties.json in the build directory lists the properties a run found:

FieldHoldsMeans
schema"proptastic.manifest/v1"
edition"java", "rust", "swift"Which edition wrote the file.
propertiesa list of objectsThe properties, in order of id.

Each property:

FieldHoldsMeans
ida stringThe property's exact id in its host's form, as the edition's identity binding (E2) gives it: Java com.example.SortTest#sortKeepsSize().
classa stringThe test's class, module or file, as the host names it.
methoda stringThe test's name, as a failure's header prints it.
signaturea stringThe name the random stream is keyed on.
keya stringThe key of the property's corpus: its .id, or class and signature.
domainsa stringThe domains' shape, whose fingerprint marks corpus entries stale.
seeda stringThis run's seed, 0x and hex digits.
seeded"chain", "setting", "random"Where the seed came from: the chain's .seed, PROPTASTIC_SEED, or drawn at random.
triesan integerThe tries the run allows.
budgeta string or a nullThe time budget, as said (2s), or null.
profile"local", "pr", "nightly"
ata anyWhere the property's forAll is called, which --at selects by and example pins after; null where the edition can't tell.
task optionala string or a nullThe host's task that ran the property, as the CLI runs it again (decision 75): a Gradle test task's name, test or docsTest; Maven's test under Surefire, verify under Failsafe; null where the edition can't tell. Not required: a manifest written before decision 75 has none, and is still v1; a reader takes none as the host's default task.

/schemas/proposals/v1.json. .proptastic/proposals.yaml holds the examples proposed for a person to accept, as YAML this schema describes:

FieldHoldsMeans
proposalsa list of objects

Each proposal:

FieldHoldsMeans
ida stringThe counterexample's id, as its file held it (decisions 52 and 67): c4f1a2b9e.
propertya stringThe property's exact id, as the manifest has it: com.example.SortTest#sortKeepsSize().
at optionala stringWhere its forAll is called, the manifest's at as path:line: com/example/SortTest.java:14. Absent, with code, where the edition couldn't tell.
code optionala stringThe line at at when it was proposed, as it was: once that line changes, the proposal no longer holds, and example refuses to pin it (decision 54).
pina stringThe pin line, as the failure printed it: .example(List.of(0, 0)), or .seed(0x…) for an input with no source form.
counterexamplea stringThe counterexample, as the failure printed it: xs = [0, 0].
found"run", "fuzz"Which command's run found it.
whena stringWhen it was found, the failure's event's started, in UTC to the millisecond: 2026-12-02T21:24:13.120Z.
seeda stringThe seed that found it, as a failure prints it.
reasona stringWhy this input belongs in the spec, as --reason said.

/schemas/report/v1.json. report.json, the proptastic command’s report of its last run:

FieldHoldsMeans
schema"proptastic.report/v1"
edition"java", "rust", "swift"The edition the CLI ran.
toolan object
command"run", "fuzz"The command that wrote it.
projecta stringThe project's directory, absolute.
host"gradle", "maven"The build tool whose test runner ran the properties, as the edition's hosts binding (E19) names it. Within v1 a host may be added.
rana stringThe build's command, as a person would type it.
starteda stringWhen the CLI started the build, in UTC to the millisecond.
durationMsan integer
exitCodean integerWhat the CLI exited with: 0 every property passed, 1 one failed, 3 the build failed and no property did.
askedan objectThe settings asked for on the line, each option's value as typed, --replay as true; an option not given is absent.
totalsan object
overriddena list of objectsEach setting asked for that the build or a chain beat, as run-finished carries it (decision 49).
fuzz optionalan object or a nullWhat fuzz searched, on a fuzz run's report; absent or null on run's (decision 56).
warningsa list of stringsWhat else the person should know, as the human formats' ! lines say it.
changesa anyWhat changed since the last report in the same place, by the manifest's ids; null when there was none to compare with.
propertiesa list of objectsEach property the run chose or registered, in order of id.

Each property in it:

FieldHoldsMeans
ida stringThe property's exact id, the manifest's.
namea stringAs a failure's header names it: SortTest#sortKeepsSize.
modulea stringThe module's directory from the project, . for the project's own.
taska string or a nullThe host's task that ran it, the manifest's task (decision 75).
ata anyWhere its forAll is, the manifest's at.
verdict"passed", "failed", "didntRun"What this run found of it.
eventan object or a nullIts event this run, as the library wrote it: a property-passed or property-failed of proptastic.events/v1, with everything the library knows (how sure, the model and its outcomes, classify's counts, targets, the counterexample, fails for any, the pin and rerun lines); null when it didn't run.
counterexamplea anyThe counterexample saved for it after the run, which the library replays first; null when none is saved.
corpusan integerThe inputs kept in its corpus, under .proptastic/corpus/<name>/: a count of inputs, never coverage.

Privacy