# Output JSON This document describes the current machine-readable JSON emitted by `xburner`. ## Versions - probe schema version: `1` - run summary schema version: `2` The schema versions are defined in: - [src/contracts.zig](../src/contracts.zig) ## Probe Output Probe output is produced by: - `xburner validate --dry-run ` - `xburner validate --with-setup ` Current fields: - `schema_version`: probe schema version - `kind`: `dry-run` or `with-setup` - `scenario_mode`: `simple` or `workflow` - `wasm_backend`: `wamr` or `wasm3` - `setup_requests`: number of setup requests in config - `measured_requests`: number of request templates in config - `wasm`: workflow Wasm path when present - `rendered_path`: rendered path preview when available - `rendered_request_id`: request id preview when available - `rendered_method`: request method preview when available - `rendered_body_bytes`: rendered body size when available Examples: - [testdata/golden/simple_dry_run.json](../testdata/golden/simple_dry_run.json) - [testdata/golden/simple_with_setup.json](../testdata/golden/simple_with_setup.json) - [testdata/golden/workflow_dry_run.json](../testdata/golden/workflow_dry_run.json) - [testdata/golden/workflow_with_setup.json](../testdata/golden/workflow_with_setup.json) ## Run Summary Output Run summary output is produced by: - `xburner run ` The final JSON summary is written to `stdout`. Top-level fields: - `schema_version` - `scenario_name` - `scenario_mode` - `wasm_backend` - `interrupted` - `measured` - `warmup` - `thresholds_failed` ## Window Summary Fields Both `measured` and `warmup` currently include: - `requests_total` - `requests_failed` - `iterations_total` - `iterations_failed` - `dropped_iterations` - `bytes_sent` - `bytes_received` - `scheduler_lag_avg_nanos` - `scheduler_lag_max_nanos` - `error_rate` - `success_rate` - `duration_min_nanos` - `duration_max_nanos` - `duration_avg_nanos` - `duration_p50_nanos` - `duration_p90_nanos` - `duration_p99_nanos` - `transport_errors_total` - `transport_errors_dns` - `transport_errors_connect` - `transport_errors_tls` - `transport_errors_write` - `transport_errors_read` - `transport_errors_timeout` - `transport_errors_connect_timeout` - `transport_errors_io_timeout` - `transport_errors_protocol` - `grpc_deadline_exceeded_total` - `grpc_status_counts` - `checks_passed_total` - `checks_failed_total` - `check_pass_rate` - `script_errors_total` - `script_timeouts_total` - `hard_timeouts_total` - `poisoned_workers_total` - `vus_recreated_total` - `unhealthy_vus_total` - `spare_vus_activated_total` - `request_summaries` ## Request Summaries `request_summaries` is a name-sorted array of per-request aggregates. Each entry contains: - `name` - `summary.requests_total` - `summary.requests_failed` - `summary.error_rate` - `summary.duration_p50_nanos` - `summary.duration_p90_nanos` - `summary.duration_p99_nanos` - `summary.transport_errors_total` - `summary.transport_errors_timeout` - `summary.transport_errors_connect_timeout` - `summary.transport_errors_io_timeout` - `summary.grpc_deadline_exceeded_total` - `summary.grpc_status_counts` - `summary.checks_passed_total` - `summary.checks_failed_total` - `summary.check_pass_rate` - `summary.transport_error_rate` - `summary.transport_timeout_rate` - `summary.transport_connect_timeout_rate` - `summary.transport_io_timeout_rate` ## Golden Tests The repository keeps deterministic golden coverage for probe and summary output: - [scripts/test_golden_outputs.sh](../scripts/test_golden_outputs.sh) - [scripts/test_summary_golden.sh](../scripts/test_summary_golden.sh) Notes: - probe JSON is compared directly - run summary JSON is normalized to a stable subset before comparison - summary normalization intentionally excludes high-variance counters such as request totals and latency values - request summaries are normalized to stable fields such as name and failure/timeout counters