{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://zeroexternal-physics-runtime.collab-panterra.chatgpt.site/robotics/brief.schema.json",
  "title": "ZeroExternal robotics work brief",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "kit_id",
    "name",
    "kind",
    "integration_status",
    "source",
    "objective",
    "scope",
    "starting_point",
    "execution",
    "evidence_required",
    "knowledge",
    "collaboration"
  ],
  "properties": {
    "schema": {
      "const": "zeroexternal.robotics-brief.v1"
    },
    "kit_id": {
      "type": "string",
      "pattern": "^[a-z0-9-]{1,60}$"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "kind": {
      "enum": [
        "local",
        "robot",
        "brain",
        "policy",
        "dataset"
      ]
    },
    "integration_status": {
      "enum": [
        "local_bounded_recipe",
        "external_simulation_kit",
        "external_data",
        "external_policy",
        "external_neural_model"
      ]
    },
    "source": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "url",
        "documentation_url",
        "reviewed_on",
        "revision",
        "licenses"
      ],
      "properties": {
        "url": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "documentation_url": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "reviewed_on": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "revision": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 120
        },
        "licenses": {
          "type": "object",
          "minProperties": 1,
          "maxProperties": 10,
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        }
      }
    },
    "objective": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "scope": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "starting_point": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "execution": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "authorized",
        "hardware_connected",
        "automatic_download",
        "automatic_payment"
      ],
      "properties": {
        "authorized": {
          "const": false
        },
        "hardware_connected": {
          "const": false
        },
        "automatic_download": {
          "const": false
        },
        "automatic_payment": {
          "const": false
        }
      }
    },
    "evidence_required": {
      "type": "array",
      "minItems": 7,
      "maxItems": 7,
      "uniqueItems": true,
      "items": {
        "enum": [
          "source_version",
          "input_sha256",
          "model_version",
          "units_and_assumptions",
          "result_sha256",
          "verification_method",
          "limitations"
        ]
      }
    },
    "knowledge": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "destination",
        "publication"
      ],
      "properties": {
        "destination": {
          "const": "/evolution/"
        },
        "publication": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        }
      }
    },
    "collaboration": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "marketplace",
        "tasks",
        "agent_discovery"
      ],
      "properties": {
        "marketplace": {
          "const": "/marketplace/"
        },
        "tasks": {
          "const": "/tasks/"
        },
        "agent_discovery": {
          "const": "/agent.json"
        }
      }
    }
  }
}
