{
  "$id": "https://www.ip-consulting-group.com/atlas/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Insurance AI Atlas public dataset",
  "description": "Reviewed Atlas findings, grouping vocabulary, and original public-source references.",
  "type": "object",
  "properties": {
    "schema_version": {
      "const": 1
    },
    "document_type": {
      "enum": [
        "insurance_ai_atlas",
        "insurance_ai_atlas_additions"
      ]
    },
    "as_of": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "metadata": {
      "type": "object",
      "properties": {
        "title": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string"
            },
            "fr": {
              "type": "string"
            }
          },
          "required": [
            "en",
            "fr"
          ],
          "additionalProperties": false
        },
        "description": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string"
            },
            "fr": {
              "type": "string"
            }
          },
          "required": [
            "en",
            "fr"
          ],
          "additionalProperties": false
        },
        "curator": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "role": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string"
                },
                "fr": {
                  "type": "string"
                }
              },
              "required": [
                "en",
                "fr"
              ],
              "additionalProperties": false
            },
            "organization": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "role",
            "organization",
            "url"
          ],
          "additionalProperties": false
        },
        "licence": {
          "type": "object",
          "properties": {
            "id": {
              "const": "CC-BY-4.0"
            },
            "url": {
              "type": "string"
            },
            "scope": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string"
                },
                "fr": {
                  "type": "string"
                }
              },
              "required": [
                "en",
                "fr"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "id",
            "url",
            "scope"
          ],
          "additionalProperties": false
        },
        "cadence": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string"
            },
            "fr": {
              "type": "string"
            }
          },
          "required": [
            "en",
            "fr"
          ],
          "additionalProperties": false
        },
        "site_url": {
          "type": "string"
        },
        "schema_url": {
          "type": "string"
        },
        "data_url": {
          "type": "string"
        },
        "feed_url": {
          "type": "string"
        },
        "edition_count": {
          "type": "integer",
          "minimum": 0
        },
        "record_count": {
          "type": "integer",
          "minimum": 0
        },
        "source_count": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "title",
        "description",
        "curator",
        "licence",
        "cadence",
        "site_url",
        "schema_url",
        "data_url",
        "feed_url",
        "edition_count",
        "record_count",
        "source_count"
      ],
      "additionalProperties": false
    },
    "editions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "record_count": {
            "type": "integer",
            "minimum": 0
          },
          "source_count": {
            "type": "integer",
            "minimum": 0
          },
          "atlas_url": {
            "type": "string"
          },
          "additions_url": {
            "type": "string"
          }
        },
        "required": [
          "date",
          "record_count",
          "source_count",
          "atlas_url",
          "additions_url"
        ],
        "additionalProperties": false
      }
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "object",
            "properties": {
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "title"
        ],
        "additionalProperties": false
      }
    },
    "facets": {
      "type": "object",
      "properties": {
        "task": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "contribution": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "stage": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "origin": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "businessLine": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "jurisdiction": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "verification": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "sourceBasis": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "task",
        "contribution",
        "stage",
        "origin",
        "businessLine",
        "jurisdiction",
        "verification",
        "sourceBasis"
      ],
      "additionalProperties": false
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "edition_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "translations": {
            "type": "object",
            "properties": {
              "fr": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  }
                },
                "required": [
                  "title",
                  "summary"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "fr"
            ],
            "additionalProperties": false
          },
          "category_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "change_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "organization": {
            "type": "string"
          },
          "evidence": {
            "type": "object",
            "properties": {
              "task": {
                "type": "string"
              },
              "contribution_type": {
                "type": "string"
              },
              "deployment_stage": {
                "type": "string"
              },
              "evidence_origin": {
                "type": "string"
              },
              "business_lines": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "jurisdictions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "independent_outcome_verification": {
                "type": "boolean"
              },
              "task_group": {
                "type": "string",
                "enum": [
                  "extraction-document-processing",
                  "forecasting-modelling-optimization",
                  "pricing-underwriting-rating",
                  "reserving-valuation-calculation",
                  "code-generation-migration",
                  "review-validation-testing",
                  "reporting-documentation",
                  "workflow-automation-agents",
                  "governance-inventory-oversight",
                  "adoption-operating-model"
                ]
              },
              "contribution_type_group": {
                "type": "string",
                "enum": [
                  "actuarial-modelling",
                  "specialist-methods",
                  "model-tools-migration",
                  "workflow-automation",
                  "data-documents-reporting",
                  "governance-validation",
                  "adoption-practice",
                  "solution-capabilities",
                  "not-stated"
                ]
              },
              "deployment_stage_group": {
                "type": "string",
                "enum": [
                  "research-simulation",
                  "prototype-poc",
                  "pilot-limited",
                  "vendor-release",
                  "reported-production",
                  "survey-adoption",
                  "regulation-guidance",
                  "professional-material",
                  "market-announcement",
                  "not-established"
                ]
              },
              "evidence_origin_group": {
                "type": "string",
                "enum": [
                  "insurer",
                  "supplier",
                  "academic-research",
                  "professional-body",
                  "regulator-policy",
                  "survey",
                  "consultancy"
                ]
              },
              "business_line_groups": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "life",
                    "health",
                    "pc-non-life",
                    "reinsurance",
                    "pensions",
                    "investments-alm",
                    "cross-line",
                    "other"
                  ]
                },
                "minItems": 1,
                "uniqueItems": true
              },
              "jurisdiction_groups": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "eu-eea",
                    "uk",
                    "us",
                    "canada",
                    "asia-pacific",
                    "middle-east-africa",
                    "global",
                    "not-applicable",
                    "not-stated"
                  ]
                },
                "minItems": 1,
                "uniqueItems": true
              },
              "verification_group": {
                "type": "string",
                "enum": [
                  "independently-verified",
                  "reported-only"
                ]
              },
              "source_basis": {
                "type": "string",
                "enum": [
                  "official-document",
                  "peer-reviewed",
                  "preprint-working-paper",
                  "company-disclosure",
                  "vendor-supplier",
                  "survey",
                  "professional-body",
                  "conference-presentation"
                ]
              },
              "source_basis_source_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "uniqueItems": true
              },
              "survey_commissioner": {
                "type": "string",
                "minLength": 1
              },
              "reviewed_jurisdiction": {
                "type": "object",
                "properties": {
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "source_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "uniqueItems": true
                  }
                },
                "required": [
                  "locations",
                  "source_ids"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "task",
              "contribution_type",
              "deployment_stage",
              "evidence_origin",
              "business_lines",
              "jurisdictions",
              "independent_outcome_verification",
              "task_group",
              "contribution_type_group",
              "deployment_stage_group",
              "evidence_origin_group",
              "business_line_groups",
              "jurisdiction_groups",
              "verification_group",
              "source_basis",
              "source_basis_source_ids"
            ],
            "additionalProperties": false,
            "if": {
              "properties": {
                "source_basis": {
                  "const": "survey"
                }
              }
            },
            "then": {
              "required": [
                "survey_commissioner"
              ]
            },
            "else": {
              "not": {
                "required": [
                  "survey_commissioner"
                ]
              }
            }
          },
          "claims": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "source_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "locators": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "text",
                "source_ids",
                "locators"
              ],
              "additionalProperties": false
            }
          },
          "metrics": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "value": {
                  "oneOf": [
                    {
                      "type": [
                        "number",
                        "string",
                        "boolean",
                        "null"
                      ]
                    },
                    {
                      "type": "object",
                      "additionalProperties": {
                        "oneOf": [
                          {
                            "type": [
                              "number",
                              "string",
                              "boolean",
                              "null"
                            ]
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": [
                                "number",
                                "string",
                                "boolean",
                                "null"
                              ]
                            }
                          }
                        ]
                      }
                    }
                  ]
                },
                "unit": {
                  "type": "string"
                },
                "population": {
                  "type": "string"
                },
                "baseline": {
                  "oneOf": [
                    {
                      "type": [
                        "number",
                        "string",
                        "boolean",
                        "null"
                      ]
                    },
                    {
                      "type": "object",
                      "additionalProperties": {
                        "oneOf": [
                          {
                            "type": [
                              "number",
                              "string",
                              "boolean",
                              "null"
                            ]
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": [
                                "number",
                                "string",
                                "boolean",
                                "null"
                              ]
                            }
                          }
                        ]
                      }
                    }
                  ]
                },
                "locator": {
                  "type": "string"
                },
                "measurement_status": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "source_id",
                "name",
                "value",
                "unit",
                "population",
                "baseline",
                "locator",
                "measurement_status"
              ],
              "additionalProperties": false
            }
          },
          "approach": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "prior_update_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "publication_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "event_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "study_period": {
            "type": [
              "string",
              "null"
            ]
          },
          "dates": {
            "type": "string"
          },
          "permalinks": {
            "type": "object",
            "properties": {
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "fr"
            ],
            "additionalProperties": false
          },
          "practitioner_takeaway": {
            "type": "object",
            "properties": {
              "en": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "fr"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "edition_date",
          "title",
          "summary",
          "translations",
          "category_ids",
          "change_type",
          "organization",
          "evidence",
          "claims",
          "metrics",
          "approach",
          "outcome",
          "limitations",
          "source_ids",
          "prior_update_ids",
          "publication_date",
          "event_date",
          "study_period",
          "dates",
          "permalinks"
        ],
        "additionalProperties": false
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "category_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "edition_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "url",
                "label"
              ],
              "additionalProperties": false
            }
          },
          "publisher": {
            "type": [
              "string",
              "null"
            ]
          },
          "authors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "annotation": {
            "type": "string"
          },
          "publication_date": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
          },
          "publication_date_precision": {
            "enum": [
              "day",
              "month",
              "year",
              "unknown"
            ]
          },
          "version": {
            "type": [
              "string",
              "null"
            ]
          },
          "version_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "event_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "release_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "study_period": {
            "type": [
              "string",
              "null"
            ]
          },
          "accessed_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "access_status": {
            "enum": [
              "readable",
              "partial_bibliographic_record",
              "publisher_summary",
              "official_indexed_excerpts",
              "publisher_abstract_and_metadata",
              "not_recorded"
            ]
          },
          "reviewed_scope": {
            "type": [
              "string",
              "null"
            ]
          },
          "access_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_note_fr": {
            "type": [
              "string",
              "null"
            ]
          },
          "url_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "primary_source": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "evidence_origin": {
            "type": "string"
          },
          "deployment_stage": {
            "type": "string"
          },
          "evidence_origin_group": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "category_ids",
          "edition_date",
          "title",
          "url",
          "links",
          "publisher",
          "authors",
          "annotation",
          "publication_date",
          "publication_date_precision",
          "version",
          "version_date",
          "event_date",
          "release_date",
          "study_period",
          "accessed_on",
          "access_status",
          "reviewed_scope",
          "access_note",
          "date_note",
          "date_note_fr",
          "url_note",
          "source_type",
          "primary_source",
          "evidence_origin",
          "deployment_stage",
          "evidence_origin_group"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "schema_version",
    "document_type",
    "as_of",
    "metadata",
    "editions",
    "categories",
    "facets",
    "records",
    "sources"
  ],
  "additionalProperties": false
}
