{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/ai-incident-record",
    "title": "AI Incident Record",
    "type": "object",
    "required": [
        "incident_title",
        "incident_date",
        "system_dois",
        "harm_type",
        "severity",
        "verification_status"
    ],
    "properties": {
        "incident_title": {
            "title": "Incident title",
            "type": "string",
            "maxLength": 1000
        },
        "incident_date": {
            "title": "Incident date",
            "type": "string",
            "format": "date"
        },
        "system_dois": {
            "title": "Affected system / deployment IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        },
        "harm_type": {
            "title": "Harm type",
            "type": "string",
            "enum": [
                "physical",
                "financial",
                "rights",
                "privacy",
                "misinformation",
                "security",
                "environmental",
                "other"
            ]
        },
        "severity": {
            "title": "Severity",
            "type": "string",
            "enum": [
                "low",
                "medium",
                "high",
                "critical"
            ]
        },
        "verification_status": {
            "title": "Verification status",
            "type": "string",
            "enum": [
                "reported",
                "verified",
                "disputed",
                "resolved"
            ]
        },
        "external_incident_ids": {
            "title": "External incident DB IDs",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "regulator_notified": {
            "title": "Regulator notified",
            "type": "boolean"
        },
        "corrective_actions": {
            "title": "Corrective actions",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "report_url": {
            "title": "Report URL",
            "type": "string",
            "format": "uri"
        },
        "incident_end_date": {
            "title": "Incident end date",
            "type": "string",
            "format": "date"
        },
        "root_cause": {
            "title": "Root cause (public summary)",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "affected_population_estimate": {
            "title": "Affected people (estimate)",
            "type": "integer"
        },
        "jurisdictions": {
            "title": "Jurisdictions",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "disclosure_date": {
            "title": "Public disclosure date",
            "type": "string",
            "format": "date"
        },
        "autonomy_involved": {
            "title": "Autonomous agent involved",
            "type": "boolean"
        },
        "agent_dois": {
            "title": "Involved agent IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        },
        "related_evaluation_dois": {
            "title": "Related evaluation IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        }
    },
    "additionalProperties": true
}