{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://hai.ai/schemas/program/v1/program.schema.json",
  "title": "Program",
  "description": "A signed, immutable message evaluation an agent's performance on a task",
  "type": "object",
  "allOf": [
    {
      "$ref": "https://hai.ai/schemas/header/v1/header.schema.json"
    },
    {
      "properties": {
        "planningSignature": {
          "description": "Signature of the planning agent. Who choses",
          "$ref": "https://hai.ai/schemas/components/signature/v1/signature.schema.json"
        },
        "safetySignature": {
          "description": "Signature of the safety agent",
          "$ref": "https://hai.ai/schemas/components/signature/v1/signature.schema.json"
        },
        "evaluationSignature": {
          "description": "signing of evaluation by agent evaluating",
          "$ref": "https://hai.ai/schemas/components/signature/v1/signature.schema.json"
        },
        "taskID": {
          "type": "string",
          "hai": "meta",
          "description": "task being processed, a description can be found there.",
          "format": "uuid"
        },
        "activeNodeIDs": {
          "type": "array",
          "hai": "meta",
          "description": "task being processed, a description can be found there.",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "datetime": {
          "description": "Date of evaluation",
          "format": "date-time",
          "hai": "agent",
          "type": "string"
        },
        "requirements": {
          "type": "string",
          "description": "What are the goals for the program",
          "hai": "agent"
        },
        "changes": {
          "type": "array",
          "description": "What changes were made to the plan along the way and why.",
          "hai": "agent",
          "items": {
            "type": "string"
          }
        },
        "nodes": {
          "type": "array",
          "description": "list of evaluation units, informatio labels",
          "items": {
            "$ref": "https://hai.ai/schemas/node/v1/node.schema.json"
          }
        }
      },
      "required": [
        "id",
        "taskID",
        "nodes",
        "requirements"
      ],
      "additionalProperties": false
    }
  ]
}
