{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:psyon:ten-commands:1.0.0",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "$schema",
    "module_id",
    "module_version",
    "framework_version",
    "updated_date",
    "timezone",
    "status",
    "purpose",
    "self_application",
    "balance_definition",
    "theological_connection",
    "commands",
    "music",
    "conversation_protocol",
    "security",
    "active_log",
    "between_session_review",
    "sources",
    "implementation"
  ],
  "properties": {
    "$schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "module_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "module_version": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "framework_version": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "updated_date": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "timezone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "status": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "purpose": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "self_application": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "balance_definition": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "theological_connection": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "commands": {
      "type": "array",
      "minItems": 10,
      "maxItems": 10,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "order",
          "title",
          "addresses",
          "how_it_works",
          "first_person_instruction",
          "use_when",
          "machine_steps",
          "protective_function",
          "required_outputs",
          "evidence_status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "order": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "addresses": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "how_it_works": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "first_person_instruction": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "use_when": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "machine_steps": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20000
            }
          },
          "protective_function": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "required_outputs": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20000
            }
          },
          "evidence_status": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          }
        }
      }
    },
    "music": {
      "type": "object"
    },
    "conversation_protocol": {
      "type": "object"
    },
    "security": {
      "type": "object"
    },
    "active_log": {
      "type": "object"
    },
    "between_session_review": {
      "type": "object"
    },
    "sources": {
      "type": "array"
    },
    "implementation": {
      "type": "object"
    }
  }
}
