JSON output

okproof check, gate, lint, explain and suggest print one JSON document on stdout with --json. Notes, warnings and lint lines go to stderr. Every document has "schemaVersion": 1 and "command". Within a schema version fields are only added, never renamed or removed.

check

{ schemaVersion, command: "check", ok, dirs: [{ dir, proofs: [{ issue, title, criteria: [{ id, text, level? }] }] }], drift? }

drift (with --issue-body): { issue, onlyInIssue: string[], onlyInProof: string[] }. ok is false when they differ (exit 1).

gate

{ schemaVersion, command: "gate", ok, problems, notes, warnings, dirs: [{ dir, ok, problems, notes, ledgers? }] }

ledgers (only with --results): [{ issue, title, proven, criteria: [{ id, text, verdict, level?, required?, tests }] }]. verdict is one of met, failed, flaky, unproven, untested, insufficient. With several proof folders, top-level problems are prefixed with [dir]. Exit code: 0 ok, 1 not proven, 2 usage or read error (no document).

lint

{ schemaVersion, command: "lint", ok, weak, asserting, overclaims, unrelated, dangling, suiteTagged, untested, filesScanned, notes }

Findings carry file, line, ids (or id), title. untested is [{ id, text }].

explain

{ schemaVersion, command: "explain", id, issue, text, source, verdict, level?, required?, why, tests: [{ title, status, assertions?, evidence?, quarantined? }], gaps }

source is results, committed-ledger or none.

suggest

{ schemaVersion, command: "suggest", suggestions: [{ id, text, candidates: [{ title, file?, line?, score, shared, tag }] }], notes }

View source on GitHub