{
  "openapi": "3.1.0",
  "info": {
    "title": "Autograder Web API",
    "description": "RESTful API for code submission grading",
    "version": "1.1.0"
  },
  "paths": {
    "/api/v1/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Health Check",
        "description": "Health check endpoint for monitoring.",
        "operationId": "health_check_api_v1_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/ready": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Readiness Check",
        "description": "Readiness check for orchestration platforms.",
        "operationId": "readiness_check_api_v1_ready_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "List Templates",
        "description": "List built-in templates with evaluator parameter schemas, samples and capabilities.",
        "operationId": "list_templates_api_v1_templates_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateCatalog"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/templates/{template_name}": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get Template Info",
        "description": "Get information about a specific template.",
        "operationId": "get_template_info_api_v1_templates__template_name__get",
        "parameters": [
          {
            "name": "template_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Template Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateDescription"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submissions/external-results": {
      "post": {
        "tags": [
          "Submissions"
        ],
        "summary": "Ingest External Result",
        "operationId": "ingest_external_result_api_v1_submissions_external_results_post",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255,
                  "pattern": "^[\\x21-\\x7e]+$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Caller-generated key (1-255 visible ASCII characters). Repeating a key with the same request returns the original receipt without creating or grading anything; the same key with a different request is 409 IDEMPOTENCY_KEY_REUSED.",
              "title": "Idempotency-Key"
            },
            "description": "Caller-generated key (1-255 visible ASCII characters). Repeating a key with the same request returns the original receipt without creating or grading anything; the same key with a different request is 409 IDEMPOTENCY_KEY_REUSED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalResultCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalResultResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "409": {
            "description": "Idempotency-Key reused with a different request"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/configs/validate": {
      "post": {
        "tags": [
          "Grading Configurations"
        ],
        "summary": "Validate Definition",
        "operationId": "validate_definition_api_v1_configs_validate_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GradingDefinition-Input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "IntegrationBearer": []
          }
        ]
      }
    },
    "/api/v1/configs": {
      "post": {
        "tags": [
          "Grading Configurations"
        ],
        "summary": "Create Grading Config",
        "operationId": "create_grading_config_api_v1_configs_post",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GradingConfigCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingConfigResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Grading Configurations"
        ],
        "summary": "List Grading Configs",
        "operationId": "list_grading_configs_api_v1_configs_get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradingConfigResponse"
                  },
                  "title": "Response List Grading Configs Api V1 Configs Get"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/configs/id/{config_id}": {
      "get": {
        "tags": [
          "Grading Configurations"
        ],
        "summary": "Get Grading Config By Id",
        "operationId": "get_grading_config_by_id_api_v1_configs_id__config_id__get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "config_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Config Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingConfigResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/configs/{external_assignment_id}": {
      "get": {
        "tags": [
          "Grading Configurations"
        ],
        "summary": "Get Grading Config",
        "operationId": "get_grading_config_api_v1_configs__external_assignment_id__get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "external_assignment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "External Assignment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingConfigResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/configs/external/{external_assignment_id}": {
      "patch": {
        "tags": [
          "Grading Configurations"
        ],
        "summary": "Update Grading Config External",
        "operationId": "update_grading_config_external_api_v1_configs_external__external_assignment_id__patch",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "external_assignment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "External Assignment Id"
            }
          },
          {
            "name": "if-match",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GradingConfigUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingConfigResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/configs/{config_id}": {
      "patch": {
        "tags": [
          "Grading Configurations"
        ],
        "summary": "Update Grading Config",
        "operationId": "update_grading_config_api_v1_configs__config_id__patch",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "config_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Config Id"
            }
          },
          {
            "name": "if-match",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GradingConfigUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingConfigResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submissions": {
      "post": {
        "tags": [
          "Submissions"
        ],
        "summary": "Create Submission",
        "operationId": "create_submission_api_v1_submissions_post",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255,
                  "pattern": "^[\\x21-\\x7e]+$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Caller-generated key (1-255 visible ASCII characters). Repeating a key with the same request returns the original receipt without creating or grading anything; the same key with a different request is 409 IDEMPOTENCY_KEY_REUSED.",
              "title": "Idempotency-Key"
            },
            "description": "Caller-generated key (1-255 visible ASCII characters). Repeating a key with the same request returns the original receipt without creating or grading anything; the same key with a different request is 409 IDEMPOTENCY_KEY_REUSED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmissionCreate"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "409": {
            "description": "Idempotency-Key reused with a different request"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Submissions"
        ],
        "summary": "History",
        "operationId": "history_api_v1_submissions_get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "external_user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "External User Id"
            }
          },
          {
            "name": "grading_config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Grading Config Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SubmissionStatus-Input"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubmissionResponse"
                  },
                  "title": "Response History Api V1 Submissions Get"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submissions/user/{external_user_id}": {
      "get": {
        "tags": [
          "Submissions"
        ],
        "summary": "Get User Submissions",
        "operationId": "get_user_submissions_api_v1_submissions_user__external_user_id__get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "external_user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "External User Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubmissionResponse"
                  },
                  "title": "Response Get User Submissions Api V1 Submissions User  External User Id  Get"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submissions/{submission_id}/details": {
      "get": {
        "tags": [
          "Submissions"
        ],
        "summary": "Get Submission Details",
        "operationId": "get_submission_details_api_v1_submissions__submission_id__details_get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "submission_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Submission Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionDetailResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submissions/{submission_id}/comparison": {
      "get": {
        "tags": [
          "Submissions"
        ],
        "summary": "Compare Submission",
        "description": "Compare two stored canonical outcomes on demand; nothing is graded or stored.",
        "operationId": "compare_submission_api_v1_submissions__submission_id__comparison_get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "submission_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Submission Id"
            }
          },
          {
            "name": "baseline_submission_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "title": "Baseline Submission Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionComparisonResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/submissions/{submission_id}": {
      "get": {
        "tags": [
          "Submissions"
        ],
        "summary": "Get Submission",
        "operationId": "get_submission_api_v1_submissions__submission_id__get",
        "security": [
          {
            "IntegrationBearer": []
          }
        ],
        "parameters": [
          {
            "name": "submission_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Submission Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Authentication is not configured on this host"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/execute": {
      "post": {
        "tags": [
          "Code Execution"
        ],
        "summary": "Execute Code Endpoint",
        "description": "Execute one command against sequential stdin cases, without grading.\n\n`test_cases` contains arrays of stdin lines. Omit it for one run with empty\nstdin. The command is parsed as executable and arguments; use an explicit\n`sh -c` command if shell operators are required.\n\nExample request:\n`{\"language\":\"python\",\"submission_files\":[{\"filename\":\"main.py\",\n\"content\":\"name = input()\\nprint('Hello, ' + name)\"}],\n\"program_command\":\"python main.py\",\"test_cases\":[[\"Alice\"]]}`\n\nExample result:\n`{\"results\":[{\"category\":\"success\",\"stdout\":\"Hello, Alice\\n\",\n\"stderr\":\"\",\"exit_code\":0,\"execution_time\":0.01,\"output\":\"Hello, Alice\\n\",\n\"error_message\":null,\"truncated\":false}],\"stopped_early\":false}`",
        "operationId": "execute_code_endpoint_api_v1_execute_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeliberateCodeExecutionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliberateCodeExecutionResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token"
          },
          "403": {
            "description": "Credential lacks the required scope"
          },
          "503": {
            "description": "Execution infrastructure unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Invalid or over-limit request"
          },
          "504": {
            "description": "Request deadline exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "IntegrationBearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CappedCategoryConfig-Input": {
        "properties": {
          "max_points": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Max Points",
            "description": "The most points this category adds to (bonus) or subtracts from (penalty) the base score."
          },
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests",
            "description": "Criteria directly in this group; null when it has none."
          },
          "subjects": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SubjectConfig-Input"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects",
            "description": "Subjects nested in this group; null when it has none."
          },
          "subjects_weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects Weight",
            "description": "Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "max_points"
        ],
        "title": "CappedCategoryConfig",
        "description": "A bonus or penalty category: its criteria move the score by at most `max_points`."
      },
      "CappedCategoryConfig-Output": {
        "properties": {
          "max_points": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Max Points",
            "description": "The most points this category adds to (bonus) or subtracts from (penalty) the base score."
          },
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests",
            "description": "Criteria directly in this group; null when it has none."
          },
          "subjects": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SubjectConfig-Output"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects",
            "description": "Subjects nested in this group; null when it has none."
          },
          "subjects_weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects Weight",
            "description": "Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "max_points"
        ],
        "title": "CappedCategoryConfig",
        "description": "A bonus or penalty category: its criteria move the score by at most `max_points`."
      },
      "CategoryOutcome-Input": {
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "base",
              "bonus",
              "penalty"
            ],
            "title": "Name"
          },
          "type": {
            "type": "string",
            "const": "category",
            "title": "Type",
            "default": "category"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "weight": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Weight"
          },
          "subjects": {
            "items": {
              "$ref": "#/components/schemas/SubjectOutcome-Input"
            },
            "type": "array",
            "title": "Subjects",
            "default": []
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestOutcome"
            },
            "type": "array",
            "title": "Tests",
            "default": []
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "score",
          "weight"
        ],
        "title": "CategoryOutcome"
      },
      "CategoryOutcome-Output": {
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "base",
              "bonus",
              "penalty"
            ],
            "title": "Name"
          },
          "type": {
            "type": "string",
            "const": "category",
            "title": "Type",
            "default": "category"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "weight": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Weight"
          },
          "subjects": {
            "items": {
              "$ref": "#/components/schemas/SubjectOutcome-Output"
            },
            "type": "array",
            "title": "Subjects",
            "default": []
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestOutcome"
            },
            "type": "array",
            "title": "Tests",
            "default": []
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "score",
          "weight"
        ],
        "title": "CategoryOutcome"
      },
      "ComparedSubmission": {
        "properties": {
          "execution_id": {
            "type": "string",
            "minLength": 1,
            "title": "Execution Id"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "provenance": {
            "$ref": "#/components/schemas/DefinitionProvenance"
          },
          "submission_id": {
            "type": "integer",
            "title": "Submission Id"
          },
          "source": {
            "type": "string",
            "enum": [
              "executed",
              "attested"
            ],
            "title": "Source",
            "description": "executed: graded by this server from accepted source files; attested: an authenticated external host attestation that this server did not execute"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "execution_id",
          "score",
          "provenance",
          "submission_id",
          "source"
        ],
        "title": "ComparedSubmission",
        "description": "One stored side of an on-demand comparison."
      },
      "ComparisonContent": {
        "properties": {
          "score_delta": {
            "type": "number",
            "maximum": 100.0,
            "minimum": -100.0,
            "title": "Score Delta"
          },
          "improved": {
            "type": "boolean",
            "title": "Improved"
          },
          "test_deltas": {
            "items": {
              "$ref": "#/components/schemas/CriterionDelta"
            },
            "type": "array",
            "title": "Test Deltas",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "score_delta",
          "improved"
        ],
        "title": "ComparisonContent"
      },
      "ComparisonOutcome-Input": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "disabled",
              "completed",
              "failed"
            ],
            "title": "Status",
            "default": "disabled"
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ComparisonContent"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutcomeError"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ComparisonOutcome"
      },
      "ComparisonOutcome-Output": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "disabled",
              "completed",
              "failed"
            ],
            "title": "Status",
            "default": "disabled"
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ComparisonContent"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutcomeError"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ComparisonOutcome"
      },
      "CompletedOutcome-Input": {
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "1.0",
            "title": "Schema Version"
          },
          "execution_id": {
            "type": "string",
            "minLength": 1,
            "title": "Execution Id"
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "python",
                  "java",
                  "node",
                  "cpp",
                  "c"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "provenance": {
            "$ref": "#/components/schemas/DefinitionProvenance"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "title": "Started At"
          },
          "finished_at": {
            "type": "string",
            "format": "date-time",
            "title": "Finished At"
          },
          "duration_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Duration Ms"
          },
          "feedback": {
            "$ref": "#/components/schemas/FeedbackOutcome"
          },
          "comparison": {
            "$ref": "#/components/schemas/ComparisonOutcome-Input"
          },
          "status": {
            "type": "string",
            "const": "completed",
            "title": "Status"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "tree": {
            "$ref": "#/components/schemas/ResultOutcomeTree-Input"
          },
          "error": {
            "type": "null",
            "title": "Error"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "schema_version",
          "execution_id",
          "provenance",
          "started_at",
          "finished_at",
          "duration_ms",
          "status",
          "score",
          "tree"
        ],
        "title": "CompletedOutcome"
      },
      "CompletedOutcome-Output": {
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "1.0",
            "title": "Schema Version"
          },
          "execution_id": {
            "type": "string",
            "minLength": 1,
            "title": "Execution Id"
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "python",
                  "java",
                  "node",
                  "cpp",
                  "c"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "provenance": {
            "$ref": "#/components/schemas/DefinitionProvenance"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "title": "Started At"
          },
          "finished_at": {
            "type": "string",
            "format": "date-time",
            "title": "Finished At"
          },
          "duration_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Duration Ms"
          },
          "feedback": {
            "$ref": "#/components/schemas/FeedbackOutcome"
          },
          "comparison": {
            "$ref": "#/components/schemas/ComparisonOutcome-Output"
          },
          "status": {
            "type": "string",
            "const": "completed",
            "title": "Status"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "tree": {
            "$ref": "#/components/schemas/ResultOutcomeTree-Output"
          },
          "error": {
            "type": "null",
            "title": "Error"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "schema_version",
          "execution_id",
          "provenance",
          "started_at",
          "finished_at",
          "duration_ms",
          "status",
          "score",
          "tree"
        ],
        "title": "CompletedOutcome"
      },
      "CriteriaConfig-Input": {
        "properties": {
          "base": {
            "$ref": "#/components/schemas/GroupConfig-Input",
            "description": "Criteria that make up the score (0-100)."
          },
          "bonus": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CappedCategoryConfig-Input"
              },
              {
                "type": "null"
              }
            ],
            "description": "Criteria whose score adds up to max_points."
          },
          "penalty": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CappedCategoryConfig-Input"
              },
              {
                "type": "null"
              }
            ],
            "description": "Criteria whose shortfall subtracts up to max_points."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "base"
        ],
        "title": "CriteriaConfig",
        "description": "Root configuration for grading criteria."
      },
      "CriteriaConfig-Output": {
        "properties": {
          "base": {
            "$ref": "#/components/schemas/GroupConfig-Output",
            "description": "Criteria that make up the score (0-100)."
          },
          "bonus": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CappedCategoryConfig-Output"
              },
              {
                "type": "null"
              }
            ],
            "description": "Criteria whose score adds up to max_points."
          },
          "penalty": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CappedCategoryConfig-Output"
              },
              {
                "type": "null"
              }
            ],
            "description": "Criteria whose shortfall subtracts up to max_points."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "base"
        ],
        "title": "CriteriaConfig",
        "description": "Root configuration for grading criteria."
      },
      "CriterionComparison": {
        "properties": {
          "criterion_id": {
            "type": "string",
            "minLength": 1,
            "title": "Criterion Id",
            "description": "Stable criterion ID; display labels never identify criteria"
          },
          "status": {
            "type": "string",
            "enum": [
              "improved",
              "regressed",
              "unchanged",
              "reweighted",
              "redefined",
              "introduced",
              "removed"
            ],
            "title": "Status"
          },
          "baseline_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Baseline Label"
          },
          "head_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Head Label"
          },
          "baseline_score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Baseline Score"
          },
          "head_score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Head Score"
          },
          "delta": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": -100.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Delta",
            "description": "head_score - baseline_score; null when not comparable"
          },
          "baseline_category": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "base",
                  "bonus",
                  "penalty"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Baseline Category"
          },
          "head_category": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "base",
                  "bonus",
                  "penalty"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Head Category"
          },
          "baseline_weight": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Baseline Weight",
            "description": "Effective final-score points: category weight times normalized share within it"
          },
          "head_weight": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Head Weight"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "criterion_id",
          "status"
        ],
        "title": "CriterionComparison",
        "description": "One criterion joined by ID; absent sides carry no label, score, category or weight."
      },
      "CriterionDelta": {
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "title": "Path",
            "description": "Criterion ID, independent of display names"
          },
          "status": {
            "type": "string",
            "enum": [
              "improved",
              "regressed",
              "unchanged",
              "introduced",
              "removed"
            ],
            "title": "Status"
          },
          "baseline_score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Baseline Score"
          },
          "head_score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Head Score"
          },
          "delta": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": -100.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Delta"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "path",
          "status"
        ],
        "title": "CriterionDelta"
      },
      "DefaultPreferences": {
        "properties": {
          "category_headers": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "enum": [
                "base",
                "bonus",
                "penalty"
              ]
            },
            "type": "object",
            "title": "Category Headers",
            "description": "Section heading per category; a missing category uses its localized default heading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "DefaultPreferences",
        "description": "Options of the default Markdown report."
      },
      "DefinitionProvenance": {
        "properties": {
          "schema_version": {
            "type": "string",
            "enum": [
              "1.0",
              "2.0"
            ],
            "title": "Schema Version",
            "description": "Format version of the bound definition snapshot.",
            "default": "2.0"
          },
          "definition_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Definition Hash"
          },
          "reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Reference"
          },
          "revision": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Revision"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "definition_hash"
        ],
        "title": "DefinitionProvenance"
      },
      "DeliberateCodeExecutionRequest": {
        "properties": {
          "language": {
            "type": "string",
            "title": "Language"
          },
          "submission_files": {
            "items": {
              "$ref": "#/components/schemas/ExecutionFile"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Submission Files"
          },
          "program_command": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Program Command"
          },
          "test_cases": {
            "anyOf": [
              {
                "items": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "type": "array",
                "maxItems": 4
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Cases"
          },
          "assets": {
            "items": {
              "$ref": "#/components/schemas/ExecutionAsset"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Assets"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "language",
          "submission_files",
          "program_command"
        ],
        "title": "DeliberateCodeExecutionRequest",
        "description": "Run one command against at most four sequential stdin cases."
      },
      "DeliberateCodeExecutionResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/DeliberateCodeExecutionResult"
            },
            "type": "array",
            "title": "Results"
          },
          "stopped_early": {
            "type": "boolean",
            "title": "Stopped Early",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "results"
        ],
        "title": "DeliberateCodeExecutionResponse",
        "description": "Ordered process results, possibly a prefix after a timeout."
      },
      "DeliberateCodeExecutionResult": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/ResponseCategory"
          },
          "stdout": {
            "type": "string",
            "title": "Stdout"
          },
          "stderr": {
            "type": "string",
            "title": "Stderr"
          },
          "exit_code": {
            "type": "integer",
            "title": "Exit Code"
          },
          "execution_time": {
            "type": "number",
            "title": "Execution Time"
          },
          "output": {
            "type": "string",
            "title": "Output"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "category",
          "stdout",
          "stderr",
          "exit_code",
          "execution_time",
          "output"
        ],
        "title": "DeliberateCodeExecutionResult",
        "description": "Student process outcome. Infrastructure errors use non-200 HTTP responses."
      },
      "EvaluationScopeData": {
        "properties": {
          "scoped_files": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Scoped Files",
            "description": "Filenames to include in scope-aware pipeline analysis"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "scoped_files"
        ],
        "title": "EvaluationScopeData",
        "description": "Schema defining the files that are the primary evaluation subject."
      },
      "EvaluatorDescription": {
        "properties": {
          "identifier": {
            "type": "string",
            "title": "Identifier"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "parameters_schema": {
            "additionalProperties": true,
            "type": "object",
            "title": "Parameters Schema"
          },
          "sample_parameters": {
            "additionalProperties": true,
            "type": "object",
            "title": "Sample Parameters"
          },
          "required_capabilities": {
            "items": {
              "type": "string",
              "enum": [
                "sandbox_execution",
                "http_network",
                "ai_provider",
                "structural_analysis"
              ]
            },
            "type": "array",
            "title": "Required Capabilities"
          },
          "supported_languages": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "python",
                    "java",
                    "node",
                    "cpp",
                    "c"
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Supported Languages",
            "description": "Known language constraints; null means no evaluator-specific restriction is declared. Host execution support is separate."
          },
          "absence_check": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Absence Check",
            "description": "Set for prohibition and limit checks: why the evaluator passes when what it looks for is absent. Null for presence checks, which cannot pass an irrelevant submission."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "identifier",
          "description",
          "parameters_schema",
          "sample_parameters",
          "required_capabilities"
        ],
        "title": "EvaluatorDescription",
        "description": "One evaluator, as accepted by criterion ``type`` within its template."
      },
      "ExecutionAsset": {
        "properties": {
          "source": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Source"
          },
          "target": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Target"
          },
          "read_only": {
            "type": "boolean",
            "title": "Read Only",
            "default": true
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "source",
          "target"
        ],
        "title": "ExecutionAsset",
        "description": "An asset reference supplied by an authenticated host."
      },
      "ExecutionError": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "title": "ExecutionError",
        "description": "Safe machine-readable service failure."
      },
      "ExecutionErrorResponse": {
        "properties": {
          "detail": {
            "$ref": "#/components/schemas/ExecutionError"
          }
        },
        "type": "object",
        "required": [
          "detail"
        ],
        "title": "ExecutionErrorResponse",
        "description": "HTTP error envelope for service failures."
      },
      "ExecutionFile": {
        "properties": {
          "filename": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Filename"
          },
          "content": {
            "type": "string",
            "title": "Content"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "filename",
          "content"
        ],
        "title": "ExecutionFile",
        "description": "One UTF-8 source file staged under the sandbox work directory."
      },
      "ExternalResultCreate": {
        "properties": {
          "grading_config_id": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Grading Config Id"
          },
          "external_user_id": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "External User Id"
          },
          "username": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Username"
          },
          "language": {
            "type": "string",
            "title": "Language"
          },
          "definition_snapshot": {
            "$ref": "#/components/schemas/GradingDefinition-Input"
          },
          "outcome": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CompletedOutcome-Input"
              },
              {
                "$ref": "#/components/schemas/FailedOutcome-Input"
              }
            ],
            "title": "Outcome",
            "discriminator": {
              "propertyName": "status",
              "mapping": {
                "completed": "#/components/schemas/CompletedOutcome-Input",
                "failed": "#/components/schemas/FailedOutcome-Input"
              }
            }
          },
          "submission_metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submission Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "grading_config_id",
          "external_user_id",
          "username",
          "language",
          "definition_snapshot",
          "outcome"
        ],
        "title": "ExternalResultCreate",
        "description": "Authenticated host attestation using the shared outcome and exact definition."
      },
      "ExternalResultResponse": {
        "properties": {
          "submission_id": {
            "type": "integer",
            "title": "Submission Id"
          },
          "grading_config_id": {
            "type": "integer",
            "title": "Grading Config Id"
          },
          "status": {
            "$ref": "#/components/schemas/SubmissionStatus-Output"
          },
          "final_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Final Score"
          },
          "language": {
            "type": "string",
            "title": "Language"
          },
          "provenance": {
            "$ref": "#/components/schemas/DefinitionProvenance"
          },
          "graded_at": {
            "type": "string",
            "format": "date-time",
            "title": "Graded At"
          },
          "execution_time_ms": {
            "type": "integer",
            "title": "Execution Time Ms"
          }
        },
        "type": "object",
        "required": [
          "submission_id",
          "grading_config_id",
          "status",
          "final_score",
          "language",
          "provenance",
          "graded_at",
          "execution_time_ms"
        ],
        "title": "ExternalResultResponse",
        "description": "Receipt for a validated external host attestation."
      },
      "FailedOutcome-Input": {
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "1.0",
            "title": "Schema Version"
          },
          "execution_id": {
            "type": "string",
            "minLength": 1,
            "title": "Execution Id"
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "python",
                  "java",
                  "node",
                  "cpp",
                  "c"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "provenance": {
            "$ref": "#/components/schemas/DefinitionProvenance"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "title": "Started At"
          },
          "finished_at": {
            "type": "string",
            "format": "date-time",
            "title": "Finished At"
          },
          "duration_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Duration Ms"
          },
          "feedback": {
            "$ref": "#/components/schemas/FeedbackOutcome"
          },
          "comparison": {
            "$ref": "#/components/schemas/ComparisonOutcome-Input"
          },
          "status": {
            "type": "string",
            "const": "failed",
            "title": "Status"
          },
          "score": {
            "type": "null",
            "title": "Score"
          },
          "tree": {
            "type": "null",
            "title": "Tree"
          },
          "error": {
            "$ref": "#/components/schemas/OutcomeError"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "schema_version",
          "execution_id",
          "provenance",
          "started_at",
          "finished_at",
          "duration_ms",
          "status",
          "error"
        ],
        "title": "FailedOutcome"
      },
      "FailedOutcome-Output": {
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "1.0",
            "title": "Schema Version"
          },
          "execution_id": {
            "type": "string",
            "minLength": 1,
            "title": "Execution Id"
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "python",
                  "java",
                  "node",
                  "cpp",
                  "c"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "provenance": {
            "$ref": "#/components/schemas/DefinitionProvenance"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "title": "Started At"
          },
          "finished_at": {
            "type": "string",
            "format": "date-time",
            "title": "Finished At"
          },
          "duration_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Duration Ms"
          },
          "feedback": {
            "$ref": "#/components/schemas/FeedbackOutcome"
          },
          "comparison": {
            "$ref": "#/components/schemas/ComparisonOutcome-Output"
          },
          "status": {
            "type": "string",
            "const": "failed",
            "title": "Status"
          },
          "score": {
            "type": "null",
            "title": "Score"
          },
          "tree": {
            "type": "null",
            "title": "Tree"
          },
          "error": {
            "$ref": "#/components/schemas/OutcomeError"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "schema_version",
          "execution_id",
          "provenance",
          "started_at",
          "finished_at",
          "duration_ms",
          "status",
          "error"
        ],
        "title": "FailedOutcome"
      },
      "Feedback-Input": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether a feedback report is rendered; disabled feedback does no work.",
            "default": false
          },
          "mode": {
            "type": "string",
            "const": "default",
            "title": "Mode",
            "description": "Report format; only the Markdown default exists.",
            "default": "default"
          },
          "preferences": {
            "$ref": "#/components/schemas/FeedbackPreferences-Input",
            "description": "Report options."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Feedback",
        "description": "Whether and how a feedback report is written for a completed grade."
      },
      "Feedback-Output": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether a feedback report is rendered; disabled feedback does no work.",
            "default": false
          },
          "mode": {
            "type": "string",
            "const": "default",
            "title": "Mode",
            "description": "Report format; only the Markdown default exists.",
            "default": "default"
          },
          "preferences": {
            "$ref": "#/components/schemas/FeedbackPreferences-Output",
            "description": "Report options."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Feedback",
        "description": "Whether and how a feedback report is written for a completed grade."
      },
      "FeedbackOutcome": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "disabled",
              "completed",
              "failed"
            ],
            "title": "Status",
            "default": "disabled"
          },
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutcomeError"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "FeedbackOutcome"
      },
      "FeedbackPreferences-Input": {
        "properties": {
          "general": {
            "$ref": "#/components/schemas/GeneralPreferences",
            "description": "Options for every mode."
          },
          "default": {
            "$ref": "#/components/schemas/DefaultPreferences",
            "description": "Options of the default mode."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "FeedbackPreferences",
        "description": "How the feedback report is written."
      },
      "FeedbackPreferences-Output": {
        "properties": {
          "general": {
            "$ref": "#/components/schemas/GeneralPreferences",
            "description": "Options for every mode."
          },
          "default": {
            "$ref": "#/components/schemas/DefaultPreferences",
            "description": "Options of the default mode."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "FeedbackPreferences",
        "description": "How the feedback report is written."
      },
      "Fixture": {
        "properties": {
          "reference": {
            "type": "string",
            "minLength": 1,
            "title": "Reference",
            "description": "Logical relative reference resolved by the host's fixture provider (an object key on the shipped hosts)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Unique relative destination under the fixture root (/tmp/app on the shipped hosts)."
          },
          "read_only": {
            "type": "boolean",
            "title": "Read Only",
            "description": "Whether the staged file is read-only to the submission.",
            "default": true
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "reference",
          "path"
        ],
        "title": "Fixture",
        "description": "A host-provided file staged into the sandbox before setup commands."
      },
      "GeneralPreferences": {
        "properties": {
          "report_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Report Title",
            "description": "Report heading; null uses the localized default title."
          },
          "show_score": {
            "type": "boolean",
            "title": "Show Score",
            "description": "Whether the report shows the final score.",
            "default": true
          },
          "show_passed_tests": {
            "type": "boolean",
            "title": "Show Passed Tests",
            "description": "Whether criteria that scored 100 are listed; by default only criteria below 100 are.",
            "default": false
          },
          "add_report_summary": {
            "type": "boolean",
            "title": "Add Report Summary",
            "description": "Whether the report starts with a score summary.",
            "default": true
          },
          "online_content": {
            "items": {
              "$ref": "#/components/schemas/LearningResource"
            },
            "type": "array",
            "title": "Online Content",
            "description": "Learning resources listed at the end of the report."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "GeneralPreferences",
        "description": "Report options shared by every feedback mode."
      },
      "GradingConfigCreate": {
        "properties": {
          "external_assignment_id": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "External Assignment Id"
          },
          "definition": {
            "$ref": "#/components/schemas/GradingDefinition-Input"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "external_assignment_id",
          "definition"
        ],
        "title": "GradingConfigCreate"
      },
      "GradingConfigResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "external_assignment_id": {
            "type": "string",
            "title": "External Assignment Id"
          },
          "definition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GradingDefinition-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "definition_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Definition Hash"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "migration_error": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Migration Error"
          }
        },
        "type": "object",
        "required": [
          "id",
          "external_assignment_id",
          "definition",
          "definition_hash",
          "version",
          "created_at",
          "updated_at",
          "is_active"
        ],
        "title": "GradingConfigResponse"
      },
      "GradingConfigUpdate": {
        "properties": {
          "definition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GradingDefinition-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Active"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "GradingConfigUpdate"
      },
      "GradingDefinition-Input": {
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "2.0",
            "title": "Schema Version",
            "description": "Definition format version."
          },
          "languages": {
            "items": {
              "type": "string",
              "enum": [
                "python",
                "java",
                "node",
                "cpp",
                "c"
              ]
            },
            "type": "array",
            "minItems": 1,
            "title": "Languages",
            "description": "Distinct languages a submission may use; with several, each submission names its language."
          },
          "criteria": {
            "$ref": "#/components/schemas/CriteriaConfig-Input",
            "description": "The weighted criteria tree."
          },
          "preparation": {
            "$ref": "#/components/schemas/Preparation-Input",
            "description": "Required files, fixtures and setup commands."
          },
          "feedback": {
            "$ref": "#/components/schemas/Feedback-Input",
            "description": "Feedback report policy."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "schema_version",
          "languages",
          "criteria"
        ],
        "title": "GradingDefinition",
        "description": "One assignment's complete grading definition (version 2.0)."
      },
      "GradingDefinition-Output": {
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "2.0",
            "title": "Schema Version",
            "description": "Definition format version."
          },
          "languages": {
            "items": {
              "type": "string",
              "enum": [
                "python",
                "java",
                "node",
                "cpp",
                "c"
              ]
            },
            "type": "array",
            "minItems": 1,
            "title": "Languages",
            "description": "Distinct languages a submission may use; with several, each submission names its language."
          },
          "criteria": {
            "$ref": "#/components/schemas/CriteriaConfig-Output",
            "description": "The weighted criteria tree."
          },
          "preparation": {
            "$ref": "#/components/schemas/Preparation-Output",
            "description": "Required files, fixtures and setup commands."
          },
          "feedback": {
            "$ref": "#/components/schemas/Feedback-Output",
            "description": "Feedback report policy."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "schema_version",
          "languages",
          "criteria"
        ],
        "title": "GradingDefinition",
        "description": "One assignment's complete grading definition (version 2.0)."
      },
      "GroupConfig-Input": {
        "properties": {
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests",
            "description": "Criteria directly in this group; null when it has none."
          },
          "subjects": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SubjectConfig-Input"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects",
            "description": "Subjects nested in this group; null when it has none."
          },
          "subjects_weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects Weight",
            "description": "Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "GroupConfig",
        "description": "A group of criteria, such as the base category: its own tests, nested subjects, or both."
      },
      "GroupConfig-Output": {
        "properties": {
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests",
            "description": "Criteria directly in this group; null when it has none."
          },
          "subjects": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SubjectConfig-Output"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects",
            "description": "Subjects nested in this group; null when it has none."
          },
          "subjects_weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects Weight",
            "description": "Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "GroupConfig",
        "description": "A group of criteria, such as the base category: its own tests, nested subjects, or both."
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "JsonValue": {},
      "LanguagePreparation": {
        "properties": {
          "required_files": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required Files",
            "description": "Unique relative submission paths that must exist; a missing one fails with REQUIRED_FILE_MISSING before any sandbox is acquired."
          },
          "setup_commands": {
            "items": {
              "$ref": "#/components/schemas/SetupCommand"
            },
            "type": "array",
            "title": "Setup Commands",
            "description": "Steps run in order after fixtures are staged, for example compilation. A failing step stops grading with PREPARATION_FAILED."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "LanguagePreparation",
        "description": "Preparation for one allowed language."
      },
      "LearningResource": {
        "properties": {
          "url": {
            "type": "string",
            "minLength": 1,
            "title": "Url",
            "description": "Address of the resource."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Link text shown in the report."
          },
          "linked_tests": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Linked Tests",
            "description": "Criterion IDs; the resource is shown only when one of them scored below 100. Empty shows it always."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "url",
          "description"
        ],
        "title": "LearningResource",
        "description": "A link listed in the feedback report."
      },
      "OutcomeError": {
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "REQUIRED_FILE_MISSING",
              "PREPARATION_FAILED",
              "LANGUAGE_REQUIRED",
              "LANGUAGE_NOT_ALLOWED",
              "FILE_TARGET_CONFLICT",
              "UNSUPPORTED_FILE_TYPE",
              "AMBIGUOUS_FILE_TARGET",
              "INVALID_DEFINITION",
              "INVALID_COMMAND",
              "MISSING_LANGUAGE_COMMAND",
              "CAPABILITY_UNAVAILABLE",
              "SERVER_CAPABILITY_UNAVAILABLE",
              "SANDBOX_ERROR",
              "PROCESS_START_FAILED",
              "EXECUTION_BUDGET_EXCEEDED",
              "PREPARATION_ERROR",
              "FIXTURE_PROVIDER_UNAVAILABLE",
              "PROVIDER_UNAVAILABLE",
              "PROVIDER_ERROR",
              "MISSING_EVALUATOR_RESULT",
              "INVALID_EVALUATOR_RESULT",
              "EXECUTION_ERROR",
              "FEEDBACK_ERROR",
              "CLEANUP_ERROR",
              "RECOVERY_EXHAUSTED",
              "RECOVERY_INPUT_UNAVAILABLE",
              "LEGACY_UNVERIFIED",
              "ATTEMPT_DEADLINE_EXCEEDED"
            ],
            "title": "Code"
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "title": "Message"
          },
          "category": {
            "type": "string",
            "enum": [
              "definition",
              "submission",
              "capability",
              "provider",
              "internal"
            ],
            "title": "Category"
          },
          "retryable": {
            "type": "boolean",
            "title": "Retryable"
          },
          "correlation_id": {
            "type": "string",
            "minLength": 1,
            "title": "Correlation Id"
          },
          "output": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output",
            "description": "Excerpt of the failing preparation step's output; submission errors only"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "code",
          "message",
          "category",
          "retryable",
          "correlation_id"
        ],
        "title": "OutcomeError"
      },
      "Preparation-Input": {
        "properties": {
          "languages": {
            "additionalProperties": {
              "$ref": "#/components/schemas/LanguagePreparation"
            },
            "propertyNames": {
              "enum": [
                "python",
                "java",
                "node",
                "cpp",
                "c"
              ]
            },
            "type": "object",
            "title": "Languages",
            "description": "Preparation keyed by allowed language; only the submission's language is used."
          },
          "fixtures": {
            "items": {
              "$ref": "#/components/schemas/Fixture"
            },
            "type": "array",
            "title": "Fixtures",
            "description": "Files staged for every language."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Preparation",
        "description": "What must exist and run before any criterion is assessed."
      },
      "Preparation-Output": {
        "properties": {
          "languages": {
            "additionalProperties": {
              "$ref": "#/components/schemas/LanguagePreparation"
            },
            "propertyNames": {
              "enum": [
                "python",
                "java",
                "node",
                "cpp",
                "c"
              ]
            },
            "type": "object",
            "title": "Languages",
            "description": "Preparation keyed by allowed language; only the submission's language is used."
          },
          "fixtures": {
            "items": {
              "$ref": "#/components/schemas/Fixture"
            },
            "type": "array",
            "title": "Fixtures",
            "description": "Files staged for every language."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Preparation",
        "description": "What must exist and run before any criterion is assessed."
      },
      "ResponseCategory": {
        "type": "string",
        "enum": [
          "success",
          "runtime_error",
          "timeout"
        ],
        "title": "ResponseCategory",
        "description": "Student-facing classification of a started process (deliberate execution wire values)."
      },
      "ResultOutcomeTree-Input": {
        "properties": {
          "name": {
            "type": "string",
            "const": "root",
            "title": "Name",
            "default": "root"
          },
          "type": {
            "type": "string",
            "const": "root",
            "title": "Type",
            "default": "root"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "base": {
            "$ref": "#/components/schemas/CategoryOutcome-Input"
          },
          "bonus": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CategoryOutcome-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "penalty": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CategoryOutcome-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "score",
          "base"
        ],
        "title": "ResultOutcomeTree"
      },
      "ResultOutcomeTree-Output": {
        "properties": {
          "name": {
            "type": "string",
            "const": "root",
            "title": "Name",
            "default": "root"
          },
          "type": {
            "type": "string",
            "const": "root",
            "title": "Type",
            "default": "root"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "base": {
            "$ref": "#/components/schemas/CategoryOutcome-Output"
          },
          "bonus": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CategoryOutcome-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "penalty": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CategoryOutcome-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "score",
          "base"
        ],
        "title": "ResultOutcomeTree"
      },
      "SetupCommand": {
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "title": "Name",
            "description": "Label of the step, shown when it fails."
          },
          "command": {
            "type": "string",
            "minLength": 1,
            "title": "Command",
            "description": "Executable and arguments, split with POSIX quoting and run without a shell. Standalone shell operators (&&, |, ;, >, ...) are rejected: use one setup command per step, and an explicit `sh -c '...'` command only for a real pipeline."
          },
          "private_output": {
            "type": "boolean",
            "title": "Private Output",
            "description": "Keep this step's output out of the student-facing failure explanation, for example when it compiles a hidden test harness. By default a failing step's output excerpt is shown.",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "command"
        ],
        "title": "SetupCommand",
        "description": "One preparation step, run once before assessment in the selected language's sandbox."
      },
      "SubjectConfig-Input": {
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "title": "Name",
            "description": "Display name of the subject; may repeat."
          },
          "weight": {
            "type": "number",
            "minimum": 0.0,
            "title": "Weight",
            "description": "Weight relative to sibling criteria or subjects (any nonnegative ratio); all-zero siblings share equally.",
            "default": 100.0
          },
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests",
            "description": "Criteria directly in this group; null when it has none."
          },
          "subjects": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SubjectConfig-Input"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects",
            "description": "Subjects nested in this group; null when it has none."
          },
          "subjects_weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects Weight",
            "description": "Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "SubjectConfig",
        "description": "A named group of criteria inside a category or another subject."
      },
      "SubjectConfig-Output": {
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "title": "Name",
            "description": "Display name of the subject; may repeat."
          },
          "weight": {
            "type": "number",
            "minimum": 0.0,
            "title": "Weight",
            "description": "Weight relative to sibling criteria or subjects (any nonnegative ratio); all-zero siblings share equally.",
            "default": 100.0
          },
          "tests": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TestConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tests",
            "description": "Criteria directly in this group; null when it has none."
          },
          "subjects": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SubjectConfig-Output"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects",
            "description": "Subjects nested in this group; null when it has none."
          },
          "subjects_weight": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjects Weight",
            "description": "Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise."
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "SubjectConfig",
        "description": "A named group of criteria inside a category or another subject."
      },
      "SubjectOutcome-Input": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "type": "string",
            "const": "subject",
            "title": "Type",
            "default": "subject"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "weight": {
            "type": "number",
            "minimum": 0.0,
            "title": "Weight"
          },
          "subjects": {
            "items": {
              "$ref": "#/components/schemas/SubjectOutcome-Input"
            },
            "type": "array",
            "title": "Subjects",
            "default": []
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestOutcome"
            },
            "type": "array",
            "title": "Tests",
            "default": []
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "score",
          "weight"
        ],
        "title": "SubjectOutcome"
      },
      "SubjectOutcome-Output": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "type": "string",
            "const": "subject",
            "title": "Type",
            "default": "subject"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "weight": {
            "type": "number",
            "minimum": 0.0,
            "title": "Weight"
          },
          "subjects": {
            "items": {
              "$ref": "#/components/schemas/SubjectOutcome-Output"
            },
            "type": "array",
            "title": "Subjects",
            "default": []
          },
          "tests": {
            "items": {
              "$ref": "#/components/schemas/TestOutcome"
            },
            "type": "array",
            "title": "Tests",
            "default": []
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "score",
          "weight"
        ],
        "title": "SubjectOutcome"
      },
      "SubmissionComparisonResponse": {
        "properties": {
          "compatibility": {
            "type": "string",
            "enum": [
              "same_definition",
              "cross_revision"
            ],
            "title": "Compatibility"
          },
          "baseline": {
            "$ref": "#/components/schemas/ComparedSubmission"
          },
          "head": {
            "$ref": "#/components/schemas/ComparedSubmission"
          },
          "score_delta": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 100.0,
                "minimum": -100.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Score Delta",
            "description": "Overall head - baseline; null across revisions"
          },
          "improved": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Improved"
          },
          "explanation": {
            "type": "string",
            "minLength": 1,
            "title": "Explanation"
          },
          "changed_definition_sections": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Changed Definition Sections",
            "default": []
          },
          "criteria": {
            "items": {
              "$ref": "#/components/schemas/CriterionComparison"
            },
            "type": "array",
            "title": "Criteria",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "compatibility",
          "baseline",
          "head",
          "explanation"
        ],
        "title": "SubmissionComparisonResponse",
        "description": "Read-only comparison of two stored canonical outcomes; never stored or regraded."
      },
      "SubmissionCreate": {
        "properties": {
          "external_assignment_id": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "External Assignment Id",
            "description": "External assignment ID"
          },
          "external_user_id": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "External User Id",
            "description": "External user ID"
          },
          "username": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Username",
            "description": "Username of the submitter"
          },
          "files": {
            "items": {
              "$ref": "#/components/schemas/SubmissionFileData"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Files",
            "description": "List of source files to submit"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language",
            "description": "Optional language override"
          },
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "pt-br"
            ],
            "title": "Locale",
            "description": "Feedback locale. Case-insensitive; '_' is accepted for '-' (e.g. 'pt_BR' is 'pt-br').",
            "default": "en"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata",
            "description": "Optional submission metadata"
          },
          "evaluation_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EvaluationScopeData"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional file scope for pipeline analysis"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "external_assignment_id",
          "external_user_id",
          "username",
          "files"
        ],
        "title": "SubmissionCreate",
        "description": "Schema for creating a new submission."
      },
      "SubmissionDetailResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "grading_config_id": {
            "type": "integer",
            "title": "Grading Config Id"
          },
          "external_user_id": {
            "type": "string",
            "title": "External User Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "status": {
            "$ref": "#/components/schemas/SubmissionStatus-Output"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Submitted At"
          },
          "graded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graded At"
          },
          "final_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Final Score"
          },
          "execution_time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution Time Ms"
          },
          "provenance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DefinitionProvenance"
              },
              {
                "type": "null"
              }
            ]
          },
          "provenance_status": {
            "type": "string",
            "title": "Provenance Status"
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutcomeError"
              },
              {
                "type": "null"
              }
            ]
          },
          "feedback_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Feedback Status"
          },
          "comparison_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comparison Status"
          },
          "submission_files": {
            "additionalProperties": {
              "$ref": "#/components/schemas/SubmissionFileDetail"
            },
            "type": "object",
            "title": "Submission Files"
          },
          "locale": {
            "type": "string",
            "enum": [
              "en",
              "pt-br"
            ],
            "title": "Locale",
            "default": "en"
          },
          "evaluation_scope": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EvaluationScopeData"
              },
              {
                "type": "null"
              }
            ]
          },
          "submission_metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submission Metadata"
          },
          "definition_snapshot": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Definition Snapshot",
            "description": "The exact definition snapshot this execution is bound to, as stored, in the format version its outcome's provenance names (`schema_version` 1.0 for executions bound before format 2.0)."
          },
          "outcome": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CompletedOutcome-Output"
                  },
                  {
                    "$ref": "#/components/schemas/FailedOutcome-Output"
                  }
                ],
                "discriminator": {
                  "propertyName": "status",
                  "mapping": {
                    "completed": "#/components/schemas/CompletedOutcome-Output",
                    "failed": "#/components/schemas/FailedOutcome-Output"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome"
          },
          "diagnostics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Diagnostics"
          }
        },
        "type": "object",
        "required": [
          "id",
          "grading_config_id",
          "external_user_id",
          "username",
          "language",
          "status",
          "submitted_at",
          "provenance_status",
          "submission_files"
        ],
        "title": "SubmissionDetailResponse",
        "description": "Authenticated source, provenance and outcome projection."
      },
      "SubmissionFileData": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename",
            "description": "Canonical relative POSIX path"
          },
          "content": {
            "type": "string",
            "title": "Content",
            "description": "Exact UTF-8 source text"
          },
          "changed_lines": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changed Lines",
            "description": "One-indexed line numbers added or modified in this file"
          },
          "file_metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Metadata",
            "description": "Optional opaque metadata for this file"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "filename",
          "content"
        ],
        "title": "SubmissionFileData",
        "description": "Schema for a submission file."
      },
      "SubmissionFileDetail": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "changed_lines": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changed Lines"
          },
          "file_metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Metadata"
          }
        },
        "type": "object",
        "required": [
          "filename",
          "content"
        ],
        "title": "SubmissionFileDetail",
        "description": "Stored source projection; legacy records are not revalidated as new input."
      },
      "SubmissionResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "grading_config_id": {
            "type": "integer",
            "title": "Grading Config Id"
          },
          "external_user_id": {
            "type": "string",
            "title": "External User Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          },
          "status": {
            "$ref": "#/components/schemas/SubmissionStatus-Output"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Submitted At"
          },
          "graded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graded At"
          },
          "final_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Final Score"
          },
          "execution_time_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Execution Time Ms"
          },
          "provenance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DefinitionProvenance"
              },
              {
                "type": "null"
              }
            ]
          },
          "provenance_status": {
            "type": "string",
            "title": "Provenance Status"
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutcomeError"
              },
              {
                "type": "null"
              }
            ]
          },
          "feedback_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Feedback Status"
          },
          "comparison_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comparison Status"
          }
        },
        "type": "object",
        "required": [
          "id",
          "grading_config_id",
          "external_user_id",
          "username",
          "language",
          "status",
          "submitted_at",
          "provenance_status"
        ],
        "title": "SubmissionResponse",
        "description": "Compact status/history projection; source files and tree require details."
      },
      "SubmissionStatus-Input": {
        "type": "string",
        "enum": [
          "pending",
          "processing",
          "completed",
          "failed"
        ],
        "title": "SubmissionStatus",
        "description": "Status of a submission in the grading pipeline."
      },
      "SubmissionStatus-Output": {
        "type": "string",
        "enum": [
          "pending",
          "processing",
          "completed",
          "failed"
        ],
        "title": "SubmissionStatus",
        "description": "Status of a submission."
      },
      "TemplateCatalog": {
        "properties": {
          "templates": {
            "items": {
              "$ref": "#/components/schemas/TemplateDescription"
            },
            "type": "array",
            "title": "Templates"
          },
          "capabilities": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "enum": [
                "sandbox_execution",
                "http_network",
                "ai_provider",
                "structural_analysis"
              ]
            },
            "type": "object",
            "title": "Capabilities",
            "description": "Why each capability may be unavailable on a host."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "templates"
        ],
        "title": "TemplateCatalog"
      },
      "TemplateDescription": {
        "properties": {
          "identifier": {
            "type": "string",
            "title": "Identifier"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "evaluators": {
            "items": {
              "$ref": "#/components/schemas/EvaluatorDescription"
            },
            "type": "array",
            "title": "Evaluators"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "identifier",
          "name",
          "description",
          "evaluators"
        ],
        "title": "TemplateDescription"
      },
      "TestConfig": {
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_.:-]+$",
            "title": "Id",
            "description": "Stable identifier, unique in the definition; results, feedback links and comparisons use it."
          },
          "type": {
            "type": "string",
            "minLength": 1,
            "title": "Type",
            "description": "Evaluator identifier (see the evaluator reference)."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "title": "Name",
            "description": "Display name; may repeat."
          },
          "parameters": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Parameters",
            "description": "The evaluator's parameters ({} when it has none); each evaluator documents its own."
          },
          "file": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "File",
            "description": "Exact relative submission path to assess; null selects the evaluator's matching files."
          },
          "weight": {
            "type": "number",
            "minimum": 0.0,
            "title": "Weight",
            "description": "Weight relative to sibling criteria or subjects (any nonnegative ratio); all-zero siblings share equally.",
            "default": 100.0
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata",
            "description": "Free-form JSON stored with the definition; never interpreted by grading."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "type",
          "name",
          "parameters"
        ],
        "title": "TestConfig",
        "description": "One criterion: an evaluator invocation with its parameters."
      },
      "TestOutcome": {
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "title": "Id"
          },
          "evaluator": {
            "type": "string",
            "minLength": 1,
            "title": "Evaluator"
          },
          "type": {
            "type": "string",
            "const": "test",
            "title": "Type",
            "default": "test"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "score": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "weight": {
            "type": "number",
            "minimum": 0.0,
            "title": "Weight"
          },
          "report": {
            "type": "string",
            "title": "Report",
            "default": ""
          },
          "file_target": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Target"
          },
          "parameters": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Parameters"
          },
          "metadata": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "object",
            "title": "Metadata"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "evaluator",
          "name",
          "score",
          "weight"
        ],
        "title": "TestOutcome"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "IntegrationBearer": {
        "type": "http",
        "description": "Integration token (full access) or a restricted attestation token (POST /submissions/external-results only).",
        "scheme": "bearer"
      }
    }
  }
}
