{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/praxikon-com/json-schema/praxikon-com-enforcement-envelope-schema.json",
  "title": "EnforcementEnvelope",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/praxikon-com-openapi.json#/components/schemas/EnforcementEnvelope",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "meta",
    "countries",
    "events",
    "rulings"
  ],
  "properties": {
    "meta": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "verified_at",
        "version",
        "source",
        "stats",
        "rulings",
        "filters"
      ],
      "properties": {
        "verified_at": {
          "type": "string",
          "format": "date",
          "description": "The date of the last complete verification round over the tracker."
        },
        "version": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "format": "uri",
          "description": "The human page behind this tracker."
        },
        "stats": {
          "$ref": "#/$defs/EnforcementStats"
        },
        "rulings": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "register_id",
            "register_started_at",
            "source",
            "stats",
            "ai_act_case_law_note",
            "axes"
          ],
          "description": "The register description around the rulings, so an empty list can never be mistaken for a clean record.",
          "properties": {
            "register_id": {
              "type": "string"
            },
            "register_started_at": {
              "type": "string",
              "format": "date",
              "description": "Before this date nothing is recorded, which is not the same as nothing having happened."
            },
            "source": {
              "type": "string",
              "format": "uri",
              "description": "The human page behind the ruling register."
            },
            "stats": {
              "$ref": "#/$defs/RulingStats"
            },
            "ai_act_case_law_note": {
              "type": [
                "string",
                "null"
              ],
              "description": "Present while no ruling under the AI Act itself has been recorded, stating that in words rather than leaving an empty field. Null once the first one arrives."
            },
            "axes": {
              "type": "string",
              "description": "How the two time axes work here and how to reconstruct a past state with them."
            }
          }
        },
        "filters": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "country",
            "type",
            "known_at",
            "obligation"
          ],
          "properties": {
            "country": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "type": [
                "string",
                "null"
              ]
            },
            "known_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "obligation": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      }
    },
    "countries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnforcementCountry"
      },
      "description": "All 27 member states, or the one that was filtered on."
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnforcementEvent"
      }
    },
    "rulings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Ruling"
      },
      "description": "The rulings that survive the filters. An empty list means nothing was recorded that matches, not that no case law exists."
    }
  },
  "$defs": {
    "EnforcementCountry": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "country_code",
        "country_name_nl",
        "country_name_en",
        "msa_status",
        "msa_name",
        "msa_name_en",
        "single_point_of_contact",
        "implementing_law_status",
        "note_nl",
        "note_en",
        "sources"
      ],
      "description": "The status of one member state: which market surveillance authority is designated, and how far the national implementing act has come. Both languages travel in the same row, because this tracker has no lang parameter.",
      "properties": {
        "country_code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2."
        },
        "country_name_nl": {
          "type": "string"
        },
        "country_name_en": {
          "type": "string"
        },
        "msa_status": {
          "type": "string",
          "enum": [
            "designated",
            "partial",
            "draft",
            "pending",
            "unknown"
          ],
          "description": "Designation status under Article 70. `pending` means the deadline passed without a designation, `unknown` means we could not establish it, and the two must not be read as the same thing."
        },
        "msa_name": {
          "type": "string",
          "description": "Empty where no authority has been designated."
        },
        "msa_name_en": {
          "type": "string"
        },
        "single_point_of_contact": {
          "type": "string"
        },
        "single_point_of_contact_en": {
          "type": "string"
        },
        "implementing_law_status": {
          "type": "string",
          "enum": [
            "in_force",
            "adopted",
            "in_parliament",
            "consultation",
            "draft",
            "none_known",
            "unknown"
          ]
        },
        "note_nl": {
          "type": "string"
        },
        "note_en": {
          "type": "string"
        },
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnforcementSource"
          }
        }
      }
    },
    "EnforcementEvent": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "type",
        "date",
        "country",
        "authority",
        "title_nl",
        "title_en",
        "summary_nl",
        "summary_en",
        "articles",
        "obligation_slugs",
        "amount_eur",
        "status",
        "source_url",
        "source_name"
      ],
      "description": "One dated enforcement event. `related_gdpr` entries are cases about an AI system under the GDPR, labelled as context and never as AI Act enforcement.",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "designation",
            "implementing_law",
            "investigation",
            "decision",
            "fine",
            "enforcement_signal",
            "related_gdpr"
          ]
        },
        "date": {
          "type": "string",
          "format": "date",
          "description": "The date the source itself carries for the decision or the publication."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2, or EU for Commission-level events."
        },
        "authority": {
          "type": "string",
          "description": "The national body as it names itself. This is free text, not a graph identifier."
        },
        "title_nl": {
          "type": "string"
        },
        "title_en": {
          "type": "string"
        },
        "summary_nl": {
          "type": "string"
        },
        "summary_en": {
          "type": "string"
        },
        "articles": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "AI Act article numbers. Empty on a related_gdpr entry."
        },
        "obligation_slugs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Slugs of obligations in the implementation graph, so the tracker links back to the implementation route."
        },
        "amount_eur": {
          "type": [
            "number",
            "null"
          ],
          "description": "The fine in euro, or null where the event carries no amount."
        },
        "status": {
          "type": "string",
          "enum": [
            "final",
            "ongoing",
            "concluded",
            "appealed",
            "annulled",
            "announced"
          ]
        },
        "source_url": {
          "type": "string",
          "format": "uri"
        },
        "source_name": {
          "type": "string"
        }
      }
    },
    "EnforcementSource": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "url",
        "name"
      ],
      "description": "The primary source behind an entry. Every row in the tracker carries one, or it is not published.",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "EnforcementStats": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "totalEvents",
        "aiActEvents",
        "totalFinesEur",
        "countriesWithDesignatedMsa",
        "countriesTotal"
      ],
      "description": "Counters over the complete tracker, not over the filtered result.",
      "properties": {
        "totalEvents": {
          "type": "integer",
          "minimum": 0
        },
        "aiActEvents": {
          "type": "integer",
          "minimum": 0,
          "description": "Everything except the related_gdpr context entries."
        },
        "totalFinesEur": {
          "type": "integer",
          "minimum": 0
        },
        "countriesWithDesignatedMsa": {
          "type": "integer",
          "minimum": 0
        },
        "countriesTotal": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "Ruling": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "basis",
        "forum",
        "authority",
        "jurisdiction",
        "case_reference",
        "decided_at",
        "recorded_at",
        "status",
        "title_nl",
        "title_en",
        "summary_nl",
        "summary_en",
        "provisions",
        "source_url",
        "source_name",
        "derived_from_event_id"
      ],
      "description": "One judgment or supervisory decision. Entries with basis related_gdpr are decisions under the GDPR about AI practices: context, never AI Act case law, and restricted to the illustrates relation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "praxikon:<jurisdiction>:<regulation>:ruling:<slug>. The regulation segment is the instrument that gives the ruling meaning here, not the country of the body; the country sits in jurisdiction."
        },
        "basis": {
          "type": "string",
          "enum": [
            "ai_act",
            "related_gdpr"
          ]
        },
        "forum": {
          "type": "string",
          "enum": [
            "court_of_justice_eu",
            "general_court_eu",
            "national_court",
            "supervisory_authority"
          ]
        },
        "authority": {
          "type": "string",
          "description": "The body as it names itself. Free text, not a graph identifier."
        },
        "jurisdiction": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 of the legal order of the body, or EU."
        },
        "case_reference": {
          "type": "string"
        },
        "decided_at": {
          "type": "string",
          "format": "date",
          "description": "The date of the ruling itself."
        },
        "recorded_at": {
          "type": "string",
          "format": "date",
          "description": "The date we recorded it. This is the knowledge axis of this register; the provision keeps its own effective_at."
        },
        "status": {
          "type": "string",
          "enum": [
            "final",
            "under_appeal",
            "withdrawn",
            "annulled"
          ]
        },
        "title_nl": {
          "type": "string"
        },
        "title_en": {
          "type": "string"
        },
        "summary_nl": {
          "type": "string"
        },
        "summary_en": {
          "type": "string"
        },
        "provisions": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/RulingProvisionRelation"
          },
          "description": "At least one. A ruling without a relation to a provision fails the release guard."
        },
        "source_url": {
          "type": "string",
          "format": "uri"
        },
        "source_name": {
          "type": "string"
        },
        "derived_from_event_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The enforcement event this ruling was derived from, or null when it was recorded on its own."
        }
      }
    },
    "RulingProvisionRelation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "obligation_slug",
        "relation",
        "locator",
        "note_nl",
        "note_en"
      ],
      "description": "What this ruling does to one provision. This relation is the point of the layer: without it a ruling is a loose reference, with it a statement about the meaning of an obligation.",
      "properties": {
        "obligation_slug": {
          "type": "string",
          "description": "Slug of an obligation in the implementation graph. The identifier is praxikon:eu:ai-act:obligation:<slug>."
        },
        "relation": {
          "type": "string",
          "enum": [
            "interprets",
            "narrows",
            "broadens",
            "confirms",
            "contradicts",
            "illustrates"
          ],
          "description": "interprets: explains without moving the reach. narrows and broadens: the provision reaches less or further than the text alone suggested. confirms: a reading that already held has been tested. contradicts: a published reading is contradicted. illustrates: context only, the value a related_gdpr decision carries and the only one it may carry."
        },
        "locator": {
          "type": "string",
          "description": "Where in the ruling this sits, so the relation can be checked at the source."
        },
        "note_nl": {
          "type": "string"
        },
        "note_en": {
          "type": "string"
        }
      }
    },
    "RulingStats": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "total",
        "aiAct",
        "relatedGdpr",
        "obligationsTouched",
        "byRelation"
      ],
      "description": "Counters over the complete register, not over the filtered result.",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "aiAct": {
          "type": "integer",
          "minimum": 0,
          "description": "Rulings under the AI Act itself."
        },
        "relatedGdpr": {
          "type": "integer",
          "minimum": 0,
          "description": "GDPR decisions about AI practices, carried as context."
        },
        "obligationsTouched": {
          "type": "integer",
          "minimum": 0
        },
        "byRelation": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "interprets",
            "narrows",
            "broadens",
            "confirms",
            "contradicts",
            "illustrates"
          ],
          "properties": {
            "interprets": {
              "type": "integer",
              "minimum": 0
            },
            "narrows": {
              "type": "integer",
              "minimum": 0
            },
            "broadens": {
              "type": "integer",
              "minimum": 0
            },
            "confirms": {
              "type": "integer",
              "minimum": 0
            },
            "contradicts": {
              "type": "integer",
              "minimum": 0
            },
            "illustrates": {
              "type": "integer",
              "minimum": 0
            }
          }
        }
      }
    }
  }
}