{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/autonomy-level-change-log",
    "title": "Autonomy-Level Change Log",
    "type": "object",
    "required": [
        "subject_doi",
        "from_level",
        "to_level",
        "change_date",
        "approved_by"
    ],
    "properties": {
        "subject_doi": {
            "title": "System / agent ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "from_level": {
            "title": "From autonomy level",
            "type": "string",
            "maxLength": 1000
        },
        "to_level": {
            "title": "To autonomy level",
            "type": "string",
            "maxLength": 1000
        },
        "change_date": {
            "title": "Change date-time",
            "type": "string",
            "format": "date-time"
        },
        "approved_by": {
            "title": "Approved by",
            "type": "string",
            "maxLength": 1000
        },
        "rationale": {
            "title": "Rationale",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        }
    },
    "additionalProperties": true
}