{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-post-api-assessments-id-runtime-evidence-response201-application-json-schema.json",
  "title": "PostApiAssessmentsIdRuntimeEvidenceResponse201ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-assessments-api-openapi.yml#/components/schemas/PostApiAssessmentsIdRuntimeEvidenceResponse201ApplicationJson",
  "type": "object",
  "properties": {
    "snapshotId": {
      "type": "number"
    },
    "snapshotHash": {
      "type": "string"
    },
    "review": {
      "type": "object",
      "properties": {
        "schemaVersion": {
          "type": "string",
          "enum": [
            "assessment-runtime-review-v1"
          ]
        },
        "organizationId": {
          "$ref": "#/$defs/OrganizationId"
        },
        "assessmentId": {
          "type": "number"
        },
        "eventId": {
          "type": "number"
        },
        "reference": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "model_call"
                  ]
                },
                "modelCallId": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "source",
                "modelCallId"
              ]
            },
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "orchestration_bridge"
                  ]
                },
                "runId": {
                  "type": "string"
                },
                "receiptId": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "source",
                "runId",
                "receiptId"
              ]
            },
            {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "enum": [
                    "evaluation_run"
                  ]
                },
                "evaluationId": {
                  "type": "number"
                },
                "runId": {
                  "type": "number"
                }
              },
              "additionalProperties": false,
              "required": [
                "source",
                "evaluationId",
                "runId"
              ]
            }
          ]
        },
        "observation": {
          "type": "object",
          "properties": {
            "reference": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "model_call"
                      ]
                    },
                    "modelCallId": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "source",
                    "modelCallId"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "orchestration_bridge"
                      ]
                    },
                    "runId": {
                      "type": "string"
                    },
                    "receiptId": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "source",
                    "runId",
                    "receiptId"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "evaluation_run"
                      ]
                    },
                    "evaluationId": {
                      "type": "number"
                    },
                    "runId": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "source",
                    "evaluationId",
                    "runId"
                  ]
                }
              ]
            },
            "target": {
              "type": "string"
            },
            "boundary": {
              "type": "string"
            },
            "outcome": {
              "type": "string"
            },
            "timing": {
              "type": "string"
            },
            "scopeComplete": {
              "type": "boolean"
            },
            "receiptHash": {
              "type": "string"
            },
            "receipt": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/JsonValue"
              }
            }
          },
          "additionalProperties": false,
          "required": [
            "reference",
            "target",
            "boundary",
            "outcome",
            "timing",
            "scopeComplete",
            "receiptHash",
            "receipt"
          ]
        },
        "reviewedBy": {
          "type": "object",
          "properties": {
            "userId": {
              "type": "string"
            },
            "authType": {
              "type": "string"
            },
            "role": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "userId",
            "authType",
            "role"
          ]
        },
        "reviewedAt": {
          "type": "string"
        },
        "rationale": {
          "type": "string"
        },
        "expectedAssessmentHash": {
          "type": "string"
        },
        "requestHash": {
          "type": "string"
        },
        "assessment": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "schemaVersion",
        "organizationId",
        "assessmentId",
        "eventId",
        "reference",
        "observation",
        "reviewedBy",
        "reviewedAt",
        "rationale",
        "expectedAssessmentHash",
        "requestHash",
        "assessment"
      ]
    },
    "replayed": {
      "type": "boolean"
    }
  },
  "additionalProperties": false,
  "required": [
    "snapshotId",
    "snapshotHash",
    "review",
    "replayed"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    },
    "OrganizationId": {
      "type": "string",
      "format": "uuid"
    }
  }
}