JSON Output
With --json, tanny check prints a single JSON object to stdout:
text
{
"diagnostics": [],
"verdicts": [
{
"file": "examples/bank_account.py",
"model": "small_account_model",
"verdict": "PASS",
"kind": null,
"name": null,
"detail": "884 states; deposit.amount ∈ 1..3, withdraw.amount ∈ 1..3; bounded by state_constraint",
"warnings": [],
"trace": []
}
]
}
Schema#
| Field | Type | Description |
|---|---|---|
diagnostics |
string[] |
All program-level frontend diagnostics formatted as <path>:<line>:<col>: <code> <message>. |
verdicts |
object[] |
One entry per checked model. |
verdicts[].file |
string |
Path to the file declaring the model (relative to the current working directory when possible). |
verdicts[].model |
string |
Name of the Model variable. |
verdicts[].verdict |
"PASS" \| "FAIL" \| "ERROR" |
Outcome of checking the model. |
verdicts[].kind |
string \| null |
Failure kind (FAIL) or diagnostic code (ERROR); null on PASS. |
verdicts[].name |
string \| null |
Violated clause, action, refinement part, or function name on FAIL; null otherwise. |
verdicts[].detail |
string |
Summary (PASS), failure detail (FAIL), or diagnostic message (ERROR). |
verdicts[].warnings |
string[] |
Deduplicated warning codes associated with the model. |
verdicts[].trace |
string[] |
Counterexample steps in Python syntax (FAIL only; empty otherwise). |