Documentation contents

Standalone archive quickstart

Run these commands from the extracted archive directory. The executable, license, and example scenarios are included.

Check the executable and plan

Use these commands on Linux or with an approved internal macOS candidate.

./faultline version
./faultline help
./faultline plan examples/seeded-delays.yaml

Use PowerShell on Windows.

.\faultline.exe version
.\faultline.exe help
.\faultline.exe plan examples/seeded-delays.yaml

Planning makes zero target connections. Windows binaries are unsigned and may be blocked by application controls. macOS archives are internal candidates without Developer ID signing or notarization. Follow your local policy for either platform.

Run a demo and inspect its result

In one terminal, start the fixed backend.

./faultline demo --mode fixed --port 8082

In a second terminal in the archive directory, run the scenario from a fresh demo and save a report.

report_dir=$(mktemp -d "${TMPDIR:-/tmp}/faultline-reports.XXXXXXXX")
report_dir=$(cd "$report_dir" && pwd -P)
./faultline run examples/duplicate-fixed.yaml --report "$report_dir/run.json"
./faultline ui --report "$report_dir/run.json"

A fresh fixed demo returns PASS / exit 0 after receiving two events and creating one order. To see the failing invariant, start ./faultline demo --mode buggy --port 8081 and run examples/duplicate-buggy.yaml against it. A fresh buggy demo returns FAIL / exit 3 and creates two orders.

--report requires a new path in a safe existing directory. It refuses to overwrite a file or follow symlink components. On macOS, /tmp is a symlink. The physical path from pwd -P avoids that alias. Choose a private directory under a trusted parent. Use a new report filename for each run.

On Windows, start the demo with .\faultline.exe demo --mode fixed --port 8082 in a separate terminal. Atomic --report publication is unavailable on Windows. This PowerShell 7 example saves UTF-8 JSON without a byte order mark. Use a fresh filename in a private directory.

.\faultline.exe run examples/duplicate-fixed.yaml --format json | Set-Content -Encoding utf8NoBOM run.json
.\faultline.exe ui --report run.json

Set-Content can overwrite an existing file. When the inspector starts, open its printed loopback address. Stop the demo and inspector with Ctrl+C.