{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://strategicsignal.ai/data/ai-access/v2.0.0/record.schema.json",
  "title": "Strategic Signal Canonical AI Access Record",
  "description": "Canonical ontology v2.0.0. One record model for governed external AI access. Data-rights transactions and capability-access views are derived facets, not separate datasets.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "ontology_version",
    "canonical_record_id",
    "legacy_ids",
    "event_key",
    "announcement_date",
    "observed_status",
    "parties",
    "asset",
    "access",
    "rights",
    "capabilities",
    "flows",
    "qualification",
    "economics",
    "scores",
    "governance",
    "evidence",
    "publication_review"
  ],
  "$defs": {
    "right": {
      "enum": [
        "permitted",
        "conditional",
        "prohibited",
        "not_disclosed",
        "unknown"
      ]
    },
    "tri": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "sourceRef": {
      "type": "string",
      "minLength": 1
    }
  },
  "properties": {
    "ontology_version": {
      "const": "2.0.0"
    },
    "canonical_record_id": {
      "type": "string",
      "pattern": "^SS-AI-[0-9]{4}-[A-F0-9]{8}$"
    },
    "legacy_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "event_key": {
      "type": "string",
      "minLength": 10
    },
    "announcement_date": {
      "type": "string",
      "format": "date"
    },
    "observed_status": {
      "type": "string"
    },
    "first_added_date": {
      "type": "string",
      "format": "date"
    },
    "last_reviewed_date": {
      "type": "string",
      "format": "date"
    },
    "parties": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "providers",
        "ai_recipients"
      ],
      "properties": {
        "providers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "ai_recipients": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "strategic_buyer_or_operator": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "asset": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "description",
        "asset_types",
        "industry",
        "subject_type",
        "proprietary_status",
        "asset_disposition",
        "renewal"
      ],
      "properties": {
        "description": {
          "type": "string",
          "minLength": 20
        },
        "asset_types": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "industry": {
          "type": [
            "string",
            "null"
          ]
        },
        "subject_type": {
          "enum": [
            "human",
            "industrial_system",
            "organization",
            "market",
            "scientific_system",
            "mixed",
            "unknown"
          ]
        },
        "proprietary_status": {
          "enum": [
            "proprietary",
            "public",
            "mixed",
            "unknown"
          ]
        },
        "asset_disposition": {
          "enum": [
            "stranded_separable",
            "embedded_continuing",
            "not_applicable",
            "unknown"
          ]
        },
        "renewal": {
          "enum": [
            "finite",
            "renewable",
            "mixed",
            "not_applicable",
            "unknown"
          ]
        }
      }
    },
    "access": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "mechanisms",
        "modes"
      ],
      "properties": {
        "mechanisms": {
          "type": "array",
          "items": {
            "enum": [
              "acquisition",
              "license",
              "partnership",
              "connector",
              "platform_integration",
              "federated_access",
              "on_prem",
              "service_subscription",
              "other"
            ]
          },
          "uniqueItems": true
        },
        "modes": {
          "type": "array",
          "items": {
            "enum": [
              "corpus_delivery",
              "retrieval",
              "ongoing_feed",
              "training",
              "post_training",
              "evaluation",
              "action_execution",
              "personalization"
            ]
          },
          "uniqueItems": true
        }
      }
    },
    "rights": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "training",
        "post_training",
        "evaluation",
        "inference_retrieval",
        "action_execution",
        "personalization",
        "retention",
        "ownership_transfer",
        "derived_model",
        "sublicensing",
        "exclusivity"
      ],
      "properties": {
        "training": {
          "$ref": "#/$defs/right"
        },
        "post_training": {
          "$ref": "#/$defs/right"
        },
        "evaluation": {
          "$ref": "#/$defs/right"
        },
        "inference_retrieval": {
          "$ref": "#/$defs/right"
        },
        "action_execution": {
          "$ref": "#/$defs/right"
        },
        "personalization": {
          "$ref": "#/$defs/right"
        },
        "retention": {
          "$ref": "#/$defs/right"
        },
        "ownership_transfer": {
          "$ref": "#/$defs/right"
        },
        "derived_model": {
          "$ref": "#/$defs/right"
        },
        "sublicensing": {
          "$ref": "#/$defs/right"
        },
        "exclusivity": {
          "$ref": "#/$defs/right"
        }
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "evidence_level",
          "statement",
          "source_ids"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "evidence_level": {
            "enum": [
              "intended",
              "enabled",
              "demonstrated"
            ]
          },
          "statement": {
            "type": "string",
            "minLength": 10
          },
          "source_ids": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/sourceRef"
            },
            "uniqueItems": true
          }
        }
      }
    },
    "flows": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "knowledge_access",
        "professional_workflow_access",
        "human_response_access",
        "human_response_stage",
        "repetition_scope",
        "recovery_observed",
        "adaptation_observed"
      ],
      "properties": {
        "knowledge_access": {
          "$ref": "#/$defs/tri"
        },
        "professional_workflow_access": {
          "$ref": "#/$defs/tri"
        },
        "human_response_access": {
          "$ref": "#/$defs/tri"
        },
        "human_response_stage": {
          "enum": [
            "not_applicable",
            "H0",
            "H1",
            "H2",
            "H3",
            "unknown"
          ]
        },
        "repetition_scope": {
          "enum": [
            "within_subject",
            "across_subjects",
            "mixed",
            "unknown",
            "not_applicable"
          ]
        },
        "recovery_observed": {
          "$ref": "#/$defs/tri"
        },
        "adaptation_observed": {
          "$ref": "#/$defs/tri"
        }
      }
    },
    "qualification": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "capability_access_qualified",
        "data_rights_qualified",
        "qualification_version",
        "rationale"
      ],
      "properties": {
        "capability_access_qualified": {
          "type": "boolean"
        },
        "data_rights_qualified": {
          "type": "boolean"
        },
        "qualification_version": {
          "type": "string"
        },
        "rationale": {
          "type": "string",
          "minLength": 10
        }
      }
    },
    "economics": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "transaction_structure",
        "disclosed_consideration",
        "estimated_economics",
        "economics_scope"
      ],
      "properties": {
        "transaction_structure": {
          "type": [
            "string",
            "null"
          ]
        },
        "disclosed_consideration": {
          "type": [
            "object",
            "null"
          ]
        },
        "estimated_economics": {
          "type": [
            "object",
            "null"
          ]
        },
        "economics_scope": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "scores": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "applicability",
        "methodology_version",
        "asset",
        "transaction_signal"
      ],
      "properties": {
        "applicability": {
          "enum": [
            "applicable",
            "not_applicable"
          ]
        },
        "methodology_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "asset": {
          "type": [
            "object",
            "null"
          ]
        },
        "transaction_signal": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    },
    "governance": {
      "type": "object",
      "additionalProperties": true
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "minItems": 1
    },
    "publication_review": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "status"
      ],
      "properties": {
        "status": {
          "enum": [
            "human_reviewed",
            "provisional",
            "withdrawn"
          ]
        }
      }
    }
  }
}
