{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Déclaration d’incident algorithmique — Justice",
  "type": "object",
  "required": [
    "incident_id",
    "detected_at",
    "system_id",
    "severity",
    "description",
    "containment"
  ],
  "properties": {
    "incident_id": {
      "type": "string"
    },
    "detected_at": {
      "type": "string",
      "format": "date-time"
    },
    "system_id": {
      "type": "string"
    },
    "model_version": {
      "type": "string"
    },
    "severity": {
      "enum": [
        "mineur",
        "significatif",
        "grave",
        "critique"
      ]
    },
    "description": {
      "type": "string"
    },
    "affected_cases": {
      "type": "integer",
      "minimum": 0
    },
    "fundamental_rights_risk": {
      "type": "boolean"
    },
    "personal_data_breach": {
      "type": "boolean"
    },
    "containment": {
      "type": "string"
    },
    "notifications": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "authority": {
            "type": "string"
          },
          "notified_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "root_cause": {
      "type": "string"
    },
    "corrective_actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}