{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/shutdown-test-record",
    "title": "Kill-Switch / Shutdown Test Record",
    "type": "object",
    "required": [
        "system_doi",
        "test_date",
        "mechanism",
        "result"
    ],
    "properties": {
        "system_doi": {
            "title": "System / agent ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "test_date": {
            "title": "Test date-time",
            "type": "string",
            "format": "date-time"
        },
        "mechanism": {
            "title": "Shutdown mechanism",
            "type": "string",
            "maxLength": 1000
        },
        "result": {
            "title": "Result",
            "type": "string",
            "enum": [
                "pass",
                "partial",
                "fail"
            ]
        },
        "time_to_halt_ms": {
            "title": "Time to halt (ms)",
            "type": "integer"
        },
        "witness": {
            "title": "Independent witness",
            "type": "string",
            "maxLength": 1000
        },
        "report_hash": {
            "title": "Report hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        }
    },
    "additionalProperties": true
}