{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/model-weights-custody-record",
    "title": "Model-Weights Custody Record",
    "type": "object",
    "required": [
        "system_doi",
        "weights_hash",
        "custodian",
        "event",
        "event_date"
    ],
    "properties": {
        "system_doi": {
            "title": "System ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "weights_hash": {
            "title": "Weights hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "custodian": {
            "title": "Custodian",
            "type": "string",
            "maxLength": 1000
        },
        "security_level": {
            "title": "Security level",
            "type": "string",
            "enum": [
                "SL1",
                "SL2",
                "SL3",
                "SL4",
                "SL5"
            ]
        },
        "event": {
            "title": "Custody event",
            "type": "string",
            "enum": [
                "created",
                "transferred",
                "copied",
                "access-granted",
                "destroyed"
            ]
        },
        "event_date": {
            "title": "Event date-time",
            "type": "string",
            "format": "date-time"
        }
    },
    "additionalProperties": true
}