{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-circuit-breaker-trip-request-schema.json",
  "title": "CircuitBreakerTripRequest",
  "description": "Request body for trip / emergency-stop. Org and user identity come\nfrom the `X-Org-ID` (or `X-Tenant-ID`) and `X-User-ID` headers, not\nthe body. Source of truth: `platform/agent/circuitbreaker/handler.go`\n(TripRequest).\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-circuit-breaker-api-openapi.yml#/components/schemas/CircuitBreakerTripRequest",
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "global",
        "tenant",
        "client",
        "policy"
      ],
      "default": "global",
      "description": "Blast radius of the stop"
    },
    "scope_id": {
      "type": "string",
      "description": "Required for non-global scopes (tenant/client/policy ID)"
    },
    "reason": {
      "type": "string",
      "enum": [
        "manual",
        "policy_violation",
        "risk_level",
        "error_rate"
      ],
      "default": "manual"
    },
    "comment": {
      "type": "string",
      "description": "Free-text audit-trail comment"
    },
    "duration_minutes": {
      "type": "integer",
      "description": "Auto-expire after N minutes; 0 or omitted = indefinite"
    }
  }
}