{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hogarmas.net/content-credentials/evidence-envelope-schema.json",
  "title": "H/M Content Credentials verifiable evidence envelope",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "ruleset", "report", "integrity", "privacy", "limitations"],
  "properties": {
    "schema": { "const": "hm.content-credentials-evidence-envelope.v1" },
    "ruleset": { "enum": ["2026-07-22.3", "2026-07-28.1"] },
    "report": { "$ref": "https://hogarmas.net/content-credentials/report-schema.json" },
    "integrity": {
      "type": "object",
      "additionalProperties": false,
      "required": ["algorithm", "digest", "cryptographicallySigned", "issuerIdentityVerified"],
      "properties": {
        "algorithm": { "const": "SHA-256" },
        "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
        "cryptographicallySigned": { "const": false },
        "issuerIdentityVerified": { "const": false }
      }
    },
    "privacy": {
      "type": "object",
      "additionalProperties": false,
      "required": ["sourceFileIncluded", "sourceFileUploaded", "browserStorageUsed", "exportedFileNameIncluded", "exportedFileHashIncluded"],
      "properties": {
        "sourceFileIncluded": { "const": false },
        "sourceFileUploaded": { "const": false },
        "browserStorageUsed": { "const": false },
        "exportedFileNameIncluded": { "const": true },
        "exportedFileHashIncluded": { "const": true }
      }
    },
    "limitations": {
      "type": "object",
      "additionalProperties": false,
      "required": ["checksumAuthenticatesIssuer", "semanticTruthProven", "authorshipProven", "legalComplianceCertified"],
      "properties": {
        "checksumAuthenticatesIssuer": { "const": false },
        "semanticTruthProven": { "const": false },
        "authorshipProven": { "const": false },
        "legalComplianceCertified": { "const": false }
      }
    }
  }
}
