JSON reports
faultline run <scenario> [--dry-run] [--format text|json] [--report FILE]
faultline plan <scenario> [--format text|json] [--report FILE]
faultline replay <scenario> --from REPORT [--format text|json] [--report FILE]
Run and replay default to text. Plan defaults to JSON and makes zero network connections. A plan is a report with execution outcome planned, exit code 0, and every delivery and assertion unattempted or unevaluated. The existing text dry run retains its redacted preview. JSON dry run produces the same report as plan.
Text output uses aligned summary records and a delivery table. Fields ending in _ns are integer nanoseconds. The dispatch and complete columns are client observation ranks. Their offsets are relative to run start. A dash in the dispatch column denotes an unattempted delivery. A dash in http_status means no HTTP status was confirmed. The text preview omits scenario URLs and redacts input values. Use JSON for automated consumption.
JSON stdout contains one report per execution that reaches the planner or engine and produces an outcome, including handled cancellation and delivery failure. Usage, input, and output diagnostics go to stderr. The report's exit code describes the execution. An output failure makes the process return 1 and can prevent one of the requested outputs from being delivered. The CLI publishes the file before writing stdout.
On Unix, --report stages the report with mode 0600 and atomically links the complete file under a new name in its destination directory. The directory must already exist, support hard links, have no symlink components, and be protected against other users replacing directory entries. A directory writable by group or others must have the sticky bit set. Existing files, symlinks (including dangling symlinks), and nonregular entries are refused. Concurrent publication to the same name leaves the first file in place. Use a directory and its parents whose owners you trust. Windows refuses --report because Unix mode bits cannot establish a private Windows ACL. Capture JSON stdout in UTF-8 instead.
JSON schema v1
See the JSON Schema and example report. All named fields are required. Report, planner, and Faultline versions describe the format, scheduling algorithm, and CLI build version respectively. The CLI build version is informational.
- All timings are integer nanoseconds. The seed is either a canonical decimal string holding the full unsigned 64-bit value or null.
- Schedule entries and delivery observations share one-based sequence numbers. An entry's ID is its one-based position before shuffling. Deliveries appear in plan order. An unattempted row uses
attempted: false,status_check: "not_evaluated", empty error code, and zero observations. Status 0 means no confirmed response status. - Assertions use one-based IDs in scenario declaration order. Outcomes are
matched,mismatch,missing, andnot_evaluated. Unevaluated rows remain present when verification is skipped or interrupted. - The report includes counts, response status codes, timings, and fixed error codes. It omits target and request configuration, assertion paths and values, response bodies, raw errors, and content fingerprints.