{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-check-definition-response-schema.json",
  "title": "CheckDefinitionResponse",
  "description": "A discoverable platform check definition.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-checks-api-openapi.yml#/components/schemas/CheckDefinitionResponse",
  "properties": {
    "key": {
      "type": "string",
      "title": "Key"
    },
    "label": {
      "type": "string",
      "title": "Label"
    },
    "description": {
      "type": "string",
      "title": "Description"
    },
    "definition_version": {
      "type": "integer",
      "title": "Definition Version"
    },
    "subject_types": {
      "items": {
        "$ref": "#/$defs/CheckSubjectType"
      },
      "type": "array",
      "title": "Subject Types"
    },
    "executor_type": {
      "$ref": "#/$defs/CheckExecutorType"
    }
  },
  "type": "object",
  "required": [
    "key",
    "label",
    "description",
    "definition_version",
    "subject_types",
    "executor_type"
  ],
  "$defs": {
    "CheckExecutorType": {
      "type": "string",
      "enum": [
        "deterministic",
        "scenario_agent"
      ],
      "title": "CheckExecutorType",
      "description": "Execution mechanisms supported by a check definition."
    },
    "CheckSubjectType": {
      "type": "string",
      "enum": [
        "environment",
        "taskset",
        "task",
        "trace"
      ],
      "title": "CheckSubjectType",
      "description": "Platform resources supported by the check framework."
    }
  }
}