{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://spurvik.com/r/ai-act-manifest.schema.json",
  "title": "Spurvik EU AI Act Art. 50 & C2PA Machine-Readable Manifest (spurvik.ai-act-manifest.v1)",
  "description": "Zero-cookie, zero-PII machine-readable transparency & provenance manifest published at /.well-known/ai-act.json ahead of the 2 December 2026 EU AI Act Art. 50(2) milestone.",
  "type": "object",
  "required": [
    "$schema",
    "format",
    "domain",
    "generatedAt",
    "jurisdiction",
    "milestones",
    "defaultLocale",
    "articles",
    "embeds",
    "publicBriefs",
    "plans",
    "scopeNote"
  ],
  "properties": {
    "$schema": {
      "type": "string",
      "format": "uri"
    },
    "format": {
      "const": "spurvik.ai-act-manifest.v1"
    },
    "specificationUrl": {
      "type": "string",
      "format": "uri"
    },
    "domain": {
      "type": "string",
      "minLength": 3,
      "maxLength": 253
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "jurisdiction": {
      "const": "Regulation (EU) 2024/1689 (EU AI Act)"
    },
    "milestones": {
      "type": "object",
      "required": ["art50_2_machine_readable_provenance", "art50_full_transparency"],
      "properties": {
        "art50_2_machine_readable_provenance": { "const": "2026-12-02" },
        "art50_full_transparency": { "const": "2027-08-02" }
      }
    },
    "defaultLocale": {
      "type": "string",
      "minLength": 2,
      "maxLength": 8
    },
    "frontpageObservation": {
      "type": "object",
      "properties": {
        "reachable": { "type": "boolean" },
        "httpStatus": { "type": ["integer", "null"] },
        "detectedWidgets": { "type": "array", "items": { "type": "string" } },
        "detectedPlatforms": { "type": "array", "items": { "type": "string" } },
        "visibleArt50Notice": { "type": "boolean" },
        "c2paImageProxyRisk": { "type": ["string", "null"] }
      }
    },
    "articles": {
      "type": "object",
      "required": [
        "art50_1_interaction_notice",
        "art50_2_c2pa_provenance",
        "art12_pseudonymised_hmac_logging",
        "art14_human_oversight_gate"
      ],
      "properties": {
        "art50_1_interaction_notice": {
          "type": "object",
          "required": ["status", "scriptUrl", "snippet"],
          "properties": {
            "status": {
              "enum": ["notice_detected", "widget_without_notice", "no_public_widget_detected", "scan_pending"]
            },
            "scriptUrl": { "type": "string", "format": "uri" },
            "snippet": { "type": "string" },
            "whiteLabelAttribute": { "type": "string" }
          }
        },
        "art50_2_c2pa_provenance": {
          "type": "object",
          "required": ["effectiveDate", "publicCheckUrl"],
          "properties": {
            "effectiveDate": { "const": "2026-12-02" },
            "publicCheckUrl": { "type": "string", "format": "uri" },
            "c2paShieldSvg": { "type": "string", "format": "uri" },
            "cloudflareWorkerUrl": { "type": "string", "format": "uri" }
          }
        },
        "art12_pseudonymised_hmac_logging": {
          "type": "object",
          "required": ["region", "rawPromptBytesStored", "guideUrl"],
          "properties": {
            "region": { "const": "eu-central-1" },
            "rawPromptBytesStored": { "const": 0 },
            "guideUrl": { "type": "string", "format": "uri" }
          }
        },
        "art14_human_oversight_gate": {
          "type": "object",
          "required": ["channels", "selfTestUrl"],
          "properties": {
            "channels": { "type": "array", "items": { "type": "string" } },
            "selfTestUrl": { "type": "string", "format": "uri" },
            "guideUrl": { "type": "string", "format": "uri" }
          }
        }
      }
    },
    "embeds": {
      "type": "object",
      "required": ["wellKnownPath", "htmlHeadLinkTag", "trustWidgetScript", "statusShieldSvg", "c2paShieldSvg", "trustCenterCardSvg"],
      "properties": {
        "wellKnownPath": { "const": "/.well-known/ai-act.json" },
        "htmlHeadLinkTag": { "type": "string" },
        "trustWidgetScript": { "type": "string" },
        "statusShieldSvg": { "type": "string", "format": "uri" },
        "c2paShieldSvg": { "type": "string", "format": "uri" },
        "trustCenterCardSvg": { "type": "string", "format": "uri" }
      }
    },
    "publicBriefs": {
      "type": "object",
      "required": ["dpoReportUrl", "dpoReportMarkdownUrl", "vendorRfpUrl", "riskCheckUrl"],
      "properties": {
        "dpoReportUrl": { "type": "string", "format": "uri" },
        "dpoReportMarkdownUrl": { "type": "string", "format": "uri" },
        "vendorRfpUrl": { "type": "string", "format": "uri" },
        "riskCheckUrl": { "type": "string", "format": "uri" }
      }
    },
    "plans": {
      "type": "object",
      "required": ["freeEur0", "whiteLabelProEur19Mo", "whiteLabelProEur190Yr", "teamAnnexIvEur79Mo", "teamAnnexIvEur790Yr", "doneForYou24hEur199"],
      "properties": {
        "freeEur0": { "type": "string", "format": "uri" },
        "whiteLabelProEur19Mo": { "type": "string", "format": "uri" },
        "whiteLabelProEur190Yr": { "type": "string", "format": "uri" },
        "teamAnnexIvEur79Mo": { "type": "string", "format": "uri" },
        "teamAnnexIvEur790Yr": { "type": "string", "format": "uri" },
        "doneForYou24hEur199": { "type": "string", "format": "uri" }
      }
    },
    "scopeNote": { "type": "string" }
  }
}
