{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hogarmas.net/ai-transparency/schema.json",
  "title": "H/M AI Transparency Implementation Pack",
  "description": "Local decision-aid output for Article 50 transparency paths, visible disclosure drafts, evidence gaps and an unsigned C2PA 2.4 authoring view.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "ruleset",
    "verifiedOn",
    "applicableFrom",
    "language",
    "input",
    "summary",
    "obligations",
    "disclosures",
    "evidence",
    "c2pa24",
    "privacy",
    "limitations",
    "sources"
  ],
  "properties": {
    "schema": {
      "const": "hm.ai-transparency-pack.v1"
    },
    "ruleset": {
      "const": "2026-07-22.2"
    },
    "verifiedOn": {
      "const": "2026-07-22"
    },
    "applicableFrom": {
      "const": "2026-08-02"
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "es",
        "zh"
      ]
    },
    "input": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "systemName",
        "role",
        "euExposure",
        "professionalUse",
        "directInteraction",
        "interactionObvious",
        "syntheticContent",
        "placedOnMarketBefore20260802",
        "humanExposure",
        "standardEditingOnly",
        "contentTypes",
        "emotionOrBiometric",
        "deepfake",
        "publicInterestText",
        "substantiveHumanReview",
        "editorialResponsibility",
        "visibleDisclosureImplemented",
        "machineReadableMarkImplemented",
        "detectionTested",
        "accessibleDisclosureTested",
        "recordsMaintained",
        "marketEntryDateDocumented",
        "modelType",
        "modelName",
        "modelIdentifier",
        "scientificDomain",
        "humanOversightLevel"
      ],
      "properties": {
        "systemName": {
          "type": "string",
          "maxLength": 100
        },
        "role": {
          "type": "string",
          "enum": [
            "provider",
            "deployer",
            "both",
            "unsure"
          ]
        },
        "euExposure": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "professionalUse": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "directInteraction": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "interactionObvious": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "syntheticContent": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "placedOnMarketBefore20260802": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "humanExposure": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "standardEditingOnly": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "contentTypes": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "text",
              "image",
              "audio",
              "video"
            ]
          }
        },
        "emotionOrBiometric": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "deepfake": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "publicInterestText": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "substantiveHumanReview": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "editorialResponsibility": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "visibleDisclosureImplemented": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "machineReadableMarkImplemented": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "detectionTested": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "accessibleDisclosureTested": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "recordsMaintained": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "marketEntryDateDocumented": {
          "type": "string",
          "enum": [
            "yes",
            "no",
            "unsure"
          ]
        },
        "modelType": {
          "type": "string",
          "enum": [
            "c2pa.types.model",
            "c2pa.types.model.huggingface.transformers",
            "c2pa.types.model.pytorch",
            "c2pa.types.model.tensorflow",
            "c2pa.types.model.onnx"
          ]
        },
        "modelName": {
          "type": "string",
          "maxLength": 120
        },
        "modelIdentifier": {
          "type": "string",
          "maxLength": 240
        },
        "scientificDomain": {
          "type": "string",
          "maxLength": 80,
          "pattern": "^$|^[A-Za-z0-9-]+(?:\\.[A-Za-z0-9-]+)+$"
        },
        "humanOversightLevel": {
          "type": "string",
          "enum": [
            "fully_autonomous",
            "prompt_guided",
            "human_validated"
          ]
        }
      }
    },
    "summary": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "likelyTriggered",
        "reviewRequired",
        "notIndicated",
        "missingEvidence",
        "evidenceToReview"
      ],
      "properties": {
        "likelyTriggered": {
          "type": "integer",
          "minimum": 0
        },
        "reviewRequired": {
          "type": "integer",
          "minimum": 0
        },
        "notIndicated": {
          "type": "integer",
          "minimum": 0
        },
        "missingEvidence": {
          "type": "integer",
          "minimum": 0
        },
        "evidenceToReview": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "obligations": {
      "type": "array",
      "minItems": 6,
      "maxItems": 6,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "article",
          "actor",
          "status",
          "statusLabel",
          "title",
          "reasonCode",
          "reason",
          "actions",
          "source"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "article": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "likely-triggered",
              "review-required",
              "not-indicated"
            ]
          },
          "statusLabel": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "reasonCode": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "code",
                "text"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              }
            }
          },
          "source": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "disclosures": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "article",
          "placement",
          "requiredness",
          "text"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "article": {
            "type": "string"
          },
          "placement": {
            "type": "string"
          },
          "requiredness": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "status",
          "statusLabel",
          "label",
          "requiredFor"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "provided",
              "missing",
              "review"
            ]
          },
          "statusLabel": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "requiredFor": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "c2pa24": {
      "type": "object"
    },
    "privacy": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "inputsUploadedByBuilder",
        "browserStorageUsed",
        "rawInputIncludedInMetrics",
        "userEnteredIdentifiersIncludedInLocalExport"
      ],
      "properties": {
        "inputsUploadedByBuilder": {
          "const": false
        },
        "browserStorageUsed": {
          "const": false
        },
        "rawInputIncludedInMetrics": {
          "const": false
        },
        "userEnteredIdentifiersIncludedInLocalExport": {
          "const": true
        }
      }
    },
    "limitations": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "legalAdviceProvided",
        "complianceCertified",
        "contentInspected",
        "productionMarkVerified",
        "c2paCredentialSigned",
        "assetCryptographicallyBound",
        "independentlyVerifiableCredentialProduced"
      ],
      "properties": {
        "legalAdviceProvided": {
          "const": false
        },
        "complianceCertified": {
          "const": false
        },
        "contentInspected": {
          "const": false
        },
        "productionMarkVerified": {
          "const": false
        },
        "c2paCredentialSigned": {
          "const": false
        },
        "assetCryptographicallyBound": {
          "const": false
        },
        "independentlyVerifiableCredentialProduced": {
          "const": false
        }
      }
    },
    "sources": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "format": "uri"
      }
    }
  }
}
