{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/CyberdyneCorp/rustman/docs/schemas/report.schema.json",
  "title": "rustman.report/v1",
  "description": "A Rustman report: a run (kind: run), an exploration (kind: exploration), a contract check (kind: contract), a load test (kind: bench) or a stress test (kind: stress). Every text field is redacted: secret values appear as «redacted:<name>».",
  "oneOf": [
    {
      "$ref": "#/$defs/run_report"
    },
    {
      "$ref": "#/$defs/exploration_report"
    },
    {
      "$ref": "#/$defs/contract_report"
    },
    {
      "$ref": "#/$defs/bench_report"
    },
    {
      "$ref": "#/$defs/stress_report"
    }
  ],
  "$defs": {
    "run_report": {
      "description": "A `rustman run` (or `rustman send`) report.",
      "type": "object",
      "required": [
        "schema",
        "kind",
        "rustman_version",
        "started_at",
        "environment",
        "summary",
        "requests"
      ],
      "properties": {
        "schema": {
          "const": "rustman.report/v1"
        },
        "kind": {
          "const": "run"
        },
        "rustman_version": {
          "type": "string"
        },
        "started_at": {
          "type": "string",
          "format": "date-time"
        },
        "environment": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "$ref": "#/$defs/summary"
        },
        "requests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/request"
          }
        }
      }
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "ms": {
      "type": "number",
      "minimum": 0
    },
    "optional_ms": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "summary": {
      "type": "object",
      "required": [
        "total",
        "passed",
        "failed",
        "errored",
        "skipped",
        "duration_ms",
        "interrupted"
      ],
      "properties": {
        "total": {
          "$ref": "#/$defs/count"
        },
        "passed": {
          "$ref": "#/$defs/count"
        },
        "failed": {
          "$ref": "#/$defs/count"
        },
        "errored": {
          "$ref": "#/$defs/count"
        },
        "skipped": {
          "$ref": "#/$defs/count"
        },
        "duration_ms": {
          "$ref": "#/$defs/ms"
        },
        "interrupted": {
          "type": "boolean",
          "description": "Stopped by Ctrl+C; the requests are partial."
        },
        "snapshots": {
          "$ref": "#/$defs/snapshot_counts"
        }
      }
    },
    "request": {
      "type": "object",
      "required": [
        "id",
        "name",
        "file",
        "iteration",
        "status",
        "skip_reason",
        "error",
        "exchange",
        "assertions",
        "captures",
        "warnings",
        "duration_ms"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "file": {
          "type": "string"
        },
        "iteration": {
          "type": "integer",
          "minimum": 1
        },
        "data_row": {
          "$ref": "#/$defs/data_row"
        },
        "status": {
          "enum": [
            "passed",
            "failed",
            "errored",
            "skipped"
          ]
        },
        "skip_reason": {
          "enum": [
            "bail",
            "interrupted",
            "unsupported_kind",
            "signing_not_requested",
            null
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "exchange": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/exchange"
            }
          ]
        },
        "jsonrpc": {
          "$ref": "#/$defs/jsonrpc"
        },
        "grpc": {
          "$ref": "#/$defs/grpc"
        },
        "realtime": {
          "$ref": "#/$defs/realtime"
        },
        "evm": {
          "description": "The decoded result of an evm-call: chain, client, function, outputs or revert, gas estimate.",
          "type": "object"
        },
        "assertions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/assertion"
          }
        },
        "captures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/capture"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "duration_ms": {
          "$ref": "#/$defs/ms"
        },
        "trace": {
          "$ref": "#/$defs/trace"
        },
        "transform": {
          "$ref": "#/$defs/transform"
        },
        "plugin_kind": {
          "$ref": "#/$defs/plugin_kind"
        }
      }
    },
    "jsonrpc": {
      "type": "object",
      "description": "The JSON-RPC side of a kind: jsonrpc request: the envelopes sent and received per call, every HTTP attempt, and a subscription's events (the first 1000). Absent from every other request. Added in v0.5.",
      "required": [
        "transport",
        "batch",
        "calls",
        "elapsed_ms"
      ],
      "properties": {
        "transport": {
          "enum": [
            "http",
            "ws"
          ]
        },
        "batch": {
          "type": "boolean"
        },
        "calls": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "method",
              "id",
              "request",
              "response",
              "outcome"
            ],
            "properties": {
              "method": {
                "type": "string"
              },
              "id": {
                "description": "The id sent; null for a notification."
              },
              "request": {
                "type": "object",
                "description": "The envelope sent."
              },
              "response": {
                "description": "The envelope that answered this call, or null."
              },
              "outcome": {
                "enum": [
                  "result",
                  "error",
                  "notification",
                  "failed"
                ]
              },
              "failure": {
                "type": "string"
              }
            }
          }
        },
        "attempts": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "status",
              "error",
              "elapsed_ms"
            ],
            "properties": {
              "status": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "elapsed_ms": {
                "$ref": "#/$defs/ms"
              },
              "retry_in_ms": {
                "$ref": "#/$defs/ms"
              }
            }
          }
        },
        "subscription": {
          "type": "object",
          "required": [
            "subscription_id",
            "event_count",
            "events",
            "ended",
            "unsubscribed",
            "elapsed_ms"
          ],
          "properties": {
            "subscription_id": {},
            "event_count": {
              "type": "integer",
              "minimum": 0
            },
            "events": {
              "type": "array",
              "maxItems": 1000
            },
            "ended": {
              "enum": [
                "max_events",
                "duration",
                "stopped",
                "closed"
              ]
            },
            "unsubscribed": {
              "type": "boolean"
            },
            "elapsed_ms": {
              "$ref": "#/$defs/ms"
            }
          }
        },
        "note": {
          "type": "string"
        },
        "refusal": {
          "enum": [
            "validation",
            "guard"
          ]
        },
        "elapsed_ms": {
          "$ref": "#/$defs/ms"
        }
      }
    },
    "grpc": {
      "type": "object",
      "description": "The gRPC side of a kind: grpc request (protocol grpc): the call type and transport, the final status with decoded details, response headers and trailers (binary values in base64), every received message, the message timeline of streaming calls and timings; or, when the call ended without a status, the error and its kind (config or request). Absent from every other request. Added in v0.5.",
      "required": [
        "protocol",
        "target",
        "method"
      ],
      "properties": {
        "protocol": {
          "const": "grpc"
        },
        "target": {
          "type": "string"
        },
        "method": {
          "type": "string",
          "description": "package.Service/Method"
        },
        "call_type": {
          "enum": [
            "unary",
            "server_streaming",
            "client_streaming",
            "bidi"
          ]
        },
        "transport": {
          "enum": [
            "grpc",
            "grpc-web"
          ]
        },
        "status": {
          "type": "object",
          "required": [
            "code",
            "name",
            "message",
            "details"
          ]
        },
        "headers": {
          "type": "array"
        },
        "trailers": {
          "type": "array"
        },
        "messages": {
          "type": "array"
        },
        "timeline": {
          "type": "array"
        },
        "timings": {
          "type": "object"
        },
        "stopped": {
          "type": "object"
        },
        "error": {
          "type": "object",
          "required": [
            "kind",
            "message"
          ],
          "properties": {
            "kind": {
              "enum": [
                "config",
                "request"
              ]
            },
            "message": {
              "type": "string"
            }
          }
        }
      }
    },
    "realtime": {
      "type": "object",
      "description": "The realtime side of a kind: ws or kind: sse request: the handshake, the message timeline (at most max_timeline entries, payloads above 64 KiB cut to a preview), how many entries were dropped and how the session ended. Absent from every other request. Added in v0.6.",
      "required": [
        "protocol",
        "timeline",
        "dropped_entries",
        "received",
        "elapsed_ms"
      ],
      "properties": {
        "protocol": {
          "enum": [
            "ws",
            "sse"
          ]
        },
        "handshake": {
          "type": "object",
          "required": [
            "status",
            "headers"
          ],
          "properties": {
            "status": {
              "type": "integer"
            },
            "headers": {
              "$ref": "#/$defs/headers"
            },
            "subprotocol": {
              "type": "string"
            },
            "body": {
              "type": "string",
              "description": "The body of a refused upgrade (at most 64 KiB)."
            }
          }
        },
        "timeline": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "dir",
              "t_ms",
              "size",
              "type",
              "payload"
            ],
            "properties": {
              "dir": {
                "enum": [
                  "sent",
                  "received",
                  "system"
                ]
              },
              "t_ms": {
                "type": "integer",
                "minimum": 0
              },
              "size": {
                "type": "integer",
                "minimum": 0,
                "description": "The full payload size in bytes."
              },
              "type": {
                "type": "string",
                "description": "text, binary, json, ping, pong, close, a system note (connect, reconnect, error) or the SSE event type; at most 1 KiB."
              },
              "payload": {
                "type": "string",
                "description": "Text, or binary data in base64; at most 64 KiB."
              },
              "truncated": {
                "type": "boolean",
                "description": "The payload was cut to 64 KiB, or the type or id to 1 KiB."
              },
              "id": {
                "type": "string",
                "description": "The SSE event id; at most 1 KiB."
              },
              "rtt_ms": {
                "type": "integer",
                "minimum": 0
              }
            }
          }
        },
        "dropped_entries": {
          "type": "integer",
          "minimum": 0
        },
        "received": {
          "type": "integer",
          "minimum": 0
        },
        "end": {
          "type": "object",
          "required": [
            "reason"
          ],
          "properties": {
            "reason": {
              "type": "string"
            },
            "close_code": {
              "type": "integer"
            },
            "close_reason": {
              "type": "string"
            }
          }
        },
        "elapsed_ms": {
          "$ref": "#/$defs/ms"
        }
      }
    },
    "data_row": {
      "type": "object",
      "description": "The data row a data-driven (--data) run used; absent from every run without --data (--iterations included). Added in v0.2.",
      "required": [
        "index",
        "total",
        "label"
      ],
      "properties": {
        "index": {
          "type": "integer",
          "minimum": 1
        },
        "total": {
          "type": "integer",
          "minimum": 1
        },
        "label": {
          "type": "string",
          "description": "The --data-label column's value, else row <index>."
        }
      }
    },
    "header": {
      "type": "object",
      "required": [
        "name",
        "value"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "headers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/header"
      }
    },
    "exchange": {
      "type": "object",
      "required": [
        "request",
        "response",
        "timings",
        "redirects",
        "insecure"
      ],
      "properties": {
        "request": {
          "type": "object",
          "required": [
            "method",
            "url",
            "headers",
            "body"
          ],
          "properties": {
            "method": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "headers": {
              "$ref": "#/$defs/headers"
            },
            "body": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "response": {
          "type": "object",
          "required": [
            "status",
            "http_version",
            "headers",
            "body",
            "body_bytes",
            "body_truncated",
            "binary"
          ],
          "properties": {
            "status": {
              "type": "integer",
              "minimum": 100,
              "maximum": 999
            },
            "http_version": {
              "enum": [
                "HTTP/1.0",
                "HTTP/1.1",
                "HTTP/2"
              ]
            },
            "headers": {
              "$ref": "#/$defs/headers"
            },
            "body": {
              "type": [
                "string",
                "null"
              ]
            },
            "body_bytes": {
              "$ref": "#/$defs/count"
            },
            "body_truncated": {
              "type": "boolean"
            },
            "binary": {
              "type": "boolean"
            }
          }
        },
        "timings": {
          "type": "object",
          "required": [
            "dns_ms",
            "connect_ms",
            "tls_ms",
            "ttfb_ms",
            "download_ms",
            "total_ms"
          ],
          "properties": {
            "dns_ms": {
              "$ref": "#/$defs/optional_ms"
            },
            "connect_ms": {
              "$ref": "#/$defs/optional_ms"
            },
            "tls_ms": {
              "$ref": "#/$defs/optional_ms"
            },
            "ttfb_ms": {
              "$ref": "#/$defs/ms"
            },
            "download_ms": {
              "$ref": "#/$defs/ms"
            },
            "total_ms": {
              "$ref": "#/$defs/ms"
            },
            "auth_ms": {
              "$ref": "#/$defs/ms"
            }
          }
        },
        "redirects": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "status",
              "url"
            ],
            "properties": {
              "status": {
                "type": "integer"
              },
              "url": {
                "type": "string"
              }
            }
          }
        },
        "insecure": {
          "type": "boolean"
        },
        "server_timings": {
          "type": "array",
          "description": "The response's Server-Timing metrics, in order; absent when it has none. Added in v0.6.",
          "items": {
            "$ref": "#/$defs/server_timing"
          }
        }
      }
    },
    "assertion": {
      "type": "object",
      "required": [
        "kind",
        "outcome",
        "label",
        "expected",
        "actual",
        "message"
      ],
      "properties": {
        "kind": {
          "enum": [
            "status",
            "header",
            "json",
            "schema",
            "body",
            "latency",
            "no_errors",
            "errors_count",
            "error_message_contains",
            "error_code",
            "data",
            "rpc_error",
            "grpc_status",
            "metadata",
            "snapshot",
            "messages",
            "close_code"
          ]
        },
        "outcome": {
          "enum": [
            "pass",
            "fail",
            "error"
          ]
        },
        "label": {
          "type": "string"
        },
        "expected": {
          "type": [
            "string",
            "null"
          ]
        },
        "actual": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": "string"
        },
        "snapshot": {
          "$ref": "#/$defs/snapshot_result"
        }
      }
    },
    "capture": {
      "type": "object",
      "required": [
        "var",
        "outcome",
        "message",
        "required",
        "persisted",
        "secret"
      ],
      "properties": {
        "var": {
          "type": "string"
        },
        "outcome": {
          "enum": [
            "captured",
            "no_match",
            "error"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "required": {
          "type": "boolean"
        },
        "persisted": {
          "type": "boolean"
        },
        "secret": {
          "type": "boolean"
        }
      }
    },
    "snapshot_counts": {
      "description": "How the run's snapshot assertions ended; absent when the run had none.",
      "type": "object",
      "required": [
        "matched",
        "recorded",
        "updated",
        "failed",
        "missing"
      ],
      "properties": {
        "matched": {
          "$ref": "#/$defs/count"
        },
        "recorded": {
          "$ref": "#/$defs/count"
        },
        "updated": {
          "$ref": "#/$defs/count"
        },
        "failed": {
          "$ref": "#/$defs/count"
        },
        "missing": {
          "$ref": "#/$defs/count"
        }
      }
    },
    "snapshot_result": {
      "description": "The outcome of a `snapshot` assertion. Every value is redacted.",
      "type": "object",
      "required": [
        "name",
        "state",
        "path"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "state": {
          "enum": [
            "matched",
            "recorded",
            "updated",
            "failed",
            "missing"
          ]
        },
        "path": {
          "type": "string",
          "description": "The snapshot file, relative to the workspace, with `/`."
        },
        "diff": {
          "$ref": "#/$defs/snapshot_diff"
        }
      }
    },
    "snapshot_diff": {
      "description": "The differences from the stored snapshot.",
      "type": "object",
      "required": [
        "changes",
        "more"
      ],
      "properties": {
        "changes": {
          "type": "array",
          "maxItems": 50,
          "items": {
            "$ref": "#/$defs/snapshot_change"
          }
        },
        "more": {
          "$ref": "#/$defs/count"
        },
        "text": {
          "type": "string",
          "description": "The unified diff of text bodies."
        },
        "binary": {
          "type": "object",
          "required": [
            "old_size",
            "old_sha256",
            "new_size",
            "new_sha256"
          ],
          "properties": {
            "old_size": {
              "$ref": "#/$defs/count"
            },
            "old_sha256": {
              "type": "string"
            },
            "new_size": {
              "$ref": "#/$defs/count"
            },
            "new_sha256": {
              "type": "string"
            }
          }
        },
        "event_count": {
          "type": "object",
          "required": [
            "old",
            "new"
          ],
          "properties": {
            "old": {
              "$ref": "#/$defs/count"
            },
            "new": {
              "$ref": "#/$defs/count"
            }
          }
        },
        "body_type": {
          "type": "object",
          "required": [
            "old",
            "new"
          ],
          "properties": {
            "old": {
              "type": "string"
            },
            "new": {
              "type": "string"
            }
          }
        }
      }
    },
    "snapshot_change": {
      "type": "object",
      "required": [
        "path",
        "kind"
      ],
      "properties": {
        "path": {
          "type": "string",
          "description": "A JSONPath into the body, or `status` or `headers.<name>`."
        },
        "kind": {
          "enum": [
            "added",
            "removed",
            "changed"
          ]
        },
        "old": {},
        "new": {}
      }
    },
    "trace": {
      "type": "object",
      "description": "The trace context the request carried (trace propagation on, or a traceparent/B3 header the request set). Absent otherwise. Added in v0.6.",
      "required": [
        "trace_id",
        "span_id",
        "sampled"
      ],
      "properties": {
        "trace_id": {
          "type": "string",
          "pattern": "^[0-9a-f]{32}$"
        },
        "span_id": {
          "type": "string",
          "pattern": "^[0-9a-f]{16}$"
        },
        "sampled": {
          "type": "boolean"
        },
        "backend_trace_id": {
          "type": "string",
          "pattern": "^[0-9a-f]{32}$",
          "description": "The trace id of the response's traceresponse, when it differs from trace_id; links use it."
        },
        "tracestate": {
          "type": "string",
          "description": "The tracestate header sent, redacted."
        },
        "baggage": {
          "type": "string",
          "description": "The baggage header sent, redacted."
        },
        "start_ms": {
          "type": "integer",
          "minimum": 0,
          "description": "Unix milliseconds when the exchange started."
        },
        "end_ms": {
          "type": "integer",
          "minimum": 0,
          "description": "Unix milliseconds when the exchange ended."
        },
        "link": {
          "type": "string",
          "description": "The trace link, when a link template is configured (redacted)."
        }
      }
    },
    "server_timing": {
      "type": "object",
      "required": [
        "name",
        "dur_ms"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "dur_ms": {
          "$ref": "#/$defs/optional_ms"
        },
        "desc": {
          "type": "string"
        }
      }
    },
    "transform": {
      "type": "object",
      "description": "The plugin transformers a request went through (transform:), and the response body as received; the exchange holds the transformed response. Absent without transform:. Added in v0.7.",
      "properties": {
        "request": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "response": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "original_body": {
          "type": "string"
        },
        "original_body_bytes": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "plugin_kind": {
      "type": "object",
      "description": "The exchange of a request of a plugin kind, as the plugin reported it. Absent from every other request. Added in v0.7.",
      "required": [
        "kind",
        "summary",
        "status",
        "headers",
        "body",
        "body_bytes"
      ],
      "properties": {
        "kind": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "request_body": {
          "type": "string"
        },
        "status": {
          "type": [
            "integer",
            "null"
          ]
        },
        "headers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/header"
          }
        },
        "body": {
          "type": [
            "string",
            "null"
          ]
        },
        "body_bytes": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "Settings": {
      "type": "object",
      "properties": {
        "probes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Family"
          }
        },
        "operations": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "seed": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "fuzz_cases": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "allow_mutations": {
          "type": "boolean"
        },
        "allow_destructive": {
          "type": "boolean"
        },
        "allow_hosts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Extra origins (`--allow-host`), as `scheme://host[:port]`.",
          "default": []
        },
        "production": {
          "type": [
            "string",
            "null"
          ],
          "description": "`--production <host>`.",
          "default": null
        },
        "allow_remote_refs": {
          "type": "boolean",
          "default": false
        },
        "rate": {
          "type": "integer",
          "format": "uint32",
          "minimum": 0
        },
        "concurrency": {
          "type": "integer",
          "format": "uint32",
          "minimum": 0
        },
        "max_probes": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "max_duration_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "fail_on": {
          "$ref": "#/$defs/Severity"
        }
      },
      "required": [
        "probes",
        "seed",
        "fuzz_cases",
        "allow_mutations",
        "allow_destructive",
        "rate",
        "concurrency",
        "max_probes",
        "max_duration_ms",
        "fail_on"
      ],
      "description": "Everything a resume repeats: the probe selection, the seed, the safety\nflags and the budgets."
    },
    "Family": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "conformance",
            "auth",
            "negative-input",
            "method-not-allowed",
            "lifecycle",
            "bola",
            "fuzz",
            "undocumented-status",
            "error-leakage",
            "security-headers"
          ]
        },
        {
          "type": "string",
          "const": "evm-rpc",
          "description": "The checks of `rustman evm probe` (`subject: evm-rpc`); never a\n`--probes` family of `explore run`."
        }
      ],
      "description": "A probe family (`--probes`), in plan order."
    },
    "Severity": {
      "type": "string",
      "enum": [
        "critical",
        "high",
        "medium",
        "low",
        "info"
      ],
      "description": "How bad a finding is, most severe first."
    },
    "ExplorationSummary": {
      "type": "object",
      "properties": {
        "probes": {
          "$ref": "#/$defs/ProbeTotals"
        },
        "findings": {
          "$ref": "#/$defs/SeverityCounts",
          "description": "Distinct findings by severity."
        },
        "requests": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Requests sent, cleanup included."
        },
        "duration_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Time spent executing."
        }
      },
      "required": [
        "probes",
        "findings",
        "requests",
        "duration_ms"
      ],
      "description": "The counts of an exploration."
    },
    "ProbeTotals": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "passed": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "finding": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Probes that produced at least one finding."
        },
        "blocked": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "skipped": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "not_run": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "failed": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Probes whose request failed or whose chain stopped early, without a\nfinding."
        }
      },
      "required": [
        "total",
        "passed",
        "finding",
        "blocked",
        "skipped",
        "not_run",
        "failed"
      ],
      "description": "Probes by how they ended."
    },
    "SeverityCounts": {
      "type": "object",
      "properties": {
        "critical": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "high": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "medium": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "low": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "info": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "critical",
        "high",
        "medium",
        "low",
        "info"
      ],
      "description": "A count of findings per severity."
    },
    "Coverage": {
      "type": "object",
      "properties": {
        "operations": {
          "$ref": "#/$defs/Ratio",
          "description": "Operations that answered at least once."
        },
        "statuses": {
          "$ref": "#/$defs/Ratio",
          "description": "Documented statuses observed."
        },
        "matrix": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Row"
          }
        }
      },
      "required": [
        "operations",
        "statuses",
        "matrix"
      ],
      "description": "Operations by documented statuses."
    },
    "Ratio": {
      "type": "object",
      "properties": {
        "covered": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "total": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "percent": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "covered",
        "total",
        "percent"
      ],
      "description": "A part of a whole, with its percentage (one decimal)."
    },
    "Row": {
      "type": "object",
      "properties": {
        "operation": {
          "type": "string"
        },
        "statuses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StatusCell"
          }
        }
      },
      "required": [
        "operation",
        "statuses"
      ],
      "description": "One operation's row."
    },
    "StatusCell": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "As documented: `200`, `4XX` or `default`."
        },
        "state": {
          "$ref": "#/$defs/Cell"
        },
        "class": {
          "type": [
            "string",
            "null"
          ],
          "description": "How the status was classified, where `state` is coarser: an\n`evm-rpc` probe's `supported`, `unsupported`, `restricted`, `error`\nor `skipped (budget)`. Added in 0.7; absent elsewhere."
        }
      },
      "required": [
        "status",
        "state"
      ],
      "description": "One documented status of one operation."
    },
    "Cell": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "observed",
            "not-observed"
          ]
        },
        {
          "type": "string",
          "const": "blocked",
          "description": "Nothing was sent for the operation: the safety policy refused it."
        }
      ],
      "description": "The state of one documented status in the coverage matrix."
    },
    "ReportFinding": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "`f001`, `f002`, ... by severity."
        },
        "rule": {
          "type": "string"
        },
        "severity": {
          "$ref": "#/$defs/Severity"
        },
        "operation": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "remediation": {
          "type": "string",
          "description": "How to fix it, from the rule registry."
        },
        "message": {
          "type": "string",
          "description": "The first occurrence's message."
        },
        "occurrences": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "probes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The probes it occurred in, in plan order."
        },
        "instance_pointer": {
          "type": [
            "string",
            "null"
          ]
        },
        "schema_pointer": {
          "type": [
            "string",
            "null"
          ]
        },
        "evidence": {
          "$ref": "#/$defs/Evidence",
          "description": "The first occurrence's exchange."
        },
        "reproduction": {
          "anyOf": [
            {
              "$ref": "#/$defs/Reproduction"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "rule",
        "severity",
        "operation",
        "description",
        "message",
        "occurrences",
        "probes",
        "evidence"
      ],
      "description": "One finding, de-duplicated per rule and operation."
    },
    "Evidence": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "request_headers": {
          "type": "array",
          "items": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "minItems": 2,
            "maxItems": 2
          }
        },
        "request_body": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "integer",
          "format": "uint16",
          "minimum": 0,
          "maximum": 65535
        },
        "response_headers": {
          "type": "array",
          "items": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "minItems": 2,
            "maxItems": 2
          }
        },
        "body": {
          "type": "string",
          "description": "The start of the response body (at most 4 KiB)."
        },
        "truncated": {
          "type": "boolean",
          "description": "The body was longer than the excerpt.",
          "default": false
        },
        "trace": {
          "anyOf": [
            {
              "$ref": "#/$defs/EvidenceTrace"
            },
            {
              "type": "null"
            }
          ],
          "description": "The trace context the request carried; absent without one."
        }
      },
      "required": [
        "method",
        "url",
        "request_headers",
        "status",
        "response_headers",
        "body"
      ],
      "description": "The redacted exchange behind a finding."
    },
    "EvidenceTrace": {
      "type": "object",
      "properties": {
        "trace_id": {
          "type": "string"
        },
        "span_id": {
          "type": "string"
        },
        "sampled": {
          "type": "boolean"
        },
        "backend_trace_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The response's `traceresponse` trace id, when it differs."
        }
      },
      "required": [
        "trace_id",
        "span_id",
        "sampled"
      ],
      "description": "The trace ids of an evidence exchange (trace-propagation spec)."
    },
    "Reproduction": {
      "type": "object",
      "properties": {
        "curl": {
          "type": "string",
          "description": "The evidence request as a curl command; secrets are `{{name}}`."
        },
        "request": {
          "type": "string",
          "description": "A request file (YAML) sending the evidence request to `{{baseUrl}}`\nand asserting what a correct API answers."
        }
      },
      "required": [
        "curl",
        "request"
      ],
      "description": "How to reproduce one finding."
    },
    "ProbeResult": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "family": {
          "$ref": "#/$defs/Family"
        },
        "operation": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "variant": {
          "type": "string"
        },
        "outcome": {
          "type": "string",
          "description": "`passed`, `finding`, `blocked`, `skipped`, `not run` or `failed`."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "family",
        "operation",
        "method",
        "variant",
        "outcome"
      ],
      "description": "One probe and how it ended."
    },
    "Resource": {
      "type": "object",
      "properties": {
        "probe": {
          "type": "string",
          "description": "The probe that created it."
        },
        "operation": {
          "type": "string",
          "description": "`METHOD /path` of the create operation."
        },
        "path": {
          "type": "string",
          "description": "Its path relative to the target, as a template (`/users/42`)."
        },
        "url": {
          "type": "string",
          "description": "Its URL, redacted, as reports show it."
        },
        "delete": {
          "type": [
            "string",
            "null"
          ],
          "description": "`METHOD /path` of the documented operation that deletes it."
        }
      },
      "required": [
        "probe",
        "operation",
        "path",
        "url"
      ],
      "description": "A resource a probe created, identified by a captured id."
    },
    "Cleanup": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "description": "The resource's path, as [`Resource::path`]."
        },
        "url": {
          "type": "string",
          "description": "Its URL, redacted."
        },
        "status": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint16",
          "minimum": 0,
          "maximum": 65535,
          "description": "The status the delete answered."
        },
        "error": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why no response came."
        }
      },
      "required": [
        "path",
        "url"
      ],
      "description": "One deletion of a created resource, after the probes ran."
    },
    "OperationInfo": {
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "description": "`METHOD /path`."
        },
        "operation_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Its tags, in document order; the first groups it in JUnit.",
          "default": []
        }
      },
      "required": [
        "operation"
      ],
      "description": "One documented operation: how reports group and locate it."
    },
    "Dependency": {
      "type": "object",
      "properties": {
        "producer": {
          "type": "string",
          "description": "`METHOD /path` of the operation whose response provides the value."
        },
        "consumer": {
          "type": "string",
          "description": "`METHOD /path` of the operation that uses it."
        },
        "parameter": {
          "type": "string",
          "description": "The consumer's parameter, e.g. `id`."
        },
        "pointer": {
          "type": "string",
          "description": "A JSON pointer into the producer's response body, e.g. `/id`."
        }
      },
      "required": [
        "producer",
        "consumer",
        "parameter",
        "pointer"
      ],
      "description": "A value one operation's response provides to another's parameter."
    },
    "EvmProbe": {
      "type": "object",
      "properties": {
        "chain_id": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "The chain every provider reported."
        },
        "chain": {
          "type": "string",
          "description": "Shown as `Name (id)`."
        },
        "methods": {
          "type": "string",
          "description": "`--methods` as given: `standard`, `all` or a list."
        },
        "archive_block": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "The block of the archive check."
        },
        "common_block": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0,
          "description": "The block the providers were compared at (10 below the lowest head)."
        },
        "providers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvmProvider"
          }
        }
      },
      "required": [
        "chain_id",
        "chain",
        "methods",
        "archive_block",
        "providers"
      ],
      "description": "What `rustman evm probe` found."
    },
    "EvmProvider": {
      "type": "object",
      "properties": {
        "endpoint": {
          "type": "string",
          "description": "The endpoint, redacted."
        },
        "environment": {
          "type": [
            "string",
            "null"
          ],
          "description": "The environment it came from, when named by environment."
        },
        "client": {
          "type": "string",
          "description": "`geth 1.14.11`, or `unknown`."
        },
        "archive": {
          "type": "string",
          "description": "`archive`, `full`, `unknown` or `skipped (budget)`."
        },
        "archive_detail": {
          "type": [
            "string",
            "null"
          ],
          "description": "The node's answer behind `archive`."
        },
        "methods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvmMethodSupport"
          }
        },
        "latency": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvmLatency"
          }
        },
        "subscriptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvmSubscription"
          },
          "description": "`newHeads` and `logs`, for `ws://` and `wss://` providers."
        },
        "rate_limit": {
          "anyOf": [
            {
              "$ref": "#/$defs/EvmRateLimit"
            },
            {
              "type": "null"
            }
          ],
          "description": "With `--rate-discovery`."
        },
        "head": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0,
          "description": "The last head seen."
        },
        "drift": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0,
          "description": "Blocks behind the highest provider (the least over the samples)."
        },
        "blocks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvmBlock"
          },
          "description": "Recent blocks, oldest first (block-time and gas plots)."
        },
        "trace": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvmTraceNode"
          },
          "description": "The `--call` trace, when the provider traces calls."
        },
        "requests": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Requests sent to this provider."
        },
        "budget": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "`--budget`."
        },
        "budget_exhausted": {
          "type": "boolean",
          "description": "The budget ran out; the checks left are `skipped (budget)`."
        }
      },
      "required": [
        "endpoint",
        "client",
        "archive",
        "methods",
        "latency",
        "requests",
        "budget",
        "budget_exhausted"
      ],
      "description": "One provider."
    },
    "EvmMethodSupport": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string"
        },
        "support": {
          "type": "string",
          "description": "`supported`, `unsupported`, `restricted`, `error` or\n`skipped (budget)`."
        },
        "detail": {
          "type": [
            "string",
            "null"
          ],
          "description": "The node's error, redacted."
        }
      },
      "required": [
        "method",
        "support"
      ],
      "description": "How one method answered."
    },
    "EvmLatency": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string"
        },
        "samples": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "p50_ms": {
          "type": "number",
          "format": "double"
        },
        "p95_ms": {
          "type": "number",
          "format": "double"
        },
        "max_ms": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "method",
        "samples",
        "p50_ms",
        "p95_ms",
        "max_ms"
      ],
      "description": "The latency of one method, in milliseconds."
    },
    "EvmSubscription": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "description": "`newHeads` or `logs`."
        },
        "status": {
          "type": "string",
          "description": "`supported`, `unsupported`, `timeout` or `skipped (budget)`."
        },
        "detail": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "kind",
        "status"
      ],
      "description": "One subscription check."
    },
    "EvmRateLimit": {
      "type": "object",
      "properties": {
        "limit_rps": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint32",
          "minimum": 0,
          "description": "The highest rate that passed (req/s): the limit when `limited_at`\nis set."
        },
        "limited_at": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint32",
          "minimum": 0,
          "description": "The rate at which rate-limit answers (HTTP 429, `-32005`) started."
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "uint32",
            "minimum": 0
          },
          "description": "The rates tried, in order."
        },
        "retry_after_ms": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0,
          "description": "The `Retry-After` honored, in milliseconds."
        }
      },
      "required": [
        "steps"
      ],
      "description": "What rate discovery found (`--rate-discovery`)."
    },
    "EvmBlock": {
      "type": "object",
      "properties": {
        "number": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "timestamp": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Unix seconds."
        },
        "gas_used": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "gas_limit": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        }
      },
      "required": [
        "number",
        "timestamp",
        "gas_used",
        "gas_limit"
      ],
      "description": "One recent block."
    },
    "EvmTraceNode": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "parent": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint",
          "minimum": 0
        },
        "kind": {
          "type": "string",
          "description": "`CALL`, `STATICCALL`, `DELEGATECALL`, ..."
        },
        "to": {
          "type": [
            "string",
            "null"
          ]
        },
        "gas_used": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "kind"
      ],
      "description": "One frame of a call trace, in depth-first order."
    },
    "exploration_report": {
      "type": "object",
      "properties": {
        "schema": {
          "const": "rustman.report/v1"
        },
        "kind": {
          "const": "exploration"
        },
        "rustman_version": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "started_at": {
          "type": "string",
          "description": "RFC 3339."
        },
        "finished_at": {
          "type": "string",
          "description": "RFC 3339."
        },
        "environment": {
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "target": {
          "type": "string"
        },
        "spec": {
          "type": "string",
          "description": "The OpenAPI document, as a resume finds it."
        },
        "document_sha256": {
          "type": "string"
        },
        "seed": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "settings": {
          "$ref": "#/$defs/Settings",
          "description": "The probe selection, safety flags and budgets."
        },
        "summary": {
          "$ref": "#/$defs/ExplorationSummary"
        },
        "coverage": {
          "$ref": "#/$defs/Coverage"
        },
        "findings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReportFinding"
          }
        },
        "probes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProbeResult"
          }
        },
        "left_behind": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Resource"
          },
          "description": "Created resources that were not deleted, oldest first."
        },
        "cleanup": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Cleanup"
          },
          "description": "Deletions of created resources, in the order they ran.",
          "default": []
        },
        "operations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OperationInfo"
          },
          "description": "The documented operations, in document order.",
          "default": []
        },
        "dependencies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Dependency"
          },
          "description": "Data dependencies between operations: a value from one operation's\nresponse used as a parameter of another (the API graph of the viz\ncompanion). Added in 0.1; absent in older reports."
        },
        "subject": {
          "type": [
            "string",
            "null"
          ],
          "description": "What was explored: absent for an OpenAPI exploration, `evm-rpc`\nfor `rustman evm probe`. Added in 0.7; absent in older reports."
        },
        "evm": {
          "anyOf": [
            {
              "$ref": "#/$defs/EvmProbe"
            },
            {
              "type": "null"
            }
          ],
          "description": "The providers of an `evm-rpc` probe."
        }
      },
      "required": [
        "schema",
        "kind",
        "rustman_version",
        "id",
        "started_at",
        "finished_at",
        "target",
        "spec",
        "document_sha256",
        "seed",
        "settings",
        "summary",
        "coverage",
        "findings",
        "probes",
        "left_behind"
      ],
      "description": "`report.json` of an exploration."
    },
    "ContractMode": {
      "oneOf": [
        {
          "type": "string",
          "const": "diff",
          "description": "`rustman contract diff`: differences between two OpenAPI documents."
        },
        {
          "type": "string",
          "const": "pact-verify",
          "description": "`rustman contract pact verify`: Pact interactions replayed against a\nprovider."
        },
        {
          "type": "string",
          "const": "conformance",
          "description": "`rustman contract verify`: recorded exchanges checked against a\ndocument."
        }
      ],
      "description": "Which contract command wrote the report."
    },
    "ContractSource": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "description": "What it is to the command: `old`, `new`, `spec`, `pact`, `history`."
        },
        "name": {
          "type": "string",
          "description": "Its path, URL or `<git-ref>:<path>`."
        }
      },
      "required": [
        "role",
        "name"
      ],
      "description": "One document or file a contract command read."
    },
    "ContractSummary": {
      "type": "object",
      "properties": {
        "counts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StatusCount"
          },
          "description": "Items per status, in the mode's order (for a diff: breaking,\nnon-breaking, unknown), including statuses with no item."
        },
        "allowed": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Items an allowlist accepted."
        },
        "failing": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Items that fail the command."
        },
        "passed": {
          "type": "boolean",
          "description": "`true` when no item fails the command."
        }
      },
      "required": [
        "counts",
        "allowed",
        "failing",
        "passed"
      ],
      "description": "The counts of a contract report."
    },
    "StatusCount": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "count": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "status",
        "count"
      ],
      "description": "How many items have one status."
    },
    "ContractItem": {
      "type": "object",
      "properties": {
        "rule": {
          "type": "string",
          "description": "The rule id, e.g. `operation-removed`."
        },
        "description": {
          "type": "string",
          "description": "The rule's one-line description."
        },
        "status": {
          "type": "string",
          "description": "The classification or verdict, e.g. `breaking`."
        },
        "allowed": {
          "type": [
            "string",
            "null"
          ],
          "description": "The allowlist entry's justification, when one accepted the item."
        },
        "failing": {
          "type": "boolean",
          "description": "Whether the item fails the command."
        },
        "subject": {
          "type": "string",
          "description": "The operation (`METHOD /path`), interaction or exchange."
        },
        "message": {
          "type": "string"
        },
        "locations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContractLocation"
          },
          "description": "Where the item is, the primary location first (for a diff, the new\ndocument)."
        }
      },
      "required": [
        "rule",
        "description",
        "status",
        "failing",
        "subject",
        "message",
        "locations"
      ],
      "description": "One difference, interaction or exchange."
    },
    "ContractLocation": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "description": "The source's role, e.g. `new`."
        },
        "document": {
          "type": "string",
          "description": "The source's name (path, URL or `<git-ref>:<path>`)."
        },
        "pointer": {
          "type": "string",
          "description": "A JSON pointer into it."
        }
      },
      "required": [
        "role",
        "document",
        "pointer"
      ],
      "description": "A place in one of the report's sources."
    },
    "ContractCoverage": {
      "type": "object",
      "properties": {
        "observed": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Documented operations with at least one exchange."
        },
        "total": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Documented operations."
        },
        "operations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OperationCoverage"
          },
          "description": "Every documented operation, in document order."
        }
      },
      "required": [
        "observed",
        "total",
        "operations"
      ],
      "description": "Which documented operations recorded traffic exercised (passive\nconformance)."
    },
    "OperationCoverage": {
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "description": "`METHOD /path`."
        },
        "exchanges": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "violations": {
          "type": "integer",
          "format": "uint",
          "minimum": 0,
          "description": "Exchanges of this operation with a violation."
        }
      },
      "required": [
        "operation",
        "exchanges",
        "violations"
      ],
      "description": "One documented operation and the exchanges that matched it."
    },
    "contract_report": {
      "type": "object",
      "properties": {
        "schema": {
          "const": "rustman.report/v1"
        },
        "kind": {
          "const": "contract"
        },
        "rustman_version": {
          "type": "string"
        },
        "mode": {
          "$ref": "#/$defs/ContractMode"
        },
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContractSource"
          },
          "description": "The documents and files checked, such as a diff's `old` and `new`."
        },
        "catalog_version": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint32",
          "minimum": 0,
          "description": "The rule catalog version a diff classified with."
        },
        "summary": {
          "$ref": "#/$defs/ContractSummary"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContractItem"
          },
          "description": "In the command's order (for a diff, the document order)."
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Non-fatal problems, such as expired or unused allowlist entries.",
          "default": []
        },
        "coverage": {
          "anyOf": [
            {
              "$ref": "#/$defs/ContractCoverage"
            },
            {
              "type": "null"
            }
          ],
          "description": "For a conformance check: the documented operations the recorded\ntraffic exercised."
        }
      },
      "required": [
        "schema",
        "kind",
        "rustman_version",
        "mode",
        "sources",
        "summary",
        "items"
      ],
      "description": "A contract report."
    },
    "BenchProfile": {
      "type": "object",
      "properties": {
        "executor": {
          "type": "string",
          "description": "`constant-vus`, `ramping-vus` or `constant-arrival-rate`."
        },
        "vus": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint32",
          "minimum": 0
        },
        "duration_ms": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0
        },
        "iterations": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0
        },
        "think_time": {
          "type": [
            "string",
            "null"
          ],
          "description": "`0`, `500ms` or a range such as `1s..3s`."
        },
        "stages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StageProfile"
          }
        },
        "rate": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint32",
          "minimum": 0,
          "description": "Iterations started per second (`constant-arrival-rate`)."
        },
        "max_vus": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint32",
          "minimum": 0
        }
      },
      "required": [
        "executor"
      ],
      "description": "The load profile, as the flags gave it."
    },
    "StageProfile": {
      "type": "object",
      "properties": {
        "duration_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "target": {
          "type": "integer",
          "format": "uint32",
          "minimum": 0
        }
      },
      "required": [
        "duration_ms",
        "target"
      ],
      "description": "One `ramping-vus` stage."
    },
    "Aborted": {
      "oneOf": [
        {
          "type": "string",
          "const": "threshold",
          "description": "An abort-on-fail (`!`) threshold was breached."
        },
        {
          "type": "string",
          "const": "interrupted",
          "description": "Ctrl+C."
        }
      ],
      "description": "Why a bench stopped before its end."
    },
    "BenchTotals": {
      "type": "object",
      "properties": {
        "latency_kind": {
          "$ref": "#/$defs/LatencyKind"
        },
        "duration_ms": {
          "type": "number",
          "format": "double"
        },
        "iterations": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Iterations that ran to their end."
        },
        "iteration_duration": {
          "$ref": "#/$defs/LatencySummary",
          "description": "How long those iterations took, from their first request's start to\ntheir last one's end (think time excluded).",
          "default": {
            "min_ms": 0.0,
            "avg_ms": 0.0,
            "p50_ms": 0.0,
            "p90_ms": 0.0,
            "p95_ms": 0.0,
            "p99_ms": 0.0,
            "max_ms": 0.0
          }
        },
        "interrupted": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Iterations cancelled before their end."
        },
        "scheduled": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Iterations the open model scheduled (0 for closed models)."
        },
        "dropped": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Scheduled iterations that found no free VU."
        },
        "rps": {
          "type": "number",
          "format": "double",
          "description": "Requests per second over the whole run."
        },
        "generator_lag_p99_ms": {
          "type": "number",
          "format": "double",
          "description": "The 99th percentile of the load generator's scheduling lag: how\nlate its timers fired. Above 10 ms the results may be\ngenerator-bound."
        }
      },
      "required": [
        "latency_kind",
        "duration_ms",
        "iterations",
        "interrupted",
        "scheduled",
        "dropped",
        "rps",
        "generator_lag_p99_ms"
      ],
      "description": "The counts of a whole bench."
    },
    "LatencyKind": {
      "oneOf": [
        {
          "type": "string",
          "const": "service",
          "description": "Closed models: the time each request took."
        },
        {
          "type": "string",
          "const": "corrected",
          "description": "The open model: measured from the scheduled start (coordinated\nomission corrected)."
        }
      ],
      "description": "Whether latencies include queuing before the iteration started."
    },
    "LatencySummary": {
      "type": "object",
      "properties": {
        "min_ms": {
          "type": "number",
          "format": "double"
        },
        "avg_ms": {
          "type": "number",
          "format": "double"
        },
        "p50_ms": {
          "type": "number",
          "format": "double"
        },
        "p90_ms": {
          "type": "number",
          "format": "double"
        },
        "p95_ms": {
          "type": "number",
          "format": "double"
        },
        "p99_ms": {
          "type": "number",
          "format": "double"
        },
        "max_ms": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "min_ms",
        "avg_ms",
        "p50_ms",
        "p90_ms",
        "p95_ms",
        "p99_ms",
        "max_ms"
      ],
      "description": "Latency percentiles in milliseconds, from an HDR histogram with 3\nsignificant digits; all 0 without requests."
    },
    "StatsSummary": {
      "type": "object",
      "properties": {
        "requests": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "errors": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "uint64",
            "minimum": 0
          },
          "description": "Errors by class: `4xx`, `5xx`, `timeout`, `connect`, `tls`,\n`blocked`, `assertion`, `other`."
        },
        "error_rate": {
          "type": "number",
          "format": "double",
          "description": "Errors over requests, from 0 to 1."
        },
        "latency": {
          "$ref": "#/$defs/LatencySummary"
        },
        "checks": {
          "$ref": "#/$defs/Checks",
          "description": "Assertions that passed and failed."
        },
        "phases": {
          "$ref": "#/$defs/PhaseSummary",
          "description": "Average time of each phase, over the requests that had it."
        },
        "bytes_sent": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Approximate: the request line, headers and text body as recorded."
        },
        "bytes_received": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Response body bytes."
        }
      },
      "required": [
        "requests",
        "errors",
        "error_rate",
        "latency",
        "checks",
        "phases",
        "bytes_sent",
        "bytes_received"
      ],
      "description": "The statistics of one request file, or of every file together."
    },
    "Checks": {
      "type": "object",
      "properties": {
        "passed": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "failed": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        }
      },
      "required": [
        "passed",
        "failed"
      ],
      "description": "Assertion outcomes."
    },
    "PhaseSummary": {
      "type": "object",
      "properties": {
        "dns_ms": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "connect_ms": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "tls_ms": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "ttfb_ms": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "download_ms": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      },
      "description": "Average phase timings in milliseconds; a phase no request went\nthrough (no new connection, no TLS) is absent."
    },
    "FileSummary": {
      "type": "object",
      "properties": {
        "file": {
          "type": "string",
          "description": "The request file, relative to the workspace root, with `/`."
        },
        "requests": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "errors": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "uint64",
            "minimum": 0
          },
          "description": "Errors by class: `4xx`, `5xx`, `timeout`, `connect`, `tls`,\n`blocked`, `assertion`, `other`."
        },
        "error_rate": {
          "type": "number",
          "format": "double",
          "description": "Errors over requests, from 0 to 1."
        },
        "latency": {
          "$ref": "#/$defs/LatencySummary"
        },
        "checks": {
          "$ref": "#/$defs/Checks",
          "description": "Assertions that passed and failed."
        },
        "phases": {
          "$ref": "#/$defs/PhaseSummary",
          "description": "Average time of each phase, over the requests that had it."
        },
        "bytes_sent": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Approximate: the request line, headers and text body as recorded."
        },
        "bytes_received": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Response body bytes."
        }
      },
      "required": [
        "file",
        "requests",
        "errors",
        "error_rate",
        "latency",
        "checks",
        "phases",
        "bytes_sent",
        "bytes_received"
      ],
      "description": "The statistics of one request file."
    },
    "BenchSecond": {
      "type": "object",
      "properties": {
        "second": {
          "type": "integer",
          "format": "uint32",
          "minimum": 0,
          "description": "1 for the first second of the run."
        },
        "requests": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "errors": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "rps": {
          "type": "number",
          "format": "double"
        },
        "p50_ms": {
          "type": "number",
          "format": "double"
        },
        "p95_ms": {
          "type": "number",
          "format": "double"
        },
        "p99_ms": {
          "type": "number",
          "format": "double"
        },
        "active_vus": {
          "type": "integer",
          "format": "uint32",
          "minimum": 0,
          "description": "VUs running at the end of the second."
        }
      },
      "required": [
        "second",
        "requests",
        "errors",
        "rps",
        "p50_ms",
        "p95_ms",
        "p99_ms",
        "active_vus"
      ],
      "description": "One second of a bench."
    },
    "ThresholdResult": {
      "type": "object",
      "properties": {
        "expression": {
          "type": "string",
          "description": "As written, such as `p95<300ms` or `error_rate<5%!`."
        },
        "passed": {
          "type": "boolean"
        },
        "actual": {
          "type": "string",
          "description": "The measured value, such as `412ms` or `0.20%`; `n/a` when there\nwas nothing to measure (`checks` without assertions)."
        },
        "abort": {
          "type": "boolean",
          "description": "An abort-on-fail (`!`) threshold."
        }
      },
      "required": [
        "expression",
        "passed",
        "actual",
        "abort"
      ],
      "description": "How one threshold ended."
    },
    "ErrorSample": {
      "type": "object",
      "properties": {
        "class": {
          "type": "string",
          "description": "The error class: `4xx`, `5xx`, `timeout`, ..."
        },
        "file": {
          "type": "string",
          "description": "The request file."
        },
        "message": {
          "type": "string"
        },
        "at_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Milliseconds since the start of the run."
        }
      },
      "required": [
        "class",
        "file",
        "message",
        "at_ms"
      ],
      "description": "One error, as it happened (redacted)."
    },
    "bench_report": {
      "type": "object",
      "properties": {
        "schema": {
          "const": "rustman.report/v1"
        },
        "kind": {
          "const": "bench"
        },
        "rustman_version": {
          "type": "string"
        },
        "started_at": {
          "type": "string",
          "description": "RFC 3339."
        },
        "finished_at": {
          "type": "string",
          "description": "RFC 3339."
        },
        "target": {
          "type": "string",
          "description": "The `--target` origin: the only one requests could go to."
        },
        "environment": {
          "type": [
            "string",
            "null"
          ]
        },
        "profile": {
          "$ref": "#/$defs/BenchProfile"
        },
        "aborted": {
          "anyOf": [
            {
              "$ref": "#/$defs/Aborted"
            },
            {
              "type": "null"
            }
          ],
          "description": "Why the bench stopped early; absent when it ran to its end."
        },
        "totals": {
          "$ref": "#/$defs/BenchTotals"
        },
        "overall": {
          "$ref": "#/$defs/StatsSummary",
          "description": "Every request file together."
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FileSummary"
          },
          "description": "One entry per request file, in collection order."
        },
        "series": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BenchSecond"
          },
          "description": "One point per second of the run."
        },
        "thresholds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ThresholdResult"
          },
          "description": "Every threshold, in the order given."
        },
        "error_samples": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorSample"
          },
          "description": "At most 20 per error class, in the order they happened (redacted)."
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Non-fatal problems, such as a generator-bound run.",
          "default": []
        }
      },
      "required": [
        "schema",
        "kind",
        "rustman_version",
        "started_at",
        "finished_at",
        "target",
        "profile",
        "totals",
        "overall",
        "files",
        "series",
        "thresholds",
        "error_samples"
      ],
      "description": "A bench report."
    },
    "StressProfile": {
      "type": "object",
      "properties": {
        "settings": {
          "type": "object",
          "additionalProperties": {
            "type": "number",
            "format": "double"
          },
          "description": "Every value of the mode, such as `start_rps`, `step_factor`,\n`step_duration_ms`, `refine`, `rps`, `duration_ms`."
        },
        "fuzz_ratio": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "`--fuzz-ratio`, when the run fuzzed."
        },
        "malformed": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "wire": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "health": {
          "type": [
            "string",
            "null"
          ],
          "description": "The health request file."
        }
      },
      "required": [
        "settings"
      ],
      "description": "The profile, as the flags gave it."
    },
    "StressStep": {
      "type": "object",
      "properties": {
        "offered_rps": {
          "type": "number",
          "format": "double",
          "description": "Requests per second offered."
        },
        "achieved_rps": {
          "type": "number",
          "format": "double"
        },
        "p50_ms": {
          "type": "number",
          "format": "double"
        },
        "p95_ms": {
          "type": "number",
          "format": "double"
        },
        "p99_ms": {
          "type": "number",
          "format": "double"
        },
        "error_rate": {
          "type": "number",
          "format": "double"
        },
        "errors": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "format": "uint64",
            "minimum": 0
          },
          "description": "Errors by class (`5xx`, `timeout`, `connect`, ...)."
        },
        "verdict": {
          "type": "string",
          "description": "`ok`, `broken`, `rate-limited`, `client-saturated` or `unfinished`."
        },
        "failure_mode": {
          "type": [
            "string",
            "null"
          ]
        },
        "start_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Since load started, in milliseconds."
        },
        "end_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        }
      },
      "required": [
        "offered_rps",
        "achieved_rps",
        "p50_ms",
        "p95_ms",
        "p99_ms",
        "error_rate",
        "errors",
        "verdict",
        "start_ms",
        "end_ms"
      ],
      "description": "One row of the step table."
    },
    "BreakpointSection": {
      "type": "object",
      "properties": {
        "max_sustainable_rps": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "The highest rate that held, in requests per second."
        },
        "breaking_rps": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "The lowest rate that broke."
        },
        "failure_mode": {
          "type": [
            "string",
            "null"
          ],
          "description": "How the `breaking_rps` step broke."
        },
        "first_failing_endpoint": {
          "anyOf": [
            {
              "$ref": "#/$defs/FailingEndpoint"
            },
            {
              "type": "null"
            }
          ],
          "description": "The request file that degraded first in that step."
        },
        "stop": {
          "type": "string",
          "description": "`refined`, `cap-reached`, `broke-at-start`, `client-saturated`,\n`max-duration`, `interrupted` or `killed`."
        },
        "max_rps": {
          "type": "number",
          "format": "double",
          "description": "The `max_rps` cap."
        }
      },
      "required": [
        "stop",
        "max_rps"
      ],
      "description": "A breakpoint run's result."
    },
    "FailingEndpoint": {
      "type": "object",
      "properties": {
        "file": {
          "type": "string"
        },
        "p95_ms": {
          "type": "number",
          "format": "double"
        },
        "error_rate": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "file",
        "p95_ms",
        "error_rate"
      ]
    },
    "Killed": {
      "type": "object",
      "properties": {
        "rps": {
          "type": "number",
          "format": "double",
          "description": "The offered rate when the target went down."
        },
        "reason": {
          "type": "string",
          "description": "Why it was declared down."
        },
        "message": {
          "type": "string",
          "description": "`killed: target down at <rps> req/s (<reason>)`."
        }
      },
      "required": [
        "rps",
        "reason",
        "message"
      ],
      "description": "The kill switch stopped the load."
    },
    "RecoverySection": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "`recovered`, `not-recovered`, `skipped` or `cancelled`."
        },
        "after_ms": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0,
          "description": "From the end of load to the first answer of the good streak."
        },
        "baseline_ms": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "The health request's pre-stress latency."
        },
        "health": {
          "type": [
            "string",
            "null"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why it was skipped."
        },
        "last_status": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint16",
          "minimum": 0,
          "maximum": 65535
        },
        "last_latency_ms": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "timeline": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RecoveryProbe"
          },
          "description": "Every health request, in order."
        }
      },
      "required": [
        "status",
        "timeline"
      ],
      "description": "The recovery check after the load."
    },
    "RecoveryProbe": {
      "type": "object",
      "properties": {
        "offset_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "Since load stopped."
        },
        "status": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint16",
          "minimum": 0,
          "maximum": 65535
        },
        "latency_ms": {
          "type": "number",
          "format": "double"
        },
        "good": {
          "type": "boolean",
          "description": "It counted toward recovery."
        }
      },
      "required": [
        "offset_ms",
        "latency_ms",
        "good"
      ]
    },
    "SpikeSection": {
      "type": "object",
      "properties": {
        "baseline_p95_ms": {
          "type": "number",
          "format": "double"
        },
        "spike_requests": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "spike_errors": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "peak_p95_ms": {
          "type": "number",
          "format": "double"
        },
        "recovered_after_ms": {
          "type": [
            "integer",
            "null"
          ],
          "format": "uint64",
          "minimum": 0
        }
      },
      "required": [
        "baseline_p95_ms",
        "spike_requests",
        "spike_errors",
        "peak_p95_ms"
      ]
    },
    "SoakSection": {
      "type": "object",
      "properties": {
        "p95_ms": {
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "description": "One per trend bucket (a minute)."
        },
        "error_rates": {
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          }
        },
        "baseline_p95_ms": {
          "type": "number",
          "format": "double"
        },
        "p95_slope": {
          "type": "number",
          "format": "double",
          "description": "Milliseconds per hour."
        },
        "error_slope": {
          "type": "number",
          "format": "double",
          "description": "Error-rate change per hour."
        }
      },
      "required": [
        "p95_ms",
        "error_rates",
        "baseline_p95_ms",
        "p95_slope",
        "error_slope"
      ]
    },
    "WireSection": {
      "type": "object",
      "properties": {
        "family": {
          "type": "string"
        },
        "outcomes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "What each request got: a status, or what happened instead."
        }
      },
      "required": [
        "family",
        "outcomes"
      ]
    },
    "StressSummary": {
      "type": "object",
      "properties": {
        "findings": {
          "$ref": "#/$defs/SeverityCounts",
          "description": "Distinct findings by severity."
        },
        "requests": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "fuzzed_requests": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "duration_ms": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        }
      },
      "required": [
        "findings",
        "requests",
        "fuzzed_requests",
        "duration_ms"
      ]
    },
    "StressFinding": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "`f001`, `f002`, ... by severity."
        },
        "rule": {
          "type": "string"
        },
        "severity": {
          "$ref": "#/$defs/Severity"
        },
        "operation": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "remediation": {
          "type": "string",
          "description": "How to fix it, from the rule registry."
        },
        "message": {
          "type": "string",
          "description": "The first occurrence's message."
        },
        "occurrences": {
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "probes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The probes it occurred in, in plan order."
        },
        "instance_pointer": {
          "type": [
            "string",
            "null"
          ]
        },
        "schema_pointer": {
          "type": [
            "string",
            "null"
          ]
        },
        "evidence": {
          "$ref": "#/$defs/Evidence",
          "description": "The first occurrence's exchange."
        },
        "reproduction": {
          "anyOf": [
            {
              "$ref": "#/$defs/Reproduction"
            },
            {
              "type": "null"
            }
          ]
        },
        "family": {
          "type": [
            "string",
            "null"
          ],
          "description": "The fuzz source or fault family."
        },
        "minimized": {
          "anyOf": [
            {
              "$ref": "#/$defs/MinimizedInput"
            },
            {
              "type": "null"
            }
          ],
          "description": "What replaying the input alone found."
        }
      },
      "required": [
        "id",
        "rule",
        "severity",
        "operation",
        "description",
        "message",
        "occurrences",
        "probes",
        "evidence"
      ],
      "description": "A finding: the exploration finding (its `operation` is the request\nfile, or `wire <family>`), plus what stress adds."
    },
    "MinimizedInput": {
      "type": "object",
      "properties": {
        "body": {
          "type": [
            "string",
            "null"
          ],
          "description": "The smallest body that still failed (redacted); absent when the\ninput could not be reduced."
        },
        "content_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "replays": {
          "type": "integer",
          "format": "uint32",
          "minimum": 0
        },
        "load_dependent": {
          "type": "boolean",
          "description": "It did not fail alone: only under load."
        }
      },
      "required": [
        "replays",
        "load_dependent"
      ],
      "description": "The minimized input of a crash-like finding."
    },
    "stress_report": {
      "type": "object",
      "properties": {
        "schema": {
          "const": "rustman.report/v1"
        },
        "kind": {
          "const": "stress"
        },
        "rustman_version": {
          "type": "string"
        },
        "id": {
          "type": "string",
          "description": "`str-<date>-<hex>`: what `rustman stress export` takes."
        },
        "started_at": {
          "type": "string",
          "description": "RFC 3339."
        },
        "finished_at": {
          "type": "string",
          "description": "RFC 3339."
        },
        "target": {
          "type": "string",
          "description": "The `--target` origin."
        },
        "environment": {
          "type": [
            "string",
            "null"
          ]
        },
        "mode": {
          "type": "string",
          "description": "`breakpoint`, `spike`, `soak` or `fuzz`."
        },
        "profile": {
          "$ref": "#/$defs/StressProfile"
        },
        "seed": {
          "type": "integer",
          "format": "uint64",
          "minimum": 0,
          "description": "The seed of fuzzed slots and variants."
        },
        "slos": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The SLOs in force, as written."
        },
        "overall": {
          "$ref": "#/$defs/StatsSummary",
          "description": "Valid traffic, every request file together."
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FileSummary"
          },
          "description": "Valid traffic per request file, in collection order."
        },
        "fuzzed": {
          "anyOf": [
            {
              "$ref": "#/$defs/StatsSummary"
            },
            {
              "type": "null"
            }
          ],
          "description": "Fuzzed traffic, measured apart; absent without fuzzing."
        },
        "series": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BenchSecond"
          },
          "description": "Valid traffic, one point per tick (a second)."
        },
        "fuzzed_series": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BenchSecond"
          },
          "description": "Fuzzed traffic, one point per tick."
        },
        "steps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StressStep"
          },
          "description": "The steps (a breakpoint's, or stretches at one rate)."
        },
        "breakpoint": {
          "anyOf": [
            {
              "$ref": "#/$defs/BreakpointSection"
            },
            {
              "type": "null"
            }
          ],
          "description": "A breakpoint run's result; absent for the other modes."
        },
        "rate_limited_at": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "The first rate, in requests per second, where the target\nthrottled without breaking."
        },
        "killed": {
          "anyOf": [
            {
              "$ref": "#/$defs/Killed"
            },
            {
              "type": "null"
            }
          ],
          "description": "Set when the kill switch stopped the load."
        },
        "recovery": {
          "$ref": "#/$defs/RecoverySection"
        },
        "spike": {
          "anyOf": [
            {
              "$ref": "#/$defs/SpikeSection"
            },
            {
              "type": "null"
            }
          ]
        },
        "soak": {
          "anyOf": [
            {
              "$ref": "#/$defs/SoakSection"
            },
            {
              "type": "null"
            }
          ]
        },
        "wire": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WireSection"
          },
          "description": "What each wire-fault family got back."
        },
        "summary": {
          "$ref": "#/$defs/StressSummary"
        },
        "findings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StressFinding"
          },
          "description": "By severity, then rule."
        },
        "client_saturated": {
          "type": "boolean",
          "description": "Windows where the client lagged behind its schedule.",
          "default": false
        },
        "interrupted": {
          "type": "boolean",
          "default": false
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        }
      },
      "required": [
        "schema",
        "kind",
        "rustman_version",
        "id",
        "started_at",
        "finished_at",
        "target",
        "mode",
        "profile",
        "seed",
        "slos",
        "overall",
        "files",
        "series",
        "steps",
        "recovery",
        "summary",
        "findings"
      ],
      "description": "A stress report."
    }
  }
}
